Data::...equence(3pm)

πŸ’– Data::Password::zxcvbn::Match::Sequence πŸ’–

okay bestie, so this is a page out of the User Contributed Perl Documentation section of the manual β€” it's Data::Password::zxcvbn::Match::Sequence, a whole match class for sequences of uniformly-spaced codepoints. yes, THAT kind of sequence. the "abcdef" / "123456" / "qwerty-adjacent" nonsense. sit down, we're gonna learn her πŸŽ€


✨ VERSION ✨

version 1.1.3 β€” she's grown, she's stable, she's serving πŸ’…


🌸 DESCRIPTION 🌸

This class represents the guess that a certain substring of a password β€” one made of uniformly-spaced codepoints β€” is easy to guess. like, embarrassingly easy. the class is basically the vibe check that says "girl, that's not a password, that's a keyboard walk" 😭


πŸ¦‹ ATTRIBUTES πŸ¦‹

ascending

Boolean, periodt. It's true if the sequence starts at a lower codepoint and ends at a higher one β€” so acegi is ascending πŸ’– β€” and it's not for 86420. nope, she's descending, and we respect her for it ✨


πŸ’œ METHODS πŸ’œ

estimate_guesses

The number of guesses is linear with the length of the sequence. and here's the tea: descending sequences get a higher estimate, while sequences that start at obvious points (like A or 1) get lower estimates. obvious starts = obvious guesses, iykyk πŸ™ˆ

feedback_warning

feedback_suggestions

This class suggests not using sequences. that's it. that's the whole advice. πŸ’€

make

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

Scans the $password for sequences of characters whose codepoints increase or decrease by a constant. yeah, she's out here finding your little ladders πŸͺœβœ¨

fields_for_json

The JSON serialisation for matches of this class will contain:

token i j guesses guesses_log10 ascending

keep that in mind if you're poking at the JSON, bestie 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> β€” the icon who wrote her 🌈


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. slay, open source πŸ’–


and that's the whole page, no cap. go forth, don't use 12345 as your password, she's literally watching πŸ‘€

that's a wrap on this one from perl v5.40.1, dated 2025-10-17 β€” love u, bye πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from