A method and system for generating a national secret SM9 identification public key for a smart device

By generating and updating the national secret SM9 identification public key in the intelligent device system, the video string viewing problem caused by repeated codes of smart devices is solved, ensuring that each device has a unique identity, and information security is enhanced.

CN115065467BActive Publication Date: 2024-11-12E-SURFING DIGITAL LIFE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210747693.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-11-12
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

In the existing smart camera system, the repeated factory code of the smart device leads to the problem of watching video strings, and the National Secret SM9 standard does not clearly specify how to generate a unique National Secret SM9 public key, affecting the information security of the smart device.

Method used

Receive the national secret SM9 identification public key allocation request of the device through the platform server, query and generate or update the national secret SM9 identification public key, ensuring that its length is consistent with the factory string code, including the factory string code information part, and adopt incremental numbers and letters Combination, the last bit is the character excluded from the factory string code, stored and transferred to the device.

Benefits of technology

It effectively avoids the problem of watching video strings, ensures that each smart device has a unique national secret SM9 identification public key, enhances user privacy and public security, and reduces the cost of transformation of the original platform system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115065467B_ABST
    Figure CN115065467B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for generating a national secret SM9 identification public key for a smart device. The present invention uses the national secret SM9 identification public key as the unique identifier of the binding relationship between the smart device and the bound user. The identification public key is generated by a platform server in response to a request from the smart device or by the platform server based on the factory serial code of the smart device and the bound user during autonomous upgrading / updating, thereby overcoming the potential defects caused by using the factory serial code of the smart device for device identification. The national secret SM9 identification public key generation method of the present invention complies with the original platform system rules to the greatest extent and reduces the modification cost of the original platform server to the greatest extent. Because the files stored by the user on the platform server are bound to the national secret SM9 identification public key, when the same user binds the same device, the original national secret SM9 identification public key can be assigned to it so that the files stored on the platform server will not be lost after the user resets the device or rebinds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security of smart devices, and more specifically, to a method and system for generating a national secret SM9 identification public key for smart devices. Background Art

[0002] The development of video surveillance cameras is from the initial closed-circuit television monitoring system, that is, the first generation of analog television monitoring system, to the later semi-digital era of PC card-based video monitoring system, and finally to the current digital era of network video monitoring system based on embedded technology, network and communication technology as the platform, and intelligent image analysis as the feature.

[0003] Nowadays, smart cameras are increasingly used in private and public areas such as home anti-theft scenarios and public security scenarios, playing a vital role in the development of visual networking technology. For example, through the application of smart cameras, users can log in to the platform server associated with the smart camera (for example, cloud platform server, etc.) to watch in real time, review in non-real time, or download the video content captured by the smart camera.

[0004] However, in some existing smart camera systems, when requesting video content associated with a smart camera and a bound user from a platform server, the smart camera is generally identified by the factory serial code of the smart camera itself (e.g., the device SN code (product serial number)), and the video content associated with it is requested. Therefore, if the manufacturer burns duplicate factory serial codes into different smart cameras when they leave the factory, it may cause different users to watch videos in series. For example, smart cameras are installed in the homes of user A and user B, but the two smart cameras are burned with the same factory serial code when they leave the factory. Therefore, when user A requests the platform server for the video content shot by the smart camera at home, it is likely to see the video content shot by the smart camera with the same factory serial code in user B's home. In addition, in some malicious intrusion scenarios, there may be a behavior of knowing the factory serial code of other people's devices to view other people's video content. The above two situations have caused great harm to user privacy and public safety. Therefore, a safer way is needed to identify smart cameras to prevent the situation of accidentally or intentionally watching the video content of other people's smart cameras.

[0005] "Information Security Technology SM9 Identification Cryptographic Algorithm" (hereinafter referred to as the "National Secret SM9 Standard"). Since the use of the identification cryptographic algorithm in the National Secret SM9 Standard can save the cost of purchasing certificates for each device and the work of certificate review and management, key backup and custody, more and more smart devices and platform servers have adopted the National Secret SM9 Standard for communication. In the National Secret SM9 Standard, a public key (hereinafter referred to as the "National Secret SM9 Public Key") is required to identify smart devices, and the uniqueness of each device identification is crucial. However, the National Secret SM9 Standard does not clearly explain how to ensure the generation of a unique National Secret SM9 public key for each device. Therefore, the present invention proposes a solution for generating a National Secret SM9 identification public key for identifying a smart camera, thereby avoiding the potential possibility of video cross-viewing. Summary of the invention

[0006] This Summary is provided to introduce some concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.

[0007] According to one embodiment of the present invention, a method for allocating a national SM9 identification public key executed by a platform server is provided, comprising: receiving a national SM9 identification public key allocation request from a device, the national SM9 identification public key allocation request including user identity information of a user bound to a client of the device and a factory serial code of the device; querying in a national SM9 identification public key data table whether a national SM9 identification public key corresponding to the user identity information and the factory serial code already exists, each entry in the national SM9 identification public key data table including the following information: user identity information, factory serial code, national SM9 identification public key; if a national SM9 identification public key corresponding to the user identity information and the factory serial code already exists in the national SM9 identification public key data table, then the national SM9 The identification public key is transmitted to the device; if the national secret SM9 identification public key corresponding to the user identity information and the factory serial code does not exist in the national secret SM9 identification public key data table, then the national secret SM9 identification public key is generated based on the factory serial code included in the national secret SM9 identification public key allocation request, wherein the generated national secret SM9 identification public key has the following characteristics: the length of the generated national secret SM9 identification public key is consistent with the length of the factory serial code; the generated national secret SM9 identification public key includes the part of the identification device information in the factory serial code; the generated national secret SM9 identification public key includes a combination of numbers and letters that increases according to a predetermined rule; the last digit of the generated national secret SM9 identification public key is the character excluded in the factory serial code; the generated national secret SM9 identification public key together with the user identity information and the factory serial code is stored as an entry in the national secret SM9 identification public key data table; and the generated national secret SM9 identification public key is transmitted to the device.

