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 /
sodium /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
bug78114.phpt
355
B
-rw-rw-r--
2022-10-31 11:36
bug78516.phpt
725
B
-rw-rw-r--
2022-10-31 11:36
crypto_aead.phpt
4.23
KB
-rw-rw-r--
2022-10-31 11:36
crypto_auth.phpt
1.09
KB
-rw-rw-r--
2022-10-31 11:36
crypto_box.phpt
5.09
KB
-rw-rw-r--
2022-10-31 11:36
crypto_generichash.phpt
2.7
KB
-rw-rw-r--
2022-10-31 11:36
crypto_hex.phpt
426
B
-rw-rw-r--
2022-10-31 11:36
crypto_kdf.phpt
1.48
KB
-rw-rw-r--
2022-10-31 11:36
crypto_kx.phpt
1.58
KB
-rw-rw-r--
2022-10-31 11:36
crypto_scalarmult.phpt
582
B
-rw-rw-r--
2022-10-31 11:36
crypto_secretbox.phpt
606
B
-rw-rw-r--
2022-10-31 11:36
crypto_secretstream.phpt
1.98
KB
-rw-rw-r--
2022-10-31 11:36
crypto_shorthash.phpt
586
B
-rw-rw-r--
2022-10-31 11:36
crypto_sign.phpt
2.88
KB
-rw-rw-r--
2022-10-31 11:36
crypto_stream.phpt
1.16
KB
-rw-rw-r--
2022-10-31 11:36
exception_trace_without_args.phpt
421
B
-rw-rw-r--
2022-10-31 11:36
inc_add.phpt
909
B
-rw-rw-r--
2022-10-31 11:36
installed.phpt
467
B
-rw-rw-r--
2022-10-31 11:36
php_password_hash_argon2i.phpt
2.08
KB
-rw-rw-r--
2022-10-31 11:36
php_password_hash_argon2id.phpt
2.09
KB
-rw-rw-r--
2022-10-31 11:36
php_password_verify.phpt
2.36
KB
-rw-rw-r--
2022-10-31 11:36
pwhash_argon2i.phpt
1.52
KB
-rw-rw-r--
2022-10-31 11:36
pwhash_scrypt.phpt
1.09
KB
-rw-rw-r--
2022-10-31 11:36
sodium_error_001.phpt
639
B
-rw-rw-r--
2022-10-31 11:36
utils.phpt
3.45
KB
-rw-rw-r--
2022-10-31 11:36
version.phpt
283
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Check for libsodium generichash --SKIPIF-- <?php if (!extension_loaded("sodium")) print "skip"; ?> --FILE-- <?php $q = sodium_crypto_generichash('msg'); var_dump(bin2hex($q)); $q = sodium_crypto_generichash('msg', '0123456789abcdef'); var_dump(bin2hex($q)); $q = sodium_crypto_generichash('msg', '0123456789abcdef', 64); var_dump(bin2hex($q)); $q = sodium_crypto_generichash('msg', '0123456789abcdef0123456789abcdef', 64); var_dump(bin2hex($q)); $state = sodium_crypto_generichash_init(); $q = sodium_crypto_generichash_final($state); var_dump(bin2hex($q)); $state = sodium_crypto_generichash_init(); sodium_crypto_generichash_update($state, 'm'); sodium_crypto_generichash_update($state, 'sg'); $q = sodium_crypto_generichash_final($state); var_dump(bin2hex($q)); $state = sodium_crypto_generichash_init('0123456789abcdef'); sodium_crypto_generichash_update($state, 'm'); sodium_crypto_generichash_update($state, 'sg'); $q = sodium_crypto_generichash_final($state); var_dump(bin2hex($q)); $state = sodium_crypto_generichash_init('0123456789abcdef', 64); sodium_crypto_generichash_update($state, 'm'); sodium_crypto_generichash_update($state, 'sg'); $state2 = '' . $state; $q = sodium_crypto_generichash_final($state, 64); var_dump(bin2hex($q)); sodium_crypto_generichash_update($state2, '2'); $q = sodium_crypto_generichash_final($state2, 64); $exp = bin2hex($q); var_dump($exp); $act = bin2hex( sodium_crypto_generichash('msg2', '0123456789abcdef', 64) ); var_dump($act); var_dump($exp === $act); try { $hash = sodium_crypto_generichash('test', '', 128); } catch (SodiumException $ex) { var_dump(true); } ?> --EXPECT-- string(64) "96a7ed8861db0abc006f473f9e64687875f3d9df8e723adae9f53a02b2aec378" string(64) "ba03e32a94ece425a77b350f029e0a3d37e6383158aa7cefa2b1b9470a7fcb7a" string(128) "8ccd640462e7380010c5722d7f3c2354781d1360430197ff233509c27353fd2597c8d689bfe769467056a0655b3faba6af4e4ade248558f7c53538c4d5b94806" string(128) "30f0e5f1e3beb7e0340976ac05a94043cce082d870e28e03c906e8fe9a88786271c6ba141eee2885e7444a870fac498cc78a13b0c53aefaec01bf38ebfe73b3f" string(64) "0e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a8" string(64) "96a7ed8861db0abc006f473f9e64687875f3d9df8e723adae9f53a02b2aec378" string(64) "ba03e32a94ece425a77b350f029e0a3d37e6383158aa7cefa2b1b9470a7fcb7a" string(128) "8ccd640462e7380010c5722d7f3c2354781d1360430197ff233509c27353fd2597c8d689bfe769467056a0655b3faba6af4e4ade248558f7c53538c4d5b94806" string(128) "9ef702f51114c9dc2cc7521746e8beebe0a3ca9bb29ec729e16682ca982e7f69ff70235a46659a9a6c28f92fbd990288301b9a6b5517f1f2ba6518074af19a5a" string(128) "9ef702f51114c9dc2cc7521746e8beebe0a3ca9bb29ec729e16682ca982e7f69ff70235a46659a9a6c28f92fbd990288301b9a6b5517f1f2ba6518074af19a5a" bool(true) bool(true)