This repository was archived by the owner on Jan 29, 2020. It is now read-only.
zend-crypt 3.0.0
·
180 commits
to master
since this release
Added
- #22 adds a requirement on
ext/mbstringin order to install successfully. - #25 adds a new symmetric encryption adapter for the OpenSSL extension; this is now the default adapter used internally by the component when symmetric encryption is required.
- #25 adds support for zend-math v3.
- #26 adds
Zend\Crypt\Password\Bcrypt::benchmarkCost(), which allows you to find the maximum cost value possible for your hardware within a 50ms timeframe. - #11 adds a new option to the
Zend\Crypt\PublicKey\RsaOptionsclass,openssl_padding(orsetOpensslPadding(); this is now consumed inZend\Crypt\PublicKey\Rsa::encrypt()andZend\Crypt\PublicKey\Rsa::decrypt(), instead of the optional$paddingargument.
Deprecated
- #25 deprecates usage of the mcrypt symmetric encryption adapter when used on PHP 7 versions, as PHP 7.1 will deprecate the mcrypt extension.
Removed
- #11 removes the optional
$paddingargument from each ofZend\Crypt\PublicKey\Rsa'sencrypt()anddecrypt()methods; you can now specify the value via theRsaOptions. - #25 removes support for zend-math v2 versions.
- #29 removes support for PHP 5.5.
Fixed
- #22 updates all occurrences of
substr()andstrlen()to usemb_substr()andmb_strlen(), respectively. This provides better security with binary values. - #25 updates the
Zend\Crypt\Password\Bcryptimplementation to usepassword_hash()andpassword_verify()internally, as they are supported in all PHP versions we support. - #19 fixes the
DiffieHellmanpublickey implementation to initialize theBigIntegeradapter from zend-math as the first operation of its constructor, fixing a fatal error that occurs when binary data is provided.