Re: How to decrypt string in php

2010-11-11 Thread Ramon Loureiro
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Jourard wrote: > 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 > Hi! Have you tried this? http://php.net/manual/e

Re: How to decrypt string in php

2010-11-10 Thread Doug Barton
On 11/10/2010 11:08, David Jourard wrote: $cmdline = "$gpg --no-secmem-warning --batch --passphrase $passphrase --decrypt $string"; Haven't tried it in php but echo should work here: echo $string | gpg ... --decrypt hth, Doug -- Nothin' ever doesn't change, but nothin' c