jagilpe / encryption-bundle

A Symfony Bundle to encrypt sensitive data before persisting it
MIT License
3 stars 1 forks source link

The default config doesn't work with openssl 1.1.1 #3

Open ylebret opened 5 years ago

ylebret commented 5 years ago

Hi,

Since openssl 1.1.1, openssl_get_cipher_methods doesn't work like expected by the bundle: it no longer returns the uppercase variants of the ciphers.

request.CRITICAL: Uncaught PHP Exception Jagilpe\EncryptionBundle\Exception\EncryptionException: "Method AES-128-CBC not supported by openssl installation." at /var/www/myproject/vendor/jagilpe/encryption/Jagilpe/EncryptionBundle/Crypt/CryptographyProvider.php line 140 {"exception":"[object] (Jagilpe\\EncryptionBundle\\Exception\\EncryptionException(code: 0): Method AES-128-CBC not supported by openssl installation. at /var/www/myproject/vendor/jagilpe/encryption/Jagilpe/EncryptionBundle/Crypt/CryptographyProvider.php:140)"}

See :