![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /usr/local/src/mcrypt-1.0.4/tests/ |
--TEST-- Bug #70625: mcrypt_encrypt() : won't return data when no IV was specified under RC4 --SKIPIF-- <?php if (!extension_loaded("mcrypt")) print "skip"; ?> --FILE-- <?php $key = 'secretkey'; $ciphertext = mcrypt_encrypt(MCRYPT_ARCFOUR, $key, 'payload', MCRYPT_MODE_STREAM); var_dump(bin2hex($ciphertext)); $plaintext = mcrypt_decrypt(MCRYPT_ARCFOUR, $key, $ciphertext, MCRYPT_MODE_STREAM); var_dump($plaintext); ?> --EXPECTF-- Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug70625.php on line 4 string(14) "d5c9a57023d0f1" Deprecated: Function mcrypt_decrypt() is deprecated in %s%ebug70625.php on line 6 string(7) "payload"