Interface Hash

    • Method Detail

      • getAlgorithmName

        String getAlgorithmName()
        Returns the name of the algorithm used to hash the input source, for example, SHA-256, MD5, etc.

        The name is expected to be a MessageDigest algorithm name.

        Returns:
        the the name of the algorithm used to hash the input source, for example, SHA-256, MD5, etc.
        Since:
        1.1
      • getSalt

        ByteSource getSalt()
        Returns a salt used to compute the hash or null if no salt was used.
        Returns:
        a salt used to compute the hash or null if no salt was used.
        Since:
        1.2
      • getIterations

        int getIterations()
        Returns the number of hash iterations used to compute the hash.
        Returns:
        the number of hash iterations used to compute the hash.
        Since:
        1.2