// HMAC-SHA256 Key byte[] hmacKey = new byte[64]; rng.GetBytes(hmacKey); txtHMACKey.Text = Convert.ToBase64String(hmacKey);
// The ONLY way to generate a secure key in .NET using System.Security.Cryptography; // HMAC-SHA256 Key byte[] hmacKey = new byte[64]; rng