Home
last modified time | relevance | path

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

/PHP-7.4/ext/standard/tests/password/
H A Dpassword_bcrypt_errors.phpt2 Test error operation of password_hash() with bcrypt hashing
7 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => 3)));
9 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => 32)));
11 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("salt" => "foo")));
15 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("salt" => 123)));
17 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => "foo")));
21 Warning: password_hash(): Invalid bcrypt cost parameter specified: 3 in %s on line %d
27 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in %s on line …
29 Warning: password_hash(): Provided salt is too short: 3 expecting 22 in %s on line %d
32 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in %s on line …
[all …]
H A Dpassword_hash_error.phpt2 Test error operation of password_hash()
7 var_dump(password_hash());
9 var_dump(password_hash("foo"));
11 var_dump(password_hash("foo", array()));
13 var_dump(password_hash("foo", 19, new StdClass));
15 var_dump(password_hash("foo", PASSWORD_BCRYPT, "baz"));
17 var_dump(password_hash(array(), PASSWORD_BCRYPT));
19 var_dump(password_hash("123", PASSWORD_BCRYPT, array("salt" => array())));
22 var_dump(password_hash('123', PASSWORD_BCRYPT, array('salt' => 1234)));
46 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in %s on line …
[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');
10 var_dump(password_hash('test', PASSWORD_ARGON2I, ['memory_cost' => 0]));
11 var_dump(password_hash('test', PASSWORD_ARGON2I, ['time_cost' => 0]));
12 var_dump(password_hash('test', PASSWORD_ARGON2I, ['threads' => 0]));
13 var_dump(password_hash('test', PASSWORD_ARGON2ID, ['memory_cost' => 0]));
14 var_dump(password_hash('test', PASSWORD_ARGON2ID, ['time_cost' => 0]));
15 var_dump(password_hash('test', PASSWORD_ARGON2ID, ['threads' => 0]));
24 Warning: password_hash(): %sthread%s
[all …]
H A Dpassword_deprecated_salts.phpt2 Test deprecated operation of password_hash()
8 var_dump(password_hash("rasmuslerdorf", PASSWORD_BCRYPT, array("cost" => 7, "salt" => "usesomesilly…
10 var_dump(password_hash("test", PASSWORD_BCRYPT, array("salt" => "123456789012345678901" . chr(0))));
15 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in %s on line …
18 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in %s on line …
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_verify_argon2.phpt6 if (!defined('PASSWORD_ARGON2ID')) die('skip password_hash not built with Argon2');
/PHP-7.4/ext/sodium/tests/
H A Dbug78516.phpt2 Bug #78516 (password_hash(): Memory cost is not in allowed range)
10 $pass = password_hash('secret', PASSWORD_ARGON2ID, ['memory_cost' => 8191]);
13 $pass = password_hash('secret', PASSWORD_ARGON2I, ['memory_cost' => 8191]);
H A Dphp_password_hash_argon2i.phpt2 Test interoperability of password_hash('argon2i')
9 echo "skip - No argon2i support in password_hash()";
27 $hash = password_hash($password, 'argon2i', $opts);
H A Dphp_password_hash_argon2id.phpt2 Test interoperability of password_hash('argon2id')
9 echo "skip - No argon2id support in password_hash()";
27 $hash = password_hash($password, 'argon2id', $opts);
/PHP-7.4/Zend/tests/
H A Dbug79668.phpt4 disable_functions=sha1_file,password_hash
8 foreach (['sha1', 'sha1_file', 'hash', 'password_hash'] as $funcname) {
/PHP-7.4/ext/standard/
H A Dphp_password.h23 PHP_FUNCTION(password_hash);
H A Dpassword.c727 PHP_FUNCTION(password_hash) in PHP_FUNCTION() argument
H A Dbasic_functions.c2923 PHP_FE(password_hash, arginfo_password_hash)
/PHP-7.4/ext/oci8/
H A Doci8.c1758 zend_ulong password_hash; in php_oci_do_connect_ex() local
1759 password_hash = zend_inline_hash_func(password, password_len); in php_oci_do_connect_ex()
1760 smart_str_append_unsigned_ex(&hashed_details, password_hash, 0); in php_oci_do_connect_ex()
2913 zend_ulong password_hash; in php_oci_get_spool() local
2914 password_hash = zend_inline_hash_func(password, password_len); in php_oci_get_spool()
2915 smart_str_append_unsigned_ex(&spool_hashed_details, password_hash, 0); in php_oci_get_spool()
/PHP-7.4/
H A DUPGRADING380 . password_hash() has argon2i(d) implementations from ext/sodium when PHP is
496 . password_hash() now accepts nullable string and int as $algo argument.
H A DNEWS1661 . Fixed bug #78516 (password_hash(): Memory cost is not in allowed range).
1684 . Implemented RFC where password_hash() has argon2i(d) implementations from
1967 . Fixed bug #78269 (password_hash uses weak options for argon2). (Remi)

Completed in 84 milliseconds