Struct zxcvbn::Entropy [] [src]

pub struct Entropy {
    pub guesses: u64,
    pub guesses_log10: u16,
    pub crack_times_seconds: CrackTimes,
    pub crack_times_display: CrackTimesDisplay,
    pub score: u8,
    pub feedback: Option<Feedback>,
    pub sequence: Vec<Match>,
    pub calc_time: u64,
}

Contains the results of an entropy calculation

Fields

Estimated guesses needed to crack the password

Order of magnitude of guesses

List of back-of-the-envelope crack time estimations, in seconds, based on a few scenarios

Same keys as crack_time_seconds, with human-readable display values, e.g. "less than a second", "3 hours", "centuries", etc.

Overall strength score from 0-4. Any score less than 3 should be considered too weak.

Verbal feedback to help choose better passwords. Set when score <= 2.

The list of patterns the guess calculation was based on

How long it took to calculate the answer, in milliseconds

Trait Implementations

impl Debug for Entropy
[src]

[src]

Formats the value using the given formatter.

impl Clone for Entropy
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more