nicoswd/php-gpg

Pure PHP GPG implementation, forked from php-gpg.

Maintainers

Details

github.com/nicoSWD/php-gpg

Source

Installs: 31 900

Dependents: 4

Suggesters: 3

Security: 0

Stars: 4

Watchers: 3

Forks: 27

1.7.1 2018-04-09 09:19 UTC

This package is auto-updated.

Last update: 2021-02-06 01:18:37 UTC


README

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');