A method and system for verifying the identity of a lock
The lock registration code is generated and verified through the AES-256 encryption method, which solves the problem of work burden and abnormal situations not being discovered in time caused by traditional mechanical locks, realizes the legality identification of locks, and ensures the safety and management convenience of locks. .
Patent Information
- Application Number
- CN202110125277.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-01-29
AI Technical Summary
Traditional mechanical locks place a heavy burden on on-site workers and cannot detect abnormal conditions in the locks in time, leading to risks such as electricity theft.
The AES-256 symmetric encryption method is used to generate the lock registration code, and the identity verification is performed through the lock testing equipment to ensure the legitimacy of the lock's identity during the arrival acceptance and formal operation, and to avoid the appearance of illegal locks.
It improves the timeliness of abnormal operation and maintenance of locks, protects the legitimate rights and interests of lock purchasers, maintains a healthy competitive environment in the market, and ensures normal, safe and stable operation of locks on site.
Smart Images

Figure CN112910886B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power Internet of Things, and in particular to a method and system for verifying the identity of a lock. Background Art
[0002] At present, traditional mechanical locks are widely installed in the customer-side terminal metering box equipment. The use of traditional mechanical locks brings a heavy burden to the work of on-site operators. At the same time, it is impossible to detect abnormal situations such as natural or man-made damage to the locks, illegal unlocking, etc. in time, which brings risks such as electricity theft. In order to meet the needs of the construction of the power Internet of Things, the power intelligent Internet of Things safety locks comprehensively improve the traditional locks from the three aspects of perception, innovation, and safety, and improve the safety of lock use and the convenience of management. At the same time, the lock status is monitored, and abnormal lock conditions are reported in time to reduce the adverse effects caused by lock damage.
[0003] With respect to the technical problems that the traditional mechanical locks existing in the above-mentioned prior art bring a heavy burden to the work of on-site operators and cannot timely detect abnormal conditions of the locks, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present disclosure provide a method and system for verifying the identity of a lock, so as to at least solve the technical problem in the prior art that traditional mechanical locks bring a heavy burden to the work of on-site operators and fail to detect abnormal conditions of the locks in a timely manner.
[0005] According to one aspect of an embodiment of the present disclosure, a method for verifying the identity of a lock is provided, including: a lock registration information generation module generates a lock registration code corresponding to the asset number of the lock to be tested based on lock information by using an AES-256 symmetric encryption method, the lock information including the asset number of the lock to be tested, the serial number information of an embedded security control module chip, the manufacturer's name, the province of supply, the type of supply and the quantity of products; a lock testing device imports the lock registration code through a host computer testing software; when performing lock identity verification, the lock testing device reads the asset number of the lock to be tested and the serial number of the embedded security control module chip, determines the corresponding lock registration code using the lock asset number, and obtains plaintext information corresponding to the lock registration code through an AES-256 symmetric decryption method; the lock testing device compares the plaintext information with the lock information, and determines that the identity verification has passed when the plaintext information is consistent with the lock information.
[0006] According to another aspect of the embodiment of the present disclosure, a system for verifying the identity of a lock is also provided, including: a lock registration code generation module, which is used for the lock registration information generation module to generate a lock registration code corresponding to the asset number of the lock to be tested based on the lock information, using the AES-256 symmetric encryption method, and the lock information includes the asset number of the lock to be tested, the serial number information of the embedded security control module chip, the manufacturer's name, the province of supply, the type of supply and the quantity of products; a plaintext information acquisition module, which is used for the lock testing equipment to import the lock registration code through the host computer testing software, when performing the lock identity verification, the lock testing equipment reads the lock information, determines the corresponding lock registration code using the lock asset number, and obtains the plaintext information corresponding to the lock registration code through the AES-256 symmetric decryption method; an identity verification determination module, which is used for the lock testing equipment to compare the plaintext information with the lock information, and when the plaintext information is consistent with the lock information, determines that the identity verification is passed.
[0007] In the present invention, a method for verifying the identity of a lock is used. The legitimacy of the lock is authenticated during the acceptance and formal operation of the goods, so as to avoid the appearance of illegal locks. This ensures that the lock can operate normally, safely, stably and effectively on site, improves the timeliness of abnormal operation and maintenance of the lock, protects the legitimate rights and interests of the lock purchaser, and maintains a healthy competition environment in the entire market. This solves the technical problem that traditional mechanical locks in the prior art bring a heavy burden to the work of on-site operators and fail to detect abnormal conditions of the lock in time. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present application. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0009] Figure 1 It is a flowchart of a method for verifying the identity of a lock according to an embodiment of the present disclosure;
[0010] Figure 2 It is a flow chart of a system for verifying the identity of a lock according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0011] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.
[0012] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.
[0013] According to a first aspect of the present embodiment, a method for verifying the identity of a lock is provided. Figure 1 A schematic diagram showing the process of the method is shown in FIG. Figure 1 As shown, the method includes:
[0014] S102: The lock registration information generation module generates a lock registration code corresponding to the asset number of the lock to be tested by using the AES-256 symmetric encryption method based on the lock information, wherein the lock information includes the asset number of the lock to be tested, the serial number information of the embedded security control module chip, the manufacturer name, the supply province, the supply type and the product quantity;
[0015] S104: The lock test device imports the lock registration code through the host computer test software. When performing lock identity verification, the lock test device reads the asset number of the lock to be tested and the serial number of the embedded security control module chip, determines the corresponding lock registration code by using the lock asset number, and obtains the plaintext information corresponding to the lock registration code by using the AES-256 symmetric decryption method;
[0016] S106: The lock testing device compares the plain text information with the lock information, and determines that the identity verification is passed if the plain text information is consistent with the lock information.
[0017] Specifically, in this embodiment, the method for verifying the identity of the lock mainly includes three steps. First, before the formal supply, the lock manufacturer obtains the asset number of the lock to be produced and the serial number of the ESAM chip from the provincial company and relevant institutions respectively. The manufacturer determines the one-to-one correspondence between the two according to the actual production situation, and forms a "lock registration information table" with this relationship and information such as the manufacturer's name, supply province, supply type and product quantity. The asset number of the lock to be tested and the serial number of the embedded security control module chip include the manufacturer's name, supply province, supply type and product quantity. In addition, the manufacturer is also required to fill in the "lock registration application form" for the batch of products and submit the two documents together. To the receiving unit. After the receiving unit reviews and approves it, the lock information in the information table is symmetrically encrypted with AES-256 to form a corresponding unique lock registration code, and the registration code is provided to the provincial company for subsequent testing.
[0018] Secondly, during the provincial company's arrival acceptance phase, the electric power intelligent IoT security lock test equipment is required to test the arrived locks and issue information such as ESAM chip keys and asset numbers. At this time, the lock registration code is needed to identify the legitimacy of the lock identity to prevent illegal locks from passing the test. The tester imports the lock registration code through the host computer test software. When executing the step of issuing the lock ESAM chip key and asset number, the host computer software obtains the asset number and ESAM chip serial number of the lock through the test equipment, and uses the same encryption key and algorithm as the previous step to encrypt the lock information. The encryption result is compared with the imported lock registration code. The lock that fails to pass the test immediately stops the test and judges that the test result is unqualified. The lock that fails and does not have ESAM chip keys and asset numbers will not be able to be put into use on site to avoid the appearance of illegal locks. The lock that passes the comparison continues to issue information, and the unlocking code plaintext, key status and ESAM serial number are encrypted by the key server to form an unlocking code and saved in the lock. After all locks are tested, the unlocking code is exported and provided to the lock management module.
[0019] Finally, when the lock is officially put into operation, the on-site staff needs to read the lock's ESAM serial number, asset number and other information through the on-site operation terminal when performing operations such as opening and closing the lock, establish a secure application connection with the lock, and send the acquired lock information to the lock management module. The module verifies the information, and subsequent operations cannot be performed if it fails the verification, to avoid the appearance of illegal locks. If the verification passes, the module will send the corresponding unlocking code to the lock through the on-site operation terminal, and the corresponding operation can be performed only after the lock is compared, to avoid the lock being cracked.
[0020] Therefore, a method for verifying the identity of the lock is used. The legitimacy of the lock is authenticated during the acceptance and formal operation of the goods, so as to avoid the appearance of illegal locks. It is ensured that the lock can operate normally, safely, stably and effectively on site, improves the timeliness of abnormal operation and maintenance of the lock, protects the legitimate rights and interests of the lock purchaser, and maintains a healthy competition environment in the entire market. This solves the technical problem that traditional mechanical locks in the prior art bring a heavy burden to the work of on-site operators and fail to detect abnormal conditions of the lock in time.
[0021] Optionally, when the plaintext information is consistent with the lock information, determining that the identity verification has passed includes: when the plaintext information is consistent with the lock information, the lock testing device encrypts the unlocking code plaintext, the key status and the serial number of the embedded security control module chip through the key server to generate a key unlocking code; the lock testing device sends the key unlocking code to the lock for storage.
[0022] Optionally, when the plaintext information is consistent with the lock information, determining that the identity verification has passed also includes: when the plaintext information is consistent with the lock information, the lock testing device sends the plaintext information and the key unlocking code to the lock management module; when the lock management module is running, the lock information of the lock to be opened is obtained through the unlocking device, the lock management module obtains the lock registration code corresponding to the lock information, and obtains the plaintext information through AES decryption.
[0023] Optionally, when the plain text information is consistent with the lock information, determining that the identity verification is passed further includes: comparing the plain text information with pre-stored plain text information; when the plain text information is consistent with the pre-stored plain text information, the unlocking device sends the key unlocking code to the lock, and compares the key unlocking code with the pre-stored unlocking code; when the key unlocking code is consistent with the pre-stored unlocking code, the lock management module determines that the identity of the lock has passed the verification. .
[0024] Optionally, the method further includes: when the plain text information is inconsistent with the lock information, determining that the identity of the lock is unqualified; and not putting the lock with the unqualified identity into use.
[0025] Therefore, a method for verifying the identity of the lock is used. The legitimacy of the lock is authenticated during the acceptance and formal operation of the goods, so as to avoid the appearance of illegal locks. It is ensured that the lock can operate normally, safely, stably and effectively on site, improves the timeliness of abnormal operation and maintenance of the lock, protects the legitimate rights and interests of the lock purchaser, and maintains a healthy competition environment in the entire market. This solves the technical problem that traditional mechanical locks in the prior art bring a heavy burden to the work of on-site operators and fail to detect abnormal conditions of the lock in time.
[0026] According to another aspect of this embodiment, a system 200 for verifying the identity of a lock is also provided. Figure 2 As shown, the system includes: a lock registration code generation module 210, which is used for the lock registration information generation module to generate a lock registration code corresponding to the asset number of the lock to be tested based on the lock information, using the AES-256 symmetric encryption method, and the lock information includes the asset number of the lock to be tested, the serial number information of the embedded security control module chip, the manufacturer's name, the supply province, the supply type and the product quantity; a plain text information acquisition module 220, which is used for the lock test equipment to import the lock registration code through the host computer test software, when performing the lock identity verification, the lock test equipment reads the lock information, uses the lock asset number to determine the corresponding lock registration code, and obtains the plain text information corresponding to the lock registration code through the AES-256 symmetric decryption method; an identity verification determination module 230, which is used for the lock test equipment to compare the plain text information with the lock information, and when the plain text information is consistent with the lock information, determine that the identity verification is passed.
[0027] Optionally, the identity verification module 230 is determined, including: a key unlocking code generating sub-module, which is used for the lock testing device to encrypt the unlocking code plaintext, key status and serial number of the embedded security control module chip through the key server to generate a key unlocking code when the plaintext information is consistent with the lock information; and a key unlocking code saving sub-module, which is used for the lock testing device to send the key unlocking code to the lock for saving.
[0028] Optionally, the identity verification module 230 is determined to further include: a sub-module for sending an unlocking code, which is used for the lock testing device to send the plaintext information and the key unlocking code to the lock management module when the plaintext information is consistent with the lock information; a sub-module for obtaining plaintext information, which is used for obtaining the lock information of the lock to be opened through the unlocking device when the lock management module is running, and the lock management module obtains the lock registration code corresponding to the lock information, and obtains the plaintext information through AES decryption.
[0029] Optionally, the identity verification module 230 is determined to further include: a plaintext information comparison submodule, which is used to compare the plaintext information with the pre-stored plaintext information; a unlocking code comparison submodule, which is used to, when the plaintext information is consistent with the pre-stored plaintext information, the unlocking device sends the key unlocking code to the lock and compares the key unlocking code with the pre-stored unlocking code; a lock identity passing submodule, which is used to, when the key unlocking code is consistent with the pre-stored unlocking code, the lock management module determines that the identity of the lock has passed the verification.
[0030] Optionally, it also includes: an identity unqualified determination module, used to determine that the identity of the lock is unqualified when the plain text information is inconsistent with the lock information; and a non-use module, used to not use the lock with an unqualified identity.
[0031] A system 200 for verifying the identity of a lock according to an embodiment of the present invention corresponds to a method for verifying the identity of a lock according to another embodiment of the present invention, and will not be described in detail herein.
[0032] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0033] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0034] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0035] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0036] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0037] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for verifying the identity of a lock, characterized in that: include: The lock registration information generation module generates a lock registration code corresponding to the asset number of the lock to be tested by using the AES-256 symmetric encryption method based on the lock information. The lock information includes the asset number of the lock to be tested, the serial number information of the embedded security control module chip, the manufacturer name, the supply province, the supply type and the product quantity; The lock test device imports the lock registration code through the host computer test software. When performing lock identity verification, the lock test device reads the lock information, determines the corresponding lock registration code using the lock asset number, and obtains the plain text information corresponding to the lock registration code through the AES-256 symmetric decryption method; The lock testing device compares the plain text information with the lock information, and determines that the identity verification is passed if the plain text information is consistent with the lock information; Encrypting the unlock code plaintext, the key status and the serial number of the embedded security control module chip through the key server to generate a key unlock code; Sending the key unlocking code to the lock for storage; at the same time, sending the plain text information and the key unlocking code to the lock management module; The lock management module obtains the lock information of the lock to be opened through the unlocking device and verifies the information. If the verification passes, the lock management module sends the key unlocking code to the lock through the unlocking device, and the lock performs an unlocking code comparison. The corresponding operation can be executed only after the comparison passes.
2. The method according to claim 1, characterized in that The lock management module verifies the information, including: The lock management module obtains the lock registration code corresponding to the lock information, obtains the plaintext information through AES-256 decryption, compares the plaintext information with the pre-stored plaintext information, and when the plaintext information is consistent with the pre-stored plaintext information, sends the key unlocking code to the lock via the unlocking device.
3. The method according to claim 2, characterized in that The lock performs unlocking code comparison, including: The lock compares the key unlocking code with a pre-stored key unlocking code; When the key unlocking code is consistent with the pre-stored key unlocking code, executing a corresponding operation; The lock management module determines that the identity of the lock passes the verification.
4. The method according to claim 1, characterized in that Also includes: In the case where the plain text information is inconsistent with the lock information, determining that the identity of the lock is unqualified; as well as Locks that do not meet the requirements will not be put into use.
5. A system for verifying the identity of a lock, characterized in that: include: A lock registration code generation module is used for the lock registration information generation module to generate a lock registration code corresponding to the asset number of the lock to be tested based on the lock information using the AES-256 symmetric encryption method. The lock information includes the asset number of the lock to be tested, the serial number information of the embedded security control module chip, the manufacturer name, the supply province, the supply type and the product quantity; Obtaining a plaintext information module, used for the lock test device to import the lock registration code through the host computer test software. When performing lock identity verification, the lock test device reads the lock information, determines the corresponding lock registration code using the lock asset number, and obtains the plaintext information corresponding to the lock registration code through the AES-256 symmetric decryption method; Determine an identity verification module, which is used for the lock test device to compare the plain text information with the lock information, and when the plain text information is consistent with the lock information, determine that the identity verification is passed; The identity verification module includes a key unlocking code generation submodule and a key unlocking code storage submodule; the key unlocking code generation submodule is used for the lock test device to encrypt the unlocking code plaintext, key status and the serial number of the embedded security control module chip through the key server to generate a key unlocking code when the plaintext information is consistent with the lock information; the key unlocking code storage submodule is used for the lock test device to send the key unlocking code to the lock for storage; The identity verification module further includes a submodule for sending an unlocking code, which is used for the lock test device to send the plain text information and the key unlocking code to the lock management module when the plain text information is consistent with the lock information; The identity verification module further includes a plaintext information acquisition submodule and a plaintext information comparison submodule, wherein the plaintext information acquisition submodule is used for the lock management module to obtain the lock information of the lock to be opened through the unlocking device; the plaintext information comparison submodule is used to verify the information; if the verification is passed, the lock management module sends the key unlocking code to the lock through the unlocking device; The identity verification module also includes an unlocking code comparison module, which is used to compare the unlocking code of the lock; the corresponding operation can be performed after the comparison is passed.
6. The system according to claim 5, characterized in that: The submodule for obtaining plaintext information is also used by the lock management module to obtain the lock registration code corresponding to the lock information, and obtain the plaintext information through AES-256 decryption; The plaintext information comparison submodule is specifically used to compare the plaintext information with pre-stored plaintext information.
7. The system according to claim 6, characterized in that: The unlock code comparison submodule is specifically used for the lock to compare the key unlock code with a pre-stored key unlock code; The identity verification module also includes a lock identity verification submodule. The lock identity passing submodule is used for the lock management module to determine that the lock identity has passed the verification when the key unlocking code is consistent with the pre-stored key unlocking code.
8. The system according to claim 5, characterized in that Also includes: An identity unqualified determination module, used for determining that the identity of the lock is unqualified when the plain text information is inconsistent with the lock information; as well as The unused module is used to prevent unqualified locks from being put into use.
