DarkMatter.ShortIds.decode_singular_cipher

You're seeing just the function decode_singular_cipher, go back to DarkMatter.ShortIds module for more information.
Link to this function

decode_singular_cipher(cipher, opts \\ [alphabet: "ABDEGJKMNPQRVWXYZ23456789", min_len: 3])

View Source

Specs

decode_singular_cipher(cipher(), options()) :: {:ok, key()} | :error

Handles parsing the response

## Examples

iex> decode_singular_cipher("NY6")
{:ok, 5}

iex> decode_singular_cipher("")
:error

iex> decode_singular_cipher("RZJRXKW936")
:error