Mcrypt is replaced with openssl #11530

Merged
merged 4 commits into from Mar 17, 2016

Projects

None yet

3 participants

@Studentsov
Contributor

Mcrypt is replaced with openssl in Phalcon\Crypt. (#11486)
Removed methods setMode(), getMode(), getAvailableModes() as not applicable to the openssl in Phalcon\CryptInterface.
Unfortunately, the reverse compatibility was lost for the reason that cryptography techniques are called differently in mcrypt and openssl libraries. Moreover, the algorithm of rijndael-256 used by default doesn't have changeover in openssl. I hope, it is not too heavy payment for transition to faster, safe and modern cryptography library.
There were some difficulties which are generally connected to distinctions of implementations of similar algorithms in mcrypt and openssl, and also imperfection of the current implementation of Phalcon\Crypt. I will be glad if someone undertakes carrying out additional tests.

Studentsov added some commits Mar 13, 2016
@Studentsov Studentsov Mcrypt is replaced with openssl
Replaced all mcrypt functions on openssl functions.
Removed methods setMode(), getMode(), getAvailableModes() as not applicable to the openssl.
Check inappropriate to the standard is cleaned.
494e53a
@Studentsov Studentsov Update CryptTest.php
Names of cryptographic algorithms for operation with the new module are changed
899862c
@Studentsov Studentsov Removed methods
Removed methods setMode(), getMode(), getAvailableModes() as not applicable to the openssl.
7a0bf08
@Studentsov Studentsov Update CHANGELOG.md
Mcrypt is replaced with openssl in Phalcon\Crypt
Removed methods setMode(), getMode(), getAvailableModes() in Phalcon\CryptInterface
b5a071b
@andresgutierrez andresgutierrez merged commit e81488d into phalcon:2.1.x Mar 17, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@andresgutierrez
Collaborator

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment