This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
zend-crypt 3.0.0
weierophinney
released this
21 Jun 18:18
·
180 commits
to master
since this release
Added
- #22 adds a requirement on
ext/mbstring
in 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\RsaOptions
class,openssl_padding
(orsetOpensslPadding()
; this is now consumed inZend\Crypt\PublicKey\Rsa::encrypt()
andZend\Crypt\PublicKey\Rsa::decrypt()
, instead of the optional$padding
argument.
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
$padding
argument 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\Bcrypt
implementation to usepassword_hash()
andpassword_verify()
internally, as they are supported in all PHP versions we support. - #19 fixes the
DiffieHellman
publickey implementation to initialize theBigInteger
adapter from zend-math as the first operation of its constructor, fixing a fatal error that occurs when binary data is provided.