Strength.js icon indicating copy to clipboard operation
Strength.js copied to clipboard

Special character passwords have no strength at all?

Open RiZKiT opened this issue 10 years ago • 3 comments

Special character only passwords like "..--!!==" or "!§$%&/(" do not have any strength, regarding to the demo page. Is that a bug or a feature?

RiZKiT avatar Jul 09 '14 15:07 RiZKiT

This is most certainly a bug.

Special chars are listed as a parameter in the code but not included in the strength evaluation method.

qoalu avatar Sep 03 '14 10:09 qoalu

This is strange because in the code it looks like it is almost done, just add

if (thisval.match(specialchars)) { special = 1} else { special = 0; };

to the check_strength function and you'll get special characters included in strength checks

hajajnidal avatar Sep 22 '14 11:09 hajajnidal

@hajajnidal @qoalu @RiZKiT I added a fix for this and submitted a pull request to integrate it in the main repository, but in the mean time you can get it from my fork here: https://github.com/petchaw/Strength.js

petchaw avatar May 13 '15 15:05 petchaw