ywh/doctrine-encryption-bundle

Dotenv

# Generate a password. You can use the following command: openssl rand -base64 32
# Generate a key using generate-defuse-key script: vendor/bin/generate-defuse-key
ENCRYPTION_PASSWORD=password
ENCRYPTION_KEY=defuse-key

Generated files

config/packages/ywh_doctrine_encryption.yaml

ywh_doctrine_encryption:
    password: '%env(ENCRYPTION_PASSWORD)%'
    key: '%env(ENCRYPTION_KEY)%'