crypto/crypto/hash/hash library
The hash
library provides a collection of cryptographic hashing and HMAC (Hash-based Message Authentication Code) functions
for secure data integrity verification and password protection.
Supported Algorithms:
- SHA-256: Secure Hash Algorithm 256-bit.
- SHA-512: Secure Hash Algorithm 512-bit.
- HMAC: Hash-based Message Authentication Code for secure authentication.
- Blake2b: A high-speed cryptographic hash function.
- SHA-1: Secure Hash Algorithm 1.
- MD5: Message Digest Algorithm 5.
- MD4: Message Digest Algorithm 4.
- SHA-384: Secure Hash Algorithm 384-bit.
- Keccack: SHA-3, SHA-3/224, SHA-3/256, SHA-3/384, SHA-3/512, SHAKE128-256
- Ridemp: RIPEMD-320, RIPEMD-256, RIPEMD-160, RIPEMD-128 -....
Classes
- BLAKE2b
- Implementation of the BLAKE2b hash function that implements the SerializableHash interface.
- Blake2bConfig
- Configuration class for the Blake2b hash function.
- Blake2bState
- Represents the state of a BLAKE2b hash function.
- Blake2bTree
- Configuration for the tree structure in Blake2b.
- Hash
-
The
Hash
abstract class defines the basic operations for hash algorithms. - HashBytesState
-
The
HashBytesState
class represents the state of a hashing process that operates on a byte array. - HashState
-
The
HashState
abstract class serves as a marker interface for hash state classes. - Keccack
- MD4
- Implementation of the MD4 (Message Digest 4) hash function.
- MD5
- A class that represents the MD5 hash algorithm, which is used to compute MD5 message digests. This class implements the SerializableHash interface.
- RIPEMD128
-
A class representing the RIPEMD-128 hash algorithm, extending the
_RIPEMD
base class. - RIPEMD160
-
A class representing the RIPEMD-160 hash algorithm, extending the
_RIPEMD
base class. - RIPEMD256
-
A class representing the RIPEMD-256 hash algorithm, extending the
_RIPEMD
base class. - RIPEMD320
-
A class representing the RIPEMD-320 hash algorithm, extending the
_RIPEMD
base class. -
SerializableHash<
T extends HashState> -
The
SerializableHash
abstract class extends theHash
class and adds functionality for saving, restoring, and cleaning hash states. - SH1State
-
The
SHA1State
class represents the state of the SHA-1 hash algorithm. - SHA1
- A class representing the SHA-1 (Secure Hash Algorithm 1) hash algorithm.
- SHA224
-
The
SHA224
class represents the SHA-224 hash algorithm, which is a variant of SHA-256. - SHA256
-
The
SHA256
class represents the SHA-256 hash algorithm. - SHA256State
- SHA3
-
The
SHA3
class is used to compute hash digests of data, and it allows customization of the digest length - SHA3224
-
The
SHA3224
class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 224 bits (28 bytes). - SHA3256
-
The
SHA3256
class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 256 bits (32 bytes). - SHA3384
-
The
SHA3384
class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 384 bits (48 bytes). - SHA3512
-
The
SHA3512
class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 512 bits (64 bytes). - SHA384
-
The
SHA384
class extends the SHA-512 hash algorithm to produce 384-bit digests. - SHA512
-
The
SHA512
class implements the SHA-512 hash algorithm. - SHA512256
-
The
SHA512256
class extends the SHA-512 hash function, specifically truncating its output to 256 bits (32 bytes). It inherits the implementation of the SHA-512 hash algorithm - SHA512State
-
The
SHA512State
class represents the state of a SHA-512 hash calculation. - SHAKE
-
The
SHAKE
class represents the SHAKE (Secure Hash Algorithm KEccak) extendable-output hash function. - SHAKE128
- SHAKE128 is an implementation of the SHAKE128 extendable-output function.
- SHAKE256
- SHAKE256 is an implementation of the SHAKE256 extendable-output function.
- XXHash64
Typedefs
-
HashFunc
= SerializableHash<
HashState> Function()