HMACs (Keyed- Message Authentication Code) are often used as a way of proving data integrity and authenticity. They involve three integrals parts, the algorithm (in our case ), the secret and the data. They a used mainly because data can be checked between two parties without the sharing of the secret.
In go, there’s a convenient library to help us out with this called crypto/ and we show an example of how to do this below.

Source link


Please enter your comment!
Please enter your name here