Encrypted symfony entity's by verified and standardized libraries
This is a fork from the original bundle created by ambta which can be found here: ambta/DoctrineEncryptBundle
This bundle has updated security by not rolling it's own encryption and using verified standardized library's from the field.
All deps are already installed with this package
// Config.yml ambta_doctrine_encrypt: encryptor_class: Halite
You will need to require Defuse yourself
composer require "defuse/php-encryption ^2.0"
// Config.yml ambta_doctrine_encrypt: encryptor_class: Defuse
The secret key should be a max 32 byte hexadecimal string (
Secret key is generated if there is no key found. This is automatically generated and stored in the folder defined in the configuration
// Config.yml ambta_doctrine_encrypt: secret_directory_path: '%kernel.project_dir%' # Default value
Do not forget to add these files to your .gitignore file, you do not want this on your repository!