clearsign a variable?

Gordon McNevin gordon at yourmarketing.co.uk
Sun May 7 13:57:20 CEST 2006


Hi,

Just wondering how do you clear sign a variable please on the command line?

I'm running this in a php script...

$emailbody = "reg-city:Ely\n";
$emailbody .= "reg-postcode:CB6 1RA\n";
$emailbody .= "reg-country:GB\n";

$cmd = "echo $passphrase | $gpg --passphrase-fd 0 --no-tty -u
$key --force-v3-sigs --no-secmem-warning --clearsign $emailbody" . "" . " &>
/tmp/error ";

$encrypted_message = shell_exec($cmd);



But it's simply not working.

Does anyone know how I can clearsign a variable without all this file
interaction please?


Many thanks,

Gordon






More information about the Gnupg-users mailing list