Modify Device Password for Network Camera Apps - Imou Open Platform
modifypassword: Modify the device password
Function details
Modify the device password.
Note: This interface is only valid for devices with "TCM" device capability set.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/modifypassword
Introduction parameter description
| Parameter | Parameter Type | Whether it will be filled | Default | Legal value | Parameter Description | |: --------- |: ------ |: ----- |: --- |: --- |: --------------------------------------- | | token | String | Yes | | | Administrator AccessToken | | DeviceID | String | Yes | | | Device Serial Number | | Oldpassword | String | Yes | | Device password Nequate transmission, specific encryption detailed description See below | Device Postcode encrypted strings | | NewPassword | String | Yes | | Device password requires encryption transmission, specific encryption Detailed description See below | String after device new password encryption |
Password encryption algorithm detailed description: Password calculated formula is: Base64 (AES256_CBC (SourcePassword, Key [], IV []); Encryption rules are as follows:
- The algorithm is AES / CBC / PKCS5PADDING in the method of encrypting the CBC packet. 2, SourcePassword is the plain text password of the device; 3, Key [] is a binary array of key (Key); 4, key (key) is: LowerCase(MD5(UpperCase(Base64(KDF(deviceId,MD5(appsecret)))))), the KDF algorithm is PBKDF2WITHMACSHA256, iterates 1200 times, exports the secret key length 256; 5, IV [] is the binary array of initialized vector, which is: MD5 (Appsecret), encrypting the MD5 algorithm of MessageDigest with Java.
Apparatus new password rules require:
- Password composition must contain at least two of the numbers, uppercase letters, lowercase letters, and special characters, length of 8 to 32 characters long. Among them, in addition to ['] ["] [;] [:] [&] [space], any visible character outside the six characters; 2, password cannot be Chinese characters.
Sample input
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_00006acr3456d12312d3grf60147de7ec",
"deviceId":"TESTQWERXXXX",
"oldPassword":"jdueu37ajusdii3873jsc8",
"newPassword":"ewurosd739fdjf102kg823"
}
}
Return data field description
No data returned
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0"
},
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}
