简体   繁体   中英

PHP PECL Gnupg extension takes more time

I have implemented the PECL extension gnupg (pecl.php.net/gnupg-1.3.6 ) for password encryption and decryption in my project.

During a load test of 500 + users the methods $this->gnu->setarmor(0); and $this->gnu->adddecryptkey() consumes more time than the other PHP processings.

Ex: If an average login time takes 10 secs, the processing time for the gnupg alone takes 5 to 6 secs.

Just wondering why the gnupg alone takes more time during a load test.

Any suggestions?

I have implemented the PECL extension gnupg (pecl.php.net/gnupg-1.3.6 ) for password encryption and decryption in my project.

Why not just use the password hashing features that PHP ships with? Encryption is not the right tool for the "password storage" job .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM