this is what im triing to do with no luck
this makes my server go nutz (trying to get input from errorlog)
there is a note about needing your key to be signed when i try it i get key signiture error
(dont know what it is)
all i want is for apache to send an encrypted (via email) message when someone enters data on a page
this example is right off the php manual functions page under popen
function pgp_encrypt($keyring_location, $public_key_id, $plain_text) {
$key_id = EscapeShellArg($public_key_id);
putenv("PGPPATH=$keyring_location");
// NOTE 'r' in the following popen() call
$pipe = popen("pgp -feat +force $key_id" , 'r');
// write to the pipe
fwrite($pipe, $plain_text);
$encrypted_text = '';
while($s = fgets($pipe, 1024)) {
// read from the pipe
$encrypted_text .= $s;
};
pclose($pipe);
return $encrypted_text;
}
$encrypted_text = pgp_encrypt(
"/home/someuser/.pgp", // folder with your keyrings
"user <user@domain.org>", // public key id
"your new text here" // text to be encrypted
);
thanks for anyhelp