Proquint
An elixir package that converts ids to proquints, Identifiers that are Readable, Spellable, and Pronounceable. More info about proquints can be found at: https://arxiv.org/html/0901.4016
Usage
# encode
bin = << 63 :: size(8), 84 :: size(8), 220 :: size(8), 193 :: size(8) >>
assert Proquint.encode(bin) == "gutih-tugad"
# decode
bin = << 63 :: size(8), 84 :: size(8), 220 :: size(8), 193 :: size(8) >>
assert Proquint.decode("gutih-tugad") == bin
Installation
If available in Hex, the package can be installed as:
- Add
proquint
to your list of dependencies inmix.exs
:
```elixir
def deps do
[{:proquint, "~> 0.1.0"}]
end
```
- Ensure
proquint
is started before your application:
```elixir
def application do
[applications: [:proquint]]
end
```