[0008] According to one embodiment of the present invention, there is provided a method for background updating of the national secret SM9 identification public key executed by a platform server, comprising: extracting the user identity information of the user bound to the currently connected device to identify the matching entry in the original identification information data table, wherein each entry in the original identification information data table includes the following information: user identity information, identification information string; judging whether the identification information string is a factory serial code or a national secret SM9 identification public key according to the last digit of the identification information string in each matching entry identified; if the last digit of the identification information string is not excluded from the factory serial code characters, the identification information string is identified as the factory serial code; and the identification information string identified as the factory serial code is updated to the national secret SM9 identification public key, wherein the updated national secret SM9 identification public key has the following characteristics: the length of the updated national secret SM9 identification public key is consistent with the length of the factory serial code; the updated national secret SM9 identification public key includes the part of the identification device information in the factory serial code; the updated national secret SM9 identification public key includes a combination of numbers and letters that increase incrementally according to a predetermined rule; the last digit of the updated national secret SM9 identification public key is the character excluded from the factory serial code.

[0009] According to one embodiment of the present invention, a national secret SM9 identification public key distribution system is provided, comprising: one or more devices; a platform server, the platform server comprising a query module, a generation module and a distribution module, wherein the query module is configured to: receive a national secret SM9 identification public key distribution request from the device, the national secret SM9 identification public key distribution request comprising the user identity information of the user bound to the client of the device and the factory serial code of the device; query in a national secret SM9 identification public key data table whether a national secret SM9 identification public key corresponding to the user identity information and the factory serial code already exists, each entry in the national secret SM9 identification public key data table comprising the following information: user identity information, factory serial code, national secret SM9 identification public key; if a national secret SM9 identification public key data table corresponding to the user identity information and the factory serial code already exists, identification public key, then notify the distribution module to transmit the national secret SM9 identification public key to the device; wherein the generation module is configured to: if the national secret SM9 identification public key corresponding to the user identity information and the factory serial code does not exist in the national secret SM9 identification public key data table, then generate the national secret SM9 identification public key based on the factory serial code included in the national secret SM9 identification public key distribution request, wherein the generated national secret SM9 identification public key has the following characteristics: the length of the generated national secret SM9 identification public key is consistent with the length of the factory serial code; the generated national secret SM9 identification public key includes the part of the identification device information in the factory serial code; the generated national secret SM9 identification public key includes a combination of numbers and letters that increase according to a predetermined rule; the last digit of the generated national secret SM9 identification public key is the character excluded in the factory serial code; the generated national secret SM9 The identification public key together with the user identity information and the factory serial code is stored as an entry in the national secret SM9 identification public key data table; and wherein the distribution module is configured to transmit the generated national secret SM9 identification public key to the device.

[0010] According to one embodiment of the present invention, a national secret SM9 identification public key distribution system is provided, comprising: one or more devices; a platform server, the platform server comprising a background update module, wherein the background update module is configured to: extract the user identity information of the user bound to the currently connected device to identify the matching entry in the original identification information data table, wherein each entry in the original identification information data table comprises the following information: user identity information, identification information string; according to the last digit of the identification information string in each identified matching entry, determine whether the identification information string is a factory serial code or a national secret SM9 identification public key; if the identification information character If the last digit of the string is not a character excluded in the factory serial code, the identification information character string is identified as the factory serial code; and the identification information character string identified as the factory serial code is updated to the national secret SM9 identification public key, wherein the updated national secret SM9 identification public key has the following characteristics: the length of the updated national secret SM9 identification public key is consistent with the length of the factory serial code; the updated national secret SM9 identification public key includes the part of the identification device information in the factory serial code; the updated national secret SM9 identification public key includes a combination of numbers and letters that increases according to a predetermined rule; the last digit of the updated national secret SM9 identification public key is a character excluded in the factory serial code.

[0011] According to one embodiment of the present invention, there is provided a computing device, comprising: a processor; a memory, wherein the memory stores instructions, and the instructions can execute the above method when executed by the processor.

[0012] These and other features and advantages will become apparent by reading the following detailed description and by reference to the associated drawings.It is to be understood that the foregoing general description and the following detailed description are illustrative only and are not restrictive of the aspects of what is claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to understand the manner in which the above features of the present invention are used in detail, the above briefly summarized contents can be described in more detail with reference to various embodiments, some of which are shown in the accompanying drawings. However, it should be noted that the accompanying drawings only show some typical aspects of the present invention and should not be considered to limit its scope, because the description may allow for other equally effective aspects.

[0014] Figure 1 A block diagram of a national SM9 identification public key distribution system 100 according to an embodiment of the present invention is shown.

[0015] Figure 2 A flow chart of a method 200 for distributing a national secret SM9 identification public key according to an embodiment of the present invention is shown.

[0016] Figure 3 A flowchart of a method 300 for background updating of the national encryption SM9 identification public key according to an embodiment of the present invention is shown.

[0017] Figure 4 A block diagram of an exemplary computing device 400 is shown in accordance with one embodiment of the present invention. DETAILED DESCRIPTION

[0018] The present invention will be described in detail below in conjunction with the accompanying drawings, and the features of the present invention will be further revealed in the following specific description.

[0019] The following detailed description refers to the accompanying drawings showing exemplary embodiments of the present invention. However, the scope of the present invention is not limited to these embodiments, but is defined by the appended claims. Therefore, embodiments other than those shown in the drawings, such as modified versions of the illustrated embodiments, are still encompassed by the present invention.

