Data::...h::Date(3pm)

✨ NAME ✨

ok so like, this page is Data::...h::Date(3pm) from the User Contributed Perl Documentation bestie β€” and the module is Data::Password::zxcvbn::Match::Date, a match class for digit sequences that look like dates πŸ’…

Like, you know how somebody thinks they're being SO sneaky putting their birthday in their password? Yeah. This class is the one that clocks it. πŸ•΅οΈβ™€οΈπŸŽ‚


🌈 VERSION 🌈

version 1.1.3 β€” periodt, that's the one. πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically: this class represents the guess that a certain substring of a password β€” one made of digits and maybe some separators β€” could be figured out just by scanning dates in the recent past. Like birthdays πŸŽ‚, or recent events πŸ—“οΈ.

It's giving "your anniversary is not a security strategy," fr fr. 😭


πŸŽ€ ATTRIBUTES πŸŽ€

πŸ’œ year

An integer, bestie. It's the year extracted from the token. That's it, that's the whole vibe. ✨

πŸ’œ separator

A string, possibly empty πŸ‘€ β€” it's the separator used between digits in the token. So like the / in 1/1/91 is doing main character work here. 🌸


πŸ‘‘ METHODS πŸ‘‘

🌟 estimate_guesses

The number of guesses equals the number of days between the extracted year and a reference year (currently 2017), all multiplied by the possible separators. πŸ’«

Math girlies stay winning, no cap.

🌟 make

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

This bad boy scans the $password for sequences of digits and separators that look like dates πŸ—“οΈβœ¨. Some examples, so you can see the vision:

  • 1/1/91
  • 1191
  • 1991-01-01
  • 910101

Not the 910101 catching me off guard πŸ’€ bestie that one is sneaky fr.

🌟 feedback_warning

🌟 feedback_suggestions

This class suggests not using dates. Full stop. It's not subtle about it and honestly? It shouldn't be. πŸ™ˆ

🌟 fields_for_json

The JSON serialisation for matches of this class will contain token i j guesses guesses_log10 year separator β€” that whole lineup, exactly like that. 🫢


πŸ’– AUTHOR πŸ’–

Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> β€” icon behavior, tysm for this module. πŸ‘‘


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. 🌈


ok and that's the whole page babes, we ate and left no crumbs πŸ“ β€” this was Data::...h::Date(3pm) from perl v5.40.1, dated 2025-10-17, tysm for reading, mwah πŸ’…πŸ’‹

πŸ“¦ where this page comes from