Answer the question
In order to leave comments, you need to log in
Why is the wrong signature VK IFrame formed?
Good afternoon. I am writing an application for the VK community. I am implementing data authentication and here a problem has surfaced: I am implementing exactly the same code as described here :
I am trying to generate a signature as indicated in the documentation, as a result, with the signature that VK gives, my signature does not match, I twist $ _GET. Tell me what's funny?
$sign = "";
$request = $_GET;
foreach ($request as $key => $param) {
echo($key."===".$param."<br>");
if ($key == 'hash' || $key == 'sign') continue;
$sign .=$param;
}
$secret = '****';
$sig = $secret ? hash_hmac('sha256', $sign, $secret) : "";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question