From 128b5a595503debaf6659436fe22ced0afb8c328 Mon Sep 17 00:00:00 2001 From: Saifu Muhammad Date: Fri, 24 Apr 2020 14:35:29 -0400 Subject: [PATCH] Updated copy for all feedback --- src/feedback.coffee | 52 ++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/feedback.coffee b/src/feedback.coffee index e83b25f8..bdd13519 100644 --- a/src/feedback.coffee +++ b/src/feedback.coffee @@ -4,8 +4,8 @@ feedback = default_feedback: warning: '' suggestions: [ - "Use a few words, avoid common phrases" - "No need for symbols, digits, or uppercase letters" + "Use multiple words, but avoid common phrases." + "You can create strong passwords without using symbols, numbers, or uppercase letters." ] get_feedback: (score, sequence) -> @@ -22,7 +22,7 @@ feedback = for match in sequence[1..] longest_match = match if match.token.length > longest_match.token.length feedback = @get_match_feedback(longest_match, sequence.length == 1) - extra_feedback = 'Add another word or two. Uncommon words are better.' + extra_feedback = 'Add more words that are less common.' if feedback? feedback.suggestions.unshift extra_feedback feedback.warning = '' unless feedback.warning? @@ -40,77 +40,77 @@ feedback = when 'spatial' layout = match.graph.toUpperCase() warning = if match.turns == 1 - 'Straight rows of keys are easy to guess' + 'Straight rows of keys are easy to guess.' else - 'Short keyboard patterns are easy to guess' + 'Short keyboard patterns are easy to guess.' warning: warning suggestions: [ - 'Use a longer keyboard pattern with more turns' + 'Use longer keyboard patterns and change typing direction multiple times.' ] when 'repeat' warning = if match.base_token.length == 1 - 'Repeats like "aaa" are easy to guess' + 'Repeated characters are easy to guess.' else - 'Repeats like "abcabcabc" are only slightly harder to guess than "abc"' + 'Repeated character patterns are easy to guess.' warning: warning suggestions: [ - 'Avoid repeated words and characters' + 'Avoid repeated words and characters.' ] when 'sequence' - warning: "Sequences like abc or 6543 are easy to guess" + warning: "Common character sequences are easy to guess." suggestions: [ - 'Avoid sequences' + 'Avoid common character sequences.' ] when 'regex' if match.regex_name == 'recent_year' - warning: "Recent years are easy to guess" + warning: "Recent years are easy to guess." suggestions: [ - 'Avoid recent years' - 'Avoid years that are associated with you' + 'Avoid recent years.' + 'Avoid years that are associated with you.' ] when 'date' - warning: "Dates are often easy to guess" + warning: "Dates are easy to guess." suggestions: [ - 'Avoid dates and years that are associated with you' + 'Avoid dates and years that are associated with you.' ] get_dictionary_match_feedback: (match, is_sole_match) -> warning = if match.dictionary_name == 'passwords' if is_sole_match and not match.l33t and not match.reversed if match.rank <= 10 - 'This is a top-10 common password' + 'This is a heavily used password.' else if match.rank <= 100 - 'This is a top-100 common password' + 'This is a frequently used password.' else - 'This is a very common password' + 'This is a commonly used password.' else if match.guesses_log10 <= 4 'This is similar to a commonly used password' else if match.dictionary_name == 'english_wikipedia' if is_sole_match - 'A word by itself is easy to guess' + 'Single words are easy to guess.' else if match.dictionary_name in ['surnames', 'male_names', 'female_names'] if is_sole_match - 'Names and surnames by themselves are easy to guess' + 'Single names or surnames are easy to guess.' else - 'Common names and surnames are easy to guess' + 'Common names and surnames are easy to guess.' else '' suggestions = [] word = match.token if word.match(scoring.START_UPPER) - suggestions.push "Capitalization doesn't help very much" + suggestions.push "Capitalize more than the first letter." else if word.match(scoring.ALL_UPPER) and word.toLowerCase() != word - suggestions.push "All-uppercase is almost as easy to guess as all-lowercase" + suggestions.push "Capitalize some, but not all letters." if match.reversed and match.token.length >= 4 - suggestions.push "Reversed words aren't much harder to guess" + suggestions.push "Avoid reversed spellings of common words." if match.l33t - suggestions.push "Predictable substitutions like '@' instead of 'a' don't help very much" + suggestions.push "Avoid predictable letter substitutions like '@' for 'a'." result = warning: warning