strong_password icon indicating copy to clipboard operation
strong_password copied to clipboard

dictionary word length should be dynamic

Open agronv opened this issue 6 years ago • 0 comments

I noticed that the word length in a dictionary is restricted to 1000 characters. Is there a reason why the word length is restricted? Wouldn't it be better if we allow the user to decide the word length like so

calculate_entropy(use_dictionary: false, min_word_length: 4, extra_dictionary_words: [], extra_words_limit = EXTRA_WORDS_LIMIT)
      extra_dictionary_words.collect! { |w| w[0...extra_words_limit] }
...

agronv avatar Sep 30 '19 19:09 agronv