sunnanbei/worst-password

There is no license information available for the latest version (dev-main) of this package.

弱口令校验

dev-main 2021-12-15 06:02 UTC

This package is auto-updated.

Last update: 2024-11-15 12:36:16 UTC


README

use Sunnanbei\WorstPassword\Worst;
$worst = new Worst();
$response = $worst->check('123456');
var_dump($response);    //false
$response = $worst->check('a!1234340@');
var_dump($response);    //a!1234340@
$paths = [
    '/www/worst_passwords.php'
];
$worst = new Worst($paths);
$response = $worst->check('123456');
var_dump($response);    //false
$response = $worst->check('a!1234340@');
var_dump($response);    //a!1234340@