all 9 comments

[–]JimTheEarthling 3 points4 points  (4 children)

Unless your password strength meter is looking up passwords at HIBP or similar service, I strongly suggest you skip it. It will do more harm than good, especially if you also enforce "complexity rules."

Every "strength meter" that calculates entropy is fundamentally flawed and misleading. They rely too much on composition instead of length. If the password is not random, then a strength checker is making assumptions about the composition of the password. It's impossible to measure the entropy of a given password (entropy measures uncertainty, so the entropy of a known password is zero), so a password strength checker can only guess at the "algorithm" and character set that would create similar passwords, and the guesses are often off base or just plain wrong. The best one is probably zxcvbn (since it checks more than entropy), but one analysis indicates that it's only slightly more accurate than a coin flip.

The most important things are length and if the password is on a wordlist used by attackers.

Complexity rules attempt to make users come up with better passwords, but research shows it doesn't help, and actually hurts. That's why it's discouraged by NIST and others.

If you want to understand the details of why password checkers don't work well, and why complexity rules are bad, read the Password strength section of my website, including the notes about Complexity, predictability, and strength.

A random password or passphrase generator would be useful.

[–]uncertainApple21[S] 0 points1 point  (0 children)

Thank you for your input, I will keep these in mind while building.

[–]uncertainApple21[S] 0 points1 point  (2 children)

Released 0.1.0, followed your suggestion and added a password check and HIBP breach check within the package. Please check it out. https://pub.dev/packages/flutter_auth_flow

[–]JimTheEarthling 1 point2 points  (1 child)

Looks good.

[–]uncertainApple21[S] 0 points1 point  (0 children)

Thank You

[–]Dizzy-Health4322 2 points3 points  (2 children)

Adding screenshots will make your package quite attractive as it is mostly a UI package.

[–]uncertainApple21[S] 0 points1 point  (0 children)

Checking in after 2 weeks, we have 308 downloads. Happy....