https://github.com/tv42/zbase32
Human-oriented encoding for binary data
https://github.com/tv42/zbase32
encoding zbase32
Last synced: 9 months ago
JSON representation
Human-oriented encoding for binary data
- Host: GitHub
- URL: https://github.com/tv42/zbase32
- Owner: tv42
- License: mit
- Created: 2015-09-11T19:01:44.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2022-02-22T19:10:50.000Z (over 4 years ago)
- Last Synced: 2024-12-10T00:42:13.851Z (over 1 year ago)
- Topics: encoding, zbase32
- Language: Go
- Size: 11.7 KB
- Stars: 42
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zbase32 -- Human-oriented encoding for binary data
Package `zbase32` implements the `z-base-32` encoding as specified in
http://philzimmermann.com/docs/human-oriented-base-32-encoding.txt
This package has been extensively tested to match the behavior of the
[zbase32 Python package](https://pypi.python.org/pypi/zbase32/).
Note that this is **not** RFC 4648/3548, for that see
[encoding/base32](http://golang.org/pkg/encoding/base32/). `z-base-32`
is a variant that aims to be more human-friendly, and in some
circumstances shorter.
For usage, see [godoc](http://godoc.org/pkg/github.com/tv42/zbase32/).
## Command line utilities
Included are simple command-line utilities for encoding/decoding data.
Example:
```console
$ echo hello, world | zbase32-encode
pb1sa5dxfoo8q551pt1yw
$ zbase32-decode pb1sa5dxfoo8q551pt1yw
hello, world
$ printf '\x01binary!!!1\x00' | zbase32-encode
yftg15ubqjh1nejbgryy
$ zbase32-decode yftg15ubqjh1nejbgryy | hexdump -C
00000000 01 62 69 6e 61 72 79 21 21 21 31 00 |.binary!!!1.|
0000000c
```