How to decrypt string in php

Doug Barton dougb at dougbarton.us
Wed Nov 10 20:25:55 CET 2010


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' changes much.
			-- OK Go

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/




More information about the Gnupg-users mailing list