GNUPG

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
php_wiz_kid
Forum Contributor
Posts: 181
Joined: Tue Jun 24, 2003 7:33 pm

GNUPG

Post 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.
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post 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
Post Reply