The problem is that I can't decrypt encrypted UE4 data blocks.
the code I used is below.
Code: Select all
byte[] key = {
0x45, 0xDD, 0x15, 0xD6, 0xDD, 0x2D, 0xA5, 0x0A, 0xEB, 0x71, 0xCE, 0x7A, 0x52, 0x84, 0xCF, 0x8E,
0xA4, 0x98, 0xB2, 0xEC, 0x3D, 0x52, 0xB7, 0xE3, 0x36, 0xF3, 0xEA, 0x00, 0x71, 0xCE, 0x44, 0xB3
};
byte[] encryptedData = File.ReadAllBytes(encryptedFIlePath);
byte[] decryptedData;
using (RijndaelManaged rDel = new RijndaelManaged())
{
rDel.Key = key;
rDel.KeySize = 256;
rDel.BlockSize = 128;
rDel.Mode = CipherMode.ECB;
rDel.Padding = PaddingMode.None;
using (var decryptor = rDel.CreateDecryptor())
{
decryptedData = decryptor.TransformFinalBlock(encryptedData, 0, encryptedData.Length);
}
}
File.WriteAllBytes(decryptedFIlePath, decryptedData);
I have tried 256 BlockSize, other CipherModes but nothing worked.
The sample data I'm using is from PUBG and quickbms can easily decrypt it.
Code: Select all
encryption aes "45DD15D6DD2DA50AEB71CE7A5284CF8EA498B2EC3D52B7E336F3EA0071CE44B3" "" 0 32
get FILESIZE asize
log "decrypted.bin" 0 FILESIZE
What am I doing wrong?
Please help me. Thanks.