fpasquer/encrypt-manager-bundle

There is no license information available for the latest version (dev-master) of this package.

Encrypt and decrypt string for symfony 4.2.*

dev-master 2019-05-10 09:30 UTC

This package is auto-updated.

Last update: 2024-06-10 20:43:11 UTC


README

###Easy way to encrypt / decrypt string with symfony 4.2.*

Install:

composer require fpasquer/encrypt-manager-bundle

Exemple:

$encryptManager = new EncryptManager();
$str1 = $encryptManager->encrypt("Hello world");
$str2 = $encryptManager->decrypt($str1);
dump($str1, $str2);

You can setup the encrytion method in EncryptManager::__controller as :

$encryptManager = new EncryptManager("AES-128-CBC");
...