pub fn assumed_entropy_per_letter(list: &[String]) -> f64 {
    let shortest_word_length = get_shortest_word_length(list) as f64;
    let assumed_entropy_per_word = calc_entropy_per_word(list.len());

    assumed_entropy_per_word / shortest_word_length
}
/// Assuming that users get a passphrase consisting solely of
/// the shortest word on the list, we want to check against
/// a brute-force attack in exactly that situation. To do so,
/// we calculate a value I'm calling "assumed entropy per letter".
///
/// If this value is above `log2(26)` or about `4.7` bits, there's a chance
/// that we'd _over_-estimate the entropy of passphrases created
/// using the word list.
Assuming that users get a passphrase consisting solely of
the shortest word on the list, we want to check against
a brute-force attack in exactly that situation. To do so,
we calculate a value I'm calling "assumed entropy per letter".

If this value is above `log2(26)` or about `4.7` bits, there's a chance
that we'd _over_-estimate the entropy of passphrases created
using the word list.
Assuming that users get a passphrase consisting solely of the shortest word on the list we want to check against a brute - force attack in exactly that situation . To do so we calculate a value I ' m calling " assumed entropy per letter " . If this value is above ` log2 ( 26 ) ` or about ` 4 . 7 ` bits there ' s a chance that we ' d _over_ - estimate the entropy of passphrases created using the word list .
pub fn assumed_entropy_per_letter(list: &[String]) -> f64 {
    let shortest_word_length = get_shortest_word_length(list) as f64;
    let assumed_entropy_per_word = calc_entropy_per_word(list.len());
    assumed_entropy_per_word / shortest_word_length
}
pub fn assumed_entropy_per_letter ( list : & [ String ] ) -> f64 { let shortest_word_length = get_shortest_word_length ( list ) as f64 ; let assumed_entropy_per_word = calc_entropy_per_word ( list . len ( ) ) ; assumed_entropy_per_word / shortest_word_length }
Assuming that users get a passphrase consisting solely of
the shortest word on the list, we want to check against
a brute-force attack in exactly that situation.
Assuming that users get a passphrase consisting solely of the shortest word on the list we want to check against a brute - force attack in exactly that situation .
list
&[String]
list
&[String]