crypt.hmac
Returns the HMAC of a string under a secret key, base64 encoded.
Signature
crypt.hmac(key: string, data: string, algorithm: string): stringParameters
keystringThe secret key, as plain text.
datastringThe text to authenticate.
algorithmstringThe hash the HMAC is built on, for example "sha256".
Returns
string
Note
Example
print(crypt.hmac("secret_key", "MYRIAD", "sha256")) --> FaDPiTSLlbxRP5rKvomt0dzwl7zhszc46/QFPsZRGWY=