public final class Hashing
extends java.lang.Object
HashFunction instances, and other static hashing-related
utilities.
A comparison of the various hash functions can be found here.
| Constructor and Description |
|---|
Hashing() |
| Modifier and Type | Method and Description |
|---|---|
static HashFunction |
md5()
Returns a hash function implementing the MD5 hash algorithm (128 hash bits) by delegating to
the MD5
MessageDigest. |
static HashFunction |
sha1()
Returns a hash function implementing the SHA-1 algorithm (160 hash bits) by delegating to the
SHA-1
MessageDigest. |
static HashFunction |
sha256()
Returns a hash function implementing the SHA-256 algorithm (256 hash bits) by delegating to
the SHA-256
MessageDigest. |
static HashFunction |
sha512()
Returns a hash function implementing the SHA-512 algorithm (512 hash bits) by delegating to the
SHA-512
MessageDigest. |
public static HashFunction md5()
MessageDigest.public static HashFunction sha1()
MessageDigest.public static HashFunction sha256()
MessageDigest.public static HashFunction sha512()
MessageDigest.