if ($value === false) {
throw new EncryptException('Could not encrypt the data.');
}
// Once we have the encrypted value we will go ahead base64_encode the input
// vector and create the MAC for the encrypted value so we can verify its
// authenticity. Then, we'll JSON encode the data in a "payload" array.
$mac = $this->hash($iv = base64_encode($iv), $value);
4 个回复
小楼
赞同来自:
JohnLui
赞同来自:
小楼
赞同来自:
abel
赞同来自:
貌似处理出来的结果是一个结果集,可以打印这个json是试试看。。