Crypt

crypt.hmac

Generates and returns an HMAC (Hash based Message Authentication Code). Frequently used in message authentication (see example below).

Syntax

crypt.hmac(key: string, data: string, algorithm: string): string