Comeonin v2.4.0 Comeonin.Pbkdf2.Base64

Module that provides base64 encoding for pbkdf2.

Pbkdf2 uses an adapted base64 alphabet (using . instead of + and with no padding).

Summary

Functions

Decode using the adapted Pbkdf2 alphabet

Encode using the adapted Pbkdf2 alphabet

Functions

decode(data)

Decode using the adapted Pbkdf2 alphabet.

Examples

iex> Comeonin.Pbkdf2.Base64.decode("c3BhbWFuZGVnZ3M")
"spamandeggs"
encode(data)

Encode using the adapted Pbkdf2 alphabet.

Examples

iex> Comeonin.Pbkdf2.Base64.encode "spamandeggs"
"c3BhbWFuZGVnZ3M"