Data::Password::zxcvbn::Match::Repeat(3pm)

Data::Password::zxcvbn::Match::Repeat3pm

Match class for repetitions of other matches

Version

version 1.1.2

Overview

This class represents the guess that a certain substring of a password is a repetition of some other kind of match.

Attributes

"repeat_count"

integer, how many time the ""base_token"" is repeated

"base_token"

the match that is repeated; this will be an instance of some other "Data::Password::zxcvbn::Match::*" class

"base_guesses"

the minimal estimate of the attempts needed to guess the ""base_token""

"base_matches"

the list of patterns that ""base_guesses"" is based on

Methods

"make"

  my @matches = @{ Data::Password::zxcvbn::Match::Repeat->make(
    $password, \%opts,
  ) };

Scans the $password for repeated substrings, then recursively analyses them like the main "password_strength" function would do:

  password_strength($substring,\%opts);

""base_guesses"" and ""base_matches"" come from that recursive call.

"estimate_guesses"

The number of guesses is the ""base_guesses"" times the ""repeat_count"".

"feedback_warning"

"feedback_suggestions"

This class suggests not to repeat substrings.

"fields_for_json"

The JSON serialisation for matches of this class will contain "token i j guesses guesses_log10 repeat_count base_guesses base_token base_matches".

Releases

3 releases since Debian 11 (Bullseye); the text changed 1 time.

  1. 11
  2. 12–13

Author

Gianni Ceccarelli <[email protected]>

From libdata-password-zxcvbn-perl 1.1.2-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.