Sentinel
Import: base64
The base64 import enables a Sentinel policy to encode and decode Base64 values.
base64.encode(str)
Encodes the string str
into a Base64 encoded string, using the standard
encoding as defined in RFC 4648.
enc = base64.encode("foo") // "Zm9v"
base64.decode(str)
Decodes the Base64 encoded string str
, returning the string result,
using the standard encoding as defined in RFC 4648.
dec = base64.decode("Zm9v") // "foo"
base64.urlencode(str)
Encodes the string str
into a Base64 encoded string, using the alternate
encoding as defined in RFC 4648.
enc = base64.urlencode("foo") // "Zm9v"
base64.urldecode(str)
Decodes the Base64 encoded string str
, returning the string result, using the
alternate encoding as defined in RFC 4648.
dec = base64.urldecode("Zm9v") // "foo"