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. |
create_ctx() -> Context
Context = term()
Create a context which hashes passwords in a separate thread.
gen_salt(LogRounds) -> Result
LogRounds = integer()Result = [byte()]
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, Ref, Pid, Password, Salt) -> Result
Ctx = term()Ref = reference()Pid = pid()Password = [byte()]Salt = [byte()]Result = ok
Hash the specified password and the salt using the OpenBSD Blowfish password hashing algorithm. Returns the hashed password.
Generated by EDoc