我已经实现了PECL扩展gnupg (pecl.php.net/gnupg-1.3.6 )用于我项目中的密码加密和解密。
在500+用户的负载测试期间,方法$ this-> gnu-> setarmor(0);和$ this-> gnu-> adddecryptkey()比其他PHP处理消耗更多的时间。
例如:如果平均登录时间需要10秒,那么gnupg的处理时间就需要5到6秒。
只是想知道为什么gnupg在负载测试期间需要更多时间。
有什么建议吗?
答案 0 :(得分:0)
我已经在我的项目中实现了PECL扩展gnupg(pecl.php.net/gnupg-1.3.6)以进行密码加密和解密。
为什么不使用PHP附带的the password hashing features? Encryption is not the right tool for the "password storage" job