2017 © Pedro Peláez
 

symfony-bundle doctrine-encrypt-bundle

Symfony 4 bundle which allows to encrypt data in database with some encrypt algorithm

image

triggerfish/doctrine-encrypt-bundle

Symfony 4 bundle which allows to encrypt data in database with some encrypt algorithm

  • Monday, April 16, 2018
  • by TriggerfishNL
  • Repository
  • 0 Watchers
  • 0 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 121 Forks
  • 0 Open issues
  • 23 Versions
  • 18 % Grown

The README.md

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, (*1)

This is an fork from the original bundle created by vmelnik-ukrain (Many thanks to him) which can be found here: vmelnik-ukraine/DoctrineEncryptBundle, (*2)

I improved several things, i make better use of the doctrine events. and it works with lazy loading (relationships)! This will be an long term project we will be working on with long-term support and backward compatibility. We are using this bundle in all our own symfony2 project. More about us can be found on our website. Ambta.com, (*3)

What does it do exactly

It gives you the opportunity to add the @Encrypt annotation above each string property, (*4)

/**
 * @Encrypt
 */
protected $username;

The bundle uses doctrine his life cycle events to encrypt the data when inserted into the database and decrypt the data when loaded into your entity manager. It is only able to encrypt string values at the moment, numbers and other fields will be added later on in development., (*5)

Advantages and disadvantaged of an encrypted database

Advantages

  • Information is stored safely
  • Not worrying about saving backups at other locations
  • Unreadable for employees managing the database

Disadvantages

  • Can't use ORDER BY on encrypted data
  • In SELECT WHERE statements the where values also have to be encrypted
  • When you lose your key you lose your data (Make a backup of the key on a safe location)

Documentation

This bundle is responsible for encryption/decryption of the data in your database. All encryption/decryption work on the server side., (*6)

The following documents are available:, (*7)

License

This bundle is under the MIT license. See the complete license in the bundle, (*8)

Versions

I'm using Semantic Versioning like described here, (*9)

Todos

The following items will be done in order, (*10)

  1. ~~Review of complete code + fixes/improvements and inline documentation (2.1.1)~~
  2. ~~Add support for the other doctrine relationships (manyToMany, ManyToOne) (2.2)~~
  3. ~~Recreate documentation (2.3)~~
  4. ~~Create example code (2.3)~~
  5. ~~Create an function to encrypt unencrypted database and vice versa (console command, migration, changed key, etc.) (2.4)~~
  6. Look for a posibility of automatic encryption of query parameters (2.5)
  7. Look for a posibility to override findOneBy for automatic encryption of parameters (2.6)
  8. Add support to encrypt data by reference to other property as key (Encrypt data specific to user with user key etc.) (2.7)
  9. Add Format-preserving encryption for all data types Doctrine documentation Types (3.0)

The Versions

16/04 2018

dev-master

9999999-dev

Symfony 4 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil
by Alexandr Sharamko

doctrine symfony encrypt aes256 decrypt rijndael

16/04 2018

v2.7.3

2.7.3.0

Symfony 4 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil
by Alexandr Sharamko

doctrine symfony encrypt aes256 decrypt rijndael

16/04 2018

v2.7.2

2.7.2.0

Symfony 4 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil
by Alexandr Sharamko

doctrine symfony encrypt aes256 decrypt rijndael

16/04 2018

v2.7.1

2.7.1.0

Symfony 4 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil
by Alexandr Sharamko

doctrine symfony encrypt aes256 decrypt rijndael

16/04 2018

v2.7

2.7.0.0

Symfony 4 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil
by Alexandr Sharamko

doctrine symfony encrypt aes256 decrypt rijndael

27/02 2018

v2.6

2.6.0.0

Symfony 4 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil
by Alexandr Sharamko

doctrine symfony encrypt aes256 decrypt rijndael

30/09 2016

2.5.4

2.5.4.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

20/09 2016

2.5.3

2.5.3.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

04/04 2016

2.5.2

2.5.2.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

08/02 2016

v2.5.1

2.5.1.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

08/02 2016

v2.5

2.5.0.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

18/01 2016

v2.4.5

2.4.5.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

02/09 2015

v2.4.4

2.4.4.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

03/08 2015

2.4.3

2.4.3.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

23/06 2015

v2.4.2

2.4.2.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

24/04 2015

2.4.1

2.4.1.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt rijndael

16/04 2015

2.4

2.4.0.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt

08/04 2015

v2.2

2.2.0.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt

12/03 2015

2.1.1

2.1.1.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Victor Melnik
by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt

11/03 2015

v2.1

2.1.0.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Victor Melnik
by Marcel van Nuil

doctrine symfony encrypt aes256 decrypt

05/01 2013

2.0.1

2.0.1.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Victor Melnik

doctrine encrypt aes256 decrypt

17/11 2012

2.0.0

2.0.0.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Victor Melnik

doctrine encrypt aes256 decrypt

14/11 2012

1.0.0

1.0.0.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Victor Melnik

doctrine encrypt aes256 decrypt