nepda/doctrine-encrypt-module

This package is abandoned and no longer maintained. No replacement package was suggested.

ZF2 Module for Doctrine2 field encryption

v7.0.2 2017-11-24 14:13 UTC

This package is auto-updated.

Last update: 2020-07-12 09:14:55 UTC


README

Package adds Doctrine Module support to doctrine-encrypt module

Installation

Add nepda/doctrine-encrypt-module to your composer manifest.

{
    "require": {
        "nepda/doctrine-encrypt-module": "1.*"
    }
}

Configuration

Copy the file config/doctrine-encrypt-module.local.php.dist to your config/autoload/ directory and rename it to config/doctrine-encrypt-module.local.php. Generate a encryption key and a salt and put it into your new local config file.

Optional

If you want to change the encryption algorithm or the annotation reader copy doctrine-encrypt-module.global.php.dist out of the config/ directory, rename it to doctrine-encrypt-module.global.php and place it in your application config folder.

Modify the adapter anonymous to return the desired class to use for encryption. The returned class must either be a Zend\Crypt\BlockCipher or implement DoctrineEncrypt\Encryptors\EncryptorInterface. References to other service locator keys or FQN's are also acceptable.

Usage

See https://github.com/nepda/doctrine-encrypt