Class HashFunction

    • Constructor Summary

      Constructors 
      Constructor Description
      HashFunction()  
    • Constructor Detail

      • HashFunction

        public HashFunction()
    • Method Detail

      • hash

        protected java.lang.String hash​(java.lang.String text,
                                        java.lang.String algorithm)
                                 throws java.security.NoSuchAlgorithmException
        Calculate hash value, represented as hexadecimal string.
        Parameters:
        text - text
        algorithm - name of the hash algorithm
        Returns:
        hexadecimal string (padded with leading zeros if needed)
        Throws:
        java.security.NoSuchAlgorithmException