classes-Com-Tecnick-Pdf-Encrypt-Type-RCFour

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

RCFour

in package

Com\Tecnick\Pdf\Encrypt\Type\RCFour

RC4 is the standard encryption algorithm used in PDF format

Tags
since
2011-05-23
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2024 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-pdf-encrypt

Table of Contents

Constants

VALID_CIPHERS  = ['RC4', 'RC4-40']
List of valid openssl cyphers for RC4 encryption.

Methods

encrypt()  : string
Encrypt the data using the RC4 (Rivest Cipher 4, also known as ARC4 or ARCFOUR) algorithm.

Constants

VALID_CIPHERS

List of valid openssl cyphers for RC4 encryption.

public array<string|int, string> VALID_CIPHERS = ['RC4', 'RC4-40']

Methods

encrypt()

Encrypt the data using the RC4 (Rivest Cipher 4, also known as ARC4 or ARCFOUR) algorithm.

public encrypt(string $data, string $key[, string $mode = '' ]) : string

RC4 is one of the standard encryption algorithm used in PDF format. If possible, please use AES encryption instead as this is insecure.

Parameters
$data : string

Data string to encrypt

$key : string

Encryption key

$mode : string = ''

Cipher

Return values
string

encrypted text

On this page
 

© 2004-2024 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy