nicoswd / php-gpg
Pure PHP GPG implementation, forked from php-gpg.
1.7.2
2024-05-09 06:29 UTC
Requires
- php: >=7.0
- phpseclib/phpseclib: ^2.0 || ^3.0
Requires (Dev)
- phpunit/phpunit: ^5.1
README
This is a fork of the fork because everything still sucks. All unacceptable.
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');