digest.hash_sha1_from_base64
Available inall subroutines.
Decodes a Base64-encoded string and then calculates a SHA-1 cryptographic hash for the decoded one.
Example
declare local var.hash_sha1 STRING;set var.hash_sha1 = digest.hash_sha1_from_base64("SGVsbG8sIHdvcmxkIQo=");# var.hash_sha1 is now "09fac8dbfd27bd9b4d23a00eb648aa751789536d"
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)