digest.hmac_sha256
Available inall subroutines.
Returns a SHA-256-based message authentication code based on the supplied
key
and string s
.
Example
declare local var.hmac_sha256 STRING;set var.hmac_sha256 = digest.hmac_sha256("key", "input");# var.hmac_sha256 is now "0x9e089ec13af881a8ac227a736c3e7c490ea3b4afca0c5f83dff6393b683a72e3"
User contributed notes
BETADo 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)