This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

dev-master 2016-10-01 13:53 UTC

This package is auto-updated.

Last update: 2021-11-15 20:57:48 UTC


3N*tr0π Password Lib

This library is a tool for calculating the strength of passwords in a uniformed manner. Instead of stupid, annoying requirements of your users to have at least 1 capital, at least 1 number etc in their password; this library gives a complexity score for the password which you can use to decide if the password is strong enough for your application's needs.


$e = new \Carnage\Entropy\Entropy();
echo $e->calculateScore('Password1');
echo $e->calculateScore('12t1^7kl0');