有没有zxcvbn.js的PHP版本,或者我可以在服务器端使用它来强制执行密码规则


Is there a PHP version of zxcvbn.js or a way that I can use it server side to enforce a password rule?

我使用zxcvbn,一个密码强度检查器,来显示密码的强度。

我想使用提供的算法来增强一定程度的强度,但很明显,它可以在客户端被篡改,所以我还需要在服务器端验证密码以确保安全。据我所知,目前还没有zxcvbn的PHP版本,我现在没有时间移植它。

我的选择是什么?

github上有一个zxcvbn Python端口的PHP端口https://github.com/Dreyer/php-zxcvbn.注意,作者指出,目前不建议将其用于生产用途。