I would like to compress message using GnuPG PHP extension
putenv("GNUPGHOME=/var/www/.gnupg");
//$gpg = new gnupg();
$res = gnupg_init();
$rtv = gnupg_import($res, $pubkey);
gnupg_addencryptkey($res, $rtv['fingerprint']);
$pgp_str = gnupg_encrypt($res, $str);
I would like to pass compress-algo parameter but haven't found way to pass, can someone suggest?
Thanks for help!
Reference to GPG Configuration , create file gpg.conf inside.gnupg folder.
Then put options in gpg.conf, check this for example
check result using gpg --list-packets -vv --show-session-key yourfilename.gpg
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.