2014-07-14 14:50:44 +01:00
|
|
|
# base64
|
|
|
|
|
2019-01-21 17:34:59 +00:00
|
|
|
> Encode or decode file or standard input to/from Base64, to standard output.
|
2014-07-14 14:50:44 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Encode a file:
|
2014-07-14 14:50:44 +01:00
|
|
|
|
|
|
|
`base64 {{filename}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Decode a file:
|
2014-07-14 14:50:44 +01:00
|
|
|
|
|
|
|
`base64 -d {{filename}}`
|
|
|
|
|
2019-06-17 16:00:38 +01:00
|
|
|
- Encode from `stdin`:
|
2014-07-14 14:50:44 +01:00
|
|
|
|
|
|
|
`{{somecommand}} | base64`
|
|
|
|
|
2019-06-17 16:00:38 +01:00
|
|
|
- Decode from `stdin`:
|
2014-07-14 14:50:44 +01:00
|
|
|
|
|
|
|
`{{somecommand}} | base64 -d`
|