ExKsuid v0.2.1 ExKsuid.Base62 View Source

Module to encode/decode byte representation to Base62 representation

Link to this section Summary

Functions

Decode base62 string to bytes

Encode bytes into base62

Link to this section Types

Link to this section Functions

Specs

decode(t()) :: binary()

Decode base62 string to bytes

Examples

iex> decode("T8dgcjRGuYUueWht")
"Hello world!"

Specs

encode(binary()) :: t()

Encode bytes into base62

Examples

iex> encode("Hello world!")
"T8dgcjRGuYUueWht"