Advertisement
Krzysztof1985

.NET

May 11th, 2013
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1.     private string generateSuperHash()
  2.  
  3.         {
  4.             byte[] t1= { 0x1f, 0xcd, 0x5, 0x12, 0xf3, 0xaa };
  5.      // byte[] t1= { 31, 205, 5, 18, 243, 170};
  6.  
  7.             byte[] t2= { 0xf3, 0x3d, 0x1, 0xb1, 0x3d, 0xc5 };
  8.     //  byte[] t2= { 243, 61, 1, 177, 61, 197};
  9.             byte[] t3= new byte[6];
  10.  
  11.             for (int i= 0; i< t3.GetLength(0); i++)
  12.             {
  13.                 t3[i] = Convert.ToByte((Convert.ToUInt16(t1[i]) ^ Convert.ToUInt16(t2[i])));
  14.             }
  15.             return Convert.ToBase64String(t3);
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement