Skip to content

Commit

Permalink
* Minor password advisor change
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDead committed Jan 7, 2018
1 parent c87f912 commit e083bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Advanced PassGen/Classes/Password.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private static int CheckStrength(string password)
if (password.Length >= 10) score++;
if (Regex.Match(password, @"\d", RegexOptions.ECMAScript).Success) score++;
if (Regex.Match(password, @"[a-z]", RegexOptions.ECMAScript).Success && Regex.Match(password, @"[A-Z]", RegexOptions.ECMAScript).Success) score++;
if (Regex.Match(password, @"[:,µ,;,<,>,+,!,@,#,$,%,^,&,*,?,_,~,-,£,(,);\[,\],⟨,⟩]", RegexOptions.ECMAScript).Success) score++;
if (Regex.Match(password, @"[:,µ,;, ,<,>,+,!,@,#,$,%,^,&,*,?,_,~,-,£,(,);\[,\],⟨,⟩]", RegexOptions.ECMAScript).Success) score++;

return score;
}
Expand Down

0 comments on commit e083bb0

Please sign in to comment.