I like this script. Just added it to a project I'm working on.
There is a major inaccuracy in its calculation, though, in that the length of a password is a major consideration. According to this, aaaaaa and aaaaaaaaaaaaaaaa are there same strength, when this is definitely not the case, especially when talking about brute force, which is likely what this is guarding against.
To fix this, I added a couple lines that, to me, approximate well the influence of the length.
The existing lines before and after are also included. New lines in bold:
Code:
if (isSymbol(value) == false) security_level+=1;
if (size-min_length>=2&&security_level<3) security_level++;
if (size-min_length>=5&&security_level<3) security_level++;
if (size-min_length>=8&&security_level<3) security_level++;
if (size<min_length) final_status = minimum;
if (size>=min_length) final_status = security_status[security_level];
Bookmarks