Page 1 of 1

GNUPG

Posted: Tue Jul 01, 2003 8:59 pm
by php_wiz_kid
Could someone please help me in installing this on a Windows machine. The instructions are confusing the heck out of me. Just point me to a link or something, it would be greatly appriciated.

Sorry this isn't a PHP related topic.

Posted: Tue Jul 01, 2003 10:21 pm
by Stoker
this is not a complete howto or anything, something I started writing about setting up gpg on Bill Gates machines..

If you are interested in finding out how to use it from PHP that is not really much different than on any GNU/Linux or UNIX system, most importantly is that the echo command cannot have a space before the pipe | to gpg.exe...

exec('echo '.escapeshellarg($text_to_encrypt).'| c:\gnupg\gpg.exe -ear user --batch --no-secmemwarning --always-trust --homedir c:\my\key\ring\dir'',$resultarray);
$encoded = join('',$resultarray);


edit/add: The no-space before pipe applies mostly to decrypting when using --passphrase-fd