Download the PHP package simplicity-projects/crypt-bundle without Composer
On this page you can find all versions of the php package simplicity-projects/crypt-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simplicity-projects/crypt-bundle
More information about simplicity-projects/crypt-bundle
Files in simplicity-projects/crypt-bundle
Package crypt-bundle
Short Description A symphony bundle for crypt/decrypt strings
License MIT
Homepage http://www.simplicity.rs
Informations about the package crypt-bundle
CryptoBundle
Code copied from http://www.inanzzz.com/index.php/post/rxqs/creating-an-encrypt-decrypt-symfony-bundle-that-depends-on-config-parameters-of-main-application
1) Add to AppKernel.php
new Simplicity\CryptBundle\SecurityCryptBundle();
2) Update config.yml
simplicity_crypt: secret: my_secret_value algorithm: rijndael-128 mode: ecb
3) Call service
//Service $crypto = $this->get('simplicity_crypt.service.cryptor');
//Encrypt some value $encrypted = $crypto->encrypt('Aleksandar');
//Decrypt the value $decrypted = $crypto->decrypt($encrypted);