PHPackages                             wemxo/encryption-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. wemxo/encryption-bundle

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

wemxo/encryption-bundle
=======================

Useful symfony bundle that offers the possibility to encrypt/decrypt sensitive data.

v1.1.0(8mo ago)2340MITPHPPHP &gt;=8.0.2CI passing

Since Jan 10Pushed 8mo agoCompare

[ Source](https://github.com/wemxo/encryption-bundle)[ Packagist](https://packagist.org/packages/wemxo/encryption-bundle)[ RSS](/packages/wemxo-encryption-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

Encryption
==========

[](#encryption)

> The encryption bundle is a symfony bundle that allow you to encrypt and decrypt sensitive data based on a given encryption key, sipher algorithm and digest method.

#### Usage

[](#usage)

1- Configuration

```
# /config/packages/encryption.yaml
encryption:
    password:
        encryption_key: hO!}098iKko_hf
    email:
        encryption_key: '%my_key_parameter%'
        cypher_algorithm: aes128
        digest_method: md5

```

> With this configuration, you will have access to a private service (instance of `Wemxo\EncryptionBundle\Encryption\EncryptionInterface`) in container named `@wemxo.encryption.password` with an alias `$passwordEncryption`.

2- Example

```
