https://github.com/axentro/crystal-base32
A library which provides base32 decoding and encoding
https://github.com/axentro/crystal-base32
base32 crystal-language
Last synced: 11 days ago
JSON representation
A library which provides base32 decoding and encoding
- Host: GitHub
- URL: https://github.com/axentro/crystal-base32
- Owner: Axentro
- License: mit
- Created: 2018-05-25T19:41:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-27T12:33:22.000Z (over 6 years ago)
- Last Synced: 2025-02-27T21:51:08.224Z (over 1 year ago)
- Topics: base32, crystal-language
- Language: Crystal
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crystal-base32
[](https://travis-ci.org/SushiChain/crystal-base32)
This shard contains base32, A Crystal library for encoding and decoding in base32 as per RFC 3548
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
crystal-base32:
github: SushiChain/crystal-base32
```
## Usage
```crystal
require "crystal-base32"
```
#### Simple Example
```crystal
require "base32"
encoded = Base32.encode("chunky bacon!") #==> "MNUHK3TLPEQGEYLDN5XCC==="
decoded = Base32.decode(encoded) #==> "chunky bacon!"
puts %Q{"#{decoded}" is "#{encoded}" in base32}
```
## Specs
```bash
> crystal spec
```
## References
* RFC 3548: http://www.faqs.org/rfcs/rfc3548.html
## Contributing
1. Fork it ( https://github.com/SushiChain/crystal-base32/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [kingsleyh](https://github.com/kingsleyh) Kingsley Hendrickse - creator, maintainer