This is a fork of the fork because everything still sucks. All unacceptable.
- Supports encrypting with 2048-bit RSA keys.
- Encrypted messages are integrity protected.
require 'vendor/autoload.php';
$gpg = new nicoSWD\GPG\GPG();
$pubKey = new nicoSWD\GPG\PublicKey($aPublicKey);
echo $gpg->encrypt($pubKey, 'ABCDEFGHIJKL');