Advertisement
Reisyukaku

KeyScrambler for 3DS

Jan 2nd, 2016
3,653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Heres is a program i wrote in C# as well as a DLL I wrote in C. The C# program is a GUI wrapper for the DLL and the DLL just serves the function of the keyscrambler. You feed it keyX and keyY and it returns normal key.
  2.  
  3. Program link:
  4. https://mega.nz/#!49Bx0bSb!o2R2y7KwOR9HP0bEB6msNIviE1AClYlaJQfy0qeasWo
  5.  
  6. How to add in a C# project:
  7. -Add this in:
  8. [DllImport("Scrambler.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
  9. public static extern IntPtr scramble(byte[] keyX, byte[] keyY);
  10.  
  11. -Call the function and feed it the keys in little-endian format.
  12. -The returned IntPtr can be marshaled by using Marshal.Copy() to copy IntPtr to byte[].
  13. -Remember that the output key will be little-endian, so flip array if needed.
  14. -Add the DLL in the bin/Release or bin/Debug folder after compiling your program.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement