Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Merge pull request #10 from pear/topics/composer-for-pear

Updated/New Composer support for Crypt_GPG
latest commit 3f24905839
@till till authored
Failed to load latest commit information.
Crypt Use strict in_array check to prevent freading a string in the case th…
data More work on the pinentry. Clean up CLI, use Console_CommandLine. Cle…
scripts Update pinentry to use PEAR tree's PHP include path. Fixes issue when…
tests Check execute and write permissions on homedir. See PEAR Bug #19833).
tools Tool to dump keyring state to PHP. Used for unit test generation.
.gitignore Enhancement: composer setup
LICENSE Move readme to markdown format.
composer.json Enhancement: composer setup
package.php Prepare for release v1.4.0b4.
package.xml Prepare for release v1.4.0b4.


Crypt_GPG is a PHP package to interact with the GNU Privacy Guard (GnuPG). GnuPG is a free and open-source implementation of the OpenPGP protocol, providing key management, data encryption and data signing. Crypt_GPG provides an object-oriented API for performing OpenPGP actions using GnuPG.

Crypt_GPG has been migrated from PEAR SVN.


Quick Example


require_once 'Crypt/GPG.php';

$gpg = new Crypt_GPG();
$data = $gpg->encrypt('my secret data');


Further Documentation

Bugs and Issues

Please report all new issues via the PEAR bug tracker.

Please submit pull requests for your bug reports!


To test, run either $ phpunit tests/ or $ pear run-tests -r


To build, simply $ pear package


To install from scratch $ pear install package.xml

To upgrade $ pear upgrade -f package.xml

Something went wrong with that request. Please try again.