Home
last modified time | relevance | path

Searched refs:password_hash (Results 1 – 18 of 18) sorted by relevance

/PHP-8.1/ext/standard/tests/password/
H A Dpassword_hash_error.phpt2 Test error operation of password_hash()
8 var_dump(password_hash("foo"));
14 password_hash("foo", array());
20 var_dump(password_hash("foo", 19, new StdClass));
26 var_dump(password_hash("foo", PASSWORD_BCRYPT, "baz"));
32 var_dump(password_hash(array(), PASSWORD_BCRYPT));
39 password_hash() expects at least 2 arguments, 1 given
40 password_hash(): Argument #2 ($algo) must be of type string|int|null, array given
41 password_hash(): Argument #3 ($options) must be of type array, stdClass given
42 password_hash(): Argument #3 ($options) must be of type array, string given
[all …]
H A Dpassword_hash_error_argon2.phpt2 Test error operation of password_hash() with Argon2i and Argon2id
5 if (!defined('PASSWORD_ARGON2I')) die('skip password_hash not built with Argon2');
6 if (!defined('PASSWORD_ARGON2ID')) die('skip password_hash not built with Argon2');
12 password_hash('test', PASSWORD_ARGON2I, ['memory_cost' => 0]);
18 password_hash('test', PASSWORD_ARGON2I, ['time_cost' => 0]);
24 password_hash('test', PASSWORD_ARGON2I, ['threads' => 0]);
30 password_hash('test', PASSWORD_ARGON2ID, ['memory_cost' => 0]);
36 password_hash('test', PASSWORD_ARGON2ID, ['time_cost' => 0]);
42 password_hash('test', PASSWORD_ARGON2ID, ['threads' => 0]);
H A Dpassword_bcrypt_errors.phpt2 Test error operation of password_hash() with bcrypt hashing
7 password_hash("foo", PASSWORD_BCRYPT, array("cost" => 3));
13 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => 32)));
19 var_dump(password_hash("null\0password", PASSWORD_BCRYPT));
H A Dpassword_removed_salt_option.phpt8 var_dump(strlen(password_hash("rasmuslerdorf", PASSWORD_BCRYPT, array("cost" => 7, "salt" => "useso…
10 var_dump(strlen(password_hash("test", PASSWORD_BCRYPT, array("salt" => "123456789012345678901" . ch…
15 Warning: password_hash(): The "salt" option has been ignored, since providing a custom salt is no l…
18 Warning: password_hash(): The "salt" option has been ignored, since providing a custom salt is no l…
H A Dpassword_hash.phpt2 Test normal operation of password_hash()
7 var_dump(strlen(password_hash("foo", PASSWORD_BCRYPT)));
16 $hash = password_hash("foo", $algo);
H A Dpassword_hash_argon2.phpt2 Test normal operation of password_hash() with Argon2i and Argon2id
5 if (!defined('PASSWORD_ARGON2I')) die('skip password_hash not built with Argon2');
6 if (!defined('PASSWORD_ARGON2ID')) die('skip password_hash not built with Argon2');
21 $hash = password_hash($password, $algo);
H A Dpassword_needs_rehash_argon2.phpt6 if (!defined('PASSWORD_ARGON2ID')) die('skip password_hash not built with Argon2');
11 $hash = password_hash('test', PASSWORD_ARGON2I);
16 $hash = password_hash('test', PASSWORD_ARGON2ID);
H A Dbug75221.phpt5 if (!defined('PASSWORD_ARGON2I')) die('skip password_hash not built with Argon2');
9 $hash = password_hash(
H A Dpassword_bcrypt_short.phpt2 Test that password_hash() does not overread buffers when a short hash is passed
H A Dpassword_verify_argon2.phpt6 if (!defined('PASSWORD_ARGON2ID')) die('skip password_hash not built with Argon2');
/PHP-8.1/ext/sodium/tests/
H A Dbug78516.phpt2 Bug #78516 (password_hash(): Memory cost is not in allowed range)
11 $pass = password_hash('secret', PASSWORD_ARGON2ID, ['memory_cost' => 8191]);
14 $pass = password_hash('secret', PASSWORD_ARGON2I, ['memory_cost' => 8191]);
H A Dphp_password_hash_argon2i.phpt2 Test interoperability of password_hash('argon2i')
11 echo "skip - No argon2i support in password_hash()";
30 $hash = password_hash($password, 'argon2i', $opts);
H A Dphp_password_hash_argon2id.phpt2 Test interoperability of password_hash('argon2id')
11 echo "skip - No argon2id support in password_hash()";
29 $hash = password_hash($password, 'argon2id', $opts);
/PHP-8.1/Zend/tests/
H A Dbug79668.phpt4 disable_functions=sha1_file,password_hash
8 foreach (['sha1', 'sha1_file', 'hash', 'password_hash'] as $funcname) {
/PHP-8.1/ext/oci8/
H A Doci8.c1001 zend_ulong password_hash; in php_oci_do_connect_ex() local
1002 password_hash = zend_hash_func(password, password_len); in php_oci_do_connect_ex()
1003 smart_str_append_unsigned_ex(&hashed_details, password_hash, 0); in php_oci_do_connect_ex()
2145 zend_ulong password_hash; in php_oci_get_spool() local
2146 password_hash = zend_hash_func(password, password_len); in php_oci_get_spool()
2147 smart_str_append_unsigned_ex(&spool_hashed_details, password_hash, 0); in php_oci_get_spool()
/PHP-8.1/ext/standard/
H A Dpassword.c645 PHP_FUNCTION(password_hash) in PHP_FUNCTION() argument
H A Dbasic_functions.stub.php1509 function password_hash(string $password, string|int|null $algo, array $options = []): string {} function
H A Dbasic_functions_arginfo.h2714 ZEND_FUNCTION(password_hash);
3357 ZEND_FE(password_hash, arginfo_password_hash)

Completed in 62 milliseconds