2016-01-18 09:20:20 +00:00
|
|
|
# base64
|
|
|
|
|
|
|
|
> Encode and decode using Base64 representation.
|
|
|
|
|
|
|
|
- Encode a file:
|
|
|
|
|
|
|
|
`base64 -i {{plain_file}}`
|
|
|
|
|
|
|
|
- Decode a file:
|
|
|
|
|
2018-05-21 22:20:53 +01:00
|
|
|
`base64 -D -i {{base64_file}}`
|
2016-01-18 09:20:20 +00:00
|
|
|
|
2019-06-17 16:00:38 +01:00
|
|
|
- Encode from `stdin`:
|
2016-01-18 09:20:20 +00:00
|
|
|
|
2017-12-27 07:14:36 +00:00
|
|
|
`echo -n {{plain_text}} | base64`
|
2016-01-18 09:20:20 +00:00
|
|
|
|
2019-06-17 16:00:38 +01:00
|
|
|
- Decode from `stdin`:
|
2016-01-18 09:20:20 +00:00
|
|
|
|
2017-12-27 07:14:36 +00:00
|
|
|
`echo -n {{base64_text}} | base64 -D`
|