strong_password icon indicating copy to clipboard operation
strong_password copied to clipboard

Exact phrase matches to the dictionary don't cause loss in entropy

Open tamoyal opened this issue 2 years ago • 0 comments

Is this expected?

irb(main):027:0> checker = StrongPassword::StrengthChecker.new(use_dictionary: true)
=> #<StrongPassword::StrengthChecker:0x000000012a834ed0 @min_entropy=18, @use_dictionary=true, @min_word_length=4, @extra_dictionary_words=[]>
irb(main):028:0> checker.calculate_entropy("bob.smith")
=> 9.5
irb(main):029:0> checker = StrongPassword::StrengthChecker.new(use_dictionary: true, extra_dictionary_words: ["bob", "smith"])
=> #<StrongPassword::StrengthChecker:0x000000012b39aa90 @min_entropy=18, @use_dictionary=true, @min_word_length=4, @extra_dictionary_words=["bob", "smith"]>
irb(main):030:0> checker.calculate_entropy("bob.smith")
=> 9.5

tamoyal avatar Feb 15 '23 07:02 tamoyal