예제 #1
0
 public static byte[] encryptData(byte[] data, byte[] key)
 {
     char[] array  = BaseFunctions.HexEncoder(data).ToCharArray();
     byte[] array2 = new byte[array.Length];
     for (int i = 0; i < array.Length; i++)
     {
         array2[i] = (byte)array[i];
     }
     return(HOTPCipher.encrypt(array2, key));
 }
예제 #2
0
 public static byte[] encryptData(byte[] data, byte[] key)
 {
     char[] chArray = BaseFunctions.HexEncoder(data).ToCharArray();
     byte[] buffer  = new byte[chArray.Length];
     for (int i = 0; i < chArray.Length; i++)
     {
         buffer[i] = (byte)chArray[i];
     }
     return(HOTPCipher.encrypt(buffer, key));
 }