You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Compatibility with other Bcrypt libraries
This version is based on the OpenBSD version of Bcrypt and supports
the $2b$ and $2a$ prefixes. For advice on how to use hashes with
the $2y$ prefix, see this issue.
Installation
Add :bcrypt_elixir to the deps section of your mix.exs file:
If you are using Erlang >20:
defdepsdo[{:bcrypt_elixir,"~> 3.0"}]end
If you are using Erlang 19 or below:
defdepsdo[{:bcrypt_elixir,"~> 0.12"}]end
Make 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,4
Comeonin wiki
See the Comeonin wiki for more
information on the following topics: