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

StackOverflow https://stackoverflow.com/questions/18551821

문제

I'm using zxcvbn, a password strength checker, to display the strength of a password.

I would like to enforce a certain level of strength using the provided algorithm, but obviously it can be tampered with on the client side so I also need to verify the password on the server side to make sure. As far as I can tell there is no PHP version of zxcvbn currently and I don't have time to port it right now.

What would my options be?

도움이 되었습니까?

해결책

There is a PHP port of a Python port of zxcvbn available on github at https://github.com/Dreyer/php-zxcvbn. Note, the author states that at this time it is not recommended for production use.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top