Table of contents
Namespace: Com\Tecnick\Pdf\Encrypt\Type
class RCFourFive
Source: src/Type/RCFourFive.php:35
RC4-40 is the standard encryption algorithm used in PDF format The key length is 5 bytes (40 bits)
Methods
encrypt()
Encrypt the data
public encrypt(string $data, string $key): string
Parameters:
$data(string): Data string to encrypt$key(string): Encryption key
Returns: string: encrypted text
Throws:
Source: src/Type/RCFourFive.php:47