class-Com.Tecnick.Pdf.Encrypt.Encrypt

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.

Class Encrypt

Com\Tecnick\Pdf\Encrypt\Encrypt

PHP class for encrypting data for PDF documents

Com\Tecnick\Pdf\Encrypt\Output
Extended by Com\Tecnick\Pdf\Encrypt\Data
Extended by Com\Tecnick\Pdf\Encrypt\Compute
Extended by Com\Tecnick\Pdf\Encrypt\Encrypt
Namespace: Com\Tecnick\Pdf\Encrypt
Package: PdfEncrypt
Category: Library
Copyright: 2011-2015 Nicola Asuni - Tecnick.com LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni info@tecnick.com
Since: 2008-01-02
Link: https://github.com/tecnickcom/tc-lib-pdf-encrypt
Located at Encrypt.php
Methods summary
public
# __construct( boolean $enabled = false, string $file_id = '', integer $mode = 0, array $permissions = array( 'print', 'modify', 'copy', 'annot-forms', 'fill-forms', 'extract', 'assemble', 'print-high' ), string $user_pass = '', string $owner_pass = null, string $pubkeys = null )

Set PDF document protection (permission settings)

public array
# getEncryptionData( )

Get the encryption data array.

public string
# encrypt( string $type, string $data = '', string $key = null, integer $objnum = null )

Encrypt data using the specified encrypt type.

public integer
# getObjectKey( integer $objnum )

Compute encryption key depending on object number where the encrypted data is stored. This is used for all strings and streams without crypt filter specifier.

public string
# getEncPermissionsString( string $protection )

Convert encryption P value to a string of bytes, low-order byte first.

public integer
# getUserPermissionCode( array $permissions, $mode = 0 )

Return the permission code used on encryption (P value).

public String
# convertHexStringToString( string $bstr )

Convert hexadecimal string to string.

public string
# convertStringToHexString( string $str )

Convert string to hexadecimal string (byte string).

public string
# encodeNameObject( string $name )

Encode a name object.

public string
# escapeString( string $str )

Escape a string: add "\" before "\", "(" and ")".

public string
# encryptString( string $str, integer $objnum = null )

Encrypt a string.

public string
# escapeDataString( string $str, integer $objnum = null )

Format a data string for meta information.

public string
# getFormattedDate( integer $time = null, integer $objnum = null )

Returns a formatted date-time.

Methods inherited from Com\Tecnick\Pdf\Encrypt\Compute
generateEncryptionKey(), generatePublicEncryptionKey(), generateStandardEncryptionKey(), getOEValue(), getOValue(), getUEValue(), getUvalue()
Methods inherited from Com\Tecnick\Pdf\Encrypt\Output
getAdditionalEncDic(), getBooleanString(), getCryptFilter(), getPdfEncryptionObj(), setMissingValues()
Properties summary
protected array $encryptdata

Encryption data

# array('encrypted' => false, 'mode' => false)
Properties inherited from Com\Tecnick\Pdf\Encrypt\Data
$encmap, $encpad, $encrypt_settings, $permbits
 

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