summaryrefslogtreecommitdiffstats
path: root/man/basenc.x
diff options
context:
space:
mode:
Diffstat (limited to 'man/basenc.x')
-rw-r--r--man/basenc.x38
1 files changed, 38 insertions, 0 deletions
diff --git a/man/basenc.x b/man/basenc.x
new file mode 100644
index 0000000..53704aa
--- /dev/null
+++ b/man/basenc.x
@@ -0,0 +1,38 @@
+'\" Copyright (C) 2018-2020 Free Software Foundation, Inc.
+'\"
+'\" This is free software. You may redistribute copies of it under the terms
+'\" of the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.
+'\" There is NO WARRANTY, to the extent permitted by law.
+[NAME]
+basenc \- Encode/decode data and print to standard output
+[DESCRIPTION]
+.\" Add any additional description here
+[ENCODINGS EXAMPLES]
+.PP
+.nf
+.RS
+$ printf '\\376\\117\\202' | basenc \-\-base64
+/k+C
+
+$ printf '\\376\\117\\202' | basenc \-\-base64url
+_k-C
+
+$ printf '\\376\\117\\202' | basenc \-\-base32
+7ZHYE===
+
+$ printf '\\376\\117\\202' | basenc \-\-base32hex
+VP7O4===
+
+$ printf '\\376\\117\\202' | basenc \-\-base16
+FE4F82
+
+$ printf '\\376\\117\\202' | basenc \-\-base2lsbf
+011111111111001001000001
+
+$ printf '\\376\\117\\202' | basenc \-\-base2msbf
+111111100100111110000010
+
+$ printf '\\376\\117\\202\\000' | basenc \-\-z85
+@.FaC
+.RE
+.fi