php encryption

Chris Mason
Wed Apr 4 12:04:01 2001

Hello  to everyone on the list, this is my first Gnupg post.
Has anyone managed to implement an encryption solution from PHP? I got stuck
at the need to pass the passphrase to the process. I tried "echo $pass |
gpgcommand" but it didn;t work.

What I am trying to do is to encrpyt a file (or a variable) from mod_php and
write it back to a file (or a variable). httpd will run as user httpd so I
have to run as gpg as another user, and encrpyt for the end user's public
Any help appreciated.

Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island The Anguilla Guide
Find out more about NetConcepts
Talk to me in real time with Instant Messenger:
F331 8AD1 36FB B3B0 DF9F  D95B 8024 D1EA 7450 D50C