Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entropy calculations wrong? #8

Open
mvevitsis opened this issue Jul 4, 2024 · 1 comment
Open

Entropy calculations wrong? #8

mvevitsis opened this issue Jul 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mvevitsis
Copy link

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 cyb3rko added the bug Something isn't working label Jul 4, 2024
@cyb3rko
Copy link
Owner

cyb3rko commented Jul 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants