/php-src/ext/standard/tests/crypt/ |
H A D | bcrypt_invalid_cost.phpt | 5 var_dump(crypt("test", "$2a$4$1234567891234567891234567")); 6 var_dump(crypt("test", "$2a$00$1234567891234567891234567")); 7 var_dump(crypt("test", "$2a$01$1234567891234567891234567")); 8 var_dump(crypt("test", "$2a$02$1234567891234567891234567")); 9 var_dump(crypt("test", "$2a$03$1234567891234567891234567")); 10 var_dump(crypt("test", "$2a$32$1234567891234567891234567")); 11 var_dump(crypt("test", "$2a$40$1234567891234567891234567"));
|
H A D | bcrypt_invalid_algorithm.phpt | 5 var_dump(crypt("test", "$23$04$1234567890123456789012345")); 6 var_dump(crypt("test", "$20$04$1234567890123456789012345")); 7 var_dump(crypt("test", "$2g$04$1234567890123456789012345"));
|
H A D | des_fallback_invalid_salt.phpt | 8 // crypt() will fail on these inputs as well. 9 var_dump(crypt("test", "$:#")); 10 var_dump(crypt("test", "$:5zd$01\n"));
|
H A D | bcrypt_salt_dollar.phpt | 7 $result = crypt("foo", $salt);
|
/php-src/ext/standard/tests/strings/ |
H A D | crypt_chars.phpt | 2 crypt() function - characters > 0x80 5 var_dump(crypt("À1234abcd", "99")); 6 var_dump(crypt("À9234abcd", "99")); 7 var_dump(crypt("À1234abcd", "_01234567")); 8 var_dump(crypt("À9234abcd", "_01234567"));
|
H A D | bug54721.phpt | 5 echo crypt("", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n"; 6 echo crypt("b", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n"; 7 echo crypt("bu", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n"; 8 echo crypt("bug", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n"; 9 echo crypt("pass", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n"; 10 echo crypt("buged", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n"; 11 echo crypt("aaaaaaaaaaaaaaaaaaaaaaaaa ", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
|
H A D | crypt.phpt | 2 crypt() function 16 echo (CRYPT_STD_DES) ? ((crypt($str, $salt1) === $res_1) ? 'STD' : 'STD - ERROR') : 'STD', "\n"; 17 echo (CRYPT_EXT_DES) ? ((crypt($str, $salt2) === $res_2) ? 'EXT' : 'EXT - ERROR') : 'EXT', "\n"; 18 echo (CRYPT_MD5) ? ((crypt($str, $salt3) === $res_3) ? 'MD5' : 'MD5 - ERROR') : 'MD5', "\n"; 19 echo (CRYPT_BLOWFISH) ? ((crypt($str, $salt4) === $res_4) ? 'BLO' : 'BLO - ERROR') : 'BLO', "\n"; 22 var_dump(crypt($str)); 33 crypt() expects exactly 2 arguments, 1 given
|
H A D | crypt_blowfish_variation1.phpt | 2 Test Blowfish crypt() with invalid rounds 15 $crypt = crypt('U*U', $salt); 16 if ($crypt === '*0' || $crypt === '*1') {
|
H A D | crypt_variation1.phpt | 2 crypt() function - long salt 7 echo crypt("A", "$5$" . $b)."\n"; 9 echo crypt("A", "$5$" . $b)."\n"; 11 echo crypt("A", "$5$" . $b)."\n";
|
H A D | crypt_blowfish_variation2.phpt | 2 Test Blowfish crypt() does not fall back to DES when rounds are not specified, 6 $crypt = crypt('U*U', '$2a$CCCCCCCCCCCCCCCCCCCCC.E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW'); 7 if ($crypt==='*0') {
|
H A D | bug73058.phpt | 2 Bug #73058 crypt broken when salt is 'too' long 8 var_dump(crypt($pass, $salt)); 11 var_dump(crypt($pass, $salt)); 14 var_dump(crypt($pass, $salt));
|
H A D | crypt_des_error.phpt | 2 crypt(): *0 should return *1 6 var_dump(crypt('foo', '*0'));
|
H A D | bug62443.phpt | 5 crypt("foo", '$5$'.chr(0).'abc'); 6 crypt("foo", '$6$'.chr(0).'abc');
|
H A D | bug51059.phpt | 2 Bug #51059 crypt() segfaults on certain salts 5 $res = crypt('a', '_');
|
H A D | crypt_sha256.phpt | 2 crypt() SHA-256 43 // The "too many rounds" behavior depends on the crypt() 53 $res = crypt($t[1], $t[0]);
|
H A D | crypt_sha512.phpt | 2 crypt() SHA-512 55 $res = crypt($t[1], $t[0]);
|
H A D | bug50052.phpt | 8 echo crypt($password,$salt) . "\n";
|
H A D | crypt_blowfish.phpt | 49 $result = crypt($test[1], $test[0]); 59 $result = crypt('', $test[0]);
|
/php-src/ext/standard/ |
H A D | php_crypt.h | 23 PHP_MINIT_FUNCTION(crypt); 24 PHP_MSHUTDOWN_FUNCTION(crypt); 25 PHP_RINIT_FUNCTION(crypt);
|
H A D | config.m4 | 94 AC_SEARCH_LIBS([crypt], [crypt], 99 AC_SEARCH_LIBS([crypt_r], [crypt], 105 AC_CHECK_HEADERS([crypt.h]) 114 #include <crypt.h> 135 #include <crypt.h> 156 #include <crypt.h> 173 encrypted = crypt("rasmuslerdorf",salt); 187 #include <crypt.h> 216 #include <crypt.h> 243 #include <crypt.h> [all …]
|
H A D | crypt.c | 50 PHP_MINIT_FUNCTION(crypt) /* {{{ */ in PHP_MINIT_FUNCTION() argument 60 PHP_MSHUTDOWN_FUNCTION(crypt) /* {{{ */ in PHP_MSHUTDOWN_FUNCTION() argument 172 crypt_res = crypt(password, salt); in php_crypt() 174 # error No crypt() implementation in php_crypt() 201 PHP_FUNCTION(crypt) in PHP_FUNCTION() argument
|
H A D | config.w32 | 20 …T_R", 1, "Define to 1 if PHP uses its own crypt_r, and to 0 if using the external crypt library."); 27 crc32.c crypt.c crypt_freesec.c crypt_blowfish.c crypt_sha256.c \
|
/php-src/ext/standard/tests/password/ |
H A D | password_needs_rehash.phpt | 37 var_dump(password_needs_rehash(crypt('Example', '$1$'), PASSWORD_DEFAULT)); 40 var_dump(password_needs_rehash(crypt('Example', '$6$rounds=5000$aa$'), PASSWORD_DEFAULT));
|
H A D | password_hash.phpt | 19 var_dump($hash === crypt("foo", $hash));
|
/php-src/ext/openssl/tests/ |
H A D | openssl_error_string_basic_openssl3.phpt | 126 expect_openssl_errors('openssl_private_(en|de)crypt padding', ['1C8000A5']); 172 openssl_private_(en|de)crypt padding: ok
|