public decryptByKey ( string $data, string $inputKey, string $info = null ) : boolean | string | ||
$data | string | the encrypted data to decrypt |
$inputKey | string | the input to use for encryption and authentication |
$info | string | optional context and application specific information, see [[hkdf()]] |
return | boolean | string | the decrypted data or false on authentication failure |
public function decryptByKey($data, $inputKey, $info = null)
{
return $this->decrypt($data, false, $inputKey, $info);
}