Interface StringDigester

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String digest​(String message)
      Create a digest of the input message.
      boolean matches​(String message, String digest)
      Check whether a message matches a digest, managing aspects like salt, hashing iterations, etc.
    • Method Detail

      • digest

        String digest​(String message)

        Create a digest of the input message.

        Parameters:
        message - the message to be digested
        Returns:
        the digest
      • matches

        boolean matches​(String message,
                        String digest)

        Check whether a message matches a digest, managing aspects like salt, hashing iterations, etc. (if applicable).

        Parameters:
        message - the message to check
        digest - the digest to check
        Returns:
        TRUE if the message matches the digest, FALSE if not.