[0020] References in this specification to "one embodiment," "an embodiment," "an example embodiment," etc., mean that the embodiment may include a particular feature, structure, or characteristic, but not every embodiment necessarily includes the particular feature, structure, or characteristic. Furthermore, these phrases do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in conjunction with an embodiment, it should be understood that the particular feature, structure, or characteristic can be implemented in conjunction with other embodiments within the knowledge of a person skilled in the relevant art, whether or not explicitly described.

[0021] The present invention provides a method and system for generating a national secret SM9 identification public key for a smart device. The present invention uses the national secret SM9 identification public key as the unique identifier of the binding relationship between the smart device and the bound user. The identification public key is generated by a platform server in response to a request from the smart device or by the platform server based on the factory serial code of the smart device and the bound user during autonomous upgrading / updating, thereby overcoming the potential defects caused by using the factory serial code of the smart device for device identification. The national secret SM9 identification public key generation method of the present invention complies with the original platform system rules to the greatest extent and reduces the modification cost of the original platform server to the greatest extent. Because the files stored by the user on the platform server are bound to the national secret SM9 identification public key, when the same user binds the same device, the original national secret SM9 identification public key can be assigned to it so that the files stored on the platform server will not be lost after the user resets the device or rebinds.

[0022] Figure 1 FIG. 1 is a block diagram of a national secret SM9 identification public key distribution system 100 according to an embodiment of the present invention. Figure 1As shown in FIG. 1 , in a smart scene, a client 101 (such as an App on a mobile device, etc.), a user 102 using the client 101, a smart device 103, and a smart home platform server 104 are involved. Generally speaking, in actual use, the client 101 needs to be bound to the smart device 103, so as to request the platform server 104 for content associated with the smart device 103 and the user 102 using the client 101 stored on the platform server 104.

[0023] Although, in the "background technology" of the present invention, only the scenario of preventing video cross-watching is exemplified, it is fully understood by those skilled in the art that the national secret SM9 identification public key of the present invention can identify any smart device. Therefore, in the context of the present invention, "smart device" 103 may refer to any smart device such as a smart camera, a smart doorbell, a smart TV, a smart speaker, a smart refrigerator, etc. The present invention may also be extended to other non-intelligent devices. In addition, "platform server" 104 may refer to a server that can interact with a smart device / client through a network, such as a remote platform server, a local platform server (such as a device acting as a platform server in a home / company internal network), a cloud platform server, etc.

[0024] According to one embodiment of the present invention, the client 101 is configured to initiate a binding request to the smart device 103. For example, when the client 101 binds to the smart device 103 for the first time or when the client device 101 binds to the smart device 103 again, the client 101 may provide the identity information of the user 102 using the client 101 (e.g., the mobile phone number of the user 102, the email address of the user 102, other physical or virtual identification of the user 102, etc.) to associate the user 102 with the smart device 103, so that the client 101 can request the platform server 104 for content associated with both the smart device 103 and the user 102 after binding. The associated content may include, for example: video and / or audio recorded by the smart device 103, images captured by the smart device 103, the usage history of the smart device 103, customized personalized information of the smart device 103 (e.g., a playlist specified by the user 102, etc.), settings of the smart device 103, etc.

[0025] According to one embodiment of the present invention, the smart device 103 is configured to initiate a national secret SM9 identification public key allocation request to the platform server 104 based on the binding request received from the client 101, so as to request the platform server 104 to allocate the national secret SM9 identification public key to the smart device 103. The national secret SM9 identification public key allocation request may include the identity information of the user 102 of the client 101 to be bound and the factory serial code of the smart device 103.

[0026] According to one embodiment of the present invention, the smart device 103 is also configured to confirm and store the national secret SM9 identification public key assigned by the platform server 104. The assigned national secret SM9 identification public key can uniquely identify the binding relationship or association between the user 102 of the client 101 and the smart device 103. In other words, even if there are multiple smart devices 103 with the same factory serial number, the assigned national secret SM9 identification public key can be used to identify the different users bound to each of the multiple smart devices 103, and return the correct data to the bound user.

[0027] According to one embodiment of the present invention, the platform server 104 mainly includes a data table module 105, a query module 106, a generation module 107, a background update module 108 and an allocation module 109. It is fully understood by those skilled in the art that the above modules are explained here only for the purpose of explanation, and the functions of one or more of the above modules can be combined into a single module or split into multiple modules. In addition, one or more of the above modules can be implemented in software, hardware or a combination thereof.

[0028] According to one embodiment of the present invention, the data table module 105 is configured to manage the original identification information data table and the national secret SM9 identification public key data table. The management may include, for example, adding, deleting, modifying, etc. the data table.

[0029] The original identification information data table is a data table originally used on the platform server to record device identification information, that is, a data table used before the national secret SM9 identification public key data table is generated. For example, the original identification information data table may include the following fields: user identity information, identification information string. In practice, the information recorded in the "identification information string" is the factory serial code of the smart device. The original identification information data table can be used for the background batch update / upgrade of the factory serial code type identification information string by the platform server 104, so as to update / upgrade the factory serial code type identification information string to the national secret SM9 identification public key. This will be described in detail later.

[0030] The National SM9 Identification Public Key Data Table may include the following fields: user identity information, factory serial number of smart device, and National SM9 Identification Public Key. That is, compared with the original identification data table, the National SM9 Identification Public Key Data Table actually adds a "National SM9 Identification Public Key" field to record the newly generated National SM9 Identification Public Key.

[0031] Of course, those skilled in the art will appreciate that the above two data tables may also include other fields, such as generation time, update time, etc. Moreover, the naming of the above fields is only for illustrative purposes, and other naming methods may be used.

[0032] According to one embodiment of the present invention, the query module 106 is configured to query whether the corresponding national secret SM9 identification public key already exists in the national secret SM9 identification public key data table stored in the data table module 105 based on the identity information of the user 102 included in the national secret SM9 identification public key distribution request from the smart device 103 and the factory serial code of the smart device 103. If it exists, the allocation module 109 is notified to distribute the corresponding national secret SM9 identification public key to the smart device 103. If it does not exist, the national secret SM9 identification public key distribution request from the smart device 103 is transmitted to the generation module 107 to generate the national secret SM9 identification public key.

