You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/site/docs/en/doc/base64.md

519 B

base64

::: tip Encode and decode using Base64 representation. :::

Encode to base64

[arthas@70070]$ echo 'abc' > /tmp/test.txt
[arthas@70070]$ cat /tmp/test.txt
abc

[arthas@70070]$ base64 /tmp/test.txt
YWJjCg==

Encode to base64 and save output to file

$ base64 --input /tmp/test.txt --output /tmp/result.txt

Decode from base64

$ base64 -d /tmp/result.txt
abc

Decode from base64 and save output to file

$ base64 -d /tmp/result.txt --output /tmp/bbb.txt