cyb3rko / pazzword

The most intelligent password evaluator app
Apache License 2.0
70 stars 3 forks source link

Entropy calculations wrong? #8

Open mvevitsis opened 4 months ago

mvevitsis commented 4 months ago

If I'm not mistaken the correct formula is E = L × log2(R) A 16 character password using lower case, upper case, digits, and ASCII symbols should have a range of 94, so: E = 16 x log2(94) E = 16 x 6.55 E = 104.8

However this app reports such a password as having an entropy of 72.45

cyb3rko commented 4 months ago

I am using the library GoSimpleLLC/nbvcxz which is based on dropbox/zxcvbn, maybe you could take a look there.