GNUPG and PGP with PHP
Thomas R. Hall
Sat Aug 25 01:07:01 2001
-----BEGIN PGP SIGNED MESSAGE-----
The PGP question is a bit off-topic, but here's a question for you. What
version of PGP are you using? Also, you may want to try to add the
following to your PGP command:
We have an automated system that encrypts/decrypts files, and those two
flags keep the system from outputting any additional messages or
prompting, which is probably why it's causing you problems. PGP is
"noisy" by default.
Also, you aren't signing the output. Don't you want -feast?
Here's what your modified line should look like:
pgp -feast +force +batchmode '$uid' |
^ ^^^^^^ ^^^^^^^^^^
We usually specify the +force and +batchmode at the end, but since you are
using it as a UNIX-style filter, I think it's probably okay.
Hope that helps.
Thomas R. Hall <email@example.com> http://www.trhall.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public Keys: http://www.trhall.org/pgp/
-----END PGP SIGNATURE-----