You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
The commit message actually just says "Ensure tests run against all PHP versions" but in fact in the file src/Encrypt/BlockCipher.php in line 66 and then 68 there is a breaking change.
Background:
we are using Zend-Crypt v3.1.0 already for quite a while.
we are using Zend-Filter as well (lastest before the update in v2.7.1)
we are using mcrypt to encrypt strings (with rijndael-128 as the algorithm)
The Problem:
with the v2.7.2 (bugfix version) the $cipherType was changed from hardcoded mcrypt to a value that is fetched from the SymmetricPluginManager in the file mentioned above
the problem is that $cipherPluginManager->has('openssl') will always return true if you use Zend-Crypt > v3
the real problem derives from that because there is no setting to tell the SymmetricPluginManager or the BlockChiper class which cipherType to use but it is implicitly set
The Result:
as a result whenever the Crypt class is loaded with the algorithm we use (rijndael-128) it will fail because the openssl implementation does not contain this algo in the $encryptionAlgosproperty
it fails because this particular algo can only be found in the mcrypt class
Possible Solution:
have a possibility to let the user decide which cipherType to use
the default might still be set to openssl but it would be really helpful to have the possibility to override that, e.g. from within the global config
Thats my report for now. Shall i create a PullRequest for a potential change including setting the desired cipherType from the config?