Interface HashProcessor

    • Method Detail

      • hash

        String hash​(String plainText)
             throws Exception
        produce hash text from plain text
        Parameters:
        plainText - Plain text input
        Returns:
        the Hash value of the input plain text
        Throws:
        Exception
      • compare

        boolean compare​(char[] inputValue,
                        String storedHash)
        compare the plain char array against the hash value
        Parameters:
        inputValue - value of the plain text
        storedHash - the existing hash value
        Returns:
        true if the char array matches the hash value, otherwise false.