Table of contents
Namespace: Com\Tecnick\Pdf\Encrypt\Type
class AES
Source: src/Type/AES.php:36
AES
Methods
encrypt()
Encrypt the data using OpenSSL
public encrypt(string $data, string $key, string $mode = ''): string
Parameters:
$data(string): Data string to encrypt$key(string): Encryption key$mode(string): Cipher
Returns: string: encrypted text
Throws:
Source: src/Type/AES.php:49