ExFPE.Codec.Builtin (ex_fpe v0.1.0)

Copy Markdown View Source

Handles alphabets made up of digits 0 to 9 and letters a to z, in that order, with all letters of equal casing, encompassing radixes from 2 and up to 36.

In other words: whatever String.to_integer/2 can handle (or String.to_integer/2 + String.downcase/1), this module will be a wrapper of.

If you specify a radix, the output will be upper case. If you'd like lower case outputs, you'll need to specify the corresponding alphabet.

Inputs are case insensitive, unlike ExFPE.Codec.Custom.

Summary

Types

radix()

@type radix() :: 2..36

t()

@opaque t()