Guest User

Untitled

a guest
May 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. SNES Game Genie encryption works as such:
  2.  
  3.  
  4. SNES GG code format: XXYY-YYYY, where XX is the value, and YY-YYYY is the address.
  5.  
  6.  
  7. First, we must run the code through a transposition cipher, and convert it to normal hex:
  8.  
  9. Code: D F 4 7 0 9 1 5 6 B C 8 A 2 3 E
  10. Hex: 0 1 2 3 4 5 6 7 8 9 A B C D E F
  11.  
  12. 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:
  13.  
  14. Code: ijklqrst opabcduv wxefghmn
  15. Clear: abcdefgh ijklmnop qrstuvwx
  16.  
  17.  
  18.  
  19. Example:
  20.  
  21.  
  22.  
  23. SNES GG code: ABCD-EFFF
  24.  
  25.  
  26.  
  27. A = C
  28. B = 9
  29. C = A
  30. D = 0
  31. E = F
  32. F = 1
  33. F = 1
  34. F = 1
  35.  
  36. C9A0-F111
  37.  
  38. C9 = decrypted value; next we solve for the decrypted address:
  39.  
  40.  
  41. A0 = 10100000
  42. F1 = 11110001
  43. 11 = 00010001
  44.  
  45. 10100000 11110001 00010001
  46.  
  47. Code: ijklqrst opabcduv wxefghmn = 10100000 11110001 00010001
  48. Clear: abcdefgh ijklmnop qrstuvwx = 11000100 10100111 00000100 = C4 A7 04
  49.  
  50. Hence, the decrypted value is C9, and the decrypted address is C4A704. (C4A704:C9)
Add Comment
Please, Sign In to add comment