(PECL crack >= 0.1)
crack_check — Performs an obscure check with the given password
$dictionary
, string $password
) : bool$password
, string $username = ""
, string $gecos = ""
, resource $dictionary = NULL
) : boolPerforms an obscure check with the given password on the specified dictionary. The alternative signature also takes into account the username and the GECOS information.
Această funcție este EXPERIMENTALĂ. Comportamentul acestei funcții, denumirea sa și orice alte aspecte documentate în privința acestei funcții pot să fie modificate fără preaviz într-o versiune viitoare a PHP. Utilizați această funcție la propriul risc.
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.
| Versiune | Descriere |
|---|---|
| 0.3 |
The username, gecos and
dictionary parameters were added to the
alternative signature.
|