[0033] According to one embodiment of the present invention, the generation module 107 is configured to generate a national secret SM9 identification public key based on a national secret SM9 identification public key distribution request initiated by the smart device 103. As described above, the national secret SM9 identification public key distribution request includes the identity information of the user 102 to be bound to the client 101 and the factory serial code of the smart device 103.

[0034] Generally speaking, the factory serial code of the smart device 103 is a string with a fixed number of bits predefined by the manufacturer. According to the settings of the manufacturer, different parts of the factory serial code can identify different information. In the specific example of this article, it is assumed that the factory serial code is a 15-bit string composed of a combination of letters and numbers, and the first 10 characters are used to identify the manufacturer, model or factory batch and other device information related to the manufacturer and the smart device itself, and the last 5 characters are randomly generated characters. The factory serial code can be printed on the smart device or packaging box in the form of a QR code or a character. In order to facilitate human eye recognition, in practice, a predetermined anti-confusion rule can be applied to the factory serial code to exclude predetermined characters in the factory serial code, for example, "0" and "O" are not included in the 15 characters, "1" and "l" are not included, or other specified characters (such as "~", "*" and other characters that are not easy to enter manually) are not included. It is fully understood by those skilled in the art that the above examples are only illustrative, and there can be a variety of factory serial codes with different lengths and / or different rules.

