zendframework/zend-crypt
Abandoned; use laminas/laminas-crypt. Strong cryptography tools and password hashing
3.3.1
15M downloads/mo
#4721 most downloaded on Packagist
zendframework/zend-crypt
What this package is like to depend on
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 4 weeks to 13 months
Rarely documented
notes for 9 of 68 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
68 releases · first in 2012
0 releases in the last 12 months
see the full history below
Release timeline
36 releases · Oct 2012 to May 2019Releases
latest 60 of 68-
3.3.114 May 2019Release notes
Open source →Added
- #60 adds support for PHP 7.3.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
- #60 adds support for PHP 7.3.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
3.3.024 Apr 2018Release notes
Open source →Added
- #52 adds support for PHP 7.2.
Changed
-
#55 updates
Zend\Crypt\Hmacto usehash_hmac_algosinstead ofhmac_algos
when it is present. -
#50 updates all classes to import functions and constants they use.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
- #52 adds support for PHP 7.2.
Changed
-
#55 updates
Zend\Crypt\Hmacto usehash_hmac_algosinstead ofhmac_algoswhen it is present. -
#50 updates all classes to import functions and constants they use.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
3.2.117 Jul 2017Release notes
Open source →Added
- #42 Added the CTR mode for OpenSSL.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #48 Incorrect Rsa type declaration in Hybrid constructor.
Release notes
Open source →Added
- #42 Added the CTR mode for OpenSSL.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #48 Incorrect Rsa type declaration in Hybrid constructor.
-
3.2.006 Dec 2016Release notes
Open source →Added
- #38 Support of GCM and
CCM encryption mode for OpenSSL with PHP 7.1+
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
- #38 Support of GCM and CCM encryption mode for OpenSSL with PHP 7.1+
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
- #38 Support of GCM and
-
3.1.011 Aug 2016Release notes
Open source →Added
- #32 adds a new Hybrid encryption utility, to allow OpenPGP-like encryption/decryption of messages using OpenSSL. See the documentation for details.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
- #32 adds a new Hybrid encryption utility, to allow OpenPGP-like encryption/decryption of messages using OpenSSL. See the documentation for details.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
3.0.021 Jun 2016Release notes
Open source →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.
Release notes
Open source →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.
- #22 adds a requirement on
-
2.6.003 Feb 2016Release notes
Open source →Added
- #18 adds documentation, and publishes it to https://zendframework.github.io/zend-crypt/
Deprecated
- Nothing.
Removed
- Removes the (development) dependency on zend-config; tests that used it
previously have been updated to use
ArrayObject, which implements the same behavior being tested.
Fixed
- #4 replaces
the zend-servicemanager with container-interop, and refactors the
various plugin managers to implement that interface instead of extending the
AbstractPluginManager.
-
2.5.223 Nov 2015Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
ZF2015-10:
Zend\Crypt\PublicKey\Rsa\PublicKeyhas a call toopenssl_public_encrypt()which used PHP's default$paddingargument, which specifiesOPENSSL_PKCS1_PADDING, indicating usage of PKCS1v1.5 padding. This padding has a known vulnerability, the Bleichenbacher's chosen-ciphertext attack, which can be used to recover an RSA private key. This release contains a patch that changes the padding argument to useOPENSSL_PKCS1_OAEP_PADDING.Users upgrading to this version may have issues decrypting previously stored values, due to the change in padding. If this occurs, you can pass the constant
OPENSSL_PKCS1_PADDINGto a new$paddingargument inZend\Crypt\PublicKey\Rsa::encrypt()anddecrypt()(though typically this should only apply to the latter):$decrypted = $rsa->decrypt($data, $key, $mode, OPENSSL_PKCS1_PADDING);where
$rsais an instance ofZend\Crypt\PublicKey\Rsa.(The
$keyand$modeargument defaults arenullandZend\Crypt\PublicKey\Rsa::MODE_AUTO, if you were not using them previously.)We recommend re-encrypting any such values using the new defaults.
-
2.5.103 Jun 2015Nothing published for this version
-
2.5.003 Jun 2015Nothing published for this version
-
2.4.1323 Nov 2015Nothing published for this version
-
2.4.12no dateNothing published for this version
-
2.4.11no dateNothing published for this version
-
2.4.10no dateNothing published for this version
-
2.4.9no dateRelease notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
ZF2015-10:
Zend\Crypt\PublicKey\Rsa\PublicKeyhas a call toopenssl_public_encrypt()which used PHP's default$paddingargument, which specifiesOPENSSL_PKCS1_PADDING, indicating usage of PKCS1v1.5 padding. This padding has a known vulnerability, the Bleichenbacher's chosen-ciphertext attack, which can be used to recover an RSA private key. This release contains a patch that changes the padding argument to useOPENSSL_PKCS1_OAEP_PADDING.Users upgrading to this version may have issues decrypting previously stored values, due to the change in padding. If this occurs, you can pass the constant
OPENSSL_PKCS1_PADDINGto a new$paddingargument inZend\Crypt\PublicKey\Rsa::encrypt()anddecrypt()(though typically this should only apply to the latter):$decrypted = $rsa->decrypt($data, $key, $mode, OPENSSL_PKCS1_PADDING);where
$rsais an instance ofZend\Crypt\PublicKey\Rsa.(The
$keyand$modeargument defaults arenullandZend\Crypt\PublicKey\Rsa::MODE_AUTO, if you were not using them previously.)We recommend re-encrypting any such values using the new defaults.
hotfix/5
-
2.4.807 May 2015Nothing published for this version
-
2.4.7no dateNothing published for this version
-
2.4.6no dateNothing published for this version
-
2.4.5no dateNothing published for this version
-
2.4.4no dateNothing published for this version
-
2.4.3no dateNothing published for this version
-
2.4.2no dateNothing published for this version
-
2.4.1no dateNothing published for this version
-
2.4.025 Mar 2015Nothing published for this version
-
2.3.913 Jan 2015Nothing published for this version
-
2.3.8no dateNothing published for this version
-
2.3.7no dateNothing published for this version
-
2.3.6no dateNothing published for this version
-
2.3.5no dateNothing published for this version
-
2.3.4no dateNothing published for this version
-
2.3.311 Aug 2014Nothing published for this version
-
2.3.2no dateNothing published for this version
-
2.3.114 Apr 2014Nothing published for this version
-
2.3.012 Mar 2014Nothing published for this version
-
2.2.1005 Mar 2014Nothing published for this version
-
2.2.9no dateNothing published for this version
-
2.2.8no dateNothing published for this version
-
2.2.7no dateNothing published for this version
-
2.2.6no dateNothing published for this version
-
2.2.531 Oct 2013Nothing published for this version
-
2.2.421 Aug 2013Nothing published for this version
-
2.2.3no dateNothing published for this version
-
2.2.222 Jul 2013Nothing published for this version
-
2.2.112 Jun 2013Nothing published for this version
-
2.2.010 May 2013Nothing published for this version
-
2.1.617 Apr 2013Nothing published for this version
-
2.1.5no dateNothing published for this version
-
2.1.413 Mar 2013Nothing published for this version
-
2.1.319 Feb 2013Nothing published for this version
-
2.1.2no dateNothing published for this version
-
2.1.106 Feb 2013Nothing published for this version
-
2.1.029 Jan 2013Nothing published for this version
-
2.0.826 Jan 2013Nothing published for this version
-
2.0.7no dateNothing published for this version
-
2.0.619 Dec 2012Nothing published for this version
-
2.0.520 Nov 2012Nothing published for this version
-
2.0.4no dateNothing published for this version
-
2.0.310 Oct 2012Nothing published for this version
-
2.4.0rc7no dateNothing published for this version
-
2.4.0rc6no dateNothing published for this version