Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
hash /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
adler32.phpt
535
B
-rw-rw-r--
2022-10-31 11:36
bug52240.phpt
435
B
-rw-rw-r--
2022-10-31 11:36
bug64745.phpt
396
B
-rw-rw-r--
2022-10-31 11:36
bug70312.phpt
894
B
-rw-rw-r--
2022-10-31 11:36
bug73127.phpt
812
B
-rw-rw-r--
2022-10-31 11:36
crc32.phpt
4.73
KB
-rw-rw-r--
2022-10-31 11:36
fnv132.phpt
8.14
KB
-rw-rw-r--
2022-10-31 11:36
fnv164.phpt
9.44
KB
-rw-rw-r--
2022-10-31 11:36
fnv1a32.phpt
17.1
KB
-rw-rw-r--
2022-10-31 11:36
fnv1a64.phpt
19.46
KB
-rw-rw-r--
2022-10-31 11:36
gost.phpt
1.47
KB
-rw-rw-r--
2022-10-31 11:36
hash-clone.phpt
15.82
KB
-rw-rw-r--
2022-10-31 11:36
hash_algos.phpt
2.1
KB
-rw-rw-r--
2022-10-31 11:36
hash_copy_001.phpt
15.83
KB
-rw-rw-r--
2022-10-31 11:36
hash_equals.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
hash_error.phpt
1.26
KB
-rw-rw-r--
2022-10-31 11:36
hash_file_basic.phpt
1.28
KB
-rw-rw-r--
2022-10-31 11:36
hash_file_basic1.phpt
3.31
KB
-rw-rw-r--
2022-10-31 11:36
hash_file_error.phpt
1.84
KB
-rw-rw-r--
2022-10-31 11:36
hash_hkdf_basic.phpt
5.07
KB
-rw-rw-r--
2022-10-31 11:36
hash_hkdf_edges.phpt
1
KB
-rw-rw-r--
2022-10-31 11:36
hash_hkdf_error.phpt
3.15
KB
-rw-rw-r--
2022-10-31 11:36
hash_hkdf_rfc5869.phpt
4.69
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_algos.phpt
1.05
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_basic.phpt
2.93
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_error.phpt
1.82
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_file_basic.phpt
3.74
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_file_error.phpt
2.15
KB
-rw-rw-r--
2022-10-31 11:36
hash_init_error.phpt
1.33
KB
-rw-rw-r--
2022-10-31 11:36
hash_pbkdf2_basic.phpt
2.04
KB
-rw-rw-r--
2022-10-31 11:36
hash_pbkdf2_error.phpt
2.72
KB
-rw-rw-r--
2022-10-31 11:36
hash_update_file.phpt
515
B
-rw-rw-r--
2022-10-31 11:36
hash_update_stream.phpt
350
B
-rw-rw-r--
2022-10-31 11:36
haval.phpt
3.89
KB
-rw-rw-r--
2022-10-31 11:36
hmac-md5.phpt
523
B
-rw-rw-r--
2022-10-31 11:36
joaat.phpt
510
B
-rw-rw-r--
2022-10-31 11:36
md2.phpt
675
B
-rw-rw-r--
2022-10-31 11:36
md4.phpt
698
B
-rw-rw-r--
2022-10-31 11:36
md5.phpt
386
B
-rw-rw-r--
2022-10-31 11:36
mhash_001.phpt
1.39
KB
-rw-rw-r--
2022-10-31 11:36
mhash_002.phpt
1.15
KB
-rw-rw-r--
2022-10-31 11:36
mhash_003.phpt
3.17
KB
-rw-rw-r--
2022-10-31 11:36
mhash_004.phpt
346
B
-rw-rw-r--
2022-10-31 11:36
new-context.phpt
253
B
-rw-rw-r--
2022-10-31 11:36
reuse.phpt
270
B
-rw-rw-r--
2022-10-31 11:36
ripemd128.phpt
937
B
-rw-rw-r--
2022-10-31 11:36
ripemd160.phpt
1009
B
-rw-rw-r--
2022-10-31 11:36
ripemd256.phpt
1.2
KB
-rw-rw-r--
2022-10-31 11:36
ripemd320.phpt
1.34
KB
-rw-rw-r--
2022-10-31 11:36
serialize-context.phpt
246
B
-rw-rw-r--
2022-10-31 11:36
sha1.phpt
648
B
-rw-rw-r--
2022-10-31 11:36
sha224.phpt
758
B
-rw-rw-r--
2022-10-31 11:36
sha256.phpt
806
B
-rw-rw-r--
2022-10-31 11:36
sha3.phpt
3.67
KB
-rw-rw-r--
2022-10-31 11:36
sha384.phpt
1.03
KB
-rw-rw-r--
2022-10-31 11:36
sha512-224.phpt
456
B
-rw-rw-r--
2022-10-31 11:36
sha512-256.phpt
480
B
-rw-rw-r--
2022-10-31 11:36
sha512.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
snefru.phpt
773
B
-rw-rw-r--
2022-10-31 11:36
tiger.phpt
533
B
-rw-rw-r--
2022-10-31 11:36
whirlpool.phpt
642
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Hash: hash_hmac_file() function : basic functionality --FILE-- <?php /* Prototype : string hash_hmac_file ( string algo, string filename, string key [, bool raw_output] ) * Description: Generate a keyed hash value using the HMAC method and the contents of a given file * Source code: ext/hash/hash.c * Alias to functions: */ echo "*** Testing hash_hmac_file() : basic functionality ***\n"; $file = __DIR__ . "hash_hmac_file.txt"; /* Creating a temporary file file */ if (($fp = fopen( $file, "w+")) == FALSE) { echo "Cannot create file ($file)"; exit; } /* Writing into file */ $content = "This is a sample string used to test the hash_hmac_file function with various hashing algorithms"; if (is_writable($file)) { if (fwrite($fp, $content) === FALSE) { echo "Cannot write to file ($file)"; exit; } } // close the files fclose($fp); $key = 'secret'; echo "gost: " . hash_hmac_file('gost', $file, $key) . "\n"; echo "haval128,3: " . hash_hmac_file('haval128,3', $file, $key) . "\n"; echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n"; echo "md4: " . hash_hmac_file('md4', $file, $key) . "\n"; echo "md5: " . hash_hmac_file('md5', $file, $key) . "\n"; echo "ripemd128: " . hash_hmac_file('ripemd128', $file, $key) . "\n"; echo "ripemd160: " . hash_hmac_file('ripemd160', $file, $key) . "\n"; echo "ripemd256: " . hash_hmac_file('ripemd256', $file, $key) . "\n"; echo "ripemd320: " . hash_hmac_file('ripemd320', $file, $key) . "\n"; echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n"; echo "sha256: " . hash_hmac_file('sha256', $file, $key) . "\n"; echo "sha384: " . hash_hmac_file('sha384', $file, $key) . "\n"; echo "sha512: " . hash_hmac_file('sha512', $file, $key) . "\n"; echo "snefru: " . hash_hmac_file('snefru', $file, $key) . "\n"; echo "tiger192,3: " . hash_hmac_file('tiger192,3', $file, $key) . "\n"; echo "whirlpool: " . hash_hmac_file('whirlpool', $file, $key) . "\n"; echo "md5(raw): " . bin2hex(hash_hmac_file('md5', $file, $key, TRUE)). "\n"; echo "sha256(raw): " . bin2hex(hash_hmac_file('sha256', $file, $key, TRUE)). "\n"; echo "Error cases:\n"; hash_hmac_file(); hash_hmac_file('foo', $file); hash_hmac_file('foo', $file, $key, TRUE, 10); unlink($file); ?> ===Done=== --EXPECTF-- *** Testing hash_hmac_file() : basic functionality *** gost: 94c39a40d5db852a8dc3d24e37eebf2d53e3d711457c59cd02b614f792a9d918 haval128,3: f1cea637451097d790354a86de3f54a3 md2: a685475e600314bb549ab4f33c3b27cb md4: cbc6bff781f48f57378d3effa27553e4 md5: 8bddf39dd1c566c27acc7fa85ec36acf ripemd128: 03269b76bf61d508c50f038cbe9ba691 ripemd160: 94652211292268d97eb63344a3a05d3009f9d2d3 ripemd256: b6ab414cc1630e1e474fefa41976d252f38ca7cf401552774e71736165e512e7 ripemd320: 71271a649265740eed4b9931417f979fd81eba6288f4e08ff2997bc3dd6858da054d53a9f1fffe8c sha1: 7f338d17b72371091abd28f451bc8d1f3a9eb3b6 sha256: 9135286ca4c84dec711e4b831f6cd39e672e5ff93d011321274eb76733cc1e40 sha384: 364fdc45a4c742763366ab5d3d1c17c24057e6c3b641607a36d969f00c88da25b19c8b88c8632411e3a0a02397f88aca sha512: d460aabdf0353655059ed0d408efa91f19c4cda46acc2a4e0adf4764b06951c899fbb2ed41519db78b58ff7be17b1b2910aebe674a56861b232143571b35c83f snefru: 7b79787e1c1d926b6cc98327f05c5d04ba6227ab51c1398661861196016ef34c tiger192,3: ca89badf843ba68e3fae5832635aa848a72a4bc11676edd4 whirlpool: 37a0fbb90547690d5e5e11c046f6654ffdb7bab15e16d9d79c7d85765cc4bdcbfd9df8db7a3ce9558f3f244fead00ca29cf05297f75596555195a0683f15d69f md5(raw): 8bddf39dd1c566c27acc7fa85ec36acf sha256(raw): 9135286ca4c84dec711e4b831f6cd39e672e5ff93d011321274eb76733cc1e40 Error cases: Warning: hash_hmac_file() expects at least 3 parameters, 0 given in %s on line %d Warning: hash_hmac_file() expects at least 3 parameters, 2 given in %s on line %d Warning: hash_hmac_file() expects at most 4 parameters, 5 given in %s on line %d ===Done===