Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

DefaultEncryption.ini key generation

Can anyone walk me through generating the four things that are expected in DefaultEncryption.ini ?

I've worked with puttygen and ssh-keygen before, but the keys it is expecting don't look familiar to me.

Here is the DefaultEncryption.ini taken from ShooterGame:

alt text

I can't find any documentation on this.
I would appreciate some help from someone who has set this up.

EDIT: After more research I have found the GenerateKeys flag for UnrealPak.exe and am running it like this

alt text

But it has been running for a very long time. I am running it on a i7-2600 3.4GHz.

Does this actually work? Any help?

Product Version: UE 4.18
keys.png (26.1 kB)
more ▼

asked Jan 10 '18 at 02:33 PM in Packaging & Deployment

avatar image

400 44 46 68

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I think best option will be just to wait

I never tried this myself so i do this blindly but you could try to use OpenSSL to generate keys (if you have git for windows installed if comes with the package, just open git command line),

RSA is for signing (for verifying that file is not altered, can be readed by public key) AES is for encryption (to not able to read)

Starting with RSA, the RSA keys you have in ini are 128-bit, i don't know if UE4 supports bigger keys the bigger the key the more secure it is.

follow instruction here just dont use -des3


Then you extract exponants and moduls with those commands:


add 0x at beging and remove all :

But i still recpmmand oyu to wait for what UE4 is doing as public exponant generated from openssl is very low, that might be reason why UE4 use higher one which probably requires more processing to make it more secure

AES key can be anything i think... but im not sure ;p just generate random string of same length

I don't have expirance with pak encryption so maybe some other gonna give you more sure answer, but i think my RSA should work or else UE4 use RSA keys differently

more ▼

answered Jan 25 '18 at 12:43 AM

avatar image

37.2k 936 172 1116

avatar image Rationist Mar 07 '18 at 08:49 PM

Thank you, this was really useful. I consolidated this information into one post at: http://www.oneoddsock.com/blog/2018/03/07/signing-unreal-pak-files/

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question