Package org.apache.shiro.crypto.hash


package org.apache.shiro.crypto.hash
Cryptographic Hashing components that greatly simplify one-way data hashing in an application.

The Hash interface and its implementations are significantly easier to understand and use compared to the JDK's MessageDigest mechanism.

  • Class
    Description
    Abstract class for hashes following the posix crypt(3) format.
    Deprecated.
    in Shiro 1.1 in favor of using the concrete SimpleHash implementation directly.
    A HashService that allows configuration of its strategy via JavaBeans-compatible setter methods.
    Default implementation of the HashService interface, supporting a customizable hash algorithm name.
    A Cryptographic Hash represents a one-way conversion algorithm that transforms an input source to an underlying byte array.
    Hashes used by the Shiro2CryptFormat class.
    A HashRequest is composed of data that will be used by a HashService to compute a hash (aka 'digest').
    A Builder class representing the Builder design pattern for constructing HashRequest instances.
    A HashService hashes input sources utilizing a particular hashing strategy.
    Service Provider Interface for password hashing algorithms.
     
    Generates an SHA-256 Hash from a given input source with an optional salt and hash iterations.
    Generates an SHA-384 Hash from a given input source with an optional salt and hash iterations.
    Generates an SHA-512 Hash from a given input source with an optional salt and hash iterations.
    A Hash implementation that allows any MessageDigest algorithm name to be used.
    Creates a hash provider for salt (+pepper) and Hash-based KDFs, i.e. where the algorithm name is a SHA algorithm or similar.
    Simple implementation of HashRequest that can be used when interacting with a HashService.