API Encryption Transmission
After this function is enabled, API requests and responses are encrypted using the AES-CBC algorithm to ensure data security during transmission.
Unlock Encryption transmission#
Enter the API Key page and switch to the encrypted transmission mode when the function is enabled.Get the aes_key
for encrypted transmission:

AES-CBC(Cipher Block Chaining) mode#
Each plaintext block gets XOR-ed with the previous ciphertext block prior to encryption. An initialization vector is used to make sure each encryption has a different ciphertext result.The request body and the response body have the same formatting parameters, Request body encryption exists only in POST requests, and the specific parameters are as follows:iv
: The Initialization Vector originally used to create the object.
encrypted_data
: Encrypt data with the key and the parameters set at initialization.
They're going to look something like this:{
"iv": "7DJ9PJKPXVlPRMaBaf0HAA==",
"encrypted_data": "VOuk64ypjBrX2ZweEJgpMWIXtG6Vr0OB5dtfaHjfWYEOIzO3MfNNMlOza63zjG87"
}
Transmission example#
Here Create Sub-Address is used as a reference
The code is for reference only. Adjust it according to the actual service
Implementation in Python#
Implementation in Golang#
Modified at 2024-04-26 05:24:03