bcrypt_elixir v0.1.0 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

Functions

Decode using the adapted Bcrypt alphabet

Encode using the adapted Bcrypt alphabet

Link to this section Functions

Decode using the adapted Bcrypt alphabet.

Examples

iex> Bcrypt.Base64.decode 'a1/fZUDsXETlX1K'
'spamandeggs'

Encode using the adapted Bcrypt alphabet.

Examples

iex> Bcrypt.Base64.encode 'spamandeggs'
'a1/fZUDsXETlX1K'