Esempio n. 1
0
        public static byte[] EncryptStr(string message, byte[] secret_key, byte[] auth_key)
        {
            var msg_byte = Encoding.UTF8.GetBytes(message);

            return(AESThenHMAC.SimpleEncrypt(msg_byte, secret_key, auth_key));
        }