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

Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top