oracular (3) Data::Password::zxcvbn::Match::Date.3pm.gz

Provided by: libdata-password-zxcvbn-perl_1.1.2-1_all bug

NAME

       Data::Password::zxcvbn::Match::Date - match class for digit sequences that look like dates

VERSION

       version 1.1.2

DESCRIPTION

       This class represents the guess that a certain substring of a password, consisting of digits and maybe
       separators, can be guessed by scanning dates in the recent past (like birthdays, or recent events).

ATTRIBUTES

   "year"
       Integer, the year extracted from the token.

   "separator"
       String, possibly empty: the separator used between digits in the token.

METHODS

   "estimate_guesses"
       The number of guesses is the number of days between the extracted "year" and a reference year (currently
       2017), multiplied by the possible separators.

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

       Scans the $password for sequences of digits and separators that look like dates. Some examples:

       •   1/1/91

       •   1191

       •   1991-01-01

       •   910101

   "feedback_warning"
   "feedback_suggestions"
       This class suggests not using dates.

   "fields_for_json"
       The JSON serialisation for matches of this class will contain "token i j guesses guesses_log10 year
       separator".

AUTHOR

       Gianni Ceccarelli <gianni.ceccarelli@broadbean.com>

       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.