Pbkdf2
Pbkdf2 password hashing library for Elixir.
Pbkdf2 is a well-tested password-based key derivation function that can be configured to remain slow and resistant to brute-force attacks even as computational power increases.
Comparison with the Plug.Crypto version of Pbkdf2
If you want the Pbkdf2 output to be in binary (raw) or hex format, you might find Plug.Crypto.KeyGenerator more convenient.
Installation
-
Add pbkdf2_elixir to the
depssection of your mix.exs file:
def deps do
[
{:pbkdf2_elixir, "~> 1.4"}
]
end- Optional: during tests (and tests only), you may want to reduce the number of rounds so it does not slow down your test suite. If you have a config/test.exs, you should add:
config :pbkdf2_elixir, :rounds, 1Comeonin wiki
See the Comeonin wiki for more information on the following topics:
- algorithms
- requirements
- deployment
- including information about using Docker
- references
Contributing
There are many ways you can contribute to the development of this library, including:
- reporting issues
- improving documentation
- sharing your experiences with others
- making a financial contribution
Donations
First of all, I would like to emphasize that this software is offered free of charge. However, if you find it useful, and you would like to buy me a cup of coffee, you can do so at paypal.
Documentation
http://hexdocs.pm/pbkdf2_elixir
License
BSD.