Th3-822 / rapidleech

http://rapidleech.com/forum/
590 stars 522 forks source link

Fix mega_co_nz.php plugin for use with openssl #213

Closed gashtal closed 4 years ago

gashtal commented 4 years ago

Cipher methods returned by "openssl_get_cipher_methods()" are in lower case, while the in_array() comparison was done in upper case, leading to the ciphers not being found even though they existed, and the plugin always falling back on the EOL mcrypt extension.

Th3-822 commented 4 years ago

Methods were both in uppercase and lowercase, but it seems that since OpenSSL 1.1.1 is not longer returning them on uppercase at both openssl_get_cipher_methods() and openssl_get_md_methods()

So i think that it's better to change them completely to lowercase, on _decrypt _encrypt calls too (also in case it stops accepting the methods in uppercase in the future), i will fix it right away

gashtal commented 4 years ago

Thank you!