Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1.         public static byte[] xecryptsha(byte[] buffer1, byte[] buffer2, byte[] buffer3, int outLen)
  2.         {
  3.             byte[] buffer = new byte[outLen];
  4.             SHA1CryptoServiceProvider hash = new SHA1CryptoServiceProvider();
  5.             if (buffer1 != null) hash.TransformBlock(buffer1, 0, buffer1.Length, null, 0);
  6.             if (buffer2 != null) hash.TransformBlock(buffer2, 0, buffer2.Length, null, 0);
  7.             hash.TransformFinalBlock(buffer3, 0, buffer3.Length);
  8.             Buffer.BlockCopy(hash.Hash, 0, buffer, 0x00, outLen);
  9.             return buffer;
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement