Smart doorbell anti-piracy method, system, smart doorbell and readable storage medium
By setting up a tamper-proof storage area in the smart doorbell and verifying the product secret text, the problem of easy piracy of external flash memory and memory is solved, reducing the risk of piracy and improving security.
Patent Information
- Application Number
- CN202210286091.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-03-22
AI Technical Summary
Existing smart doorbells are prone to piracy due to the lack of protection for external flash memory and memory, and pirated products can be produced by copying hardware.
By setting a preset tamper-proof storage area in the smart doorbell, the product ciphertext is stored, and when the user binds the request and communicates with the cloud server, it is verified based on the ciphertext to ensure that the ciphertext is not changed or read, thereby preventing piracy. .
It effectively reduces the risk of piracy of smart doorbells, ensures that legitimate users can use local and network functions normally, and improves the security and legality of the device.
Smart Images

Figure CN114626868B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a smart doorbell anti-piracy method, system, smart doorbell and readable storage medium. Background Art
[0002] With the rapid development of smart home technology, smart doorbells are gradually replacing traditional cat eyes and doorbells. In the existing smart doorbell solutions, in order to have a larger storage space and facilitate the replacement of storage chips, the main control chip of the smart doorbell usually does not have built-in flash memory and memory, but uses external flash memory (such as EMMC (Embedded Multi Media Card)) and memory (such as DDR (Double Data Rate)). However, the external flash memory and memory are basically unprotected, so the contents of the external flash memory can be read back, and as long as the hardware is copied and the same chip is attached, it can be pirated exactly the same. Therefore, smart doorbells with external flash memory and memory are prone to piracy.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a method for preventing a smart doorbell from being pirated, aiming to solve the technical problem that a smart doorbell with an external flash memory and a memory is easily pirated.
[0005] To achieve the above object, the present invention provides a smart doorbell anti-piracy method, which comprises the following steps:
[0006] When receiving a user binding request, verifying the user binding request according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell;
[0007] If the user binding request is verified, unlocking the preset local function of the smart doorbell;
[0008] After the smart doorbell establishes communication with the preset cloud server, obtain the verification ciphertext sent by the preset cloud server, and verify the verification ciphertext according to the product ciphertext;
[0009] If the verification ciphertext passes the verification, the preset network function of the smart doorbell is unlocked.
[0010] Optionally, when receiving a user binding request, the step of verifying the user binding request according to the product ciphertext in a preset tamper-proof storage area in the smart doorbell includes:
[0011] When receiving a user binding request, reading the request authentication code in the user binding request;
[0012] Generate a product authentication code according to the product ciphertext;
[0013] Determining whether the request authentication code matches the product authentication code;
[0014] If they match, it is determined that the user binding request has passed the verification.
[0015] Optionally, the step of generating a product authentication code according to the product ciphertext includes:
[0016] Decrypting the product ciphertext based on a preset decryption algorithm to obtain a product identification code;
[0017] The product identification code is calculated based on a preset security algorithm to obtain a product authentication code.
[0018] Optionally, after the smart doorbell establishes communication with a preset cloud server, the step of obtaining a verification ciphertext sent by a preset cloud server includes:
[0019] After the smart doorbell establishes communication with the preset cloud server, an encrypted verification ciphertext sent by the preset cloud server is received;
[0020] The encrypted verification ciphertext is decrypted to obtain the verification ciphertext.
[0021] Optionally, the step of verifying the verification ciphertext according to the product ciphertext includes:
[0022] Determining whether the verification ciphertext matches the product ciphertext;
[0023] If they match, it is determined that the verification ciphertext has passed the verification.
[0024] Optionally, after the step of establishing communication between the smart doorbell and a preset cloud server, the method further includes:
[0025] Encrypting the product ciphertext to obtain an encrypted product ciphertext;
[0026] The encrypted product ciphertext is sent to the preset cloud server so that the preset cloud server verifies the encrypted product ciphertext.
[0027] Optionally, when receiving a user binding request, the step of verifying the user binding request according to the product ciphertext in a preset tamper-proof storage area in the smart doorbell includes:
[0028] An OTP storage area is set in the smart doorbell to use the OTP storage area as a preset tamper-proof storage area;
[0029] Obtain the product ciphertext of the smart doorbell, and store the product ciphertext in the OTP storage area.
[0030] In addition, to achieve the above purpose, the present invention also provides a smart doorbell anti-piracy system, the smart doorbell anti-piracy system comprising:
[0031] A first verification module, configured to verify the user binding request according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell when receiving the user binding request;
[0032] A first unlocking module, configured to unlock a preset local function of the smart doorbell if the user binding request is verified;
[0033] A second verification module is used to obtain a verification ciphertext issued by a preset cloud server after the smart doorbell establishes communication with the preset cloud server, and verify the verification ciphertext according to the product ciphertext;
[0034] The second unlocking module is used to unlock the preset network function of the smart doorbell if the verification ciphertext passes the verification.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a smart doorbell, which includes: a preset anti-tampering storage area, a memory, a processor, and a smart doorbell anti-piracy program stored in the memory and runnable on the processor, and when the smart doorbell anti-piracy program is executed by the processor, the steps of the smart doorbell anti-piracy method as described in any of the above items are implemented.
[0036] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, on which a smart doorbell anti-piracy program is stored. When the smart doorbell anti-piracy program is executed by a processor, the steps of the smart doorbell anti-piracy method as described in any of the above items are implemented.
[0037] The present invention proposes a method for preventing piracy of a smart doorbell. When a user binding request is received, the user binding request is verified according to the product ciphertext in the preset anti-tampering storage area in the smart doorbell. If the user binding request passes the verification, it means that the user who sends the binding request is a legitimate user, and the preset local function of the smart doorbell can be unlocked so that the user can use the preset local function normally. After the smart doorbell establishes communication with the preset cloud server, the verification ciphertext sent by the preset cloud server is obtained, and the verification ciphertext is verified according to the product ciphertext. When the verification ciphertext passes the verification, it means that the smart doorbell communicating with the preset cloud server is a legitimate device, and the preset network function of the smart doorbell can be unlocked so that the smart doorbell can exchange information with the preset cloud server and operate the preset network function normally. The present invention prevents the product ciphertext from being changed or read by storing the product ciphertext in a preset anti-tampering storage area, and when the user binds the smart doorbell and the smart doorbell communicates with the preset cloud server, the user binding request and the verification ciphertext corresponding to the smart doorbell sent by the preset cloud server are verified based on the product ciphertext to ensure the legitimacy of the user and the smart doorbell, thereby ensuring that pirated products of the smart doorbell cannot be used normally, reducing the risk of the smart doorbell being pirated. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention;
[0039] Figure 2 A schematic diagram of the process of the first embodiment of the anti-piracy method of the smart doorbell of the present invention;
[0040] Figure 3 A schematic diagram of the flow chart of the second embodiment of the anti-piracy method for an intelligent doorbell according to the present invention;
[0041] Figure 4 The figure is a schematic diagram of a smart doorbell anti-theft system according to an embodiment of the present invention.
[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0044] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0045] like Figure 1As shown, the smart doorbell may include: a processor 1001, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002, and a preset tamper-proof storage area 1006. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the preset tamper-proof storage area 1006 can be an OTP (One Time Programmable) storage area. The OTP storage area has a one-time write feature, which can prevent the written content from being changed. In addition, the OTP storage area can be read through the MCU (Microcontroller Unit) of the smart doorbell to prevent the storage content of the OTP storage area from being read by external illegal devices. Of course, the preset tamper-proof storage area 1006 can also be other storage areas that cannot be changed and illegally read after writing information. The user interface 1003 may include a display screen (Display) as a display unit, and may also include a keyboard as an input unit or a touch screen (Touch Panel) that can also be used as an input unit in addition to a display unit. The optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface (such as a USB interface) and a wireless interface (such as a Bluetooth interface and a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. Optionally, the smart doorbell may also include an RF (Radio Frequency) circuit, a sensor, an audio circuit, a Wi-Fi module, a Bluetooth module, and the like. Among them, the sensor may include various sensors such as a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
[0046] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the smart doorbell, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0047] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a smart doorbell anti-theft application program.
[0048] exist Figure 1 In the device shown, the processor 1001 can be used to call the smart doorbell anti-theft program stored in the memory 1005 and perform the operations of the following embodiments.
[0049] Reference Figure 2The first embodiment of the present invention provides a smart doorbell anti-piracy method, the smart doorbell anti-piracy method comprising the following steps:
[0050] Step S100, when a user binding request is received, the user binding request is verified according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell;
[0051] Specifically, the preset tamper-proof storage area is a storage area that cannot be changed or illegally read after the information is written, such as an OTP (One Time Programmable) storage area. The product ciphertext is a ciphertext generated after encryption according to the product identification information of the smart doorbell. When the smart doorbell receives a user binding request, the user binding request may include request authentication information. The request authentication information in the user binding request can be verified according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell, so as to determine whether the user binding request is a legal request, and then know whether the user is a legal user. Even if an illegal user reads the storage content in the external flash memory of the smart doorbell and performs hardware copying to manufacture a pirated product of the smart doorbell, under the premise that the product ciphertext in the preset tamper-proof storage area cannot be changed or read, it is obvious that the pirated product cannot be verified, which naturally leads to the inability to use the pirated product normally.
[0052] In this embodiment, when a user binding request is received, the user binding request is verified according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell. On the one hand, the product ciphertext is stored in the preset tamper-proof storage area to prevent the product ciphertext from being changed or read. On the other hand, verifying the user binding request based on the product ciphertext also ensures the legitimacy of the user binding request and determines the legitimacy of the user.
[0053] Furthermore, before step S100, the following steps are included:
[0054] Step S110, setting an OTP storage area in the smart doorbell, so that the OTP storage area is used as a preset tamper-proof storage area;
[0055] Step S111, obtaining the product ciphertext of the smart doorbell, and storing the product ciphertext in the OTP storage area.
[0056] Specifically, in the production process of the smart doorbell, an OTP storage area can be set in the smart doorbell to use the OTP storage area as a preset anti-tampering storage area. The OTP storage area has a one-time write feature, so it can be physically guaranteed that the content in the storage area will not be changed. In addition, the OTP storage area is integrated in the MCU (Microcontroller Unit), and the MCU can also set read protection for the OTP storage area to prevent the storage content of the OTP storage area from being read by external illegal devices. Then, the product identification information (such as DSN, (Device Serial Number)) can be encrypted through a preset encryption tool (such as yubikey), a product ciphertext is generated, and the product ciphertext is stored in the OTP storage area. This ensures that the product ciphertext of the smart doorbell will not be changed or read by illegal devices.
[0057] In addition, before step S100, it also includes: when no user binding request is received, a preset locking operation can be performed on the preset local function of the smart doorbell, so that the preset local function is in an inoperable state;
[0058] Specifically, the preset locking operation is an operation for prohibiting the preset local function. The preset local function may be a function that can be implemented after the smart doorbell is connected to the user's terminal device without the help of a preset cloud server. When no user binding request is received, a preset locking operation is performed on the preset local function of the smart doorbell to render the preset local function inoperable. This ensures that pirated products cannot normally use the local functions of the smart doorbell if they have not passed verification, thereby reducing the risk of the smart doorbell being pirated. Of course, it is understandable that the communication function of the smart doorbell (such as a Wi-Fi function module) is in normal operation to ensure that the user's terminal device can normally connect to the smart doorbell and send a user binding request to the smart doorbell.
[0059] Step S200: If the user binding request is verified, unlocking the preset local function of the smart doorbell;
[0060] Specifically, the preset local function can be a function that can be realized without the help of a preset cloud server after the smart doorbell is connected to the user's terminal device, for example, receiving the Wi-Fi (wireless local area network) username and password sent by the terminal device, and connecting to the Wi-Fi through the username and password; sending the video that collects the image information outside the door to the terminal device so that the user can observe the image outside the door; prompting visitor information and other functions. If the user binding request passes the verification, it means that the user who sends the binding request is a legitimate user, and the preset local function of the smart doorbell can be unlocked so that the user can use the preset local function normally. If the user binding request fails to pass the verification, the preset local function will not be unlocked, and a prompt message that the verification has not passed can also be sent to the user's terminal device to prompt the user. In this embodiment, the user binding request passes the verification, which indicates the legitimacy of the user binding request, so the preset local function of the smart doorbell can be unlocked, thereby reducing the risk of the smart doorbell being pirated.
[0061] Step S300, after the smart doorbell establishes communication with the preset cloud server, obtain the verification ciphertext sent by the preset cloud server, and verify the verification ciphertext according to the product ciphertext;
[0062] Specifically, during the production process of the smart doorbell, the product identification information of the smart doorbell, such as DSN (Device Serial Number), can be encrypted by a preset product encryption tool (such as Yubikey) to generate a product ciphertext, and then the product ciphertext is written into a preset anti-tampering storage area, and the product ciphertext is uploaded to a preset cloud server as the verification ciphertext of the smart doorbell for subsequent verification. In this embodiment, when the smart doorbell communicates with the preset cloud server, the preset cloud server sends the verification ciphertext corresponding to the smart doorbell to the smart doorbell, so that the smart doorbell obtains the verification ciphertext. Then, the verification plaintext information obtained after decrypting the verification ciphertext can be compared with the product identification information obtained after decrypting the product ciphertext. If the verification plaintext information matches the product identification information, it is determined that the verification ciphertext has passed the verification. If the verification plaintext information does not match the product identification information, it is determined that the verification ciphertext has not passed the verification. Of course, the product ciphertext and the verification ciphertext can also be directly compared, and whether the verification ciphertext has passed the verification can be determined based on the comparison result. In this embodiment, the legitimacy of the smart door lock can be determined by verifying the verification ciphertext sent by the preset cloud server through the product ciphertext stored in the smart door lock, thereby reducing the risk of the smart doorbell being pirated and improving the security of the cloud information of the smart door lock.
[0063] In addition, before step S300, it also includes: when there is no communication with the preset cloud server, performing a preset locking operation on the preset network function of the smart doorbell to make the preset network function in an inoperable state.
[0064] Specifically, the preset locking operation is also an operation for disabling the preset network function. The preset network function is a function that the smart doorbell can only realize with the help of a preset cloud server. When there is no communication with the preset cloud server, the preset locking operation is performed on the preset network function of the smart doorbell, so that the preset network function is in an inoperable state. This ensures that pirated products cannot normally use the network function of the smart doorbell if they fail to pass verification, thereby reducing the risk of the smart doorbell being pirated, and also improving the security of the cloud information of the smart doorbell.
[0065] Furthermore, after the smart doorbell establishes communication with the preset cloud server, the step of obtaining the verification ciphertext sent by the preset cloud server includes the following steps:
[0066] Step S310, after the smart doorbell establishes communication with the preset cloud server, receiving the encrypted verification ciphertext sent by the preset cloud server;
[0067] Step S311, decrypt the encrypted verification ciphertext to obtain the verification ciphertext.
[0068] Specifically, when the smart doorbell communicates with the preset cloud server, the communication information transmitted to each other can be encrypted by a preset communication encryption method, and the preset communication encryption method can be a symmetric encryption algorithm and / or a symmetric encryption algorithm, which is not limited in this embodiment. After the smart doorbell establishes communication with the preset cloud server (of course, it can also be while the smart doorbell establishes communication with the preset cloud server), after receiving the encrypted verification ciphertext sent by the preset cloud server, the encrypted verification ciphertext is decrypted to obtain the verification ciphertext. In this embodiment, encrypting the verification ciphertext by the preset communication encryption method can improve the security of communication between the smart doorbell and the preset cloud server.
[0069] Furthermore, the verifying the verification ciphertext according to the product ciphertext comprises the following steps:
[0070] Step S320, determining whether the verification ciphertext matches the product ciphertext;
[0071] Step S321: If they match, it is determined that the verification ciphertext has passed the verification.
[0072] Specifically, the product ciphertext in the preset tamper-proof storage area is compared with the verification ciphertext. When the product ciphertext matches the verification ciphertext, it is determined that the verification ciphertext has passed the verification. When the product ciphertext does not match the verification ciphertext, it is determined that the verification ciphertext has not passed the verification. In this embodiment, by directly comparing the verification ciphertext with the product ciphertext, there is no need to add a decryption process, which can improve the efficiency of smart doorbell verification.
[0073] Furthermore, step S300 further includes the following steps:
[0074] Step S330, encrypting the product ciphertext to obtain the encrypted product ciphertext;
[0075] Step S331, sending the encrypted product ciphertext to the preset cloud server, so that the preset cloud server verifies the encrypted product ciphertext.
[0076] Specifically, when the smart doorbell communicates with the preset cloud server, the smart doorbell can also send the product ciphertext to the preset cloud server for verification by the cloud server. The smart doorbell can encrypt the product ciphertext by a preset communication encryption method to obtain an encrypted product ciphertext. Then, the encrypted product ciphertext is sent to the preset cloud server so that the preset cloud server can decrypt the encrypted product ciphertext, thereby verifying the product ciphertext obtained after decryption according to the verification ciphertext. If the product ciphertext passes the verification, the preset cloud server can allow information exchange between the smart doorbells. In this embodiment, while the smart doorbell locally verifies the preset cloud server, the product ciphertext is sent to the preset cloud server so that the preset cloud server verifies the smart doorbell, thereby improving the security of the cloud information of the smart doorbell.
[0077] Step S400: If the verification ciphertext passes the verification, the preset network function of the smart doorbell is unlocked.
[0078] Specifically, the preset network function is a function that the smart doorbell can only realize with the help of a preset cloud server, for example, uploading a video of the image information outside the door to a preset cloud server so that the user can remotely view the image outside the door at home; uploading a video of the image information outside the door to a preset cloud server to save the video, etc. When the verification ciphertext passes the verification, indicating that the smart doorbell communicating with the preset cloud server is a legitimate device, the preset network function of the smart doorbell can be unlocked, so that the smart doorbell can exchange information with the preset cloud server and operate the preset network function normally.
[0079] In the first embodiment of the present invention, when a user binding request is received, the user binding request is verified according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell. If the user binding request passes the verification, it means that the user who sends the binding request is a legitimate user, and the preset local function of the smart doorbell can be unlocked so that the user can use the preset local function normally. After the smart doorbell establishes communication with the preset cloud server, the verification ciphertext sent by the preset cloud server is obtained, and the verification ciphertext is verified according to the product ciphertext. When the verification ciphertext passes the verification, it means that the smart doorbell communicating with the preset cloud server is a legitimate device, and the preset network function of the smart doorbell can be unlocked so that the smart doorbell can exchange information with the preset cloud server and operate the preset network function normally. In this embodiment, the product ciphertext is stored in a preset anti-tampering storage area to prevent the product ciphertext from being changed or read. When the user binds the smart doorbell and the smart doorbell communicates with the preset cloud server, the user binding request and the verification ciphertext corresponding to the smart doorbell sent by the preset cloud server are verified based on the product ciphertext to ensure the legitimacy of the user and the smart doorbell, thereby ensuring that pirated smart doorbell products cannot be used normally and reducing the risk of smart doorbell being pirated.
[0080] Further, refer to Figure 3 The second embodiment of the present invention provides a smart doorbell anti-piracy method, based on the above Figure 2 In the illustrated embodiment, step S100 includes the following steps:
[0081] Step S120, when receiving a user binding request, reading a request authentication code in the user binding request;
[0082] Step S130, generating a product authentication code according to the product ciphertext;
[0083] Step S140, determining whether the request authentication code matches the product authentication code;
[0084] Step S141: If there is a match, it is determined that the user binding request has passed the verification.
[0085] Specifically, the request authentication code is an authentication code generated according to the product identification information, and the product ciphertext is the product information encrypted by the preset product encryption method. During the production process, the request authentication code can be generated according to the product identification information (such as DSN) of the smart doorbell based on a preset security algorithm, wherein the preset security algorithm is used to convert the product identification information into an algorithm for request authentication code in an irreversible form. For example, the product identification information takes DSN as an example, and the DSN can be converted into a ciphertext in an irreversible manner by the SHA1 secure hash algorithm, and the 4 hex values after the ciphertext are taken, and then converted into a decimal number, and the 6 digits after the decimal number are taken, and this 6-digit number is used as the request authentication code. The request authentication code can be printed or pasted in the packaging of the smart doorbell, and the request authentication code is an authentication code generated based on the product ciphertext. Among them, the request authentication code can be in the form of a barcode, a QR code, a string, etc. When the user needs to bind the smart doorbell through a terminal device (such as a smart phone, a tablet computer, etc.), the request authentication code can be scanned or entered to generate a user binding request and send it to the smart doorbell. Thus, when a user binding request is received, the request authentication code contained in the user binding request can be read. Then, the product ciphertext is decrypted to obtain the corresponding product identification information, and then a product authentication code is generated according to the product identification information through the same preset security algorithm. Then, it is determined whether the request authentication code matches the product authentication code. If the request authentication code matches the product authentication code, it means that the product ciphertext in the smart doorbell corresponds to the request authentication code in the user binding request, and the user binding request is a legal request, and then it is determined that the user binding request passes the verification. If the request authentication code does not match the product authentication code, it means that the product ciphertext in the smart doorbell does not correspond to the request authentication code in the user binding request, and the user binding request is an illegal request, and then it is determined that the user binding request fails the verification. In this embodiment, the user binding request includes a request authentication code, and the request authentication code is compared with the product authentication code generated according to the product ciphertext, so as to determine whether the smart doorbell corresponds to the user binding request, so as to determine whether the user binding request passes the verification.
[0086] Furthermore, step S130 further includes the following steps:
[0087] Step S131, decrypting the product ciphertext based on a preset decryption algorithm to obtain a product identification code;
[0088] Step S132, calculating the product identification code based on a preset security algorithm to obtain a product authentication code.
[0089] Specifically, the product ciphertext is a ciphertext generated by encrypting the product identification code (such as DSN) with a preset product encryption algorithm. Therefore, the product ciphertext can be decrypted into a corresponding product identification code by a preset decryption algorithm corresponding to the preset product encryption algorithm. Then, based on the generation method of the request authentication code, the corresponding product authentication code is calculated according to the product identification code. Then, the product authentication code can be compared with the request authentication code in the user binding request.
[0090] like Figure 4 As shown, Figure 4 Schematic diagram of an intelligent doorbell anti-piracy system according to an embodiment of the present invention. In one embodiment of the present invention, an intelligent doorbell anti-piracy system is proposed, and the intelligent doorbell anti-piracy system includes:
[0091] A first verification module 10 is used to verify the user binding request according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell when receiving the user binding request;
[0092] A first unlocking module 20, configured to unlock a preset local function of the smart doorbell if the user binding request is verified;
[0093] The second verification module 30 is used to obtain the verification ciphertext sent by the preset cloud server after the smart doorbell establishes communication with the preset cloud server, and verify the verification ciphertext according to the product ciphertext;
[0094] The second unlocking module 40 is used to unlock the preset network function of the smart doorbell if the verification ciphertext passes the verification.
[0095] Furthermore, the smart doorbell anti-theft system includes:
[0096] The first verification module 10 is further configured to read a request verification code in a user binding request when receiving the user binding request;
[0097] The first verification module 10 is further used to generate a product authentication code according to the product ciphertext;
[0098] The first verification module 10 is further used to determine whether the request authentication code matches the product authentication code;
[0099] The first verification module 10 is further configured to determine that the user binding request has passed the verification if there is a match.
[0100] Furthermore, the smart doorbell anti-theft system includes:
[0101] The first verification module 10 is further used to decrypt the product ciphertext based on a preset decryption algorithm to obtain a product identification code;
[0102] The first verification module 10 is further used to calculate the product identification code based on a preset security algorithm to obtain a product authentication code.
[0103] Furthermore, the smart doorbell anti-theft system includes:
[0104] The second verification module 30 is further configured to receive the encrypted verification ciphertext sent by the preset cloud server after the smart doorbell establishes communication with the preset cloud server;
[0105] The second verification module 30 is further used to decrypt the encrypted verification ciphertext to obtain the verification ciphertext.
[0106] Furthermore, the smart doorbell anti-theft system includes:
[0107] The second verification module 30 is further used to determine whether the verification ciphertext matches the product ciphertext;
[0108] The second verification module 30 is further configured to determine that the verification ciphertext has passed the verification if there is a match.
[0109] Furthermore, the smart doorbell anti-piracy system includes: an upload module;
[0110] The upload module is used to encrypt the product ciphertext and obtain the encrypted product ciphertext;
[0111] The uploading module is used to send the encrypted product ciphertext to the preset cloud server so that the preset cloud server verifies the encrypted product ciphertext.
[0112] Furthermore, the smart doorbell anti-piracy system includes: a setting module;
[0113] A setting module, used to set an OTP storage area in the smart doorbell so as to use the OTP storage area as a preset tamper-proof storage area;
[0114] The setting module is used to obtain the product ciphertext of the smart doorbell and store the product ciphertext in the OTP storage area.
[0115] In addition, an embodiment of the present invention further provides a computer storage medium.
[0116] The computer storage medium stores a computer program, and when the computer program is executed by the processor, the operations in the smart doorbell anti-piracy method provided in the above embodiment are implemented. The specific implementation steps can refer to the above embodiment and will not be described in detail here.
[0117] It is understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0118] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0119] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0120] The units in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0121] In the present application, the same or similar terminology concepts, technical solutions and / or application scenario descriptions are generally described in detail only the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of the present application, for the same or similar terminology concepts, technical solutions and / or application scenario descriptions that are not described in detail later, reference can be made to the previous related detailed descriptions.
[0122] In the present application, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0123] The various technical features of the technical solution of the present application can be arbitrarily combined. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present application.
[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present application.
[0125] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a storage disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state storage disk Solid State Disk (SSD)), etc.
[0126] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A smart doorbell anti-piracy method, characterized in that: The smart doorbell anti-piracy method comprises the following steps: When receiving a user binding request, verify the user binding request according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell, wherein the preset tamper-proof storage area is a storage area that cannot be changed or illegally read after the information is written, and the product ciphertext is the ciphertext generated by the YubiKey tool after encryption according to the product identification information of the smart doorbell; If the user binding request is verified, the preset local function of the smart doorbell is unlocked, wherein the preset local function is a function that can be realized after the smart doorbell is connected to the user's terminal device without the help of a preset cloud server; After the smart doorbell establishes communication with the preset cloud server, obtain the verification ciphertext sent by the preset cloud server, and verify the verification ciphertext according to the product ciphertext; If the verification ciphertext passes the verification, the preset network function of the smart doorbell is unlocked, wherein the preset network function is a function that the smart doorbell can only realize with the help of the preset cloud server; When receiving a user binding request, the step of verifying the user binding request according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell includes: When receiving a user binding request, reading the request authentication code in the user binding request; Generate a product authentication code according to the product identification information of the smart doorbell in the product ciphertext; Determining whether the request authentication code matches the product authentication code; If they match, it is determined that the user binding request has passed the verification; After the step of establishing communication between the smart doorbell and the preset cloud server, the step further includes: Encrypting the product ciphertext to obtain an encrypted product ciphertext; The encrypted product ciphertext is sent to the preset cloud server so that the preset cloud server verifies the encrypted product ciphertext.
2. The smart doorbell anti-piracy method according to claim 1, characterized in that: The step of generating a product authentication code according to the product ciphertext comprises: Decrypting the product ciphertext based on a preset decryption algorithm to obtain a product identification code; The product identification code is calculated based on a preset security algorithm to obtain a product authentication code.
3. The method for preventing theft of smart doorbell according to claim 1, characterized in that: After the smart doorbell establishes communication with the preset cloud server, the step of obtaining the verification ciphertext sent by the preset cloud server includes: After the smart doorbell establishes communication with the preset cloud server, an encrypted verification ciphertext sent by the preset cloud server is received; The encrypted verification ciphertext is decrypted to obtain the verification ciphertext.
4. The method for preventing theft of smart doorbells according to claim 1, characterized in that: The step of verifying the verification ciphertext according to the product ciphertext comprises: Determining whether the verification ciphertext matches the product ciphertext; If they match, it is determined that the verification ciphertext has passed the verification.
5. The smart doorbell anti-piracy method according to any one of claims 1 to 4, characterized in that: When receiving a user binding request, the step of verifying the user binding request according to the product ciphertext in the preset tamper-proof storage area in the smart doorbell includes: An OTP storage area is set in the smart doorbell to use the OTP storage area as a preset tamper-proof storage area; Obtain the product ciphertext of the smart doorbell, and store the product ciphertext in the OTP storage area.
6. An intelligent doorbell anti-piracy system, characterized in that: The smart doorbell anti-theft system comprises: A first verification module is used for, when receiving a user binding request, verifying the user binding request according to a product ciphertext in a preset tamper-proof storage area in the smart doorbell, wherein the preset tamper-proof storage area is a storage area that cannot be changed or illegally read after information is written, and the product ciphertext is a ciphertext generated by a yubikey tool after encryption according to the product identification information of the smart doorbell; when receiving a user binding request, reading a request authentication code in the user binding request; generating a product authentication code according to the product identification information of the smart doorbell in the product ciphertext; judging whether the request authentication code matches the product authentication code; if they match, judging that the user binding request passes the verification; A first unlocking module, configured to unlock a preset local function of the smart doorbell if the user binding request is verified, wherein the preset local function is a function that can be realized after the smart doorbell is connected to the user's terminal device without the help of a preset cloud server; A second verification module is used to send the encrypted product ciphertext to the preset cloud server and obtain the verification ciphertext issued by the preset cloud server after the smart doorbell establishes communication with the preset cloud server, and verify the verification ciphertext according to the encrypted product ciphertext; The second unlocking module is used to unlock the preset network function of the smart doorbell if the verification ciphertext passes the verification, wherein the preset network function is a function that the smart doorbell can only realize with the help of the preset cloud server.
7. A smart doorbell, characterized in that: The smart doorbell includes: a preset anti-tampering storage area, a memory, a processor, and a smart doorbell anti-piracy program stored in the memory and executable on the processor. When the smart doorbell anti-piracy program is executed by the processor, the steps of the smart doorbell anti-piracy method as described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a smart doorbell anti-piracy program, and when the smart doorbell anti-piracy program is executed by the processor, the steps of the smart doorbell anti-piracy method according to any one of claims 1 to 5 are implemented.
