<?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 <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to