Re: gnuPG
| From: | jeremy brand | Date: | Sun, 17 Sep 2000 09:17:53 +0000 |
| Subject: | Re: gnuPG | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17073@lists.php.net to get a copy of this message | ||
Instead of passing data on the commend line, try using stdin and
stdout instead. You may have better luck.
_______________________________________________________________________
GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
_ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more __
On Sun, 17 Sep 2000, joeb wrote:
> Date: Sun, 17 Sep 2000 16:51:28 +0930
> From: joeb <joeb@kanga.com.au>
> To: php-general@lists.php.net
> Subject: [PHP] gnuPG
>
> Hey,
>
> I was just wondering if someone could help me with using gnuPG with PHP, I have generated the
> keys but can't seem to get any data back when trying to encrypt an variable.
>
> here is the command syntax im trying:
>
> $enCrypt =
/usr/local/gnupg/bin/gpg --local-user UID --encrypt --recipient
> woo@foo.com.au $data;
>
> now this seems to do absoulutly nothing, I was wondering if the webserver can even use it as I
> made the keys as root, do I have to make a user for nobody, and generate the keys under this I sure
> hope not!
>
> I want to encrypt the contents of $data and insert it into a a mySQL text field, then provide
> the means to decrypt the data as well.
>
> If any one has used this before could they please help, I have been reading the gnuPG handbook
> and a mini howto, but can't seem to get this to work with PHP.
>
> Regards,
>
> Joseph
>