Class SecurityUtils

java.lang.Object
org.ctan.site.services.util.SecurityUtils

public class SecurityUtils extends Object
The class SecurityUtils contains utility methods in the area of security.
  • Method Details

    • generateHash

      public static String generateHash(String password)
      The method generateHash provides means to compute the hash value for an input password.
      Parameters:
      password - the password
      Returns:
      the generated hash
    • verify

      public static boolean verify(String passwd, String hash)
      The method verify provides means to check that the has fits to the password.
      Parameters:
      passwd - the password
      hash - the has value
      Returns:
      true iff the validation succeeds