crypto.hmac_sha512

crypto.hmac_sha512

crypto.hmac_sha512

Function

Generate an HMAC-SHA512 signature of the current text using the key.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
keyStringYesNoneHMAC key.

Return value

TypeDescription
StringHMAC-SHA512 lowercase hexadecimal signature.

Code Example

Notes

  • Both text and keys participate in the calculation as UTF-8 bytes.