Re: Using Pipes / PGP
| From: | Richard Lynch | Date: | Mon, 19 Feb 2001 07:12:51 +0000 |
| Subject: | Re: Using Pipes / PGP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40530@lists.php.net to get a copy of this message | ||
<?php
$secret = "PHP Rocks!";
system("$secret |
/path/to/pgp -f -g -o -d -k -n -o -w -s -w -h -a -t -f -l -a -g -s");
?>
Using popen and fwrite/fread would be even better...
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Martin Thoma <martin@radiok2r.de>
Newsgroups: php.general
Sent: Sunday, February 18, 2001 5:00 AM
Subject: [PHP] Using Pipes / PGP
> Hm, this is getting much more complicated as I thought.
>
> I want to use PGP. This works fine with temporary Files: You say to PGP:
> "Please take the file message.txt and encrypt it to the file
> encrypt.txt". Ok.
>
> But this could be a possible securety-hole, because the message-file is
> available on the disc for some time. The pgp-doc says, that you could
> use the -f paramter with pipes to avoid this.
>
> But: How is it done exactly ? I didn't get anything to work.
>
> (Using PGP 2.6.3. and Linux)
>
> Regards
>
> Martin
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>