Thanks Derek PHP & GPG
bernardino lopez
bernardino_lopez@yahoo.com
Tue Nov 13 20:41:01 2001
I got this script UP & Running:
<?
putenv("/home/blopez/.gnupg ");
echo "<form enctype='multipart/form-data'
action='encrypt.php' method=post>";
echo "GPG Encryption:<BR> ";
echo "<textarea name='my_text' cols=60 ROWS=8> ";
echo "Enter Your Text ";
echo "</textarea> ";
echo "<input type=submit value='Encrypt'><br> ";
if (!isset($my_text)) { $my_text=" Text to be
Encrypted "; }
$a = "echo '$my_text' | /usr/bin/gpg -a --no-tty
--always-trust --batch --no-sec
mem-warning -e -u 'Bernardino Lopez
<blopez@linux.com>' -r 'Bernardino Lo
pez <blopez@linux.com>' --homedir
/home/blopez/.gnupg";
#echo "$a <br>";
echo exec($a,$e)."<br>";
while( $res=each($e) ) {
echo "$res[1]<BR>";
}
echo "</form> ";
?>
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com