Hello,
I've been trying to get one of my Perl programs to encrypt some data with PGP. At first I tried to use PGP5.pm (I think) but that writes the unencrypted data to disk before encrypting. This may not be safe if someone is 'watching' that directory.
I then tried doing something like open PGP, "|/usr/local/bin/pgp -eaf ... >/tmp/$PROCESS.txt" so that I could print PGP $message and get the encryted result in a temporary file on the drive.
This works if ran from the command line. If I then try to turn this into a web page script things fail with Please enter some random text on your keyboard until you hear the beep: cannot open tty, using stdin in the error log.
Does anyone have any advice for encrypting data using PGP and Perl without writing the plaintext to disk first?
Thanks,
fx
In reply to Accessing PGP from Perl without storing temporary files by fx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |