| Package | Description |
|---|---|
| com.landawn.abacus.guava.hash |
| Modifier and Type | Method and Description |
|---|---|
static HashFunction |
Hashing.adler32()
|
static HashFunction |
Hashing.concatenating(HashFunction first,
HashFunction second) |
static HashFunction |
Hashing.concatenating(HashFunction first,
HashFunction second,
HashFunction third) |
static HashFunction |
Hashing.concatenating(Iterable<HashFunction> hashFunctions)
Returns a hash function which computes its hash code by concatenating the hash codes of the
underlying hash functions together.
|
static HashFunction |
Hashing.crc32()
|
static HashFunction |
Hashing.crc32c()
Returns a hash function implementing the CRC32C checksum algorithm (32 hash bits) as described
by RFC 3720, Section 12.1.
|
static HashFunction |
Hashing.farmHashFingerprint64()
Returns a hash function implementing FarmHash's Fingerprint64, an open-source algorithm.
|
static HashFunction |
Hashing.goodFastHash(int minimumBits)
Returns a general-purpose, temporary-use, non-cryptographic hash function.
|
static HashFunction |
Hashing.hmacMd5(byte[] key)
Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
MD5 (128 hash bits) hash function and a
SecretSpecKey created from the given byte array
and the MD5 algorithm. |
static HashFunction |
Hashing.hmacMd5(Key key)
Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
MD5 (128 hash bits) hash function and the given secret key.
|
static HashFunction |
Hashing.hmacSha1(byte[] key)
Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
SHA-1 (160 hash bits) hash function and a
SecretSpecKey created from the given byte
array and the SHA-1 algorithm. |
static HashFunction |
Hashing.hmacSha1(Key key)
Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
SHA-1 (160 hash bits) hash function and the given secret key.
|
static HashFunction |
Hashing.hmacSha256(byte[] key)
Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
SHA-256 (256 hash bits) hash function and a
SecretSpecKey created from the given byte
array and the SHA-256 algorithm. |
static HashFunction |
Hashing.hmacSha256(Key key)
Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
SHA-256 (256 hash bits) hash function and the given secret key.
|
static HashFunction |
Hashing.hmacSha512(byte[] key)
Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
SHA-512 (512 hash bits) hash function and a
SecretSpecKey created from the given byte
array and the SHA-512 algorithm. |
static HashFunction |
Hashing.hmacSha512(Key key)
Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
SHA-512 (512 hash bits) hash function and the given secret key.
|
static HashFunction |
Hashing.md5()
Deprecated.
If you must interoperate with a system that requires MD5, then use this method,
despite its deprecation. But if you can choose your hash function, avoid MD5, which is
neither fast nor secure. As of January 2017, we suggest:
|
static HashFunction |
Hashing.murmur3_128()
Returns a hash function implementing the
128-bit murmur3 algorithm,
x64 variant (little-endian variant), using a seed value of zero.
|
static HashFunction |
Hashing.murmur3_128(int seed)
Returns a hash function implementing the
128-bit murmur3 algorithm,
x64 variant (little-endian variant), using the given seed value.
|
static HashFunction |
Hashing.murmur3_32()
Returns a hash function implementing the
32-bit murmur3 algorithm,
x86 variant (little-endian variant), using a seed value of zero.
|
static HashFunction |
Hashing.murmur3_32(int seed)
Returns a hash function implementing the
32-bit murmur3 algorithm,
x86 variant (little-endian variant), using the given seed value.
|
static HashFunction |
Hashing.sha1()
Deprecated.
If you must interoperate with a system that requires SHA-1, then use this method,
despite its deprecation. But if you can choose your hash function, avoid SHA-1, which is
neither fast nor secure. As of January 2017, we suggest:
|
static HashFunction |
Hashing.sha256()
Returns a hash function implementing the SHA-256 algorithm (256 hash bits) by delegating to the
SHA-256
MessageDigest. |
static HashFunction |
Hashing.sha384()
Returns a hash function implementing the SHA-384 algorithm (384 hash bits) by delegating to the
SHA-384
MessageDigest. |
static HashFunction |
Hashing.sha512()
Returns a hash function implementing the SHA-512 algorithm (512 hash bits) by delegating to the
SHA-512
MessageDigest. |
static HashFunction |
Hashing.sipHash24()
Returns a hash function implementing the 64-bit
SipHash-2-4 algorithm using a seed value of
k = 00 01 02 .... |
static HashFunction |
Hashing.sipHash24(long k0,
long k1)
Returns a hash function implementing the 64-bit
SipHash-2-4 algorithm using the given seed.
|
| Modifier and Type | Method and Description |
|---|---|
static HashFunction |
Hashing.concatenating(HashFunction first,
HashFunction second) |
static HashFunction |
Hashing.concatenating(HashFunction first,
HashFunction second,
HashFunction third) |
| Modifier and Type | Method and Description |
|---|---|
static HashFunction |
Hashing.concatenating(Iterable<HashFunction> hashFunctions)
Returns a hash function which computes its hash code by concatenating the hash codes of the
underlying hash functions together.
|
Copyright © 2021. All rights reserved.