Hi All,
What I have done?
I have installed GnuPg in Windows XP machine.
The environment variable PATH= C:\Program files\Gnu\GnuPG;
I have generated public and private key.
Key ring is C:\ Documents and Settings\user name\Application Data\gnupg\pubring.gpg
I kept text file in C:\wamp\www\plain_text.txt
I run the DOS command like this: C:\wamp\www> gpg –r kkkk –o entrypted_text.txt –e plain_text.txt
It creates encrypted_text.txt in C:\wamp\www directory.
Problem?
I want to perform this task using php program. I tried following coding and it displays “2”. But it does not creates encrypted_text.txt.
<?php
$command=” gpg –r kkkk –o encrypted_text.txt –e plain_text.txt”;
system($command,$result);
echo $result;
?>
Note: if I use following command, it displays GnuPG version
$command = “gpg --version”;
Any suggestion to get encrypted_text.txt file on www directory????