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