nicoswd/php-gpg

Pure PHP GPG implementation, forked from php-gpg.


Keywords
PGP, gpg
License
GPL-1.0+

Documentation

php-gpg

This is a fork of the fork because everything still sucks. All unacceptable.

packagist

Features/Limitations

  • Supports encrypting with 2048-bit RSA keys.
  • Encrypted messages are integrity protected.

Usage

require 'vendor/autoload.php';

$gpg = new nicoSWD\GPG\GPG();
$pubKey = new nicoSWD\GPG\PublicKey($aPublicKey);

echo $gpg->encrypt($pubKey, 'ABCDEFGHIJKL');