Download the PHP package tecnickcom/tc-lib-pdf-encrypt without Composer

On this page you can find all versions of the php package tecnickcom/tc-lib-pdf-encrypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tc-lib-pdf-encrypt

tc-lib-pdf-encrypt

PDF encryption primitives for password protection and permission control.

Latest Stable Version Build Coverage License Downloads

Sponsor on GitHub

If this project is useful to you, please consider supporting development via GitHub Sponsors.


Overview

tc-lib-pdf-encrypt implements core encryption routines used by PDF generation and processing stacks, including password handling and permission flags.

The package encapsulates PDF security mechanics behind a focused API so consuming libraries can apply encryption policies without reimplementing cryptographic details. It is built for interoperability with standard PDF readers and for clear separation between document logic and security concerns.

Namespace \Com\Tecnick\Pdf\Encrypt
Author Nicola Asuni [email protected]
License GNU LGPL v3 - see LICENSE
API docs https://tcpdf.org/docs/srcdoc/tc-lib-pdf-encrypt
Packagist https://packagist.org/packages/tecnickcom/tc-lib-pdf-encrypt

Security Notice

RC4 modes (0 and 1) are cryptographically broken and deprecated. RC4-40 (mode 0) and RC4-128 (mode 1) are no longer considered secure. Both modes emit an E_USER_DEPRECATED notice at runtime. Use AES-128 (mode 2), AES-256 R5 (mode 3), or AES-256 R6 / PDF 2.0 (mode 4) for all new documents.

Mode Algorithm Security
0 RC4-40 Broken — do not use
1 RC4-128 Broken — do not use
2 AES-128 Acceptable for legacy compatibility
3 AES-256 R5 (PDF 1.7 ext.) Recommended
4 AES-256 R6 (PDF 2.0 / ISO 32000-2) Recommended (most current)

Features

Encryption

Decryption

Integration


Requirements


Installation


Quick Start

Encrypting a string

Decrypting a string

OpenSSL 3 Note

On OpenSSL 3 systems, legacy providers may be disabled by default. Enable legacy support when required by your runtime policy.


Development


Packaging

For system packages, bootstrap with:


Contributing

Contributions are welcome. Please review SECURITY.md.


Contact

Nicola Asuni - [email protected]


All versions of tc-lib-pdf-encrypt with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-date Version *
ext-hash Version *
ext-openssl Version *
ext-pcre Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tecnickcom/tc-lib-pdf-encrypt contains the following files

Loading the files please wait ...