crypto_hmac_sha1()

 
Calculates an HMAC SHA-1 (Hash-based Message Authentication Code) of value
Syntax
crypto_hmac_sha1( value, key, output_format, output)
returns: 1 on success, 0 on failure (including OpenSSL not being available)
  • value = value to hash by reference
  • key = key to use to calculate the hmac
  • output_format = 'hex' or 'binary'
  • output = hmac_sha1 hash value.
User Annotations: crypto_hmac_sha1