public function decrypt($string, $key)
{
try {
return $this->driverInstance->decrypt($string, $key);
} catch (\Exception $e) {
throw new CryptException($e->getMessage());
}
}
/** * Decrypts the given $string that was encrypted with the $key. * * @param string $string Encrypted string. * @param string $key Key used for encryption. * * @return string Decrypted string. */ public function decrypt($string, $key) { return $this->serviceInstance->decrypt($string, $key); }