impl Params {
/// Recommended number of PBKDF2 rounds (used by default).
///
/// This number is adopted from the [OWASP cheat sheet]:
///
/// > Use PBKDF2 with a work factor of 600,000 or more
///
/// [OWASP cheat sheet]: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
pub const RECOMMENDED_ROUNDS: usize = 600_000;
}
impl Default for Params {
fn default() -> Params {
Params {
rounds: 10_000,
output_length: 32,
}
}
}
Is the Default impl correct here? Shouldn't it be something like this instead?
The following is a snippet from
simple.rs
:Is the Default impl correct here? Shouldn't it be something like this instead?
I'd be happy to send a PR if this is the case.
Side note: The security advisory link in
SECURITY.md
does not work.