package sodium
Module Sodium.Auth
val derive_key :
Password_hash.difficulty ->
Password_hash.password ->
Password_hash.salt ->
secret_keyderive_key difficulty pw salt derives a key from a human generated password. Since the derivation depends on both difficulty and salt, it is necessary to store them alongside the authenticator. Using a constant salt is insecure because it increases the effectiveness of rainbow tables. Generate the salt with a function like Password_hash.random_salt instead.
equal_keys a b checks a and b for equality in constant time.
module type S = sig ... end