https://github.com/corvus-ch/zbase32
z-base-32 - human-oriented base-32 encoding
https://github.com/corvus-ch/zbase32
base32 encoding golang
Last synced: 6 months ago
JSON representation
z-base-32 - human-oriented base-32 encoding
- Host: GitHub
- URL: https://github.com/corvus-ch/zbase32
- Owner: corvus-ch
- License: mit
- Created: 2017-10-23T07:57:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-23T17:18:12.000Z (almost 8 years ago)
- Last Synced: 2025-04-07T00:51:15.289Z (6 months ago)
- Topics: base32, encoding, golang
- Language: Go
- Homepage: https://gopkg.in/corvus-ch/zbase32.v1
- Size: 27.3 KB
- Stars: 5
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# z-base-32 - human-oriented base-32 encoding
[](https://travis-ci.org/corvus-ch/zbase32)
[](https://codecov.io/gh/corvus-ch/zbase32)
[](https://godoc.org/gopkg.in/corvus-ch/zbase32.v1)Golang pacakge which implements base32 encoding of binary data according to
http://philzimmermann.com/docs/human-oriented-base-32-encoding.txt.Note: this is *NOT* RFC4648 or RFC3548. If you need to be compatible to one of
those RFCs, use `encoding/base32`.This package:
* follows the example of `encoding/base32`;
* supports encoding and decoding of byte arrays;
* supports encoding and decoding using `io.Writer` and `io.Reader` interfaces.
* provides a shell command which behaves similar to the BSD base64 command.Based on the work from `github.com/tv42/zbase32` by [Tommi
Virtanen](https://github.com/tv42).## Command line utilities
Included is a simple command-line utility for encoding/decoding data.
Example:
```console
$ echo "Hello world" | zbase32
jb1sa5dxrb5s6huccofy
$ echo -n jb1sa5dxrb5s6huccofy | zbase32 --decode
Hello world
$ printf '\x01binary!!!1\x00' | zbase32
yftg15ubqjh1nejbgryy
$ echo -n yftg15ubqjh1nejbgryy | zbase32 --decode | hexdump -C
00000000 01 62 69 6e 61 72 79 21 21 21 31 00 |.binary!!!1.|
0000000c
```## Contributing and license
This library is licences under [MIT](LICENSE). For information about how to
contribute, see [CONTRIBUTING](CONTRIBUTING.md)