View Source Pbkdf2.Base64 (pbkdf2_elixir v2.3.0)

Module that provides base64 encoding for Pbkdf2.

Most developers will not need to use this module directly.

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 using the adapted Pbkdf2 alphabet.

Examples

iex> Pbkdf2.Base64.decode("c3BhbWFuZGVnZ3M")
"spamandeggs"

Encode using the adapted Pbkdf2 alphabet.

Examples

iex> Pbkdf2.Base64.encode("spamandeggs")
"c3BhbWFuZGVnZ3M"