Home
last modified time | relevance | path

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

123456789

/PHP-8.0/ext/sodium/tests/
H A Dphp_password_hash_argon2i.phpt25 $password = random_bytes(32);
26 echo "Using password: ";
27 var_dump(base64_encode($password));
28 $hash = password_hash($password, 'argon2i', $opts);
30 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
33 $password[0] = chr(ord($password[0]) ^ 1);
34 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
40 Using password: string(44) "%s"
44 Using password: string(44) "%s"
48 Using password: string(44) "%s"
[all …]
H A Dphp_password_hash_argon2id.phpt24 $password = random_bytes(32);
25 echo "Using password: ";
26 var_dump(base64_encode($password));
27 $hash = password_hash($password, 'argon2id', $opts);
29 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
32 $password[0] = chr(ord($password[0]) ^ 1);
33 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
39 Using password: string(44) "%s"
43 Using password: string(44) "%s"
47 Using password: string(44) "%s"
[all …]
H A Dphp_password_verify.phpt33 $password = random_bytes(32);
34 echo "Using password: ";
35 var_dump(base64_encode($password));
36 $hash = sodium_crypto_pwhash_str($password, $ops, $mem);
38 var_dump(password_verify($password, $hash));
41 $password[0] = chr(ord($password[0]) ^ 1);
42 var_dump(password_verify($password, $hash));
48 Using password: string(44) "%s"
52 Using password: string(44) "%s"
56 Using password: string(44) "%s"
[all …]
/PHP-8.0/ext/imap/tests/
H A Dimap_errors_basic.phpt2 Test imap_errors() function : invalid password
9 echo "*** Testing imap_errors() : invalid password ***\n";
11 $password = "bogus"; // invalid password to use in this test
13 echo "Issue opening with invalid password, 1 retry\n";
14 $mbox = imap_open(IMAP_DEFAULT_MAILBOX, IMAP_MAILBOX_USERNAME, $password, OP_READONLY, 1);
21 *** Testing imap_errors() : invalid password ***
22 Issue opening with invalid password, 1 retry
/PHP-8.0/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 $encrypted = openssl_encrypt($data, "bf-ecb", $password, OPENSSL_DONT_ZERO_PAD_KEY);
29 $output = openssl_decrypt($encrypted, "bf-ecb", $password, OPENSSL_DONT_ZERO_PAD_KEY);
34 openssl_encrypt($data, $method, $password, 0, $iv, $tag);
H A Dopenssl_pbkdf2_basic.phpt8 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 1)));
9 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 2)));
10 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 4096)));
14 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));
/PHP-8.0/ext/oci8/tests/
H A Dpersistent.phpt10 var_dump(oci_pconnect($user, $password, $dbase));
11 var_dump(oci_pconnect($user, $password, $dbase));
12 var_dump(oci_pconnect($user, $password, $dbase));
13 var_dump(oci_connect($user, $password, $dbase));
14 var_dump(oci_connect($user, $password, $dbase));
15 var_dump(oci_connect($user, $password, $dbase));
H A Ddrcp_scope1.phpt21 $c = oci_new_connect($user,$password,$dbase);
28 function1($user,$password,$dbase,$conn_type);
31 function2($user,$password,$dbase,$conn_type);
36 function1($user,$password,$dbase,$conn_type);
39 function2($user,$password,$dbase,$conn_type);
43 function function1($user,$password,$dbase,$conn_type)
48 var_dump($conn1 = oci_new_connect($user,$password,$dbase));
51 var_dump($conn1 = oci_connect($user,$password,$dbase));
59 function function2($user,$password,$dbase,$conn_type)
64 var_dump($conn1 = oci_new_connect($user,$password,$dbase));
[all …]
H A Ddrcp_scope2.phpt21 $c = oci_new_connect($user,$password,$dbase);
28 function1($user,$password,$dbase,$conn_type);
31 function2($user,$password,$dbase,$conn_type);
36 function1($user,$password,$dbase,$conn_type);
39 function2($user,$password,$dbase,$conn_type);
43 function function1($user,$password,$dbase,$conn_type)
48 var_dump($conn1 = oci_new_connect($user,$password,$dbase));
51 var_dump($conn1 = oci_connect($user,$password,$dbase));
59 function function2($user,$password,$dbase,$conn_type)
64 var_dump($conn1 = oci_new_connect($user,$password,$dbase));
[all …]
H A Dconnect_with_charset_001.phpt10 var_dump($c1 = oci_connect($user, $password, $dbase));
11 var_dump($c2 = oci_connect($user, $password, $dbase, ""));
12 var_dump($c3 = oci_connect($user, $password, $dbase, "blah"));
13 var_dump($c4 = oci_connect($user, $password, $dbase, "obviously wrong"));
17 var_dump($c5 = oci_connect($user, $password, $dbase, "US7ASCII"));
18 var_dump($c6 = oci_connect($user, $password, $dbase, "UTF8"));
H A Dconnect_1.phpt11 var_dump($c1 = oci_pconnect($user, $password, $dbase));
14 var_dump($c1 = oci_pconnect($user, $password));
18 var_dump($c2 = oci_new_connect($user, $password, $dbase));
21 var_dump($c2 = oci_new_connect($user, $password));
H A Ddrcp_scope3.phpt21 $c = oci_new_connect($user,$password,$dbase);
26 function1($user,$password,$dbase);
29 function2($user,$password,$dbase);
33 function function1($user,$password,$dbase)
35 var_dump($c = oci_pconnect($user,$password,$dbase));
41 function function2($user,$password,$dbase)
43 var_dump($c = oci_pconnect($user,$password,$dbase));
H A Ddrcp_scope4.phpt24 $c = oci_new_connect($user,$password,$dbase);
29 function1($user,$password,$dbase);
32 function2($user,$password,$dbase);
36 function function1($user,$password,$dbase)
38 var_dump($c = oci_pconnect($user,$password,$dbase));
44 function function2($user,$password,$dbase)
46 var_dump($c = oci_pconnect($user,$password,$dbase));
H A Ddrcp_scope5.phpt24 $c = oci_new_connect($user,$password,$dbase);
29 function1($user,$password,$dbase);
32 function2($user,$password,$dbase);
36 function function1($user,$password,$dbase)
38 var_dump($c = oci_pconnect($user,$password,$dbase));
44 function function2($user,$password,$dbase)
46 var_dump($c = oci_pconnect($user,$password,$dbase));
H A Dconnect_scope1.phpt18 $c1 = oci_new_connect($user,$password,$dbase);
20 $c1 = oci_new_connect($user,$password);
30 global $user, $password, $dbase;
33 $c = oci_connect($user,$password,$dbase);
35 $c = oci_connect($user,$password);
H A Dconnect_scope2.phpt18 $c1 = oci_new_connect($user,$password,$dbase);
20 $c1 = oci_new_connect($user,$password);
30 global $user, $password, $dbase;
33 $c = oci_pconnect($user,$password,$dbase);
35 $c = oci_pconnect($user,$password);
/PHP-8.0/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 zend_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.0/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 zend_bool (*verify)(const zend_string *password, const zend_string *hash);
41 zend_bool (*needs_rehash)(const zend_string *password, zend_array *options);
H A Dpassword.c209 …result = php_crypt(ZSTR_VAL(password), (int)ZSTR_LEN(password), ZSTR_VAL(hash), (int)ZSTR_LEN(hash… in php_password_bcrypt_hash()
356 ZSTR_VAL(password), in php_password_argon2_hash()
357 ZSTR_LEN(password), in php_password_argon2_hash()
384 …return ARGON2_OK == argon2_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password), Argon2_i… in php_password_argon2i_verify()
403 …return ARGON2_OK == argon2_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password), Argon2_i… in php_password_argon2id_verify()
420 PHP_MINIT_FUNCTION(password) /* {{{ */ in PHP_MINIT_FUNCTION() argument
626 zend_string *password, *hash; in PHP_FUNCTION() local
630 Z_PARAM_STR(password) in PHP_FUNCTION()
642 zend_string *password, *digest = NULL; in PHP_FUNCTION() local
650 Z_PARAM_STR(password) in PHP_FUNCTION()
[all …]
H A Dcrypt.c82 PHPAPI zend_string *php_crypt(const char *password, const int pass_len, const char *salt, int salt_… in php_crypt() argument
100 out = php_md5_crypt_r(password, salt, output); in php_crypt()
109 crypt_res = php_sha512_crypt_r(password, salt, output, PHP_MAX_SALT_LEN); in php_crypt()
124 crypt_res = php_sha256_crypt_r(password, salt, output, PHP_MAX_SALT_LEN); in php_crypt()
144 crypt_res = php_crypt_blowfish_rn(password, salt, output, sizeof(output)); in php_crypt()
159 crypt_res = _crypt_extended_r((const unsigned char *) password, salt, &buffer); in php_crypt()
182 crypt_res = crypt_r(password, salt, &buffer); in php_crypt()
184 crypt_res = crypt(password, salt); in php_crypt()
/PHP-8.0/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.0/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.0/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 28 milliseconds

123456789