Answer the question
In order to leave comments, you need to log in
VK API - how to generate sig correctly?
Hello, I made authorization by api
Now you need to somehow return the First name, last name.
I looked at the request but I don’t understand how the sig request is generated. I understand that there N parameters are hashed by md5, but I don’t understand which ones and in what order ...
Tell me exactly by the example of this request
For md5 hashing, I use this method
public static string GetMd5Hash(MD5 md5Hash, string input)
{
byte[] data = md5Hash.ComputeHash(Encoding.UTF8.GetBytes(input));
StringBuilder sBuilder = new StringBuilder();
for (int i = 0; i < data.Length; i++)
{
sBuilder.Append(data[i].ToString("x2"));
}
return sBuilder.ToString();
}
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