https://github.com/jechol/base32h
Base32H for Elixir
https://github.com/jechol/base32h
Last synced: about 1 year ago
JSON representation
Base32H for Elixir
- Host: GitHub
- URL: https://github.com/jechol/base32h
- Owner: jechol
- Created: 2020-09-08T03:15:53.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T11:01:17.000Z (about 2 years ago)
- Last Synced: 2025-06-03T08:34:07.314Z (about 1 year ago)
- Language: Elixir
- Size: 26.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README


# 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`:
```elixir
def deps do
[
{:base32h, "~> 0.3.1"}
]
end
```
## How to use?
```elixir
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>>
```