murex Shell Docs

Optional Command Reference: base64

Encode or decode a base64 string

Description

An optional builtin to encode or decode a base64 string.

Usage

<stdin> -> base64 -> <stdout>

<stdin> -> !base64 -> <stdout>

Examples

Encode base64 string

» out: "Hello, World!" -> base64
SGVsbG8sIFdvcmxkIQo=

Decode base64 string

» out: "SGVsbG8sIFdvcmxkIQo=" -> !base64
Hello, World!

Detail

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.

Synonyms

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon May 25 06:11:51 UTC 2020 against commit aa3f3b7aa3f3b7e471543754fdcaf910d4920cad9112b91. Downloadable murex binaries are also built weekly. Current version is 0.48.0120 BETA which has been verified against 29375 tests.