\CryptoManana\Core\Interfaces\MessageEncryptionFileEncryptionInterface

Interface FileEncryptionInterface - Interface for file encryption/decryption.

Summary

Methods
Constants
encryptFile()
decryptFile()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

encryptFile()

encryptFile(string  $filename) : string

Encrypts the content of a given plain file.

Parameters

string $filename

The full path and name of the file for encryption.

Throws

\Exception

Validation errors.

Returns

string —

The encrypted file content.

decryptFile()

decryptFile(string  $filename) : string

Decrypts the content of a given encrypted file.

Parameters

string $filename

The full path and name of the file for encryption.

Throws

\Exception

Validation errors.

Returns

string —

The decrypted file content.