Comeonin.BcryptBase64

Module that provides base64 encoding for bcrypt.

Summary

Decode using a base64 alphabet adapted for bcrypt

Encode using a base64 alphabet adapted for bcrypt

Functions

decode(words)

Decode using a base64 alphabet adapted for bcrypt.

Examples

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

Encode using a base64 alphabet adapted for bcrypt.

Examples

iex> Comeonin.BcryptBase64.encode 'spamandeggs'
'a1/fZUDsXETlX1K'