PHPackages                             specshaper/encrypt-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. specshaper/encrypt-bundle

ActiveSymfony-bundle[Security](/categories/security)

specshaper/encrypt-bundle
=========================

Bundle provides a service for encrypting values via attribute.

v5.0.2(2mo ago)104638.3k↓11.4%40[1 issues](https://github.com/mogilvie/EncryptBundle/issues)[1 PRs](https://github.com/mogilvie/EncryptBundle/pulls)1MITPHPPHP &gt;=8.2CI passing

Since Nov 2Pushed 2mo ago8 watchersCompare

[ Source](https://github.com/mogilvie/EncryptBundle)[ Packagist](https://packagist.org/packages/specshaper/encrypt-bundle)[ Docs](https://github.com/mogilvie/EncryptBundle)[ GitHub Sponsors](https://github.com/mogilvie)[ RSS](/packages/specshaper-encrypt-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (16)Used By (1)

SpecShaper Encrypt Bundle
=========================

[](#specshaper-encrypt-bundle)

A bundle to handle encoding and decoding of parameters using OpenSSL and Doctrine lifecycle events.

Features include:

- V5 is Symfony 6.4|7.4|8.0 PHP &gt;=8.2
- V4 is Symfony 6.4|7.0 PHP 8.2 and beta.
- V3 is Symfony 5.4|6.0 PHP 8.0. I'm moving my projects to symfony 7 so will not maintain after this v3.2.
- V2 is Symfony 5 not maintained.
- v1 is Symfony 3.4 not maintained.
- Uses OpenSSL
- Uses Lifecycle events

Features road map:

- Create a factory method to expand for different encryptors
- Create a twig function to decrypt encoded values
- Expand parameters to allow selection of encoding method
- Create CLI commands to encrypt and decrypt the entire database
- Handle DateTime data types via the bundle.

License
-------

[](#license)

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

```
Resources/meta/LICENSE

```

About
-----

[](#about)

EncryptBundle has been written for the [Parolla Plugins](https://plugins.parolla.ie) and [Parolla](https://www.parolla.ie) websites to encode users private data. The bundle is expanded in a larger [gdpr-bundle](https://github.com/mogilvie/GdprBundle).

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/mogilvie/HelpBundle/issues).

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the [Symfony Standard Edition](https://github.com/symfony/symfony-standard)to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.

Installation
============

[](#installation)

Step 1: Install from package
----------------------------

[](#step-1-install-from-package)

Open a command console, enter your project directory and execute the following command to download the latest development version of this bundle:

```
$ composer require specshaper/encrypt-bundle dev-master

```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2: Enable the bundle
-------------------------

[](#step-2-enable-the-bundle)

The receipe will create a package config file under config/packages/spec\_shaper\_encrypt.yaml.

If required, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
