base64
Encode or decode a base64 string
An optional builtin to encode or decode a base64 string.
<stdin> -> base64 -> <stdout>
<stdin> -> !base64 -> <stdout>
» out "Hello, World!" -> base64
SGVsbG8sIFdvcmxkIQo=
» out "SGVsbG8sIFdvcmxkIQo=" -> !base64
Hello, World!
base64
is very simplistic - particularly when compared
to its GNU coreutil (for example) counterpart. If you want to use the
base64
binary on Linux or similar platforms then you will
need to launch with the exec
builtin:
» out "Hello, World!" -> exec base64
SGVsbG8sIFdvcmxkIQo=
» out "SGVsbG8sIFdvcmxkIQo=" -> exec base64 -d
Hello, World!
However for simple tasks this builtin will out perform external tools because it doesn’t require the OS fork processes.
base64
!base64
esccli
): Escapes an array so output is valid shell
codeeschtml
): Encode or decodes text for HTMLescurl
): Encode or decodes text for the URLescape
): Escape or unescape input!bz2
: Decompress a bz2
filegz
: Compress or
decompress a gzip fileThis document was generated from builtins/optional/encoders/base64_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master
branch. Downloadable murex binaries are also built with the website.
Last built on Wed Jan 15 23:07:50 UTC 2025 against commit b4c4296b4c429617fd41527ea0efef33c52c15ef2b64972.
Current version is 6.4.2063 (develop) which has been verified against tests cases.