pub struct Entropy { /* private fields */ }
Expand description
Contains the results of an entropy calculation
Implementations§
source§impl Entropy
impl Entropy
sourcepub fn guesses_log10(&self) -> f64
pub fn guesses_log10(&self) -> f64
The order of magnitude of guesses
.
sourcepub fn crack_times(&self) -> CrackTimes
pub fn crack_times(&self) -> CrackTimes
List of back-of-the-envelope crack time estimations based on a few scenarios.
sourcepub fn score(&self) -> u8
pub fn score(&self) -> u8
Overall strength score from 0-4. Any score less than 3 should be considered too weak.
sourcepub fn feedback(&self) -> &Option<Feedback>
pub fn feedback(&self) -> &Option<Feedback>
Feedback to help choose better passwords. Set when score
<= 2.
sourcepub fn calculation_time(&self) -> Duration
pub fn calculation_time(&self) -> Duration
How long it took to calculate the answer.