[0035] As mentioned above, in existing platform servers (for example, China Telecom's Tianyi platform server), generally only the factory serial code is used to identify the smart device. In the present invention, the length of the national secret SM9 identification public key generated by the generation module 107 is the same as the length of the factory serial code and the data format is the same, so there is no need to make major adjustments to the original identification information data table, reducing the impact on the original platform server. In addition, the generated national secret SM9 identification public key still contains a part of the factory serial code, so that the original platform server can still use the original rules to identify the manufacturer, model, factory batch and other information of the smart device from the national secret SM9 identification public key, so that troubleshooting can still be performed when the smart device fails.

[0036] According to one embodiment of the present invention, the national secret SM9 identification public key generated by the generation module 107 may include three parts. The first part includes a part of the factory serial code of the smart device 103 used to identify device information such as manufacturer, model or factory batch, for example, the first 10 characters of the factory serial code as described above.

[0037] The second part is the last character of the national secret SM9 identification public key, which includes characters excluded from the factory serial code, such as the characters specified in the anti-confusion rules mentioned above (such as "0" and "O", etc.).

[0038] The third part is located between the first part and the second part, and its length is the length of the factory serial code minus the length of the first part and the length of the second part, and includes a combination of numbers and letters that increase according to a predetermined rule. Specifically, the third part will use a combination of 0-9 and AZ, and will increase each time according to the last allocation record recorded in the national secret SM9 identification public key data table. For example, each new allocation starts with all 0s, and when a new national secret SM9 identification public key is generated, it will increase according to the characters in the third part of the national secret SM9 identification public key that was last generated in the national secret SM9 identification public key data table. As described above, if the first part uses the first 10 characters of the factory serial code, the third part will include 4 (i.e., 15-10-1) characters, so that the total length of the national secret SM9 identification public key is the same as the length of the 15-bit factory serial code type identification information string stored in the original identification data table. For example, when the length of the third part is 4 bits, the following incremental examples can be generated: 0000, 0001, 0002, ..., 9999, A001, A002, ..., A999, B001, B002, ..., B999, ..., Z999, AA00, ..., ZZZZ. Thus, the 4-bit characters in the third part can generate 1.6796 million different combinations, which can fully meet the distribution needs of a large number of smart devices.

[0039] It is fully understood by those skilled in the art that the length of the factory serial code described above (e.g., 15 bits), the length and position of the characters describing the device information in the factory serial code (e.g., the first 10 bits) are all schematic. In actual operation, the length of the first and third parts and the positions of the first and third parts in the national secret SM9 identification public key (e.g., the third part can be in front and the first part can be in the back) can be changed according to the length and components of the factory serial code actually used, as long as the following conditions are met: the length of the national secret SM9 identification public key is consistent with the length of the factory serial code; the national secret SM9 identification public key includes the characters identifying the device information in the factory serial code; the national secret SM9 identification public key includes the combination of numbers and letters that increase according to the predetermined rules as described above. For example, if the length of the factory serial code is 16 bits (where the last 6 bits are random characters), the third part may include 5 (i.e., 16-10-1) bits of characters, which may generate the following incremental examples: 00000, 00001, 00002, ..., 99999, A0001, A0002, ..., A9999, B0001, B0002, ..., B9999, ..., Z9999, AA000, ..., ZZZZZ. Thus, the 5-bit characters in the third part may generate 60,466,200 different combinations.

[0040] In addition, unlike conventional random number methods, the present invention adopts a number + letter incremental generation method to avoid the problem of possible duplication of random numbers and ensure that different users with the same factory serial code can be assigned different national secret SM9 identification public keys.

[0041] According to one embodiment of the present invention, the generation module 107 is also configured to generate the national secret SM9 identification public key corresponding to the identity information of the user 102 of the client 101 to be bound and the factory serial code of the smart device 103, and add the identity information of the user 102, the factory serial code of the smart device 103 and the generated national secret SM9 identification public key as a new entry ({identity information, factory serial code, national secret SM9 identification public key}) to the national secret SM9 identification public key data table. At the same time, the generation module 107 is configured to notify the allocation module 109 to allocate the generated national secret SM9 identification public key to the smart device 103.

[0042] According to one embodiment of the present invention, after the smart device 103 successfully confirms the generated national secret SM9 identification public key, the generation module 107 is configured to further query whether there is an entry corresponding to the identity information of the user 102 and the factory serial code of the smart device 103 in the original identification information data table. That is, if there is (for example, when the user 102 rebinds the smart device 103 and the national secret SM9 identification public key data table does not have its corresponding entry, the original identification information data table records its original binding information entry), then the information recorded in the "identification information string" field in the entry (i.e., the factory serial code) is updated to the generated national secret SM9 identification public key. As mentioned above, since the length and data format of the generated national secret SM9 identification public key are consistent with the factory serial code, there is no need to make any modifications to the original identification information data table, and the factory serial code in the "identification information string" field can be updated to the generated national secret SM9 identification public key.

[0043] According to one embodiment of the present invention, the background update module 108 is configured to update or upgrade the "identification information string" recorded in the original identification information data table to the national secret SM9 identification public key. For example, in the case where some smart devices 103 have been connected to the Internet without user rebinding or resetting, there may be no opportunity to create a new national secret SM9 identification public key. In order to achieve system upgrades as soon as possible and achieve the uniformity of the internal identification of the system, the platform server 104 can actively update or upgrade the "identification information string" for these smart devices 103 to the "national secret SM9 identification public key", and synchronize the updated entries to the national secret SM9 identification public key data table. Thus, even if these smart devices 103 are rebound to the user 102 or reset later, the corresponding national secret SM9 identification public key can be extracted from the national secret SM9 identification public key data table, avoiding the repeated generation of the national secret SM9 identification public key, while ensuring the consistency of information such as user cloud storage videos that match the national secret SM9 identification.

[0044] Specifically, the background update module 108 can upgrade the factory serial code recorded in the "identification information string" corresponding to the user bound to the current networked smart device in the original identification information data table to the national secret SM9 identification public key at a specified time (for example, at night, when the system load is small, etc.), or in a specified period in batches (for example, updating a specified number of entries at a time) to achieve system upgrade. For example, the background update module 108 can extract the user identity information of the user 102 bound to the current networked smart device to identify the corresponding entry in the original identification information data table. Afterwards, the last bit of the identification information string recorded in the "identification information string" field in the identified entry is used to determine whether the string is a factory serial code or a national secret SM9 identification public key. If the last bit of the string is a character excluded by the factory serial code, it is identified as the national secret SM9 identification public key and does not need to be updated. If the last bit of the string is not a character excluded by the factory serial code, it is identified as the factory serial code and needs to be updated. The update method is as described above in conjunction with the generation module 107 to generate the national secret SM9 identification public key, and will not be repeated here.

[0045] According to one embodiment of the present invention, before updating the identified factory serial code, the background update module 108 identifies the last generated national secret SM9 identification public key in the national secret SM9 identification public key data table, so that when updating in the original identification information data table, it increments from the third part of the last generated national secret SM9 identification public key.

[0046] According to one embodiment of the present invention, before updating the identified factory serial code, the background update module 108 may further compare the entry where the identified factory serial code is located with the national secret SM9 identification public key data table to confirm that the user identity information and the factory serial code do not have a corresponding national secret SM9 identification public key in the national secret SM9 identification public key data table. If the user identity information and the factory serial code do not have a corresponding national secret SM9 identification public key in the national secret SM9 identification public key data table, then the user identity information and the factory serial code are added as an entry to the "user identity information" and "factory serial code" fields in the national secret SM9 identification public key data table, and after the update, the updated national secret SM9 identification public key is filled in the "national secret SM9 identification public key" field corresponding to the entry.

[0047] Therefore, as all the factory serial code identification information strings in the original identification information data table are updated to the national secret SM9 identification public key, all the data in the original identification information data table are synchronized to the national secret SM9 identification public key data table. As an independent record table, the national secret SM9 identification public key data table only adds new entries, and does not delete or modify records. It is recorded separately from the original identification information data table, so that if the original identification information data table already has data, no architectural adjustment is made to the original identification information data table, avoiding the risk of data migration and loss caused by architectural adjustment, so as to achieve data upgrade with the least possible impact on users and platform servers.

[0048] According to one embodiment of the present invention, the allocation module 109 is configured to transmit the national secret SM9 identification public key corresponding to the identity information of the user 102 of the client 101 to be bound and the factory serial code of the smart device 103 to the smart device 103, and optionally, receive a confirmation message from the smart device 103. According to another embodiment of the present invention, if the allocation module 108 does not receive a confirmation message from the smart device 103 within a predetermined time, or the allocation module 108 receives an error message from the smart device 103, the national secret SM9 identification public key may be retransmitted up to a specified threshold number of times.

[0049] Therefore, the present invention fully considers the identification mechanism of the original system, and allocates a unique virtual identifier to the smart device based on the original smart device factory serial code and user identity information, avoiding the confusion caused by multiple identification systems in later management (for example, some manufacturers may specify multiple identifiers to identify devices), while bringing convenience to the security authentication of later devices. At the same time, the record of the distribution of the national secret SM9 identification public key is stored in the platform server to ensure that the same user and the same device obtain the same national secret SM9 identification public key, thereby ensuring that the cloud-stored files are not lost when the user resets or rebinds the device. The data table of the national secret SM9 identification public key record corresponding to the device factory serial code and user identity information can be used to query whether to retrieve the original record or allocate a new identifier during allocation. At the same time, in later troubleshooting, the allocated national secret SM9 identification public key can be directly queried in the database through the device factory serial code and user identity information.

[0050] Figure 2 The flowchart of the method 200 for distributing the national SM9 identification public key according to an embodiment of the present invention is shown. The method 200 is executed by the platform server 104.

[0051] In step 201, a national secret SM9 identification public key distribution request is received from a smart device. According to one embodiment of the present invention, the smart device initiates a national secret SM9 identification public key distribution request to the platform server based on the binding request received from the client, so as to request the platform server to distribute the national secret SM9 identification public key to the smart device. The national secret SM9 identification public key distribution request may include the identity information of the user of the client to be bound to the smart device and the factory serial code of the smart device.

[0052] In step 202, the national secret SM9 identification public key data table is queried to see whether there is a national secret SM9 identification public key corresponding to the user identity information and the factory serial code included in the national secret SM9 identification public key allocation request. If so, step 203 is entered; if not, step 204 is entered. According to one embodiment of the present invention, the national secret SM9 identification public key data table records a plurality of entries, each of which includes {user identity information, factory serial code, national secret SM9 identification public key}.

[0053] In step 203, the corresponding national encryption SM9 identification public key is transmitted to the smart device.

[0054] In step 204, a national secret SM9 identification public key is generated based on the factory serial code included in the national secret SM9 identification public key allocation request. According to one embodiment of the present invention, the generated national secret SM9 identification public key has the following characteristics: the length of the national secret SM9 identification public key is consistent with the length of the factory serial code; the national secret SM9 identification public key includes the part of the factory serial code that identifies the device information; the national secret SM9 identification public key includes a combination of numbers and letters that increase according to a predetermined rule; the last digit of the national secret SM9 identification public key is a character excluded from the factory serial code.

[0055] Specifically, as mentioned above, the national secret SM9 identification public key includes three parts. The first part includes the part of the factory serial code of the smart device 103 that is used to identify device information such as the manufacturer, model or factory batch. The second part is the last character of the national secret SM9 identification public key, and the last character includes the characters excluded in the factory serial code. The third part is located between the first part and the second part, and its length is the length of the factory serial code minus the length of the first part and the length of the second part, and includes a combination of numbers and letters that increase according to a predetermined rule. Among them, the third part increases according to the last distribution record recorded in the national secret SM9 identification public key data table.

[0056] According to one embodiment of the present invention, when generating the third part of the national secret SM9 identification public key, the following steps are included: identifying the last distributed national secret SM9 identification public key in the national secret SM9 identification public key data table, extracting the last letter of the string in the third part of the last distributed national secret SM9 identification public key, and separating the letter part and the numeric part. (1) In the case of no letter part, if the numeric part is not all 9, directly add 1; if the numeric part is all 9, update the first digit of the numeric part to the first-ranked letter (i.e., A), and update the last digit of the numeric part to 1, and update the rest to 0 (for example, from 9999 to A001). (2) In the case where there is a letter part, if the numeric part is not all 9, then 1 is directly added. If the numeric part is all 9, then determine whether there is a letter in the next order after the last letter of the current letter part (for example, the letter in the next order after A is B, and there is no letter in the next order after Z). If there is a letter in the next order after the last letter of the current letter part, then update the last letter of the letter part to the letter in the next order, and update the last digit of the numeric part to 1, and update the rest to 0 (for example, B999 to C001 or AB999 to AC001). If there is no letter in the next order after the last letter of the current letter part, then update the first digit of the numeric part to the first order letter (that is, A), update the last digit of the numeric part (if there is any) to 1, and update the rest to 0 (for example, Z999 to AA01). (3) If there is no numeric part, the first letter in the alphabet part with the next letter in the next order is updated from left to right to the next letter, the last digit of the remaining alphabet part is updated to 1, and the remaining part is updated to 0 (for example, from AZZZ to B001). This method is repeated until there is no next letter in the alphabet part (for example, ZZZZ).

[0057] Those skilled in the art will fully understand that the above is only an illustrative description using 4 characters, and other predetermined increment rules and other combinations of letters and numbers of different digits can be used to generate the third part of the national secret SM9 identification public key.

[0058] In step 205, the generated national encryption SM9 identification public key together with the user identity information and the factory serial code of the smart device is stored as an entry in the national encryption SM9 identification public key data table.

[0059] In step 206, the generated national encryption SM9 identification public key is transmitted to the smart device.

[0060] In step 207, based on the confirmation message received from the smart device, the factory serial code in the entry corresponding to the user identity information and factory serial code received in step 201 in the original identification information data table is updated to the generated national secret SM9 identification public key.

[0061] Figure 3 The flowchart of a method 300 for updating the national secret SM9 identification public key in the background according to an embodiment of the present invention is shown. The method 300 is executed by the platform server 104. As described above, the method 300 can be executed by the platform server 104 at a predetermined time or periodically.

[0062] In step 301, the user identity information of the user bound to the currently networked smart device is extracted to identify matching entries in the original identification information data table. According to one embodiment of the present invention, each entry in the original identification information data table may include user identity information and an identification information string of the smart device. If the identity information of the bound user matches the user identity information of an entry, the entry is the identified matching entry. In addition, a predetermined number of entries may be identified to achieve batch update.

[0063] In step 302, the last digit of the identification information string in each entry is used to determine whether the string is a factory serial code or a national secret SM9 identification public key. If the last digit of the string is a character excluded by the factory serial code, it is identified as the national secret SM9 identification public key and does not need to be updated. If the last digit of the string is not a character excluded by the factory serial code, it is identified as a factory serial code and needs to be updated, and then step 303 is entered.

[0064] In step 303, the identification information character string identified as the factory serial code is updated to the national secret SM9 identification public key. According to one embodiment of the present invention, the updated national secret SM9 identification public key has the following characteristics: the length of the national secret SM9 identification public key is consistent with the length of the factory serial code; the national secret SM9 identification public key includes the part of the factory serial code that identifies the device information; the national secret SM9 identification public key includes a combination of numbers and letters that increase according to a predetermined rule; the last digit of the national secret SM9 identification public key is a character excluded from the factory serial code.

[0065] In step 304, the updated entries in the original identification information data table are synchronized to the national encryption SM9 identification data table.

[0066] Compared with the prior art, the main advantages of the present invention are:

[0067] 1. Assign unique virtual IDs to smart devices to avoid confusion caused by multiple ID systems in later management;

[0068] 2. When allocating the national secret SM9 identification public key, the identification mechanism of the original system is fully considered, and the transformation does not affect the original system's identification and classification management of device information.

[0069] 3. The system stores the records of the distribution of the national secret SM9 identification public key to ensure that the same user and the same device obtain the same national secret SM9 identification public key, thereby ensuring that the user resets and rebinds the device and the cloud storage files are not lost;

[0070] 4. In terms of allocating the new national secret SM9 identification, the present invention is different from the conventional method of using random numbers. It adopts the method of increasing numbers + letters in some fields to avoid the problem of possible duplication of random numbers and ensure that different users with the same serial code can be allocated different identification public keys.

[0071] Figure 4 A block diagram of an exemplary computing device 400 according to one embodiment of the present invention is shown, which is an example of a hardware device (e.g., smart device 103, platform server 104, a device on which client 101 runs, etc.) that can be applied to various aspects of the present invention.

[0072] refer to Figure 4 , a computing device 400 will now be described, which is an example of a hardware device applicable to various aspects of the present invention. The computing device 400 can be any machine that can be configured to perform processing and / or computing, and can be but is not limited to a workstation, a server, an intelligent device, a desktop computer, a laptop computer, a tablet computer, a personal digital assistant, a smart phone, a vehicle-mounted computer, or any combination thereof. The various methods / modules / servers / intelligent devices described above can be implemented in whole or in part by the computing device 400 or a similar device or system.

[0073] The computing device 400 may include components that may be connected or communicated via one or more interfaces and a bus 402. For example, the computing device 500 may include a bus 402, one or more processors 404, one or more input devices 406, and one or more output devices 408. The one or more processors 404 may be any type of processor and may include, but are not limited to, one or more general-purpose processors and / or one or more special-purpose processors (e.g., a dedicated processing chip). The input device 406 may be any type of device capable of inputting information to the computing device and may include, but are not limited to, a camera, a mouse, a keyboard, a touch screen, a microphone, and / or a remote controller. The output device 408 may be any type of device capable of presenting information and may include, but are not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The computing device 400 may also include or be connected to a non-transient storage device 410, which may be any storage device that is non-transient and capable of data storage, and may include but is not limited to a disk drive, an optical storage device, a solid-state memory, a floppy disk, a floppy disk, a hard disk, a tape or any other magnetic medium, an optical disk or any other optical medium, a ROM (read-only memory), a RAM (random access memory), a cache memory and / or any memory chip or cassette, and / or any other medium from which a computer can read data, instructions and / or code. The non-transient storage device 410 may be detachable from an interface. The non-transient storage device 410 may have data / instructions / code for implementing the above methods and steps. The computing device 400 may also include a communication device 412. The communication device 412 can be any type of device or system that can communicate with internal devices and / or with a network and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication device and / or a chipset, such as a Bluetooth device, an IEEE1302.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.

[0074] The bus 402 may include, but is not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0075] The computing device 400 may also include a working memory 414 , which may be any type of working memory capable of storing instructions and / or data that facilitate the operation of the processor 404 and may include, but is not limited to, a random access memory and / or a read-only storage device.

