403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.117.229.144
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/cpanel/ea-php74/root/usr/share/tests/pecl/libsodium/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/cpanel/ea-php74/root/usr/share/tests/pecl/libsodium/tests/crypto_shorthash.phpt
--TEST--
Check for libsodium shorthash
--SKIPIF--
<?php if (!extension_loaded("sodium")) print "skip"; ?>
--FILE--
<?php
$m1 = 'message';
$k1 = '0123456789ABCDEF';
$h1 = sodium_crypto_shorthash($m1, $k1);
echo sodium_bin2hex($h1) . "\n";
$k2 = '0123456789abcdef';
$h2 = sodium_crypto_shorthash($m1, $k2);
echo sodium_bin2hex($h2) . "\n";
$m2 = 'msg';
$h3 = sodium_crypto_shorthash($m2, $k2);
echo sodium_bin2hex($h3) . "\n";

try {
    sodium_crypto_shorthash($m1, $k1 . $k2);
} catch (SodiumException $ex) {
    var_dump(true);
}
?>
--EXPECT--
e0ad6fdbf8b9a191
c667b37af201a2d9
d27fa3fc70b45b72
bool(true)

Youez - 2016 - github.com/yon3zu
LinuXploit