pbkdf2_elixir v0.10.0 Pbkdf2.Stats View Source

Module to provide statistics for the Pbkdf2 password hashing function.

Configuring Pbkdf2

The main configuration option for Pbkdf2 is the number of rounds that it uses. Increasing this value will increase the complexity, and time taken, of the Pbkdf2 function.

Link to this section Summary

Functions

Hash a password with Pbkdf2 and print out a report

Link to this section Functions

Hash a password with Pbkdf2 and print out a report.

This function hashes a password, and salt, with Pbkdf2.Base.hash_password/3 and prints out statistics which can help you choose how to configure Pbkdf2.

Options

In addition to the options for Pbkdf2.Base.hash_password (rounds, output_fmt, digest and length), there are two options:

  • password - the password used
  • salt - the salt used