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

Exception on empty password #8

Open
yschaeff opened this issue Nov 27, 2023 · 0 comments
Open

Exception on empty password #8

yschaeff opened this issue Nov 27, 2023 · 0 comments

Comments

@yschaeff
Copy link

yschaeff commented Nov 27, 2023

return min(1.0, (self.repeated_patterns_length + self.sequences_length) / self.length)

If the password given is the empty string, this line crashes with a division by zero error. I believe this function should return 1 on empty password instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant