0

Here we can encode using hmac by

:sha256
|> :crypto.hmac("key444", "The quick brown fox jumps over the lazy dog")
|> Base.encode16

But how we can decode are validate the data again.

Aleksei Matiushkin
  • 119,336
  • 10
  • 100
  • 160
petspanda D
  • 171
  • 2
  • 14
  • Possible duplicate of [How can I decrypt a HMAC?](https://stackoverflow.com/questions/14218925/how-can-i-decrypt-a-hmac) – bla Apr 26 '18 at 13:28
  • To validate, just pass the new string to the same code and compare the result? – Dogbert Apr 26 '18 at 13:50

0 Answers0