Available in all subroutines.
Returns a Base64-encoded representation of the string
s that is suitable
for use in URLs and is suitable for decoding by
For URL-safety, instances of
+ are replaced with
/ are replaced with
The alphabet used is:
The output string is padded to a multiple of four characters in length
for details on the structure of Base64 encoding. In particular,
note that it is possible for two input strings to encode to the same
declare local var.base64url_encoded STRING;set var.base64url_encoded = digest.base64url("Καλώς ορίσατε");# var.base64url_encoded is now "zprOsc67z47PgiDOv8-Bzq_Pg86xz4TOtQ=="
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.