/PHP-8.2/ext/standard/tests/strings/ |
H A D | sha1_basic.phpt | 2 sha1() with ASCII output. 10 var_dump(sha1("")); 11 var_dump(sha1("a")); 12 var_dump(sha1("abc")); 13 var_dump(sha1("message digest")); 19 var_dump(sha1("", false)); 20 var_dump(sha1("a", false)); 21 var_dump(sha1("abc", false)); 28 var_dump(bin2hex(sha1("", true))); 29 var_dump(bin2hex(sha1("a", true))); [all …]
|
H A D | sha1raw.phpt | 2 sha1() with RAW output 5 echo bin2hex(sha1("abc", TRUE))."\n"; 6 echo bin2hex(sha1("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", TRUE))."\n"; 7 echo bin2hex(sha1("a", TRUE))."\n"; 8 echo bin2hex(sha1("0123456701234567012345670123456701234567012345670123456701234567", TRUE))."\n";
|
H A D | sha1.phpt | 2 sha1() with ASCII output 6 $filename = __DIR__."/sha1.dat"; 16 var_dump($val1 = sha1($str)); 22 var_dump(sha1($str, true));
|
/PHP-8.2/ext/hash/tests/ |
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"; 11 echo "sha1(rounds): " . hash_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsa… 12 echo "sha1(rounds)(raw): " . bin2hex(hash_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltS… 22 sha1: 0c60c80f961f0e71f3a9 23 sha1(no length): 0c60c80f961f0e71f3a9b524af6012062fe037a6 24 sha1(raw): 0c60c80f961f0e71f3a9b524af6012062fe037a6 25 sha1(rounds): 3d2eec4fe41c849b80c8d8366 26 sha1(rounds)(raw): 3d2eec4fe41c849b80c8d83662c0e44a8b291a964cf2f07038
|
H A D | sha1.phpt | 2 Hash: sha1 algorithm 5 echo hash('sha1', '') . "\n"; 6 echo hash('sha1', 'a') . "\n"; 7 echo hash('sha1', '012345678901234567890123456789012345678901234567890123456789') . "\n"; 10 echo hash('sha1', 'abc') . "\n"; 11 echo hash('sha1', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 12 echo hash('sha1', str_repeat('a', 1000000)) . "\n";
|
H A D | bug64745.phpt | 5 $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0); 6 $rawHash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0, true);
|
H A D | hash_serialize_004.phpt | 41 Incomplete or ill-formed serialization data ("sha1" code -1) 42 Incomplete or ill-formed serialization data ("sha1" code -1024) 43 Incomplete or ill-formed serialization data ("sha1" code -1)
|
H A D | hash_hmac_basic.phpt | 20 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n"; 42 sha1: 5bfdb62b97e2c987405463e9f7c193139c0e1fd0
|
H A D | hash_hmac_file_basic.phpt | 40 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n"; 65 sha1: 7f338d17b72371091abd28f451bc8d1f3a9eb3b6
|
H A D | hash_hkdf_error.phpt | 42 fn() => hash_hkdf('sha1', ''), 43 fn() => hash_hkdf('sha1', $ikm, -1), 44 …fn() => hash_hkdf('sha1', $ikm, 20 * 255 + 1) // Length can't be more than 255 times the hash dige…
|
H A D | gh12186_2.phpt | 6 $c = hash_init('sha1');
|
H A D | gh12186_1.phpt | 6 $c = hash_init('sha1');
|
H A D | hash_file_basic1.phpt | 38 echo "sha1: " . hash_file('sha1', $file). "\n"; 72 sha1: 8529b266611e3bd0d208fd9614653c2a8f23d0fe
|
H A D | hash_hkdf_basic.phpt | 13 echo 'sha1: ', bin2hex(hash_hkdf('sha1', $ikm)), "\n"; 54 sha1: a71863230e3782240265126a53e137af6667e988
|
H A D | hash_update_stream_basic_001.phpt | 14 $hash = sha1(bin2hex($bytes));
|
H A D | hash_file_basic.phpt | 14 var_dump( hash_file( 'sha1', $filename ) );
|
H A D | hash_hmac_algos.phpt | 14 [%d] => sha1
|
/PHP-8.2/ext/standard/tests/url/ |
H A D | parse_url_basic_011.phpt | 12 echo 'parse magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C', PHP_EOL; 13 var_dump(parse_url('magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C')); 42 parse magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C 47 string(44) "xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C"
|
/PHP-8.2/ext/session/tests/ |
H A D | bug71162.phpt | 42 return sha1(random_bytes(32)); 59 session_id(sha1('')); 64 session_id(sha1('')); 69 session_id(sha1(''));
|
H A D | gh7787.phpt | 39 return sha1(random_bytes(32)); 70 fn() => sha1(random_bytes(32)),
|
H A D | gh9584.phpt | 37 return sha1(random_bytes(32));
|
/PHP-8.2/ext/openssl/tests/ |
H A D | openssl_x509_fingerprint_basic.phpt | 19 echo "** Testing hash method sha1 with resource **\n"; 21 var_dump(openssl_x509_fingerprint($r, 'sha1')); 35 ** Testing hash method sha1 with resource **
|
H A D | openssl_digest_basic.phpt | 9 $method2 = "sha1";
|
/PHP-8.2/Zend/tests/ |
H A D | bug79668.phpt | 8 foreach (['sha1', 'sha1_file', 'hash', 'password_hash'] as $funcname) {
|
/PHP-8.2/ext/standard/tests/general_functions/ |
H A D | 009.phpt | 6 $res = sha1($str)."\n";
|