.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Data::Password::zxcvbn::Match::Repeat 3pm" .TH Data::Password::zxcvbn::Match::Repeat 3pm "2023-04-04" "perl v5.36.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Data::Password::zxcvbn::Match::Repeat \- match class for repetitions of other matches .SH "VERSION" .IX Header "VERSION" version 1.1.2 .SH "DESCRIPTION" .IX Header "DESCRIPTION" This class represents the guess that a certain substring of a password is a repetition of some other kind of match. .SH "ATTRIBUTES" .IX Header "ATTRIBUTES" .ie n .SS """repeat_count""" .el .SS "\f(CWrepeat_count\fP" .IX Subsection "repeat_count" integer, how many time the "\f(CW\*(C`base_token\*(C'\fR" is repeated .ie n .SS """base_token""" .el .SS "\f(CWbase_token\fP" .IX Subsection "base_token" the match that is repeated; this will be an instance of some other \&\f(CW\*(C`Data::Password::zxcvbn::Match::*\*(C'\fR class .ie n .SS """base_guesses""" .el .SS "\f(CWbase_guesses\fP" .IX Subsection "base_guesses" the minimal estimate of the attempts needed to guess the "\f(CW\*(C`base_token\*(C'\fR" .ie n .SS """base_matches""" .el .SS "\f(CWbase_matches\fP" .IX Subsection "base_matches" the list of patterns that "\f(CW\*(C`base_guesses\*(C'\fR" is based on .SH "METHODS" .IX Header "METHODS" .ie n .SS """make""" .el .SS "\f(CWmake\fP" .IX Subsection "make" .Vb 3 \& my @matches = @{ Data::Password::zxcvbn::Match::Repeat\->make( \& $password, \e%opts, \& ) }; .Ve .PP Scans the \f(CW$password\fR for repeated substrings, then recursively analyses them like the main \f(CW\*(C`password_strength\*(C'\fR function would do: .PP .Vb 1 \& password_strength($substring,\e%opts); .Ve .PP "\f(CW\*(C`base_guesses\*(C'\fR" and "\f(CW\*(C`base_matches\*(C'\fR" come from that recursive call. .ie n .SS """estimate_guesses""" .el .SS "\f(CWestimate_guesses\fP" .IX Subsection "estimate_guesses" The number of guesses is the "\f(CW\*(C`base_guesses\*(C'\fR" times the "\f(CW\*(C`repeat_count\*(C'\fR". .ie n .SS """feedback_warning""" .el .SS "\f(CWfeedback_warning\fP" .IX Subsection "feedback_warning" .ie n .SS """feedback_suggestions""" .el .SS "\f(CWfeedback_suggestions\fP" .IX Subsection "feedback_suggestions" This class suggests not to repeat substrings. .ie n .SS """fields_for_json""" .el .SS "\f(CWfields_for_json\fP" .IX Subsection "fields_for_json" The \s-1JSON\s0 serialisation for matches of this class will contain \f(CW\*(C`token i j guesses guesses_log10 repeat_count base_guesses base_token base_matches\*(C'\fR. .SH "AUTHOR" .IX Header "AUTHOR" Gianni Ceccarelli .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is copyright (c) 2022 by BroadBean \s-1UK,\s0 a CareerBuilder Company. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.