digest.hmac_md5_base64

STRINGdigest.hmac_md5_base64STRINGkeySTRINGs

Available inall subroutines.

Returns an MD5-based message authentication code based on the supplied key and string s. The returned code is Base64-encoded.

Example

declare local var.hmac_md5_base64 STRING;
set var.hmac_md5_base64 = digest.hmac_md5_base64("key", "input");
# var.hmac_md5_base64 is now "cZ/HW66QBNnoQqSxW4KMBg=="

User contributed notes

BETA

Do you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)