Data::...:Repeat(3pm)

πŸ’– NAME πŸ’–

Data::Password::zxcvbn::Match::Repeat β€” bestie, this is the match class for repetitions of other matches ✨


🌸 VERSION 🌸

version 1.1.3 πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: this class is literally the guess that some substring inside a password is just... the same thing over and over again πŸ™ˆ like a copy-paste moment of some other kind of match. That's the whole vibe. That's the whole job. πŸ’…


✨ ATTRIBUTES ✨

  • "repeat_count" β€” an integer, and it's telling you how many times the "base_token" gets repeated πŸ”
  • "base_token" β€” the match that is being repeated; this one's gonna 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,
) };

So what this does is it scans the $password for repeated substrings, and then it recursively analyses them exactly like the main "password_strength" function would do 🫢

password_strength($substring,\%opts);

And yeah, "base_guesses" and "base_matches"? They come straight from that recursive call, no cap ✨

🌟 "estimate_guesses"

The number of guesses is the "base_guesses" times the "repeat_count" β€” simple math, she's multiplying, she's iconic πŸ’…

🌟 "feedback_warning" and "feedback_suggestions"

Not me telling you this class literally suggests not to repeat substrings 😭 bestie please stop repeating stuff, it's giving predictable 🚫

🌟 "fields_for_json"

The JSON serialisation for matches of this class is gonna contain token i j guesses guesses_log10 repeat_count base_guesses base_token base_matches β€” that's the whole squad, all present and accounted for πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> β€” thank you for your service, king πŸ«‘πŸ’–


This software is copyright (c) 2022 by BroadBean UK, a CareerBuilder Company.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Periodt πŸ’…βœ¨


okay that's the whole page, you ate that, go forth and read your manuals bestie πŸ’–

this was Data::...:Repeat(3pm) β€” User Contributed Perl Documentation, from perl v5.40.1, dated 2025-10-17 πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from