digest.hash_sha256_from_base64
Available inall subroutines.
Decodes a Base64-encoded string and then calculates a SHA-256 cryptographic hash for the decoded one.
Example
declare local var.hash_sha256 STRING;set var.hash_sha256 = digest.hash_sha256_from_base64("SGVsbG8sIHdvcmxkIQo=");# var.hash_sha256 is now "d9014c4624844aa5bac314773d6b689ad467fa4e1d1a50a1b8a99d5a95f72ff5"
User contributed notes
BETADo you see an error in this page? Do 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 support@fastly.com)