Example Analysis of encryption algorithm for android likes, comments and Live on-screen comment
Today, the editor will share with you the relevant knowledge points about android likes, comments, and example analysis of live on-screen comment encryption algorithm. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you will gain something after reading this article. Let's take a look at it.
The steps of the Douyin core agreement are:
1. Insert a fixed key rstr in the query string
2. Sort the query string by keystroke and take the value, and escape the space and + to a
3. Then take the MD5; if the timeline & 1 is 1, then take one more MD5
4. The MD5 results are sorted twice with 5-6 and 1-4, respectively.
5. Sort the results of 4 again in dislocation to get 26 characters.
6. Give 18 bits to the as and cp fields respectively, and append them to the end of the query string
In the latest version of SDK, there is a new mas field auxiliary check, which can be ignored, as long as you set the version_code of the query string to 169. you can skip this field.
In addition, aid is a required field, and other fields that have nothing to do with the API itself can be removed.
Cdn.nlark.com/yuque/0/2020/png/97322/1606869601754-d7813825-edfd-4c50-8c9e-8d2ebd36dcd5.png ">
Douyin protocol and volcano small video communication protocol
The above is all the content of this article "android likes, comments, live on-screen comment encryption algorithm example analysis", thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.