Skip to content

jechol/base32h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mix test Hex.pm

Base32H

You might already know what Base32H is, if not see https://base32h.github.io

Installation

The package can be installed by adding base32h to your list of dependencies in mix.exs:

def deps do
  [
    {:base32h, "~> 0.3.1"}
  ]
end

How to use?

Base32H.encode(17_854_910) == "H0WDY"
Base32H.encode_bin(<<227, 169, 72, 131, 141, 245, 213, 150, 217, 217>>) == "WELLH0WDYPARDNER"

Base32H.decode("88pzd") == 8_675_309
Base32H.decode_bin("2060W2G6009") == <<0, 0, 0, 8, 6, 7, 5, 3, 0, 9>>

About

Base32H for Elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published