Class PasswordUtil


  • public class PasswordUtil
    extends Object
    The PasswordUtil class is a utility class which provides password-related utility methods.
    Author:
    Marcus Portmann
    • Constructor Detail

      • PasswordUtil

        public PasswordUtil()
    • Method Detail

      • createPasswordHash

        public static final String createPasswordHash​(String password)
        Create the SHA-512 hash of the specified password.
        Parameters:
        password - the password to hash
        Returns:
        the SHA-512 hash of the password
      • generateRandomPassword

        public static String generateRandomPassword()
        Generate a random password.
        Returns:
        the random password