Class PasswordEntropy

java.lang.Object
org.jpass.crypt.PasswordEntropy

public class PasswordEntropy extends Object
This class is used to calculate the Shannon's entropy of a password. Inspiration: Wikipedia Link Inspiration: Github Link
  • Constructor Details

    • PasswordEntropy

      public PasswordEntropy()
  • Method Details

    • countEntropy

      public static double countEntropy(String pass)
      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

      public static String statusEntropy(double entropy)
      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)