package sodium
Module Password_hash.Bytes
type storage = Bytes.twipe_to_password s copies a password s from storage and wipes s.
val hash_password : difficulty -> password -> storagehash_password d pw uses the key derivation algorithm to create a safely storable hash of the password of size password_hash_size. It randomly generates a salt, and stores the result of the derivation, along with the salt and parameters d, so that verify_password can later verify the hash.