adm2007 Posted November 16, 2009 Share Posted November 16, 2009 putenv('GNUPGHOME=/home/share/.gnupg' ); $gpg = new gnupg(); $info = $gpg -> keyinfo("xxxx"); $gpg -> addencryptkey($info[0]['subkeys'][0]['fingerprint']); $enc = $gpg -> encrypt("just a test"); echo $enc; The above code is taking over 30secs to execute - encrypt() is the cuprit. Any reason why this should be so? I used to call gpg using system(). I'd rather use gnupg functions now but obviously cant when it's that slow. Any ideas greatly appreciated. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.