classes-Com-Tecnick-Pdf-Encrypt-Data

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.

Data extends Output

Com\Tecnick\Pdf\Encrypt\Data

Ecrypt common data

Tags
since
2008-01-02
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2015 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

$encmap  : array<string|int, mixed>
Define a list of available encrypt encoders.
$encpad  : string
Encryption padding string.
$encrypt_settings  : array<string|int, mixed>
Encryption settings
$permbits  : array<string|int, mixed>
Map permission modes and bits
getPdfEncryptionObj()  : mixed
Get the PDF encryption block
getAdditionalEncDic()  : string
get additional encryption dictionary entries for the standard security handler
getBooleanString()  : string
Return a string representation of a boolean value
getCryptFilter()  : string
Get Crypt Filter section
setMissingValues()  : mixed
Set missing values

Properties

$encmap

Define a list of available encrypt encoders.

protected static array<string|int, mixed> $encmap = array( 0 => 'RCFourFive', // RC4-40 1 => 'RCFourSixteen', // RC4-128 2 => 'AESSixteen', // AES-128 3 => 'AESThirtytwo', // AES-256 'RC4' => 'RCFour', // RC4-40 'RC4-40' => 'RCFourFive', // RC4-40 'RC4-128' => 'RCFourSixteen', // RC4-128 'AES' => 'AES', // AES-256 'AES-128' => 'AESSixteen', // AES-128 'AES-256' => 'AESThirtytwo', // AES-256 'AESnopad' => 'AESnopad', // AES - no padding 'MD5-16' => 'MDFiveSixteen', // MD5-16 'seed' => 'Seed', )

$encpad

Encryption padding string.

protected static string $encpad = "(�N^Nu�AdNV��..��h>�/��dSiz"

$encrypt_settings

Encryption settings

protected static array<string|int, mixed> $encrypt_settings = array(0 => array( // RC4 40 bit 'V' => 1, 'Length' => 40, 'CF' => array('CFM' => 'V2', 'AuthEvent' => 'DocOpen'), ), 1 => array( // RC4 128 bit 'V' => 2, 'Length' => 128, 'CF' => array('CFM' => 'V2', 'AuthEvent' => 'DocOpen'), 'SubFilter' => 'adbe.pkcs7.s4', 'Recipients' => array(), ), 2 => array( // AES 128 bit 'V' => 4, 'Length' => 128, 'CF' => array('CFM' => 'AESV2', 'Length' => 128, 'AuthEvent' => 'DocOpen'), 'SubFilter' => 'adbe.pkcs7.s5', 'Recipients' => array(), ), 3 => array( // AES 256 bit 'V' => 5, 'Length' => 256, 'CF' => array('CFM' => 'AESV3', 'Length' => 256, 'AuthEvent' => 'DocOpen'), 'SubFilter' => 'adbe.pkcs7.s5', 'Recipients' => array(), ))

$permbits

Map permission modes and bits

protected static array<string|int, mixed> $permbits = array( 'owner' => 2, // bit 2 -- inverted logic: cleared by default // When set permits change of encryption and enables all other permissions. 'print' => 4, // bit 3 // Print the document. 'modify' => 8, // bit 4 // Modify the contents of the document by operations other than those controlled // by 'fill-forms', 'extract' and 'assemble'. 'copy' => 16, // bit 5 // Copy or otherwise extract text and graphics from the document. 'annot-forms' => 32, // bit 6 // Add or modify text annotations, fill in interactive form fields, and, // if 'modify' is also set, create or modify interactive form fields // (including signature fields). 'fill-forms' => 256, // bit 9 // Fill in existing interactive form fields (including signature fields), // even if 'annot-forms' is not specified. 'extract' => 512, // bit 10 // Extract text and graphics (in support of accessibility to users with // disabilities or for other purposes). 'assemble' => 1024, // bit 11 // Assemble the document (insert, rotate, or delete pages and create bookmarks // or thumbnail images), even if 'modify' is not set. 'print-high' => 2048, )

Methods

getPdfEncryptionObj()

Get the PDF encryption block

public getPdfEncryptionObj(int &$pon) : mixed
Parameters
$pon : int

Current PDF object number

return string

Return values
mixed

getAdditionalEncDic()

get additional encryption dictionary entries for the standard security handler

protected getAdditionalEncDic() : string
Return values
string

getBooleanString()

Return a string representation of a boolean value

protected getBooleanString(bool $value) : string
Parameters
$value : bool

Value to convert

Return values
string

getCryptFilter()

Get Crypt Filter section

protected getCryptFilter() : string

A dictionary whose keys shall be crypt filter names and whose values shall be the corresponding crypt filter dictionaries.

Return values
string

setMissingValues()

Set missing values

protected setMissingValues() : mixed
Return values
mixed
 

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