Skip to content

Symfony2 bundle allows for the encrypting fields marked with annotations using Doctrine. Supports SQL(orm) and MongoDB(odm).

License

Notifications You must be signed in to change notification settings

zacmp/DoctrineEncryptBundle

 
 

Repository files navigation

#DoctrineEncryptBundle

Bundle allows to create doctrine entities with fields that will be protected with help of some encryption algorithm in database and it will be clearly for developer, because bundle is uses doctrine life cycle events

###Documentation

The bulk of the documentation is stored in the Resources/doc/index.md file in this bundle

The package was originally created by Victor Melnik (@vmelnik-ukraine) and has since been extensively modified in the following ways.

  • Added proper implementation of AES256
  • Added use of prefix to determine when values are encrypted
  • Added capability of deterministic values which allow for values to be encrypted with the same IV, which allows the exact values to be searched for.
  • Added support for MongoDB. ** Arrays in mongo are encrypted per value and not the whole array. (Recurses through the arrays)
  • Added capability to decrypt values (by adding decrypt to the annotation).
  • Encryption implementation is now a service and can be overridden.
  • Added command line tool to update an entire database scheme. This loads and saves every entity/document in the database to update which values are encrypted.

The following documents are available:

###License

This bundle is under the MIT license. See the complete license in the bundle

###Versions

I'm using Semantic Versioning like described here

About

Symfony2 bundle allows for the encrypting fields marked with annotations using Doctrine. Supports SQL(orm) and MongoDB(odm).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%