shannon entropy lib code
Created originally on Bitbucket by Anonymous
(Imported from Google Code)
Thomas.J.Waldmann wrote:
> What features would the enhancement add?
calculation of shannon entropy (bits/char [float] as well as whole-word total entropy [int])
> What parts of the project would this effect?
None.
It is just for sw developers so they can display the total entropy to users when they define a new password or use it in a password validator.
It's not a perfect or great solution (as there can be none, see docstring), but maybe sucks less and is more well-defined as primitive or made-up password quality metrics quick hacks usually invented out there for these purposes.
> Please provide any additional information below.
I have some code to contribute (if you are interested), see the codereview there: