Comeonin v2.4.0 Comeonin.Bcrypt.Base64

Module that provides base64 encoding for bcrypt.

Bcrypt uses an adapted base64 alphabet (using . instead of +, starting with ./ and with no padding).

Summary

Functions

Decode using the adapted Bcrypt alphabet

Encode using the adapted Bcrypt alphabet

Functions

decode(words)

Decode using the adapted Bcrypt alphabet.

Examples

iex> Comeonin.Bcrypt.Base64.decode 'a1/fZUDsXETlX1K'
'spamandeggs'
encode(words)

Encode using the adapted Bcrypt alphabet.

Examples

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