(PECL crack >= 0.1)
crack_check — Performs an obscure check with the given password
$dictionary
, string $password
)$password
, string $username
= ""
, string $gecos
= ""
, resource $dictionary
= NULL
)Performs an obscure check with the given password on the specified dictionary. The alternative signature also takes into account the username and the GECOS information.
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.
dictionary
The crack lib dictionary. If not specified, the last opened dictionary is used.
password
The password to be checked.
username
The username of the account with the password.
gecos
The GECOS information associated with the user account.
Returns TRUE
if password
is strong, or FALSE
otherwise.
Version | Description |
---|---|
0.3 |
The username , gecos and
dictionary parameters were added to the
alternative signature.
|