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.-
ClassDescriptionAbstract class for hashes following the posix crypt(3) format.Deprecated.A
HashServicethat allows configuration of its strategy via JavaBeans-compatible setter methods.Default implementation of theHashServiceinterface, supporting a customizable hash algorithm name.A CryptographicHashrepresents a one-way conversion algorithm that transforms an input source to an underlying byte array.Hashes used by the Shiro2CryptFormat class.AHashRequestis composed of data that will be used by aHashServiceto compute a hash (aka 'digest').A Builder class representing the Builder design pattern for constructingHashRequestinstances.AHashServicehashes 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.AHashimplementation that allows anyMessageDigestalgorithm name to be used.Creates a hash provider for salt (+pepper) and Hash-based KDFs, i.e.Simple implementation ofHashRequestthat can be used when interacting with aHashService.
SimpleHashimplementation directly.