Zipzack Posted Sunday at 04:37 PM Posted Sunday at 04:37 PM Hi, lately I have been trying to understand how to decrypt a Pokémon straight from an ultra sun save. I have tried reading the code (I found Pokecrypto.cs which helped a lot) but I still don't understand it fully. I managed to reorder the 4 blocks but cant decrypt them. If anyone has some information about the decryption process I'd be very grateful. Thanks! 0382 - カイオーガ - 37E17273EC0F.ek7Fetching info...
Zipzack Posted Sunday at 05:46 PM Author Posted Sunday at 05:46 PM For the decryption, I need to get the encyption constant, decrypt 2 bytes and then run it through the LCG for the new seed and so on?
Kaphotics Posted Sunday at 05:55 PM Posted Sunday at 05:55 PM Refer to CryptArray for how encryption/decryption works. You advance the RNG seed, and the top 16 bits are used to xor the data.
Zipzack Posted Sunday at 07:13 PM Author Posted Sunday at 07:13 PM Ok ok i understand, and does the decryption start from 0x00 or 0x08?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now