mcrypt_compat
mcrypt_compat copied to clipboard
PHP 5.x-8.x polyfill for mcrypt extension.
Hoping that google catches when I say "you don't need to install mcrypt extension in php 8 you can use the excellent mcrypt polyfill mcrypt_compat" Lifesaver. Great work team!
https://github.com/phpseclib/mcrypt_compat/blob/master/lib/mcrypt.php#L44 should be `if (!extension_loaded('mcrypt')) {`
test-related questions, understand whether you need to change the test in the testMcryptGenericMode
Well I noticed that in the tests has a "Risky", and I went to look at the code: ```php /** * @dataProvider mcryptBlockModuleNameProvider */ public function testMcryptGenericMode($modeName, $validMode) { if...
https://github.com/phpseclib/mcrypt_compat/blob/46f52aa51ade2f7bf5239e31d8c280a3065a7f7e/lib/mcrypt.php#L93-L95 If I were to write a PHP implementation of Serpent, would there be any interest in using it to complete the Serpent polyfill?
I started writing a polyfill a couple years ago, and while I didn't make much progress on the actual implementation of the mcrypt functions, the test suite was pretty robust....
I try the code below , but does not working to decypt data that has been encrpyted during legacy system .I believe legacy system using php7.1 anyone could explain why...