I saw examples of how to encrypt data with GnuPG in the list archives
but I'm having problems that aren't mentioned. I've installed the public
key in the web server users key ring, and if I run the command as the
web server user it works just fine. But when the script runs it I get
nothing
Hello Jeff,
Thursday, July 19, 2001, 6:50:18 PM, you wrote:
JB $command=echo \$plain\|gpg -e -a --always-trust --no-secmem-warning --batch -r
public_key;
JB $encrypted=`$command`;
use popen() in read mode instead. There's a class made by me at
phpclasses.upperdesign.com that do the job.
--
For anybody who cares I found the problem with the command below, the
environment of the webserver user was set to the environment of the user
who started it, so it could not find the ~/.gnupg directory so I added the
--homedir switch and all is fine. Thanks for the imput however I'll examine
encrypted \n";
And this always gives returns an error number 2. I can't find a list of
error numbers at gnupg, so the error number isn't very helpful so far.
Does anyone know about the gnupg error numbers, or just using gnupg with
php?
Thanks,
Sean
--
PHP General Mailing List (http://www.
4 matches
Mail list logo