A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2010 yearencryption in php - page 1
User InfoPosts
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#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2010-03-18 01:52:01

Re: encryption in php#3
try thispreg_match('/PUBLIC KEY BLOCK-----\s(.*?)\s-----END PGP/s', $data, $match);echo $match[1]; //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
or that $pgp_key = trim(preg_replace('/(.*)<pre>(.*)<\/pre>(.*)/s','\2',$key));

posted date: 2010-03-18 02:21:00

select page: « 1 »
Copyright ©2008-2017 momige.com, all rights reserved.