Available:base64Encode()
v1.176.0
The base64Encode()
function is available
from version 1.176.0.
Performs Base64 encoding of a field as UTF-8
.
This encoding ensures that values containing special characters
(for example emojis or @
) are converted to a
set of known, non-special characters.
To reverse the encoding, use the
base64Decode()
function:
base64Encode(a, as=a) | base64Decode(field=a, as=a)
This sequence of operations produces an event where field
a retains its original value. For more
information about the reverse operation, see
base64Decode()
.
Note
The base64Encode()
function does not
accept a charset
parameter, and all
input strings are encoded as UTF-8
. This
behavior differs from base64Decode()
,
which allows charset specification.
base64Encode()
Examples
Click
next to an example below to get the full details.Perform Base64 Encoding of a Field
Perform Base64 encoding of a field using the base64Encode()
function