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.
GNUPG
Moderator: General Moderators
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
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