Computes RFC 2104-compliant HMAC signature

C# |
public static string HMACSign( byte[] data, SecureString key, KeyedHashAlgorithm algorithm )

- data (array<Byte>[]()[][])
- The data to be signed
- key (SecureString)
- The secret signing key
- algorithm (KeyedHashAlgorithm)
- The algorithm to sign the data with

A string representing the HMAC signature

Exception | Condition |
---|---|
ArgumentNullException |