[0076] Software components may be located in the working memory 414, and these software components include but are not limited to an operating system 416, one or more application programs 418, drivers and / or other data and codes. Instructions for implementing the above methods and steps of the present invention may be included in the one or more application programs 418, and the above methods 200 and 300 of the present invention may be implemented by reading and executing the instructions of the one or more application programs 418 through the processor 404.

[0077] It should also be recognized that changes may be made according to specific needs. For example, custom hardware may also be used, and / or specific components may be implemented in hardware, software, firmware, middleware, microcode, hardware description language, or any combination thereof. In addition, connections to other computing devices, such as network input / output devices, etc. may be employed. For example, programming hardware (e.g., programmable logic circuits including field programmable gate arrays (FPGAs) and / or programmable logic arrays (PLAs)) with assembly language or hardware programming languages ​​(e.g., VERILOG, VHDL, C++) may be used to implement part or all of the disclosed methods and devices using logic and algorithms according to the present invention.

[0078] Although various aspects of the present invention have been described so far with reference to the accompanying drawings, the above-described methods, systems and devices are merely examples, and the scope of the present invention is not limited to these aspects, but is limited only by the appended claims and their equivalents. Various components may be omitted or replaced by equivalent components. In addition, the steps may be implemented in an order different from the order described in the present invention. In addition, various components may be combined in various ways. It is also important that, as technology develops, many of the components described may be replaced by equivalent components that appear later.

