Interface Hash

All Superinterfaces:
org.apache.shiro.lang.util.ByteSource
All Known Implementing Classes:
AbstractCryptHash, AbstractHash, Sha256Hash, Sha384Hash, Sha512Hash, SimpleHash

public interface Hash extends org.apache.shiro.lang.util.ByteSource
A Cryptographic Hash represents a one-way conversion algorithm that transforms an input source to an underlying byte array. Hex and Base64-encoding output of the hashed bytes are automatically supported by the inherited toHex() and toBase64() methods.

The bytes returned by the parent interface's getBytes() are the hashed value of the original input source, also known as the 'checksum' or 'digest'.

Since:
0.9
See Also: