Home
last modified time | relevance | path

Searched refs:password (Results 1 – 25 of 211) sorted by relevance

123456789

/PHP-8.3/ext/sodium/tests/
H A Dphp_password_hash_argon2i.phpt27 $password = random_bytes(32);
28 echo "Using password: ";
29 var_dump(base64_encode($password));
30 $hash = password_hash($password, 'argon2i', $opts);
32 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
35 $password[0] = chr(ord($password[0]) ^ 1);
36 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
42 Using password: string(44) "%s"
46 Using password: string(44) "%s"
50 Using password: string(44) "%s"
[all …]
H A Dphp_password_hash_argon2id.phpt26 $password = random_bytes(32);
27 echo "Using password: ";
28 var_dump(base64_encode($password));
29 $hash = password_hash($password, 'argon2id', $opts);
31 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
34 $password[0] = chr(ord($password[0]) ^ 1);
35 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
41 Using password: string(44) "%s"
45 Using password: string(44) "%s"
49 Using password: string(44) "%s"
[all …]
H A Dphp_password_verify.phpt35 $password = random_bytes(32);
36 echo "Using password: ";
37 var_dump(base64_encode($password));
38 $hash = sodium_crypto_pwhash_str($password, $ops, $mem);
40 var_dump(password_verify($password, $hash));
43 $password[0] = chr(ord($password[0]) ^ 1);
44 var_dump(password_verify($password, $hash));
50 Using password: string(44) "%s"
54 Using password: string(44) "%s"
58 Using password: string(44) "%s"
[all …]
/PHP-8.3/ext/openssl/tests/
H A Dopenssl_decrypt_basic.phpt9 $password = "openssl";
16 $encrypted = openssl_encrypt($data, $method, $password, 0, $iv);
17 $output = openssl_decrypt($encrypted, $method, $password, 0, $iv);
19 $encrypted = openssl_encrypt($data, $method, $password, OPENSSL_RAW_DATA, $iv);
20 $output = openssl_decrypt($encrypted, $method, $password, OPENSSL_RAW_DATA, $iv);
24 $encrypted = openssl_encrypt($padded_data, $method, $password, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDIN…
25 $output = openssl_decrypt($encrypted, $method, $password, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $i…
28 $output2 = openssl_decrypt($encrypted, $method, $password, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $…
35 $encrypted = openssl_encrypt($data, "bf-ecb", $password, OPENSSL_DONT_ZERO_PAD_KEY);
36 $output = openssl_decrypt($encrypted, "bf-ecb", $password, OPENSSL_DONT_ZERO_PAD_KEY);
[all …]
H A Dopenssl_pbkdf2_basic.phpt10 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 1)));
11 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 2)));
12 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 4096)));
16 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 16777216)));
H A Dopenssl_decrypt_error.phpt9 $password = "openssl";
13 $encrypted = openssl_encrypt($data, $method, $password);
15 var_dump(openssl_encrypt($data, $method, $password, 0, $iv));
17 var_dump(openssl_decrypt($encrypted, $wrong, $password));
18 var_dump(openssl_decrypt($wrong, $method, $password));
19 var_dump(openssl_decrypt($wrong, $wrong, $password));
H A Dbug73833.phpt10 foreach($passwords as $password) {
13 if (openssl_pkey_export($key, $privatePEM, $password, $conf) === false) {
18 if (openssl_pkey_get_private($privatePEM, $password) === false) {
/PHP-8.3/ext/sodium/
H A Dsodium_pwhash.c72 static zend_string *php_sodium_argon2_hash(const zend_string *password, zend_array *options, int al… in php_sodium_argon2_hash() argument
76 if ((ZSTR_LEN(password) >= 0xffffffff)) { in php_sodium_argon2_hash()
86 …if (crypto_pwhash_str_alg(ZSTR_VAL(ret), ZSTR_VAL(password), ZSTR_LEN(password), opslimit, memlimi… in php_sodium_argon2_hash()
98 static bool php_sodium_argon2_verify(const zend_string *password, const zend_string *hash) { in php_sodium_argon2_verify() argument
99 if ((ZSTR_LEN(password) >= 0xffffffff) || (ZSTR_LEN(hash) >= 0xffffffff)) { in php_sodium_argon2_verify()
102 return crypto_pwhash_str_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password)) == 0; in php_sodium_argon2_verify()
145 static zend_string *php_sodium_argon2i_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2i_hash() argument
146 return php_sodium_argon2_hash(password, options, crypto_pwhash_ALG_ARGON2I13); in php_sodium_argon2i_hash()
160 static zend_string *php_sodium_argon2id_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2id_hash() argument
161 return php_sodium_argon2_hash(password, options, crypto_pwhash_ALG_ARGON2ID13); in php_sodium_argon2id_hash()
/PHP-8.3/ext/oci8/tests/
H A Dpersistent.phpt14 var_dump(oci_pconnect($user, $password, $dbase));
15 var_dump(oci_pconnect($user, $password, $dbase));
16 var_dump(oci_pconnect($user, $password, $dbase));
17 var_dump(oci_connect($user, $password, $dbase));
18 var_dump(oci_connect($user, $password, $dbase));
19 var_dump(oci_connect($user, $password, $dbase));
H A Ddrcp_scope1.phpt25 $c = oci_new_connect($user,$password,$dbase);
32 function1($user,$password,$dbase,$conn_type);
35 function2($user,$password,$dbase,$conn_type);
40 function1($user,$password,$dbase,$conn_type);
43 function2($user,$password,$dbase,$conn_type);
47 function function1($user,$password,$dbase,$conn_type)
52 var_dump($conn1 = oci_new_connect($user,$password,$dbase));
55 var_dump($conn1 = oci_connect($user,$password,$dbase));
63 function function2($user,$password,$dbase,$conn_type)
68 var_dump($conn1 = oci_new_connect($user,$password,$dbase));
[all …]
H A Ddrcp_scope2.phpt25 $c = oci_new_connect($user,$password,$dbase);
32 function1($user,$password,$dbase,$conn_type);
35 function2($user,$password,$dbase,$conn_type);
40 function1($user,$password,$dbase,$conn_type);
43 function2($user,$password,$dbase,$conn_type);
47 function function1($user,$password,$dbase,$conn_type)
52 var_dump($conn1 = oci_new_connect($user,$password,$dbase));
55 var_dump($conn1 = oci_connect($user,$password,$dbase));
63 function function2($user,$password,$dbase,$conn_type)
68 var_dump($conn1 = oci_new_connect($user,$password,$dbase));
[all …]
H A Dconnect_with_charset_001.phpt14 var_dump($c1 = oci_connect($user, $password, $dbase));
15 var_dump($c2 = oci_connect($user, $password, $dbase, ""));
16 var_dump($c3 = oci_connect($user, $password, $dbase, "blah"));
17 var_dump($c4 = oci_connect($user, $password, $dbase, "obviously wrong"));
21 var_dump($c5 = oci_connect($user, $password, $dbase, "US7ASCII"));
22 var_dump($c6 = oci_connect($user, $password, $dbase, "UTF8"));
H A Dconnect_1.phpt15 var_dump($c1 = oci_pconnect($user, $password, $dbase));
18 var_dump($c1 = oci_pconnect($user, $password));
22 var_dump($c2 = oci_new_connect($user, $password, $dbase));
25 var_dump($c2 = oci_new_connect($user, $password));
H A Ddrcp_scope4.phpt28 $c = oci_new_connect($user,$password,$dbase);
33 function1($user,$password,$dbase);
36 function2($user,$password,$dbase);
40 function function1($user,$password,$dbase)
42 var_dump($c = oci_pconnect($user,$password,$dbase));
48 function function2($user,$password,$dbase)
50 var_dump($c = oci_pconnect($user,$password,$dbase));
H A Ddrcp_scope3.phpt25 $c = oci_new_connect($user,$password,$dbase);
30 function1($user,$password,$dbase);
33 function2($user,$password,$dbase);
37 function function1($user,$password,$dbase)
39 var_dump($c = oci_pconnect($user,$password,$dbase));
45 function function2($user,$password,$dbase)
47 var_dump($c = oci_pconnect($user,$password,$dbase));
H A Ddrcp_scope5.phpt28 $c = oci_new_connect($user,$password,$dbase);
33 function1($user,$password,$dbase);
36 function2($user,$password,$dbase);
40 function function1($user,$password,$dbase)
42 var_dump($c = oci_pconnect($user,$password,$dbase));
48 function function2($user,$password,$dbase)
50 var_dump($c = oci_pconnect($user,$password,$dbase));
H A Dconnect_scope1.phpt22 $c1 = oci_new_connect($user,$password,$dbase);
24 $c1 = oci_new_connect($user,$password);
34 global $user, $password, $dbase;
37 $c = oci_connect($user,$password,$dbase);
39 $c = oci_connect($user,$password);
H A Dconnect_scope2.phpt22 $c1 = oci_new_connect($user,$password,$dbase);
24 $c1 = oci_new_connect($user,$password);
34 global $user, $password, $dbase;
37 $c = oci_pconnect($user,$password,$dbase);
39 $c = oci_pconnect($user,$password);
/PHP-8.3/ext/standard/
H A Dphp_password.h21 PHP_MINIT_FUNCTION(password);
22 PHP_MSHUTDOWN_FUNCTION(password);
39 zend_string *(*hash)(const zend_string *password, zend_array *options);
40 bool (*verify)(const zend_string *password, const zend_string *hash);
41 bool (*needs_rehash)(const zend_string *password, zend_array *options);
H A Dpassword.c183 if (memchr(ZSTR_VAL(password), '\0', ZSTR_LEN(password))) { in php_password_bcrypt_hash()
210 …result = php_crypt(ZSTR_VAL(password), (int)ZSTR_LEN(password), ZSTR_VAL(hash), (int)ZSTR_LEN(hash… in php_password_bcrypt_hash()
357 ZSTR_VAL(password), in php_password_argon2_hash()
358 ZSTR_LEN(password), in php_password_argon2_hash()
385 …return ARGON2_OK == argon2_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password), Argon2_i… in php_password_argon2i_verify()
404 …return ARGON2_OK == argon2_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password), Argon2_i… in php_password_argon2id_verify()
421 PHP_MINIT_FUNCTION(password) /* {{{ */ in PHP_MINIT_FUNCTION() argument
627 zend_string *password, *hash; in PHP_FUNCTION() local
631 Z_PARAM_STR(password) in PHP_FUNCTION()
643 zend_string *password, *digest = NULL; in PHP_FUNCTION() local
[all …]
H A Dcrypt.c71 PHPAPI zend_string *php_crypt(const char *password, const int pass_len, const char *salt, int salt_… in php_crypt() argument
89 out = php_md5_crypt_r(password, salt, output); in php_crypt()
98 crypt_res = php_sha512_crypt_r(password, salt, output, PHP_MAX_SALT_LEN); in php_crypt()
113 crypt_res = php_sha256_crypt_r(password, salt, output, PHP_MAX_SALT_LEN); in php_crypt()
133 crypt_res = php_crypt_blowfish_rn(password, salt, output, sizeof(output)); in php_crypt()
148 crypt_res = _crypt_extended_r((const unsigned char *) password, salt, &buffer); in php_crypt()
171 crypt_res = crypt_r(password, salt, &buffer); in php_crypt()
173 crypt_res = crypt(password, salt); in php_crypt()
/PHP-8.3/ext/soap/tests/bugs/
H A Dmultiport.phpt11 $response = $client->GetSessionId(array('userId'=>'user', 'password'=>'password'));
16 …ENV:Body><ns1:GetSessionId><ns1:userId>user</ns1:userId><ns1:password>password</ns1:password></ns1…
/PHP-8.3/ext/hash/tests/
H A Dhash_pbkdf2_error.phpt6 /* Generate a PBKDF2 hash of the given password and salt
11 $password = 'password';
16 var_dump(hash_pbkdf2('foo', $password, $salt, 1));
25 var_dump(hash_pbkdf2('crc32', $password, $salt, 1));
33 var_dump(hash_pbkdf2('md5', $password, $salt, 0));
40 var_dump(hash_pbkdf2('md5', $password, $salt, -1));
48 var_dump(hash_pbkdf2('md5', $password, $salt, 1, -1));
H A Dhash_pbkdf2_basic.phpt8 echo "sha1: " . hash_pbkdf2('sha1', 'password', 'salt', 1, 20)."\n";
9 echo "sha1(no length): " . hash_pbkdf2('sha1', 'password', 'salt', 1)."\n";
10 echo "sha1(raw): " . bin2hex(hash_pbkdf2('sha1', 'password', 'salt', 1, 20, TRUE))."\n";
13 echo "sha256: " . hash_pbkdf2('sha256', 'password', 'salt', 1, 20)."\n";
14 echo "sha256(no length): " . hash_pbkdf2('sha256', 'password', 'salt', 1)."\n";
15 echo "sha256(raw): " . bin2hex(hash_pbkdf2('sha256', 'password', 'salt', 1, 20, TRUE))."\n";
/PHP-8.3/ext/standard/tests/password/
H A Dpassword_hash_argon2.phpt10 $password = "the password for testing 12345!";
21 $hash = password_hash($password, $algo);
22 var_dump(password_verify($password, $hash));

Completed in 33 milliseconds

123456789