cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

Change mcrypt on openssl

Open Studentsov opened this issue 10 years ago • 5 comments

Due to the obsolescence of mcrypt (absence of updates of nearly 10 years) and its loss on openssl speed, I offer an exception it from dependences of a framework and its changeover by openssl. It is possible to mention as arguments that it want to exclude from PHP kernel long ago (https://wiki.php.net/rfc/removal_of_dead_sapis_and_exts, https://wiki.php.net/rfc/mcrypt-viking-funeral), and also the fact that Phalcon already depends on openssl.

Studentsov avatar Mar 03 '16 16:03 Studentsov

It is necessary to break backward compatibility as these extensions aren't interchanged. It would be interesting to listen to judgements of the people who are responsible for development of a framework.

Studentsov avatar Mar 04 '16 09:03 Studentsov

I agree. @andresgutierrez @niden @xboston @carvajaldiazeduar

sergeyklay avatar Mar 04 '16 10:03 sergeyklay

:+1:

https://paragonie.com/blog/2015/05/if-you-re-typing-word-mcrypt-into-your-code-you-re-doing-it-wrong

xboston avatar Mar 04 '16 11:03 xboston

I think that this is a good idea. Yes we will break backwards compatibility but we will break it for a very good reason and that is security. It is the same argument for using an older version of PHP vs a newer one and thus we dropped support for PHP 5.3.

Nothing beats a good design with solid security enhancements in place, but the tools have to match the effort and this move IMHO is more than welcome. We just have to make sure everyone knows about it so that they can adjust their code accordingly.

niden avatar Mar 13 '16 14:03 niden

Implemented in 2.1.x branch

sergeyklay avatar Mar 17 '16 22:03 sergeyklay