Example #1
0
 public static bool VerifyHmacSha256(string message, byte[] signature, byte[] key)
 {
     return(SecretKeyAuth.VerifyHmacSha256(Encoding.UTF8.GetBytes(message), signature, key));
 }
Example #2
0
 public static byte[] SignHmacSha512(string message, byte[] key)
 {
     return(SecretKeyAuth.SignHmacSha512(Encoding.UTF8.GetBytes(message), key));
 }