Skip to content

A library which provides base32 decoding and encoding

License

Notifications You must be signed in to change notification settings

Axentro/crystal-base32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crystal-base32

Build Status

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:

dependencies:
  crystal-base32:
    github: SushiChain/crystal-base32

Usage

require "crystal-base32"

Simple Example

require "base32"

encoded = Base32.encode("chunky bacon!")  #==> "MNUHK3TLPEQGEYLDN5XCC==="
decoded = Base32.decode(encoded)          #==> "chunky bacon!"

puts %Q{"#{decoded}" is "#{encoded}" in base32}

Specs

> crystal spec

References

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 Kingsley Hendrickse - creator, maintainer

About

A library which provides base32 decoding and encoding

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published