(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.
dictionaryThe crack lib dictionary. If not specified, the last opened dictionary is used.
passwordThe password to be checked.
usernameThe username of the account with the password.
gecosThe 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.
|