DarkMatter.ShortIds.encode
You're seeing just the function
encode
, go back to DarkMatter.ShortIds module for more information.
Link to this function
encode(key, opts \\ [alphabet: "ABDEGJKMNPQRVWXYZ23456789", min_len: 3])
View SourceSpecs
Encodes a given cipher
to a unique short-id
## Examples
iex> encode(5)
"NY6"
iex> encode([5, 38, 12345])
"RZJRXKW936"