Encode or decode a base64 string
An optional builtin to encode or decode a base64 string.
<stdin> -> base64 -> <stdout> <stdin> -> !base64 -> <stdout>
Encode base64 string
» out: "Hello, World!" -> base64 SGVsbG8sIFdvcmxkIQo=
Decode base64 string
» 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
» 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.
!bz2: Decompress a bz2 file
esccli: Escapes an array so output is valid shell code
gz: Compress or decompress a gzip file