什么是在
PHP中验证X-Hub-Signature的正确方法?
我试过了
$xHubSignature = $request->getHeader('X-Hub-Signature'); $postdata = file_get_contents("PHP://input"); $body = $request->getRawBody( ); $check = sha1('mysecret'.$postdata);
但它不起作用.
hash_hmac( 'sha1',$postdata,'mysecret')
感谢Payom Dousti
https://groups.google.com/forum/?fromgroups=#!topic/instagram-api-developers/7nKyipJENdI