# How to encrypt .PAK or package file?

**URL:** <https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 7, 2016, 6:36am UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774 "2016-03-07T06:36:17Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![anonymous\_user\_2c124cb81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2c124cb81](https://forums.unrealengine.com/u/anonymous_user_2c124cb81)\
**Post date:** [October 4, 2016, 1:05pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/21 "2016-10-04T13:05:10Z")

</div>

Hi, It’s been a few months and I’d like to know about the status of the issue UE-27348.

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [October 7, 2016, 9:08pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/22 "2016-10-07T21:08:16Z")

</div>

UE-27348 is on our to do list, and assigned to a developer currently. However, since it’s a priority 3, those priority 2, 1 and 0 are taken care of first.

Thanks!

---

<div class="post-metadata">

**Author:** ![Antvg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Antvg](https://forums.unrealengine.com/u/Antvg)\
**Post date:** [October 22, 2016, 3:25am UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/23 "2016-10-22T03:25:33Z")

</div>

Any news on the issue?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_089a4978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Post date:** [October 23, 2016, 6:47pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/24 "2016-10-23T18:47:48Z")

</div>

Hi ,

says that AES\_KEY is in AES.h. I added this line to Build.cs file of my project, is this true?  
Definitions.Add(“AES\_KEY=[SuperSecureKey]”);

After I set encryption key correctly, how can I encrypt pak file for Android and iOS? Should I manually extract pak from OBB, encrypt pak file then replace with the old one inside the OBB file, via 7zip?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [October 28, 2016, 7:34pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/25 "2016-10-28T19:34:29Z")

</div>

You should be able to encrypt Android and iOS files the same exact way as you would any other packaged file from the engine. [Here][1] is an AnswerHub post where I believe your questions may be answered.

Good luck!

[Protect .pak file from Unpack - Platform & Builds - Epic Developer Community Forums](https://answers.unrealengine.com/questions/316029/protect-pak-file-from-unpack.html)

---

<div class="post-metadata">

**Author:** ![Estape](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/estape/32/1007455_2.png) [@Estape](https://forums.unrealengine.com/u/Estape)\
**Post date:** [January 28, 2017, 7:58pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/26 "2017-01-28T19:58:01Z")

</div>

Good afternoon, they fixed the UE-27348? Thank-you!

---

<div class="post-metadata">

**Author:** ![Fitz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fitz/32/1078894_2.png) [@Fitz](https://forums.unrealengine.com/u/Fitz)\
**Post date:** [February 3, 2017, 6:38pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/27 "2017-02-03T18:38:11Z")

</div>

This issue is actively being addressed, but since it is a non-trivial problem we are not able to provide an estimate on when the work may be completed.

When the feature is available, we’ll be sure to update this thread.

---

<div class="post-metadata">

**Author:** ![OAXP\_is\_NinjaV3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OAXP\_is\_NinjaV3](https://forums.unrealengine.com/u/OAXP_is_NinjaV3)\
**Post date:** [May 13, 2017, 5:04am UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/28 "2017-05-13T05:04:15Z")

</div>

Ok let us know please 😃 we need to protect our work.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c091fbdb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c091fbdb](https://forums.unrealengine.com/u/anonymous_user_c091fbdb)\
**Post date:** [May 24, 2017, 12:16pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/29 "2017-05-24T12:16:22Z")

</div>

Is there any update on this? Would be great if we could track its progress.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [May 24, 2017, 6:47pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/30 "2017-05-24T18:47:54Z")

</div>

Hey -

Unfortunately the report for this issue contains private information and cannot be made public. However the issues appears to have been fixed for 4.16. Please test your project in the latest version and let us know if you are still having this problem and we will investigate further.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2709d010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2709d010](https://forums.unrealengine.com/u/anonymous_user_2709d010)\
**Post date:** [August 18, 2017, 3:26pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/31 "2017-08-18T15:26:54Z")

</div>

There needs to be an option to encrypt single ueasset files, not just Paks. If you have a huge game, using the Unreal patch mechanism is not an option. You need to deliver single asset files otherwise the patch delivery grows larger and larger since UE patching is accumulative.

Please Epic make this a priority! We need a simple way to encrypt all asset files during the pak process !

---

<div class="post-metadata">

**Author:** ![GXMark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GXMark](https://forums.unrealengine.com/u/GXMark)\
**Post date:** [August 26, 2025, 9:19pm UTC](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774/32 "2025-08-26T21:19:30Z")

</div>

I wanted to put an update into this thread because i have been trying to encrypt my pak file for a while now using version 5.6.

```auto
"C:\UnrealEngine\Engine\Binaries\Win64\UnrealPak.exe" "C:\UnrealSettings\MyEncrypted.pak" -create="C:\UnrealSettings\PakList.txt" -encrypt -cryptokeys="C:\UnrealSettings\Crypto.json"

i get LogWindows: Error: Assertion failed: InKeyChain.GetPrincipalEncryptionKey() [File:C:\UnrealEngine\Engine\Source\Developer\PakFileUtilities\Private\PakFileUtilities.cpp] [Line: 1070]

Can anyone put me on the right direction to solving this issue please

```

[Previous page](https://forums.unrealengine.com/t/how-to-encrypt-pak-or-package-file/349774.md?page=1)
