Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static byte[] xecryptsha(byte[] buffer1, byte[] buffer2, byte[] buffer3, int outLen)
- {
- byte[] buffer = new byte[outLen];
- SHA1CryptoServiceProvider hash = new SHA1CryptoServiceProvider();
- if (buffer1 != null) hash.TransformBlock(buffer1, 0, buffer1.Length, null, 0);
- if (buffer2 != null) hash.TransformBlock(buffer2, 0, buffer2.Length, null, 0);
- hash.TransformFinalBlock(buffer3, 0, buffer3.Length);
- Buffer.BlockCopy(hash.Hash, 0, buffer, 0x00, outLen);
- return buffer;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement