Available in all subroutines.

Decodes a Base64-encoded string and then calculates a SHA-256 cryptographic hash for the decoded one.


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

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.