NYCPHP Meetup

[nycphp-talk] cookbook: gpg (was Re: empty string as array key)

David Mintz dmintz at panix.com
Fri Aug 8 17:12:12 EDT 2003


On Fri, 8 Aug 2003, Adam Maccabee Trachtenberg wrote:

> adam at trachtenberg.com
> author of o'reilly's php cookbook
> avoid the holiday rush, buy your copy today!

oh -- ~that~ Adam Maccabee Trachtenberg! <fawn>Love that Cookbook!</fawn>.
Now let me ask you (or anybody) a question about 14:11 a/k/a Encrypting
Email with GPG.

If you're an ordinary user on a shared server, what is the best strategy
for GPG-encrypting data? I have figured out (stolen) one way to do it, but
it requires wrapping the script with php-cgiwrap and doing something like

$encrypted = shell_exec( "echo 'secret stuff'|/usr/bin/gpg
--no-secmem-warning --homedir /my/.gnupg -ear recipient at example.com");


It doesn't work when run as nobody, I presume because nobody doesn't have
permission to get into my .gnupg directory. Perhaps php-cgiwrap is the
answer... ?

btw thanks to all for the discussion re my last Q.


---
David Mintz
http://davidmintz.org/
Email: See http://dmintzweb.com/whitelist.php first!




More information about the talk mailing list