[0079] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features may be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application.

Claims

1. A method for distributing a national secret SM9 identification public key executed by a platform server, comprising: Receive a national secret SM9 identification public key distribution request from a device, wherein the national secret SM9 identification public key distribution request includes user identity information of a user bound to a client of the device and a factory serial code of the device; Query in the national secret SM9 identification public key data table whether there is already a national secret SM9 identification public key corresponding to the user identity information and the factory serial code, each entry in the national secret SM9 identification public key data table includes the following information: user identity information, factory serial code, national secret SM9 identification public key; If the national secret SM9 identification public key data table already has a national secret SM9 identification public key corresponding to the user identity information and the factory serial code, the national secret SM9 identification public key is transmitted to the device; If the national secret SM9 identification public key corresponding to the user identity information and the factory serial code does not exist in the national secret SM9 identification public key data table, a national secret SM9 identification public key is generated based on the factory serial code included in the national secret SM9 identification public key allocation request, wherein the generated national secret SM9 identification public key has the following characteristics: the length of the generated national secret SM9 identification public key is consistent with the length of the factory serial code; the generated national secret SM9 identification public key includes the part of the identification device information in the factory serial code; the generated national secret SM9 identification public key includes a combination of numbers and letters that increases according to a predetermined rule; the last digit of the generated national secret SM9 identification public key is a character excluded from the factory serial code; The generated national secret SM9 identification public key together with the user identity information and the factory serial code is stored as an entry in the national secret SM9 identification public key data table; as well as The generated national secret SM9 identification public key is transmitted to the device.

