K
K
Konstantin Teploukhov2019-12-31 00:42:10
API
Konstantin Teploukhov, 2019-12-31 00:42:10

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
5c293b93cfa50335014364.jpeg
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

1 answer(s)
@
@antoo, 2019-12-31
_

It is described in detail here: https://vk.com/page-1_2372591

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question