Table of contents
Namespace: Com\Tecnick\Pdf\Encrypt\Type
class RCFourSixteen
Source: src/Type/RCFourSixteen.php:35
RC4-128 is the standard encryption algorithm used in PDF format The key length is 16 bytes (128 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/RCFourSixteen.php:47