genSalt : WorkFactor -> IO String Generate a new bcrypt salt.
The supplied cost factor should typically be between 4 and 31 inclusive.
Common production values today are 10–14 depending on the desired computational cost.
Totality: total
Visibility: exporthashPassword : String -> WorkFactor -> IO String Hash a password using a newly generated bcrypt salt.
The supplied cost factor determines the bcrypt work factor.
Totality: total
Visibility: exporthashPasswordWithSalt : String -> String -> IO String Hash a password using an existing bcrypt salt or bcrypt hash.
This is useful when reproducing an existing hash or when deterministic hashing is desired for testing.
Totality: total
Visibility: exportvalidatePassword : String -> String -> IO Bool Validate a password against a bcrypt hash.
Returns `True` when the supplied password matches the bcrypt hash and `False` otherwise.
Totality: total
Visibility: export