|encryption in php||#1|
$key = file_get_contents('http://keyserver.pramberger.at/pks/lookup?op=get&search=userid');
this code gives me public key with the html tag .how to extract the public key block form begin pgp public key block ---to---- end pgp public key block and using this public key i need to encrypt the data .i need to do it in php.
posted date: 2010-03-18 01:52:00
|Re: encryption in php||#3|
preg_match('/PUBLIC KEY BLOCK-----\s(.*?)\s-----END PGP/s', $data, $match);echo $match; //returns the key
posted date: 2010-03-18 02:05:00
|Re: encryption in php||#4|
Your questions are all very similar. Why don't you state your question clearly and also provide code examples what you have done so far. Also creating a second account is not for you advantage I guess.
posted date: 2010-03-18 02:17:00
|Re: encryption in php||#5|
$pgp_key = trim(preg_replace('/(.*)<pre>(.*)<\/pre>(.*)/s','\2',$key));
posted date: 2010-03-18 02:21:00
|select page: « 1 »|