Hi, I have a gpg encypted string in a data field and I want to be able decrypt it.
Is there a simple way to do this without writing it to a file on a windows machine Here is my code example: <?php function DecryptGPG ($string) { $gpg = 'c:/locationofgnupg/gpg'; $passphrase = 'mypassword'; $cmdline = "$gpg --no-secmem-warning --batch --passphrase $passphrase --decrypt $string"; exec ($cmdline, $stdout, $return); $finalstring = $stdout[0]; return $finalstring; } $finalvalue = DecryptGPG($encryptedstuff); echo "value=$finalvalue\n"; ?> With this code I get: Invalid Option "-----BEGIN" which I understand why. regards David J. _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users