Table of contents
Namespace: Com\Tecnick\Pdf\Encrypt\Type
File: RCFourFive.php line 35
RC4-40 is the standard encryption algorithm used in PDF format The key length is 5 bytes (40 bits)
Tags
- since: 2011-05-23
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf-encrypt
Methods
encrypt()
File: RCFourFive.php line 47
public encrypt(string $data, string $key) : string
Parameters
- $data : string: Data string to encrypt
- $key : string: Encryption key
Tags
- throws: Exception
Return values
string —
encrypted text