Constants

MD5

MD5

The MD5 type.

HMAC_MD5

HMAC_MD5

The HMAC-MD5 type.

HKDF_MD5

HKDF_MD5

The HKDF-MD5 type.

PBKDF2_MD5

PBKDF2_MD5

The PBKDF2-MD5 type.

SHA1

SHA1

The SHA-1 type.

HMAC_SHA1

HMAC_SHA1

The HMAC-SHA-1 type.

HKDF_SHA1

HKDF_SHA1

The HKDF-SHA-1 type.

PBKDF2_SHA1

PBKDF2_SHA1

The PBKDF2-SHA-1 type.

SHA2_224

SHA2_224

The SHA-2-224 type.

HMAC_SHA2_224

HMAC_SHA2_224

The HMAC-SHA-2-224 type.

HKDF_SHA2_224

HKDF_SHA2_224

The HKDF-SHA-2-224 type.

PBKDF2_SHA2_224

PBKDF2_SHA2_224

The PBKDF2-SHA-2-224 type.

SHA2_256

SHA2_256

The SHA-2-256 type.

HMAC_SHA2_256

HMAC_SHA2_256

The HMAC-SHA-2-256 type.

HKDF_SHA2_256

HKDF_SHA2_256

The HKDF-SHA-2-256 type.

PBKDF2_SHA2_256

PBKDF2_SHA2_256

The PBKDF2-SHA-2-256 type.

SHA2_384

SHA2_384

The SHA-2-384 type.

HMAC_SHA2_384

HMAC_SHA2_384

The HMAC-SHA-2-384 type.

HKDF_SHA2_384

HKDF_SHA2_384

The HKDF-SHA-2-384 type.

PBKDF2_SHA2_384

PBKDF2_SHA2_384

The PBKDF2-SHA-2-384 type.

SHA2_512

SHA2_512

The SHA-2-512 type.

HMAC_SHA2_512

HMAC_SHA2_512

The HMAC-SHA-2-512 type.

HKDF_SHA2_512

HKDF_SHA2_512

The HKDF-SHA-2-512 type.

PBKDF2_SHA2_512

PBKDF2_SHA2_512

The PBKDF2-SHA-2-512 type.

SHA3_224

SHA3_224

The SHA-3-224 type.

HMAC_SHA3_224

HMAC_SHA3_224

The HMAC-SHA-3-224 type.

HKDF_SHA3_224

HKDF_SHA3_224

The HKDF-SHA-3-224 type.

PBKDF2_SHA3_224

PBKDF2_SHA3_224

The PBKDF2-SHA-3-224 type.

SHA3_256

SHA3_256

The SHA-3-256 type.

HMAC_SHA3_256

HMAC_SHA3_256

The HMAC-SHA-3-256 type.

HKDF_SHA3_256

HKDF_SHA3_256

The HKDF-SHA-3-256 type.

PBKDF2_SHA3_256

PBKDF2_SHA3_256

The PBKDF2-SHA-3-256 type.

SHA3_384

SHA3_384

The SHA-3-384 type.

HMAC_SHA3_384

HMAC_SHA3_384

The HMAC-SHA-3-384 type.

HKDF_SHA3_384

HKDF_SHA3_384

The HKDF-SHA-3-384 type.

PBKDF2_SHA3_384

PBKDF2_SHA3_384

The PBKDF2-SHA-3-384 type.

SHA3_512

SHA3_512

The SHA-3-512 type.

HMAC_SHA3_512

HMAC_SHA3_512

The HMAC-SHA-3-512 type.

HKDF_SHA3_512

HKDF_SHA3_512

The HKDF-SHA-3-512 type.

PBKDF2_SHA3_512

PBKDF2_SHA3_512

The PBKDF2-SHA-3-512 type.

RIPEMD_128

RIPEMD_128

The RIPEMD-128 type.

HMAC_RIPEMD_128

HMAC_RIPEMD_128

