Skip to content

An elixir package that converts ids to proquints, Identifiers that are Readable, Spellable, and Pronounceable

License

Notifications You must be signed in to change notification settings

minhajuddin/proquint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proquint

Travis Hex.pm Hex.pm

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:

  1. Add proquint to your list of dependencies in mix.exs:
def deps do
  [{:proquint, "~> 0.1.0"}]
end
  1. Ensure proquint is started before your application:
def application do
  [applications: [:proquint]]
end

About

An elixir package that converts ids to proquints, Identifiers that are Readable, Spellable, and Pronounceable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages