/PHP-8.1/ext/sodium/tests/ |
H A D | php_password_hash_argon2i.phpt | 27 $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 D | php_password_hash_argon2id.phpt | 26 $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 D | php_password_verify.phpt | 35 $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.1/ext/openssl/tests/ |
H A D | openssl_decrypt_basic.phpt | 9 $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 D | openssl_pbkdf2_basic.phpt | 10 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 D | openssl_decrypt_error.phpt | 9 $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 D | bug74022_2.phpt | 2 Bug #74022 PHP Fast CGI crashes when reading from a pfx file with valid password, multiple extra ce… 7 function test($p12_contents, $password) { 8 openssl_pkcs12_read($p12_contents, $cert_data, $password);
|
/PHP-8.1/ext/oci8/tests/ |
H A D | persistent.phpt | 10 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 D | drcp_scope2.phpt | 21 $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 D | drcp_scope1.phpt | 21 $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 D | connect_with_charset_001.phpt | 10 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 D | connect_1.phpt | 11 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 D | drcp_scope3.phpt | 21 $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 D | drcp_scope4.phpt | 24 $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 D | drcp_scope5.phpt | 24 $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 D | connect_scope1.phpt | 18 $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 D | connect_scope2.phpt | 18 $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.1/ext/sodium/ |
H A D | sodium_pwhash.c | 72 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.1/ext/standard/ |
H A D | php_password.h | 21 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 D | password.c | 187 if (memchr(ZSTR_VAL(password), '\0', ZSTR_LEN(password))) { in php_password_bcrypt_hash() 214 …result = php_crypt(ZSTR_VAL(password), (int)ZSTR_LEN(password), ZSTR_VAL(hash), (int)ZSTR_LEN(hash… in php_password_bcrypt_hash() 361 ZSTR_VAL(password), in php_password_argon2_hash() 362 ZSTR_LEN(password), in php_password_argon2_hash() 389 …return ARGON2_OK == argon2_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password), Argon2_i… in php_password_argon2i_verify() 408 …return ARGON2_OK == argon2_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password), Argon2_i… in php_password_argon2id_verify() 425 PHP_MINIT_FUNCTION(password) /* {{{ */ in PHP_MINIT_FUNCTION() argument 631 zend_string *password, *hash; in PHP_FUNCTION() local 635 Z_PARAM_STR(password) in PHP_FUNCTION() 647 zend_string *password, *digest = NULL; in PHP_FUNCTION() local [all …]
|
H A D | crypt.c | 82 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.1/ext/soap/tests/bugs/ |
H A D | multiport.phpt | 11 $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.1/ext/hash/tests/ |
H A D | hash_pbkdf2_error.phpt | 6 /* 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 D | hash_pbkdf2_basic.phpt | 8 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.1/ext/standard/tests/password/ |
H A D | password_hash_argon2.phpt | 10 $password = "the password for testing 12345!"; 21 $hash = password_hash($password, $algo); 22 var_dump(password_verify($password, $hash));
|