Prerequisites
- A Generate/Verify MAC key
- The Member role to follow the UI steps, or the Cryptographic Operator role to follow the API steps (see Who can use a key)
Generate a MAC
- Infisical UI
- API
1
In your KMS project, go to Overview, select the options menu on the key’s row, then select Generate MAC.
2
Enter your data in Data to Authenticate. If your data is already Base64 encoded, turn on Data is Base64 encoded.
3
Select Generate MAC, then copy the MAC from Message Authentication Code.
Verify a MAC
- Infisical UI
- API
1
In your KMS project, go to Overview, select the options menu on the row of the key that generated the MAC, then select Verify MAC.
2
Enter the data in Data to Verify and the MAC in Message Authentication Code. If your data is already Base64 encoded, turn on Data is Base64 encoded.
3
Select Verify MAC. MAC Status shows Valid if the MAC matches the data, and Invalid if it doesn’t.