Allows computing Hash-based Message Authentication Code (HMAC).
It is a type of message authentication code (MAC) involving a hash function in combination with a key.
HMAC can be used to verify the integrity of a message as well as the authenticity.
See also RFC2104.
Returns the HMAC digest of data using the secret key.
Returns the HMAC digest of data using the secret key, formatted as a hexadecimal string.
Reference
Reference
Object
Object
Returns the HMAC digest of data using the secret key.
It may contain non-ASCII bytes, including NUL bytes.
algorithm specifies which OpenSSL::Algorithm
is to be used.
Returns the HMAC digest of data using the secret key, formatted as a hexadecimal string. This is necessary to safely transfer the digest where binary messages are not allowed.
See also #digest
.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/OpenSSL/HMAC.html