https://docs.cryengine.com/display/CEPROG/Guide+to+releasing+CRYENGINE+V+projects
Setting up Cryptography Key(s)
Open a command prompt, and make <root>/Tools/PakEncrypt the current directory.
C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\crytek\cryengine-57-lts\5.7.1\Tools\PakEncrypt
in C:\Program Files (x86)\Crytek\CRYENGINE Launcher\Crytek\crytek\cryengine-57-lts\5.7.1\Tools\PakEncrypt\win_x64
Now run: KeyGen.exe
This should create a key.dat and key.h file.
Advices : Never give out your key.dat file to anyone that you cannot trust.
If you lose the key.dat file, then any PAK files that have been encrypted with it can no longer be decrypted.
Crytek cannot help you to recover a lost key.dat file.