proquint-0.1.0.0: Proquints: Identifiers that are Readable, Spellable, and Pronounceable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Proquint

Description

Implementation of proquints according to https://arxiv.org/html/0901.4016

Synopsis

Documentation

word16ToProquint :: Word16 -> String Source #

Convert a 16-bit number to its proquint representation

>>> word16ToProquint 42659
"pipog"

proquintToWord16 :: String -> Maybe Word16 Source #

Convert a proquint representation back into a 16-bit number, if possible

>>> proquintToWord16 "pipog"
Just 42659
>>> proquintToWord16 ""
Nothing
>>> proquintToWord16 "bababab"
Nothing
>>> proquintToWord16 "cecec"
Nothing