\CryptoManana\Core\Interfaces\ContainersMultipleEncryptionInterface

Interface MultipleEncryptionInterface - Interface specification for multiple encryption.

Summary

Methods
Constants
multipleEncryptData()
multipleDecryptData()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

multipleEncryptData()

multipleEncryptData(string  $plainData, integer  $iterations = 2) : string

Encrypts the given plain data multiple times with different extracted keys.

Parameters

string $plainData

The plain input string.

integer $iterations

The number of internal iterations to perform.

Throws

\Exception

Validation errors.

Returns

string —

The cipher/encrypted data.

multipleDecryptData()

multipleDecryptData(string  $cipherData, integer  $iterations = 2) : string

Decrypts the given cipher data multiple times with different extracted keys.

Parameters

string $cipherData

The encrypted input string.

integer $iterations

The number of internal iterations to perform.

Throws

\Exception

Validation errors.

Returns

string —

The decrypted/plain data.