for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Endeavors\Components\Encryption;
use Endeavors\Components\Encryption\Contracts\IEncrypter;
use Endeavors\Components\Encryption\Contracts\IOriginalEncrypter;
use Endeavors\Components\Encryption\Contracts\IJsonDecrypter;
class JsonObjectEncrypter implements IEncrypter
{
private $encrypter;
public function __construct(IJsonDecrypter $encrypter)
$this->encrypter = $encrypter->decryptAsObject();
}
public function encrypt($value)
return $this->encrypter->encrypt($value);
public function decrypt(string $value)
return $this->encrypter->decrypt($value);