I've made some headway with Crypt_GPG.
Note, if you're using Plesk make sure to make Pear and gpg binaries accessible via the host dir directive in the specific domains vhost.conf file. 😉
Here is a good source: http://mattiasgeniar.be/2008/08/20/how-to-enable-pear-packages-in-plesk/
It will cure all your Crypt_GPG troubles.
The next endeavor is securing the decrypt function which I thought I would bounce off all of you php gurus.
Currently this is the way its currently being done:
<?php
require_once 'Crypt/GPG.php';
$emsg = $_POST('ENC');
$gpg = new Crypt_GPG(array('debug' => true));
$gpg->addDecryptKey('dummy@dummy.com', 'HEREISMYPASSWORDWORLD!');
echo "Message is: ". $gpg->decrypt($emsg);
?>
I DON'T THIS IS SECURE :xbones:. ANY PHP SECURITY GURUS WANT TO THROW A BONE??
What methodologies can be used to here to not display the password in the script itself?
Cheers,
totus