summaryrefslogtreecommitdiff
path: root/Base/usr/share
diff options
context:
space:
mode:
authorTom Lebreux <tomlebreux@hotmail.com>2020-06-12 22:55:35 -0400
committerAndreas Kling <kling@serenityos.org>2020-06-18 23:21:41 +0200
commit605a21b8920edcd252efb982d09a38d0d48772be (patch)
treeaae13275c78e8c85976ec2e7d67c5fa72ebb415e /Base/usr/share
parente14c8b2707139dc7e139d3fa941ca7b29b917e1d (diff)
downloadserenity-605a21b8920edcd252efb982d09a38d0d48772be.zip
Userland: Add base64 tool
Diffstat (limited to 'Base/usr/share')
-rw-r--r--Base/usr/share/man/man1/base64.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/base64.md b/Base/usr/share/man/man1/base64.md
new file mode 100644
index 0000000000..7d1bff291e
--- /dev/null
+++ b/Base/usr/share/man/man1/base64.md
@@ -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
+```