小编Jes*_* Ah的帖子

hash_hmac使用纯粹的经典ASP

我想知道,有没有办法hash_hmac("sha256", $token, $signkey, true)在经典ASP中实现(php)?

我需要它来验证来自Facebook的signed_request https://developers.facebook.com/docs/howtos/login/signed-request/

// Adding the verification of the signed_request below
$expected_sig = hash_hmac('sha256', $payload, $secret, $raw = true); 
if ($sig !== $expected_sig) {
  error_log('Bad Signed JSON signature!');
  return null;
}
Run Code Online (Sandbox Code Playgroud)

asp-classic

4
推荐指数
1
解决办法
5706
查看次数

标签 统计

asp-classic ×1