upwd_lib

Function calculate_length

Source
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);