Skip to content

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

@tamoyal

Description

@tamoyal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions