Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SNES Game Genie encryption works as such:
- SNES GG code format: XXYY-YYYY, where XX is the value, and YY-YYYY is the address.
- First, we must run the code through a transposition cipher, and convert it to normal hex:
- Code: D F 4 7 0 9 1 5 6 B C 8 A 2 3 E
- Hex: 0 1 2 3 4 5 6 7 8 9 A B C D E F
- After this is finished, the value (XX) is now in plain text. However, the address (YY-YYYY) is still encrypted, using another transposition cipher. Save the value for later, convert each hex digit of the address to binary, and run the 8-bit result through the following cipher:
- Code: ijklqrst opabcduv wxefghmn
- Clear: abcdefgh ijklmnop qrstuvwx
- Example:
- SNES GG code: ABCD-EFFF
- A = C
- B = 9
- C = A
- D = 0
- E = F
- F = 1
- F = 1
- F = 1
- C9A0-F111
- C9 = decrypted value; next we solve for the decrypted address:
- A0 = 10100000
- F1 = 11110001
- 11 = 00010001
- 10100000 11110001 00010001
- Code: ijklqrst opabcduv wxefghmn = 10100000 11110001 00010001
- Clear: abcdefgh ijklmnop qrstuvwx = 11000100 10100111 00000100 = C4 A7 04
- Hence, the decrypted value is C9, and the decrypted address is C4A704. (C4A704:C9)
Add Comment
Please, Sign In to add comment