Home
last modified time | relevance | path

Searched refs:sha1 (Results 1 – 25 of 44) sorted by relevance

12

/PHP-7.4/ext/standard/tests/strings/
H A Dsha1_basic.phpt2 sha1() with ASCII output.
13 var_dump(sha1(""));
14 var_dump(sha1("a"));
15 var_dump(sha1("abc"));
16 var_dump(sha1("message digest"));
22 var_dump(sha1("", false));
23 var_dump(sha1("a", false));
24 var_dump(sha1("abc", false));
31 var_dump(bin2hex(sha1("", true)));
32 var_dump(bin2hex(sha1("a", true)));
[all …]
H A Dsha1raw.phpt2 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 Dsha1.phpt2 sha1() with ASCII output
6 $filename = __DIR__."/sha1.dat";
16 var_dump($val1 = sha1($str));
22 var_dump(sha1($str, true));
/PHP-7.4/ext/hash/tests/
H A Dhash_pbkdf2_basic.phpt14 echo "sha1: " . hash_pbkdf2('sha1', 'password', 'salt', 1, 20)."\n";
15 echo "sha1(no length): " . hash_pbkdf2('sha1', 'password', 'salt', 1)."\n";
16 echo "sha1(raw): " . bin2hex(hash_pbkdf2('sha1', 'password', 'salt', 1, 20, TRUE))."\n";
17 echo "sha1(rounds): " . hash_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsa…
18 echo "sha1(rounds)(raw): " . bin2hex(hash_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltS…
29 sha1: 0c60c80f961f0e71f3a9
30 sha1(no length): 0c60c80f961f0e71f3a9b524af6012062fe037a6
31 sha1(raw): 0c60c80f961f0e71f3a9b524af6012062fe037a6
32 sha1(rounds): 3d2eec4fe41c849b80c8d8366
33 sha1(rounds)(raw): 3d2eec4fe41c849b80c8d83662c0e44a8b291a964cf2f07038
H A Dsha1.phpt2 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 Dbug64745.phpt5 $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0);
6 $rawHash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0, true);
H A Dhash_hkdf_error.phpt17 var_dump(hash_hkdf('sha1'));
20 var_dump(hash_hkdf('sha1', $ikm, 20, '', '', 'extra parameter'));
36 var_dump(hash_hkdf('sha1', ''));
37 var_dump(hash_hkdf('sha1', $ikm, -1));
38 var_dump(hash_hkdf('sha1', $ikm, 20 * 255 + 1)); // Length can't be more than 255 times the hash di…
H A Dhash_hmac_basic.phpt26 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n";
49 sha1: 5bfdb62b97e2c987405463e9f7c193139c0e1fd0
H A Dhash_file_basic1.phpt44 echo "sha1: " . hash_file('sha1', $file). "\n";
73 sha1: 8529b266611e3bd0d208fd9614653c2a8f23d0fe
H A Dhash_hmac_file_basic.phpt46 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n";
77 sha1: 7f338d17b72371091abd28f451bc8d1f3a9eb3b6
H A Dhash_hkdf_basic.phpt18 echo 'sha1: ', bin2hex(hash_hkdf('sha1', $ikm)), "\n";
59 sha1: a71863230e3782240265126a53e137af6667e988
H A Dhash_hmac_algos.phpt13 [%d] => sha1
H A Dhash_file_basic.phpt20 var_dump( hash_file( 'sha1', $filename ) );
H A Dhash_hkdf_rfc5869.phpt38 'sha1',
46 'sha1',
54 'sha1',
62 'sha1',
/PHP-7.4/ext/session/tests/
H A Dbug71162.phpt40 return sha1(random_bytes(32));
57 session_id(sha1(''));
62 session_id(sha1(''));
67 session_id(sha1(''));
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_x509_fingerprint_basic.phpt22 echo "** Testing hash method sha1 with resource **\n";
24 var_dump(openssl_x509_fingerprint($r, 'sha1'));
42 ** Testing hash method sha1 with resource **
H A Dopenssl_digest_basic.phpt9 $method2 = "sha1";
H A Dopenssl_csr_get_public_key_basic.phpt28 "digest_alg" => "sha1",
H A Dbug55646.phpt14 "digest_alg" => "sha1",
H A Dopenssl_csr_get_subject_basic.phpt28 "digest_alg" => "sha1",
/PHP-7.4/ext/standard/
H A Dsha1.h36 PHP_FUNCTION(sha1);
/PHP-7.4/Zend/tests/
H A Dbug79668.phpt8 foreach (['sha1', 'sha1_file', 'hash', 'password_hash'] as $funcname) {
/PHP-7.4/ext/standard/tests/general_functions/
H A D009.phpt6 $res = sha1($str)."\n";
/PHP-7.4/ext/hash/
H A Dphp_hash_sha.h46 PHP_FUNCTION(sha1);
/PHP-7.4/ext/phar/tests/
H A Dtest_signaturealgos.phpt14 $a = new Phar(__DIR__ . '/files/sha1.phar');

Completed in 29 milliseconds

12