mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
Userland: Add base64 tool
This commit is contained in:
parent
e14c8b2707
commit
605a21b892
2 changed files with 111 additions and 0 deletions
31
Base/usr/share/man/man1/base64.md
Normal file
31
Base/usr/share/man/man1/base64.md
Normal file
|
@ -0,0 +1,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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue