9 About SDK Encryption String and User Configuration Information Encryption
Design of the SDK Encryption String
To prevent the APP from being sniffed and reverse-engineered to obtain the four values userid writetoken readtoken secretkey, these four values need to be encrypted. Hence, SDK加密串 was introduced, where encryption is performed on the server side and decryption is performed on the APP side. The SDK加密串 provided by the Polyv backend is only a fixed encryption method and is used for demonstration purposes only.
Official Usage Solution
Developers should use their own encryption method to encrypt the four values userid readtoken writetoken secretkey, and the APP side should perform the corresponding decryption (it is recommended to use C for decryption in local methods). Then, call the setConfig(String userid, String secretkey, String readtoken, String writetoken, Context context) method of the PolyvSDKClient class in the SDK to pass the parameters to the SDK.
