Function upwd_lib::calculate_length [−][src]
pub fn calculate_length(entropy: f64, pool_size: f64) -> f64
Expand description
Calculates the minimum password length required to obtain a given entropy.
Examples
assert_eq!(calculate_length(128_f64, 64_f64), 22_f64);