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/en/_sources/base64.md.txt

37 lines
517 B
Plaintext

base64
===
> Encode and decode using Base64 representation.
### Encode to base64
```bash
[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
```bash
$ 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
```bash
$ base64 -d /tmp/result.txt --output /tmp/bbb.txt
```