(Optional) Selecting an Encryption Algorithm Type
API Function
This API is used to configure the encryption algorithm type for sensitive information before login. Developers can select an appropriate encryption algorithm type based on the security level for their services.
API Description
1 |
public static boolean setAlgType (int type);
|
Class
BaseService
Parameter Description
Parameter |
Mandatory or Optional |
Type |
Description |
---|---|---|---|
type |
Mandatory |
int |
Specifies the encryption algorithm type. The value ranges from 0 to 2.
|
Return Value
Return Value |
Description |
---|---|
true |
Success |
false |
Failure |
Example
1 2 3 4 |
//Select an encryption algorithm type.
private void configAlgPara() {
BaseService. setAlgType (2);
}
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot