FKeyPair -how to generate a valid key pair for pak signing?

here are the 3 keys i have put inside:

C:\0.ue4\UnrealEngine\MyApp\Build\NoRedist\Keys.txt

0x123456789abcdef 0x1234567 0x12345abc

but i am always getting this:

Loading key pair from
C:\0.ue4\UnrealEngine\MyApp\Build\NoRedist\Keys.txt
UATHelper: Packaging (Windows
(64-bit)): UnrealPak:
LogPakFile:Display: Testing signature
keys. UATHelper: Packaging (Windows
(64-bit)): UnrealPak:
LogPakFile:Error: Keys do not properly
encrypt/decrypt data (failed test with
11) UATHelper: Packaging (Windows
(64-bit)): UnrealPak:
LogPakFile:Error: Unable to create a
signed pak writer.

i tried to follow :

to generate key pairs. but failed to generate private key exponent.

any idea on how to generate valid keys

I have found -GenerateKeys argument of unrealPak.exe.
i tried to run it with

“C:\0.ue4\UnrealEngine\Engine\Binaries\Win64"
UnrealPak.exe
-GenerateKeys=“C:\0.ue4\4.14.3_cpp\android_bp1\pass.txt”
-P=317 -P=337”

it is runnning for almost 2 hour. still nothing.
Does it actually work?
and it is using 100% of my cpu. so ue4 editor is useless bcz of this.
Can anybody provide a sample password to check the system, before wasiting time on it ?

The prime number arguments must be -P= and -Q=, you’re repeating P twice. And by looking at the source code, the numbers must be given in hexadecimal (the 0x prefix is optional but the string is still treated as hexadecimal). This will prevent the executable from searching for large primes by itself which can take a really long time but it may still try to validate if they are primes indeed which can also take some time, so if you know for sure P and Q to be primes you can skip the checks completely by specifying -NoVerifyPrimes.