Skip to content

Empty warnings on score eq 1 #27

@verkligheten

Description

@verkligheten

I'm not really sure that's the right behavior when score of password equal to 1 and there are any warnings.

Zxcvbn.test('vika20021994')
=> #<Zxcvbn::Score:0x00007fc8ab3983e0
 @calc_time=0.002605999994557351,
 @crack_time=9176.328,
 @crack_time_display="4 hours",
 @entropy=27.451,
 @feedback=#<Zxcvbn::Feedback:0x00007fc8ab3a3920 @suggestions=["Add another word or two. Uncommon words are better."], @warning=nil>,
 @match_sequence=
  [#<Zxcvbn::Match pattern="bruteforce", i=0, j=0, token="v", entropy=5.169925001442312, cardinality=36>,
   #<Zxcvbn::Match matched_word="i", token="i", i=1, j=1, rank=2, pattern="dictionary", dictionary_name="english", base_entropy=1.0, uppercase_entropy=0.0, l33t_entropy=0, entropy=1.0>,
   #<Zxcvbn::Match pattern="bruteforce", i=2, j=2, token="k", entropy=5.169925001442312, cardinality=36>,
   #<Zxcvbn::Match matched_word="a", token="a", i=3, j=3, rank=5, pattern="dictionary", dictionary_name="english", base_entropy=2.321928094887362, uppercase_entropy=0.0, l33t_entropy=0, entropy=2.321928094887362>,
   #<Zxcvbn::Match i=4, j=7, token="2002", pattern="year", entropy=6.894817763307944>,
   #<Zxcvbn::Match i=8, j=11, token="1994", pattern="year", entropy=6.894817763307944>],
 @password="vika20021994",
 @score=1> 

Could you please clarify this behavior. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions