GNUPG and PGP with PHP

Thomas R. Hall trhall@pobox.com
Sat Aug 25 01:07:01 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kurt,

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:

+force +batchmode

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 <trhall@pobox.com> http://www.trhall.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public Keys: http://www.trhall.org/pgp/

iD8DBQE7ht2yB5DJA0Q66C0RAuxlAKDngxlQ6aGwAUV0t2Ct2ANCoWVnJgCgv801
c/AqOEKihF/EvRn9/KvN4iE=
=OjpC
-----END PGP SIGNATURE-----