Calculating the entropy of a password based on the Russian language dictionary. Implementation?
What's the problem with writing such an algorithm? Get the line, go on
1) If password & gt; 8 characters - continue (put 1 stick of difficulty out of 4), no - discard
2) If passwords contain numbers - add a stick
3) There is at least one capital letter - + 1 more
4) If characters like! @ # $% ^ ... are + 1 more
Then we check the received number and, depending on its value, issue or not issue an error.
Everything goes through a banal search for a character in a stringAnonymous
Alternating groups of character sets.
Then, we multiply the primes in order in the number of alternations of these groups.Anonymous
To place the code, please use CodePen or similar tool. Thanks you!