base32h v0.3.0 Base32H View Source
Link to this section Summary
Functions
Decodes the given string to an integer.
Decodes the given string to a bitstring.
Encodes the given integer.
Encodes the given binary.
Link to this section Functions
Specs
decode(String.t()) :: non_neg_integer()
Decodes the given string to an integer.
iex> Base32H.decode("88pzd")
8_675_309
Specs
Decodes the given string to a bitstring.
iex> Base32H.decode_bin("2060W2G6009")
<<0, 0, 0, 8, 6, 7, 5, 3, 0, 9>>
Specs
encode(non_neg_integer()) :: String.t()
Encodes the given integer.
iex> Base32H.encode(17_854_910)
"H0WDY"
Specs
Encodes the given binary.
iex> Base32H.encode_bin(<<227, 169, 72, 131, 141, 245, 213, 150, 217, 217>>)
"WELLH0WDYPARDNER"