Beispiel #1
0
 public static byte[] Decrypt(string cipherText, byte[] nonce, byte[] key)
 {
     return(StreamEncryption.Decrypt(Utilities.HexToBinary(cipherText), nonce, key));
 }
Beispiel #2
0
 public static byte[] EncryptChaCha20(string message, byte[] nonce, byte[] key)
 {
     return(StreamEncryption.EncryptChaCha20(Encoding.UTF8.GetBytes(message), nonce, key));
 }