Exemplo n.º 1
0
 /// <summary>
 /// Decrypt the cipher text received from client side using your assembly DLL
 /// </summary>
 /// <param name="cipherText"></param>
 /// <returns></returns>
 public byte[] DecryptMessage(byte[] cipherText, byte[] key)
 {
     ASMDLL.Decrypt(cipherText, key, 16);
     byte[] trueOut = StringToByteArray("00112233445566778899aabbccddeeff");
     MessageBox.Show("" + cipherText.SequenceEqual(trueOut));
     return(cipherText); //plainText.
 }
Exemplo n.º 2
0
 /// <summary>
 /// Decrypt the cipher text received from client side using your assembly DLL
 /// </summary>
 /// <param name="cipherText"></param>
 /// <returns></returns>
 public byte[] DecryptMessage(byte[] cipherText, byte[] key)
 {
     ASMDLL.Decrypt(cipherText, key, 16);
     return(cipherText); //plainText.
 }