base64decode takes a string containing a Base64 character sequence and
returns the original string.
Nomad uses the "standard" Base64 alphabet as defined in RFC 4648 section 4.
Strings in the Nomad language are sequences of unicode characters rather than bytes, so this function will also interpret the resulting bytes as UTF-8. If the bytes after Base64 decoding are not valid UTF-8, this function produces an error.
> base64decode("SGVsbG8gV29ybGQ=")Hello World
base64encodeperforms the opposite operation, encoding the UTF-8 bytes for a string as Base64.