[thelist] PHP encrypting data with gnupg

Jacques Capesius jacques_capesius at cnt.com
Fri Feb 6 09:24:18 CST 2004


Hi folks,

I'm trying to make a php script that creates a file, saves it, then encrypts
the file using gnupg. sounds simple enough. 

For the encryption, I'm trying to use a technique similar to that described
at..

http://www.zend.com/zend/tut/tutorial-brogdon.php 

...in that from PHP, I'm using: 
echo shell_exec("gpg -e -r recipient at there.com /my/path/filename"); 

the problem I'm having is that this doesn't seem to be working. I'm not
seeing /my/path/filename.gpg (which is what's supposed to happen) being
created anywhere. At least nowhere that I can find...

Furthermore, when I do this same command from the linux shell:
gpg -e -r recipient at there.com /my/path/filename
it works every time, without prompting me for any additional input.

Does anyone have any idea as to what could be going wrong and how i might
fix it?

Thanks in advance for any advice you can offer.

-jacques :)


More information about the thelist mailing list