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_file() function : basic functionality --FILE-- <?php /* Prototype : string hash_file ( string algo, string filename [, bool raw_output] ) * Description: Generate a hash value using the contents of a given file * Source code: ext/hash/hash.c * Alias to functions: */ echo "*** Testing hash_file() : basic functionality ***\n"; $file = __DIR__ . "hash_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_file function with various hashing algorithms"; if (is_writable($file)) { if (fwrite($fp, $content) === FALSE) { echo "Cannot write to file ($file)"; exit; } } // close the file fclose($fp); echo "adler32: " . hash_file('adler32', $file) . "\n"; echo "crc32: " . hash_file('crc32', $file) . "\n"; echo "gost: " . hash_file('gost', $file). "\n"; echo "haval128,3: " . hash_file('haval128,3', $file). "\n"; echo "md2: " . hash_file('md2', $file). "\n"; echo "md4: " . hash_file('md4', $file). "\n"; echo "md5: " . hash_file('md5', $file). "\n"; echo "ripemd128: " . hash_file('ripemd128', $file). "\n"; echo "ripemd160: " . hash_file('ripemd160', $file). "\n"; echo "ripemd256: " . hash_file('ripemd256', $file). "\n"; echo "ripemd320: " . hash_file('ripemd320', $file). "\n"; echo "sha1: " . hash_file('sha1', $file). "\n"; echo "sha256: " . hash_file('sha256', $file). "\n"; echo "sha384: " . hash_file('sha384', $file). "\n"; echo "sha512: " . hash_file('sha512', $file). "\n"; echo "snefru: " . hash_file('snefru', $file). "\n"; echo "tiger192,3: " . hash_file('tiger192,3', $file). "\n"; echo "whirlpool: " . hash_file('whirlpool', $file). "\n"; echo "adler32(raw): " . bin2hex(hash_file('adler32', $file, TRUE)) . "\n"; echo "md5(raw): " . bin2hex(hash_file('md5', $file, TRUE)). "\n"; echo "sha256(raw): " . bin2hex(hash_file('sha256', $file, TRUE)). "\n"; unlink($file); ?> ===Done=== --EXPECT-- *** Testing hash_file() : basic functionality *** adler32: ff87222e crc32: 61664d33 gost: d9e65f0c0c2ef944e4f8a01f4a46365c4f33a2853756878182a7f03e1490a4cd haval128,3: c25962b13383c3ed9f13817c8f2ae7d6 md2: 70f791c0d8fa9edd7d08e32fcba8c354 md4: a9d034b16bb290c57a645afd6f14cd3b md5: 704bf818448f5bbb94061332d2c889aa ripemd128: d02a5f320a11c54c7d51f933b0bd8471 ripemd160: 3ff296ca6314313af3ed0437c8fc0ebbd3242d3b ripemd256: 0edd779587c11cf32781111b264251eb37529832fb207121cd45dd95002e48a8 ripemd320: bf162fa2ff20491b3016c5d8190f8ee47d7dcda8c38eaf6779349a243a029d275eec9adf16ec1b35 sha1: 8529b266611e3bd0d208fd9614653c2a8f23d0fe sha256: a0f5702fa5d3670b80033d668e8732b70550392abb53841355447f8bb0f72245 sha384: a35d875ed96d94b6452acad910f97978200faa2398d8a0e6b9cffa33704c3809e3d2e5b0d63700d8f32a0716e7d2d528 sha512: 1f42adaf938fbf136e381b164bae5f984c7f9fe60c82728bd889c14f187c7d63e81a0305a1731c7e0a8f3ed9fd2ec92a3833a93502bdf269532601f0b8e2bab0 snefru: d414b2345d3e7fa1a31c044cf334bfc1fec24d89e464411998d579d24663895f tiger192,3: 7acf4ebea075fac6fc8ea0e2b4af3cfa71b9460e4c53403a whirlpool: 4248b149e000477269a4a5f1a84d97cfc3d0199b7aaf505913e6f010a6f83276029d11a9ad545374bc710eb59c7d958985023ab886ffa9ec9a23852844c764ec adler32(raw): ff87222e md5(raw): 704bf818448f5bbb94061332d2c889aa sha256(raw): a0f5702fa5d3670b80033d668e8732b70550392abb53841355447f8bb0f72245 ===Done===