Method Nettle.Hash()->balloon()
- Method
balloon
string(7bit)
balloon(string(8bit)
password
,string(8bit)
salt
,int(1..)
s_cost
,int(1..)
rounds
)- Description
Password hashing function in crypt_hash()-style.
Implements the algorithm described in https://eprint.iacr.org/2016/027.pdf.
- Parameter
password
Password to hash.
- Parameter
salt
Salt for the password.
- Parameter
s_cost
Memory cost.
- Parameter
rounds
Number of rounds (also known as t_cost).
- Returns
Returns the balloon hash of the password.
- Note
The
password
memory will be cleared before released.- Note
Requires Nettle 3.9 or later.
- See also