nicoswd/php-gpg

Pure PHP GPG implementation, forked from php-gpg.

Maintainers

Details

github.com/nicoSWD/php-gpg

Source

Installs: 119 062

Dependents: 5

Suggesters: 3

Security: 0

Stars: 6

Watchers: 3

Forks: 28

1.7.2 2024-05-09 06:29 UTC

This package is auto-updated.

Last update: 2024-05-09 10:14:59 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');