Download the PHP package botdigit/completeopenpgp without Composer

On this page you can find all versions of the php package botdigit/completeopenpgp. 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 completeopenpgp

CompleteOpenPGP: Ultimate OpenPGP Cryptography Package for PHP & Laravel

Latest Stable Version Total Downloads License PHP Version

CompleteOpenPGP is the definitive, zero-dependency external OpenPGP library for PHP 8.1+ and Laravel. It integrates military-grade cryptographic primitives, supporting RSA, ElGamal, EdDSA (Ed25519), ECDSA, and ECDH key generation, signing, and encryption.

This package is optimized for both human developers and AI coding assistants (like Copilot, Cursor, Gemini, and GPT), featuring clean namespaces, strict type contracts, and detailed error handling.

For premium digital platforms, tools, and enterprise security consulting, visit botdigit.com.


🎯 Target Search Keywords (SEO)

PHP OpenPGP, Laravel OpenPGP, Ed25519 PHP, ECDH ECIES PHP, ElGamal Cryptography PHP, pure PHP PGP encryption, libsodium sealed box, secp256k1 PHP, NIST P-256, php-gnupg alternative, ASCII Armor CRC24, detached signatures PHP.


📚 Table of Contents


📊 Cryptosystem Comparison Matrix

Use the matrix below to choose the right algorithm for your application security requirements:

Algorithm Purposes Standard Curve / Key Sizes Underlying Driver Security Properties
RSA Encrypt & Sign 2048, 3072, 4096 bits phpseclib3 Traditional PKCS1 / OAEP
ElGamal Encrypt Only 2048 bits (MODP Group 14) phpseclib3 BigInteger Discrete Logarithm Hardness
EdDSA Sign & Encrypt Ed25519 (Converted to Curve25519 for Box) libsodium High performance, side-channel immune
ECDSA Sign Only nistp256, nistp384, secp256k1 phpseclib3 EC Modern elliptic curve signatures
ECDH Encrypt Only nistp256, nistp384, secp256k1 phpseclib3 DH + AES-256-GCM Hybrid ECIES key agreement

⚡ Requirements


🛠 Installation

Laravel Integration (Optional)

The service provider automatically registers the unified service container. You can publish the configuration file to customize defaults:


⚙️ Configuration

Your published config/completeopenpgp.php provides global defaults:


🚀 Quick Start API Examples

Here are copy-pasteable snippets for immediate implementation.

1. Key Generation

Generates cryptographically secure key pairs in PEM (PKCS8) or Base64 formats.

2. Public-Key Encryption & Decryption

3. Detached Signatures & Verification

Verify the integrity of a message using detached signature arrays.

4. ASCII Armoring & CRC24 Integrity

Generate and parse RFC-4880 standard-compliant PGP ASCII armor strings.


📖 API Reference Manual

Class KeyManagement\PGPKeyManager

generateKey(string $algorithm = 'RSA', int|string $keySizeOrCurve = 2048): array

Generates key pair.

encrypt(string $algorithm, string $message, string $publicKey): string

Encrypts plaintext payload.

decrypt(string $algorithm, string $ciphertext, string $privateKey): string

Decrypts ciphertext payload.

sign(string $algorithm, string $message, string $privateKey): string

Generates a detached cryptographic signature.

verify(string $algorithm, string $message, string $signature, string $publicKey): bool

Verifies signature validity.

enarmor(string $data, string $marker = 'MESSAGE', array $headers = []): string

Encodes data block into ASCII armored PGP format.

unarmor(string $text, string $marker = 'MESSAGE'): string

Decodes ASCII armored PGP text, validating headers and CRC24 checksum.


❓ Troubleshooting & FAQ

Q: Getting sodium_crypto_sign_ed25519_pk_to_curve25519() error?

A: Ensure the PHP sodium extension is enabled. Check using php -m | grep sodium.

Q: How does EdDSA support encryption if it is a signature scheme?

A: EdDSA (Ed25519) keys are mathematical representations of points on Curve25519. CompleteOpenPGP extracts these coordinates and converts them to Curve25519 birational equivalents to support Sealed Box encryption securely, mirroring modern GnuPG behaviors.

Q: Is the CRC24 checksum verification standard?

A: Yes, the package implements the OpenPGP standard CRC-24 generator polynomial (0x1864CFB) and initialization vector (0xB704CE) specified in RFC 4880.


🤝 Contributing

We welcome security audits and updates from the open-source community. If you encounter any bugs, security issues, or have optimization proposals, please open an Issue or a Pull Request.


📄 License

This library is open-source software licensed under the MIT License.


All versions of completeopenpgp with dependencies

PHP Build Version
Package Version
Requires phpseclib/phpseclib Version ^3.0
lib-libsodium Version ^1.0
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 botdigit/completeopenpgp contains the following files

Loading the files please wait ...