1Data::Password::zxcvbn:U:sMeartcCho:n:tRreipbeuatte(d3D)Paetral::DPoacsusmweonrtda:t:izoxncvbn::Match::Repeat(3)
2
3
4
6 Data::Password::zxcvbn::Match::Repeat - match class for repetitions of
7 other matches
8
10 version 1.1.2
11
13 This class represents the guess that a certain substring of a password
14 is a repetition of some other kind of match.
15
17 "repeat_count"
18 integer, how many time the ""base_token"" is repeated
19
20 "base_token"
21 the match that is repeated; this will be an instance of some other
22 "Data::Password::zxcvbn::Match::*" class
23
24 "base_guesses"
25 the minimal estimate of the attempts needed to guess the ""base_token""
26
27 "base_matches"
28 the list of patterns that ""base_guesses"" is based on
29
31 "make"
32 my @matches = @{ Data::Password::zxcvbn::Match::Repeat->make(
33 $password, \%opts,
34 ) };
35
36 Scans the $password for repeated substrings, then recursively analyses
37 them like the main "password_strength" function would do:
38
39 password_strength($substring,\%opts);
40
41 ""base_guesses"" and ""base_matches"" come from that recursive call.
42
43 "estimate_guesses"
44 The number of guesses is the ""base_guesses"" times the
45 ""repeat_count"".
46
47 "feedback_warning"
48 "feedback_suggestions"
49 This class suggests not to repeat substrings.
50
51 "fields_for_json"
52 The JSON serialisation for matches of this class will contain "token i
53 j guesses guesses_log10 repeat_count base_guesses base_token
54 base_matches".
55
57 Gianni Ceccarelli <gianni.ceccarelli@broadbean.com>
58
60 This software is copyright (c) 2022 by BroadBean UK, a CareerBuilder
61 Company.
62
63 This is free software; you can redistribute it and/or modify it under
64 the same terms as the Perl 5 programming language system itself.
65
66
67
68perl v5.38.0 2023-D0a9t-a1:3:Password::zxcvbn::Match::Repeat(3)