Package org.jpass.crypt
Class PasswordEntropy
java.lang.Object
org.jpass.crypt.PasswordEntropy
This class is used to calculate the Shannon's entropy of a password.
Inspiration: Wikipedia Link
Inspiration: Github Link
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
countEntropy
(String pass) This method is used to calculate the entropy of a password.static String
statusEntropy
(double entropy) This method is used to return the word status of the entropy of a password.
-
Constructor Details
-
PasswordEntropy
public PasswordEntropy()
-
-
Method Details
-
countEntropy
This method is used to calculate the entropy of a password.- Parameters:
pass
- The password to calculate the entropy of.- Returns:
- The entropy of the password. (double)
-
statusEntropy
This method is used to return the word status of the entropy of a password. Source: Github Link- Parameters:
entropy
- The entropy of the password.- Returns:
- The status of the entropy of the password. (String)
-