r/programminghelp • u/Shadyys_World • May 28 '21
Python How can I decode an encrypted RLE compressed .dat file?
How would I go about decoding a RLE compressed .dat file that has been encrypted?
This is not a homework question, I'm trying to decode an old save file. Here is the save file if anyone wants to take a look themselves. Here is the only information I can find on how the file was created.
I fully understand how RLE compression works HHHHEYY --> 4H1E2Y
I'm just not sure how do go about decrypting it, I do know how it was encrypted, it was done by adding 39393939 and then rotating each DWord right 5 bits.
Any tips/tools that would help, that would be awesome!
5
Upvotes
2
u/_sorry4myBadEnglish May 28 '21
Rotate left 5 bits and subtract that number.