2. The method according to claim 1, characterized in that The method further comprises: Receiving confirmation information of the generated national secret SM9 identification public key from the device; Upon receiving the confirmation information, the identification information string in the entry corresponding to the user identity information and the factory serial code in the original identification information data table is updated to the generated national secret SM9 identification public key, wherein the identification information string in the corresponding entry is the factory serial code, The original identification information data table is a data table stored on the platform server and used to record device identification information before the national secret SM9 identification public key data table is generated, and each entry in the original identification information data table includes the following information: user identity information, identification information string.

3. The method according to claim 1, characterized in that The generated national secret SM9 identification public key includes a first part, a second part and a third part; The first part includes a part of the factory serial code used to identify the device information of the device; The second part is the last character of the generated national secret SM9 identification public key, and the last character includes the characters excluded in the factory serial code; The third part is located between the first part and the second part, the length of the third part is the length of the factory serial code minus the length of the first part and the length of the second part, and the third part includes a combination of numbers and letters that increase according to a predetermined rule.

4. The method according to claim 3, characterized in that The third part is incremented according to the third part of the last distributed national secret SM9 identification public key recorded in the national secret SM9 identification public key data table.

5. A method for updating the national secret SM9 identification public key in the background executed by the platform server, comprising: Extracting user identity information of a user bound to a currently connected device to identify matching entries in an original identification information data table, wherein each entry in the original identification information data table includes the following information: user identity information, identification information string; Determine whether the identification information string is a factory serial code or a national secret SM9 identification public key according to the last bit of the identification information string in each matching entry identified; If the last digit of the identification information string is not a character excluded from the factory serial code, identifying the identification information string as the factory serial code; and The identification information character string identified as the factory serial code is updated to the national secret SM9 identification public key, wherein the updated national secret SM9 identification public key has the following characteristics: the length of the updated national secret SM9 identification public key is consistent with the length of the factory serial code; the updated national secret SM9 identification public key includes the part of the identification device information in the factory serial code; the updated national secret SM9 identification public key includes a combination of numbers and letters that increases according to a predetermined rule; the last digit of the updated national secret SM9 identification public key is the character excluded in the factory serial code.

6. The method according to claim 5, characterized in that The method is executed by the platform server at a specified time or periodically.

7. A national secret SM9 identification public key distribution system, comprising: one or more devices; A platform server, the platform server comprising a query module, a generation module and an allocation module, Wherein, the query module is configured as follows: Receive a national secret SM9 identification public key distribution request from the device, the national secret SM9 identification public key distribution request including user identity information of a user bound to a client of the device and a factory serial code of the device; Query in the national secret SM9 identification public key data table whether there is already a national secret SM9 identification public key corresponding to the user identity information and the factory serial code, each entry in the national secret SM9 identification public key data table includes the following information: user identity information, factory serial code, national secret SM9 identification public key; If the national secret SM9 identification public key data table already has a national secret SM9 identification public key corresponding to the user identity information and the factory serial code, instruct the distribution module to transmit the national secret SM9 identification public key to the device; The generation module is configured as follows: If the national secret SM9 identification public key corresponding to the user identity information and the factory serial code does not exist in the national secret SM9 identification public key data table, a national secret SM9 identification public key is generated based on the factory serial code included in the national secret SM9 identification public key allocation request, wherein the generated national secret SM9 identification public key has the following characteristics: the length of the generated national secret SM9 identification public key is consistent with the length of the factory serial code; the generated national secret SM9 identification public key includes the part of the identification device information in the factory serial code; the generated national secret SM9 identification public key includes a combination of numbers and letters that increases according to a predetermined rule; the last digit of the generated national secret SM9 identification public key is a character excluded from the factory serial code; The generated national secret SM9 identification public key together with the user identity information and the factory serial code is stored as an entry in the national secret SM9 identification public key data table; and The distribution module is configured to transmit the generated national secret SM9 identification public key to the device.

8. The system according to claim 7, characterized in that The generated national secret SM9 identification public key includes a first part, a second part and a third part; The first part includes a part of the factory serial code used to identify the device information of the device; The second part is the last character of the generated national secret SM9 identification public key, and the last character includes the characters excluded in the factory serial code; The third part is located between the first part and the second part, the length of the third part is the length of the factory serial code minus the length of the first part and the length of the second part, and the third part includes a combination of numbers and letters that increase according to a predetermined rule.

9. A national secret SM9 identification public key distribution system, comprising: one or more devices; A platform server, the platform server comprising a background update module, The background update module is configured as follows: Extracting user identity information of a user bound to a currently connected device to identify matching entries in an original identification information data table, wherein each entry in the original identification information data table includes the following information: user identity information, identification information string; Determine whether the identification information string is a factory serial code or a national secret SM9 identification public key according to the last bit of the identification information string in each matching entry identified; If the last digit of the identification information string is not a character excluded from the factory serial code, identifying the identification information string as the factory serial code; and The identification information character string identified as the factory serial code is updated to the national secret SM9 identification public key, wherein the updated national secret SM9 identification public key has the following characteristics: the length of the updated national secret SM9 identification public key is consistent with the length of the factory serial code; the updated national secret SM9 identification public key includes the part of the identification device information in the factory serial code; the updated national secret SM9 identification public key includes a combination of numbers and letters that increases according to a predetermined rule; the last digit of the updated national secret SM9 identification public key is the character excluded in the factory serial code.

10. A computing device comprising: processor; A memory, wherein the memory stores instructions, and when the instructions are executed by the processor, the method according to any one of claims 1 to 5 can be executed.