blob: 7d1bff291e82c12bded29965c24c806a7276eccf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
## Name
base64 - encode and decode to base64
## Synopsis
```**sh
$ base64 [-d|--decode] [file]
```
## Description
`base64` encodes or decodes to base64 the data in file `file` or from stdin if
file is not specified or file is `-`.
## Options
* `-d|--decode`: Decode data
## Examples
```sh
# base64 encode the text 'foo'
$ echo 'A' | base64
# base64 encode the content of foo.txt
$ base64 hi.txt
# base64 decode the text 'Zm9v'
$ echo 'Zm9v' | base64 -d
# base64 decode the content of foo.txt
$ base64 -d foo.txt
```
|