# Generate HMAC

To generate a MAC (message authentication code) using a cryptographic hash algorithm and a secret cryptographic key.

***

## Properties

### Data

The input data for which the hash will be calculated.

### Hash algorithm

The algorithm to use when computing the hash.

Options:

* HMACMD5 - [learn more](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.md5?view=net-7.0)
* HMACSHA1 - [learn more](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha1?view=net-7.0)
* HMACSHA256 - [learn more](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha256?view=net-7.0)
* HMACSHA384 - [learn more](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha384?view=net-7.0)
* HMACSHA512 - [learn more](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha512?view=net-7.0)

### Key

The secret key in List or Base64 string format.

***

## Definition

The HMAC in the form of a list of bytes and as a Base64 string.

***

## Links

* [Wikipedia: HMAC](https://en.wikipedia.org/wiki/HMAC)
