Getting Started
Official Site
Getting Started
Official Site
  • Document description
  • Read before you start

  • Light application development guide

  • Mobile application development guide

  • Cloud live development guide

  • Desktop application development guide

  • Third party development guide

  • Message push development guide

  • IoT things data model

  • HTTP interface

    • Development specification
    • API privacy policy
    • Postman interface simulation call
    • accessToken: Get administrator token
    • API request example
    • Account docking
    • Push configuration
    • Cloud storage service
    • Equipment management

      • Add device
      • Device query
      • Device maintenance
        • modifyDeviceName: Modify device or channel name
        • uploadDeviceCoverPicture: Set device video cover
        • verifyPassword: Verify device password
        • modifyPassword: Modify device password
        • upgradeDevice: Device Upgrade
    • Device configurat

    • Video equipment

    • Device message
    • Device live broadcast
    • Device lock access
  • Reference documents

On this page
Function details
Request address
Incoming parameter description
Sample input
Return data field description
Sample output

Verify Device Password Documentation - Imou Open Platform

verifyPassword: Verify device password

Function details

Verify the device password.

Note: This interface is only valid for devices with "TCM" device capability set.

Request address

https://openapi-[DataCenter].easy4ip.com/openapi/verifyPassword

Incoming parameter description

Parameter nameParameter typeRequired or notDefault valueLegal valueParameter description
tokenStringYesAdministrator accessToken
deviceIdStringYesDevice serial number
passwordStringYesThe device password needs to be encrypted for transmission. Please see below for specific encryption detailsString after device password encryption

password encryption algorithm detailed description: password formula for calculating the value is:Base64(AES256_CBC(sourcePassword,key[],iv[])); THE ENCRYPTION RULES ARE AS FOLLOWS: 1、Using CBC block encryption,Algorithm is AES/CBC/PKCS5Padding; 2、sourcePassword is the clear text password of the device; 3、Key[] is a binary array of keys (key); 4、The key is: LowerCase(MD5(UpperCase(Base64(KDF(deviceId,MD5(appsecret)))))), the KDF algorithm is PBKDF2WithHmacSHA256, iterates 1200 times, and the derived key length is 256; 5、iv[] is the binary array of the initialization vector, which is MD5 (appSecret), which is encrypted using the MD5 algorithm of MessageDigest that comes with Java。 ​ The new password rule requirements for the device are: 1、 The password composition must contain at least two of numbers, uppercase letters, lowercase letters and special characters, and the length is 8~32 characters. Among them, special characters are any visible characters except for the six characters [']["][;][:][&][space]; 2、The password cannot have 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",
         "password":"jdueu37ajusdii3873jsc8"
     }
}

Return data field description

No data returned

Sample output

{
  "result":{
    "msg":"The operation was successful.",
    "code":"0"
    },
    "id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}
uploadDeviceCoverPicture: Set device video cover
modifyPassword: Modify device password