absolute-quantum / DoctrineEncryptBundle

:key: Encrypted symfony entities by verified and standardized libraries
https://packagist.org/packages/michaeldegroot/doctrine-encrypt-bundle
MIT License
143 stars 74 forks source link

Create multiple keys #52

Closed angelomelonas closed 3 years ago

angelomelonas commented 3 years ago

Is there a way to create multiple keys? The following allows us to generate a single key file (called .Halite.key):

ambta_doctrine_encrypt:
  encryptor_class: Halite
  secret_directory_path: '%kernel.project_dir%/data/keys'   # Path where to store the keyfiles

However, our project requires multiple keys, something like .key1.Halite.key, .key2.Halite.key, etc.

Is there a way to do this via the config file?