You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the entropy validator you divide the password entropy by the ideal entropy based on the string length. However in it's method ideal_entropy you take math.log(1/length), which for a length of 1 is equal to zero. This leads to division by zero.
The text was updated successfully, but these errors were encountered:
kouk
added a commit
to kouk/django-password-policies
that referenced
this issue
Oct 29, 2014
In the entropy validator you divide the password entropy by the ideal entropy based on the string length. However in it's method
ideal_entropy
you takemath.log(1/length)
, which for a length of 1 is equal to zero. This leads to division by zero.The text was updated successfully, but these errors were encountered: