\CryptoManana\Core\Interfaces\MessageEncryptionDataEncryptionInterface

Interface DataEncryptionInterface - Interface for data encryption/decryption.

Summary

Methods
Constants
encryptData()
decryptData()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

encryptData()

encryptData(string  $plainData) : string

Encrypts the given plain data.

Parameters

string $plainData

The plain input string.

Throws

\Exception

Validation errors.

Returns

string —

The cipher/encrypted data.

decryptData()

decryptData(string  $cipherData) : string

Decrypts the given cipher data.

Parameters

string $cipherData

The encrypted input string.

Throws

\Exception

Validation errors.

Returns

string —

The decrypted/plain data.