Comeonin v3.2.0 Comeonin.Bcrypt.Base64 View Source
Module that provides base64 encoding for bcrypt.
Bcrypt uses an adapted base64 alphabet (using . instead of +,
starting with ./ and with no padding).
Link to this section Summary
Link to this section Functions
Decode using the adapted Bcrypt alphabet.
Examples
iex> Comeonin.Bcrypt.Base64.decode 'a1/fZUDsXETlX1K'
'spamandeggs'
Encode using the adapted Bcrypt alphabet.
Examples
iex> Comeonin.Bcrypt.Base64.encode 'spamandeggs'
'a1/fZUDsXETlX1K'