-
Notifications
You must be signed in to change notification settings - Fork 38
New OpenSSL symmetric adapter + bcrypt refactor for PHP 5.5+ #25
Conversation
@weierophinney this PR is ready to be merged in develop, thanks! |
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2016
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samsonasik Thanks, I updated the 2016 in all the code.
'padding' => 'pkcs7' | ||
]); | ||
} catch (Symmetric\Exception\RuntimeException $e) { | ||
$this->markTestSkipped($e->getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same note as for the mcrypt tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weierophinney even here, we are just testing if OpenSSL extension is enabled.
@ezimuel Looks very good! Just a few general notes:
I've added more specific notes elsewhere. Nice work! |
@weierophinney and @samsonasik I updated the PR will all your feedback, thanks! |
New OpenSSL symmetric adapter + bcrypt refactor for PHP 5.5+
Merged to develop! We can tag 3.0 early next week, @ezimuel ! |
This PR contains the new OpenSSL symmetric adapter for zend-crypt ver. 3.0. We used this new adapter instead of Mcrypt in FileCipher and we suggested to use it in the documentation for all the other encryption needs. Mcrypt is an outdated extension and it will be deprecated) with PHP 7.1.
Moreover, this PR contains the
Zend\Crypt\Password\Bcrypt
refactor using the password_hash() and password_verify() functions of PHP 5.5+.I updated the documentation according to these changes.
Note: All the changes included in this PR are backward compatible. I provided some unit tests as proof.