Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- Program link:
- https://mega.nz/#!49Bx0bSb!o2R2y7KwOR9HP0bEB6msNIviE1AClYlaJQfy0qeasWo
- How to add in a C# project:
- -Add this in:
- [DllImport("Scrambler.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
- public static extern IntPtr scramble(byte[] keyX, byte[] keyY);
- -Call the function and feed it the keys in little-endian format.
- -The returned IntPtr can be marshaled by using Marshal.Copy() to copy IntPtr to byte[].
- -Remember that the output key will be little-endian, so flip array if needed.
- -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