PHP and GPG

From: Date: Thu, 07 Nov 2002 16:01:00 +0000
Subject: PHP and GPG
Groups: php.general 
Request: Send a blank email to php-general+get-123180@lists.php.net to get a copy of this message
I need to use PHP to dencrypt a file with GPG (which was encrypted with a public key generated on the server) I would normally use the exec command to just execute the proper GPG command, but I can't seem to get the password for the key (to decrypt the file) into GPG, I have tried: exec("/usr/bin/gpg --decrypt /path/to/file < /bin/echo \"password\""); AND: exec("/bin/echo \"password\" | /usr/bin/gpg --decrypt /path/to/file"); And neither work, anyone else ever done this successfully? Adam Voigt adam.voigt@cryptocomm.com

« previous php.general (#123180) next »