The HMAC-RIPEMD-128 type.

HKDF_RIPEMD_128

HKDF_RIPEMD_128

The HKDF-RIPEMD-128 type.

PBKDF2_RIPEMD_128

PBKDF2_RIPEMD_128

The PBKDF2-RIPEMD-128 type.

RIPEMD_160

RIPEMD_160

The RIPEMD-160 type.

HMAC_RIPEMD_160

HMAC_RIPEMD_160

The HMAC-RIPEMD-160 type.

HKDF_RIPEMD_160

HKDF_RIPEMD_160

The HKDF-RIPEMD-160 type.

PBKDF2_RIPEMD_160

PBKDF2_RIPEMD_160

The PBKDF2-RIPEMD-160 type.

RIPEMD_256

RIPEMD_256

The RIPEMD-256 type.

HMAC_RIPEMD_256

HMAC_RIPEMD_256

The HMAC-RIPEMD-256 type.

HKDF_RIPEMD_256

HKDF_RIPEMD_256

The HKDF-RIPEMD-256 type.

PBKDF2_RIPEMD_256

PBKDF2_RIPEMD_256

The PBKDF2-RIPEMD-256 type.

RIPEMD_320

RIPEMD_320

The RIPEMD-320 type.

HMAC_RIPEMD_320

HMAC_RIPEMD_320

The HMAC-RIPEMD-320 type.

HKDF_RIPEMD_320

HKDF_RIPEMD_320

The HKDF-RIPEMD-320 type.

PBKDF2_RIPEMD_320

PBKDF2_RIPEMD_320

The PBKDF2-RIPEMD-320 type.

WHIRLPOOL

WHIRLPOOL

The Whirlpool type.

HMAC_WHIRLPOOL

HMAC_WHIRLPOOL

The HMAC-Whirlpool type.

HKDF_WHIRLPOOL

HKDF_WHIRLPOOL

The HKDF-Whirlpool type.

PBKDF2_WHIRLPOOL

PBKDF2_WHIRLPOOL

The PBKDF2-Whirlpool type.

BCRYPT

BCRYPT

The Bcrypt type.

ARGON2

ARGON2

The Argon2 type.

Methods

__construct()

__construct() 

Factory constructor.

create()

create(string|null  $type) : \CryptoManana\Core\Abstractions\MessageDigestion\AbstractHashAlgorithm|object|null

Create a hash algorithm object.

Parameters

string|null $type

The algorithm class name as type for creation.

Returns

\CryptoManana\Core\Abstractions\MessageDigestion\AbstractHashAlgorithm|object|null —

A hash algorithm object or null.

createInstance()

createInstance(string|null  $type) : \CryptoManana\Core\Abstractions\MessageDigestion\AbstractHashAlgorithm|object|null

Create a hash algorithm object

Parameters

string|null $type

The algorithm class name as type for creation.

Returns

\CryptoManana\Core\Abstractions\MessageDigestion\AbstractHashAlgorithm|object|null —

A hash algorithm object or null.

__debugInfo()

__debugInfo() : array

Get debug information for the class instance.

Returns

array —

Debug information.

getUnkeyedHashAlgorithms()

getUnkeyedHashAlgorithms() : array

Get the array of containing all supported unkeyed hash algorithms by the factory.

Returns

array —

An array of available unkeyed hash algorithms.

getKeyedHashAlgorithms()

getKeyedHashAlgorithms() : array

Get the array of containing all supported keyed hash algorithms by the factory.

Returns

array —

An array of available keyed hash algorithms.

getKeyDerivationAlgorithms()

getKeyDerivationAlgorithms() : array

Get the array of containing all supported key derivation algorithms by the factory.

Returns

array —

An array of available key derivation algorithms.

getPasswordDerivationAlgorithms()

getPasswordDerivationAlgorithms() : array

Get the array of containing all supported password-based derivation algorithms by the factory.

Returns

array —

An array of available password-based derivation algorithms.