Bcrypt
Bcrypt password hashing library for Elixir.
Bcrypt 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.
Installation
-
Add bcrypt_elixir to the
depssection of your mix.exs file:
If you are using Erlang >20:
def deps do
[
{:bcrypt_elixir, "~> 2.0"}
]
endIf you are using Erlang 19 or below:
def deps do
[
{:bcrypt_elixir, "~> 0.12"}
]
endMake sure you have a C compiler installed. See the Comeonin wiki for details.
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 :bcrypt_elixir, :log_rounds, 4Comeonin 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
This software is offered free of charge, but if you find it useful and you would like to buy me a cup of coffee, you can do so through paypal.
Documentation
http://hexdocs.pm/bcrypt_elixir
License
BSD. For full details, please read the LICENSE file.