\CryptoManana\Core\Interfaces\MessageDigestionDigestionFormatsInterface

Interface DigestionFormatsInterface - Interface for hashing output formats.

Summary

Methods
Constants
setDigestFormat()
getDigestFormat()
DIGEST_OUTPUT_RAW
DIGEST_OUTPUT_HEX_UPPER
DIGEST_OUTPUT_HEX_LOWER
DIGEST_OUTPUT_BASE_64
DIGEST_OUTPUT_BASE_64_URL
No protected methods found
N/A
No private methods found
N/A

Constants

DIGEST_OUTPUT_RAW

DIGEST_OUTPUT_RAW

The digest output format for a raw byte string representation.

DIGEST_OUTPUT_HEX_UPPER

DIGEST_OUTPUT_HEX_UPPER

The digest output format for a upper case HEX string representation.

DIGEST_OUTPUT_HEX_LOWER

DIGEST_OUTPUT_HEX_LOWER

The digest output format for a lower case HEX string representation.

DIGEST_OUTPUT_BASE_64

DIGEST_OUTPUT_BASE_64

The digest output format for a Base64 standard string representation.

DIGEST_OUTPUT_BASE_64_URL

DIGEST_OUTPUT_BASE_64_URL

The digest output format for a Base64 URL friendly string representation.

Methods

setDigestFormat()

setDigestFormat(integer  $digestFormat) 

Setter for the digest format code property.

Parameters

integer $digestFormat

The digest format code.

Throws

\Exception

Validation errors.

getDigestFormat()

getDigestFormat() : integer

Getter for the digest format code property.

Returns

integer —

The digest format code.