\CryptoManana\Core\Interfaces\MessageEncryptionCipherDataFormatsInterface

Interface CipherDataFormatsInterface - Interface for the encryption output formats.

Summary

Methods
Constants
setCipherFormat()
getCipherFormat()
ENCRYPTION_OUTPUT_RAW
ENCRYPTION_OUTPUT_HEX_UPPER
ENCRYPTION_OUTPUT_HEX_LOWER
ENCRYPTION_OUTPUT_BASE_64
ENCRYPTION_OUTPUT_BASE_64_URL
No protected methods found
N/A
No private methods found
N/A

Constants

ENCRYPTION_OUTPUT_RAW

ENCRYPTION_OUTPUT_RAW

The encryption output format for a raw byte string representation.

ENCRYPTION_OUTPUT_HEX_UPPER

ENCRYPTION_OUTPUT_HEX_UPPER

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

ENCRYPTION_OUTPUT_HEX_LOWER

ENCRYPTION_OUTPUT_HEX_LOWER

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

ENCRYPTION_OUTPUT_BASE_64

ENCRYPTION_OUTPUT_BASE_64

The encryption output format for a Base64 standard string representation.

ENCRYPTION_OUTPUT_BASE_64_URL

ENCRYPTION_OUTPUT_BASE_64_URL

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

Methods

setCipherFormat()

setCipherFormat(integer  $cipherFormat) 

Setter for the output cipher format code property.

Parameters

integer $cipherFormat

The output cipher format code.

Throws

\Exception

Validation errors.

getCipherFormat()

getCipherFormat() : integer

Getter for the output cipher format code property.

Returns

integer —

The output cipher format code.