Copyright © 2011 Hunter Morris
Authors: Hunter Morris (hunter.morris@smarkets.com).
| create_ctx/0 | Create a context which hashes passwords in a separate thread. |
| gen_salt/1 | Generate a random text salt for use with hashpw/3. |
| hashpw/5 | Hash the specified password and the salt using the OpenBSD Blowfish password hashing algorithm. |
| init/0 | Load the bcrypt NIFs. |
create_ctx() -> term()
Create a context which hashes passwords in a separate thread.
gen_salt(LogRounds::integer()) -> string()
Generate a random text salt for use with hashpw/3. LogRounds defines the complexity of the hashing, increasing the cost as 2^log_rounds.
hashpw(Ctx::term(), Ref::reference(), Pid::pid(), Password::binary(), Salt::binary()) -> string()
Hash the specified password and the salt using the OpenBSD Blowfish password hashing algorithm. Returns the hashed password.
init() -> ok
Load the bcrypt NIFs
Generated by EDoc