Provides a simple API to handle encrypting and decrypting strings.
Add jaeger-app/encrypt
as a requirement to your composer.json
:
$ composer require jaeger-app/encrypt
$encrypt = new Encrypt();
$encrypt->setKey($encryption_key);
$encoded = $encrypt->encode($string);
$decoded = $encrypt->decode($encoded);
$guid = $encrypt->guid();