A method and system for encrypting remote devices of the Internet of Things

The encryption process of IoT devices is completed through dynamic link libraries, solving the problem of easy-to-break keys, achieving higher encrypted data security, and providing dual guarantees.

CN112434318BActive Publication Date: 2024-11-01TSD ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011350515.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-26
Publication Date
2024-11-01
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

In the existing encryption methods of IoT devices, the keys are easily cracked, which poses a major security risk, especially in the JAVA language, which is easily decompiled and reverse cracked.

Method used

The dynamic link library receives the call request of the target device and determines whether it meets the preset conditions. If it is satisfied, it obtains its identification information and uses the preset encryption algorithm and key to encrypt. The dynamic link library completes the encryption process, improving the encrypted data Security.

Benefits of technology

The encryption process is completed by the dynamic link library and is difficult to decompile. The encryption algorithm and key of the dynamic link library are not easy to be cracked, providing dual guarantees and enhancing the security of encrypted data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112434318B_ABST
    Figure CN112434318B_ABST
Patent Text Reader

Abstract

The present invention provides an Internet of Things remote device encryption method and system, wherein the method includes: receiving a call request from a target device; determining whether the target device meets a preset condition according to the call request from the target device; if the target device meets the preset condition, sending information to the target device for indicating a successful call, and obtaining identification information of the target device; encrypting the identification information of the target device by a preset encryption algorithm and a key to obtain encrypted data; and sending the encrypted data to the target device. In the Internet of Things remote device encryption method and system provided by the present invention, the encryption process is completed by a dynamic link library, and the decompilation difficulty of the dynamic link library is relatively high. In addition, the dynamic link library verifies the target device, indirectly adding a layer of protection to the security of the encrypted data, so that the encrypted data obtained is more secure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile security technology, and in particular to an encryption method and system for remote devices of the Internet of Things. Background Art

[0002] In the era of the Internet of Everything, coupled with the support of 5G, there are more and more IoT devices, in various forms, and in ubiquitous application scenarios. While IoT devices benefit society, there are also security risks caused by information theft. Therefore, when IoT devices communicate with other devices, it is also necessary to encrypt the device information. In existing methods, devices are usually encrypted by keys, and the keys are stored in databases, lightweight databases, files, etc. These solutions have low security and are easy to crack. Keys are sometimes written in programs, but JAVA language can be easily decompiled and can also be reversed through source code. It can be seen that the method of encrypting device information by keys has great security risks because the keys are easy to crack. Summary of the invention

[0003] Therefore, the technical problem to be solved by the present invention is to overcome the defect of the prior art that there are great security risks in encrypting device information, thereby providing an Internet of Things remote device encryption method and system.

[0004] The first aspect of the present invention provides an Internet of Things remote device encryption method, which is applied to a dynamic link library, including: receiving a call request from a target device; determining whether the target device meets a preset condition based on the call request from the target device; if the target device meets the preset condition, sending information used to characterize a successful call to the target device, and obtaining identification information of the target device; encrypting the identification information of the target device using a preset encryption algorithm and a key to obtain encrypted data; and sending the encrypted data to the target device.

[0005] Optionally, in the IoT remote device encryption method provided by the present invention, the call request of the target device includes the name and signature of the application of the target device, and the signature of the application is calculated by a preset algorithm.

[0006] Optionally, in the IoT remote device encryption method provided by the present invention, the step of determining whether the target device meets the preset conditions based on the call request of the target device includes: determining whether the name and signature of the application of the target device are consistent with preset content; if the name and signature of the application of the target device are consistent with the preset content, the target device meets the preset conditions; if the name and signature of the application of the target device are inconsistent with the preset content, the target device does not meet the preset conditions.

[0007] Optionally, in the IoT remote device encryption method provided by the present invention, the step of setting the preset content includes: determining the name of at least one authorized application; calculating a signature corresponding to the name of the authorized application through a preset algorithm, the signatures of each authorized application being different from each other; and storing the name and signature of the authorized application in correspondence to form the preset content.

[0008] Optionally, in the Internet of Things remote device encryption method provided by the present invention, if the target device does not meet a preset condition, an error warning is sent to an application of the target device.

[0009] The second aspect of the present invention provides an Internet of Things remote device encryption method, which is applied to a target device, including: sending a call request to the dynamic link library; if information sent by the dynamic link library to indicate a successful call is received, sending an identifier of the target device to the dynamic link library; receiving encrypted data sent by the dynamic link library, wherein the encrypted data is generated by the dynamic link library by encrypting the identification information of the target device using a preset encryption algorithm and a key.

[0010] Optionally, in the IoT remote device encryption method provided by the present invention, the call request includes the name and signature of an application used to call a dynamic link library, and the signature of the application is calculated by a preset algorithm.

[0011] The third aspect of the present invention provides an Internet of Things remote device encryption system, including a target device and a dynamic link library, the target device sends a call request to the dynamic link library; the dynamic link library receives the call request and determines whether the target device meets a preset condition based on the call request, if the target device meets the preset condition, sends information used to characterize a successful call to the target device; if the target device receives the information used to characterize a successful call, sends an identification number of the target device to the dynamic link library; the dynamic link library receives the identification number of the target device, and encrypts the identification number of the target device using a preset encryption algorithm and a key to obtain encrypted data, and sends the encrypted data to the target device; the target device receives the encrypted data.

[0012] The fourth aspect of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the Internet of Things remote device encryption method provided by the first aspect or the second aspect of the present invention.

[0013] The technical solution of the present invention has the following advantages:

[0014] The Internet of Things remote device encryption method and system provided by the present invention, when the target device needs to encrypt its identification information, first sends a call request to the dynamic link library, and the dynamic link library determines whether the target device meets the preset conditions according to the call request. Only when the target device meets the preset conditions, the dynamic link library will obtain the identification information of the target device, encrypt the identification information of the target device through a preset encryption algorithm and key, and send the encrypted data obtained after encryption to the target device. The Internet of Things remote device encryption method and system provided by the present invention, the encryption process is completed by the dynamic link library, and the decompilation difficulty of the dynamic link library is relatively high, so the encryption algorithm and key used by the dynamic link library are not easy to be cracked, and when the target device calls the dynamic link library, the dynamic link library will first verify the target device, avoiding the dynamic link library from being maliciously attacked by the terminal device, and indirectly adding a layer of protection to the security of the encrypted data. It can be seen that the Internet of Things device encryption method and system provided by the present invention provide double protection for the encryption process, and the encrypted data obtained is safer. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 It is a structural block diagram of a specific example of the encryption system for the remote device of the Internet of Things in an embodiment of the present invention;

[0017] Figure 2 A schematic diagram of a specific example of an Internet of Things remote device encryption system in an embodiment of the present invention;

[0018] Figure 3 It is a flowchart of a specific example of the Internet of Things remote device encryption method applied to the target device in an embodiment of the present invention;

[0019] Figure 4 The flowchart is a specific example of the method for encrypting an Internet of Things remote device applied to a dynamic link library in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] In the description of the present invention, it should be noted that the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as there is no conflict between them.

[0022] Example 1

[0023] When IoT devices communicate with other devices, in order to ensure the security of the information of the users of IoT devices, it is also an essential step to encrypt the device information. In existing methods, devices are usually encrypted by keys, and the keys are stored in databases, lightweight databases, files, etc. These solutions have low security and are easy to crack. The keys are sometimes written in the program, but the JAVA language can be easily decompiled and can also be reverse cracked through the original code. It can be seen that the method of encrypting device information by keys has a great security risk because the keys are easy to crack.

[0024] The embodiment of the present invention provides an Internet of Things remote device encryption system, such as Figure 1 As shown, the IoT remote device encryption system includes a target device 1 and a dynamic link library 2. The target device 1 is any intelligent terminal with communication function, for example, a smart phone with communication function, a smart home appliance, etc. The dynamic link library 2 stores keys and preset encryption algorithms, and the keys and encryption algorithms stored in the dynamic link library 2 are not open to all users. Figure 2 As shown, the IoT remote device encryption system encrypts the target device 1 through the following steps:

[0025] Step S11: the target device 1 sends a call request to the dynamic link library 2. In actual applications, if the encryption process of the identification information of the target device 1 is completed in the target device 1, the user of the target device 1 can easily obtain the key used for encryption. Therefore, in order to avoid the user of the target device 1 from threatening the encrypted data, in the embodiment of the present invention, the encryption process is completed in the dynamic link library 2 by calling the dynamic link library 2.

[0026] Step S12: The dynamic link library 2 receives the call request and determines whether the target device 1 meets the preset conditions according to the call request. If the target device 1 meets the preset conditions, step S13 is executed; if the target device 1 does not meet the preset conditions, step S14 is executed. In a specific embodiment, the call request includes an identifier that can prove the legality of the target device 1, and the dynamic link library 2 can determine whether the target device 1 meets the preset conditions through the identifier.

[0027] Step S13: Sending information indicating successful calling to the target device 1.

[0028] Step S14: Send an error warning to the application of the target device 1.

[0029] Step S15: If the target device 1 receives the information indicating that the call is successful, the identification information of the target device 1 is sent to the dynamic link library 2. After the target device 1 successfully calls the dynamic link library 2, any data that needs to be encrypted can be sent to the dynamic link library 2, for example, the identification information of the target device 1, and the identification information can specifically be an identification number that uniquely identifies the target device 1.

[0030] Step S16: The dynamic link library 2 receives the identification information of the target device 1, and encrypts the identification number of the target device 1 by using a preset encryption algorithm and a key to obtain encrypted data. Any algorithm that can encrypt identification information can be used as a preset encryption algorithm. For example, in an embodiment of the present invention, the preset encryption algorithm can be set to a Hash-based Message Authentication Code (HMAC) algorithm.

[0031] Step S17: the dynamic link library 2 sends the encrypted data to the target device 1.

[0032] Step S18: The target device 1 receives the encrypted data. When the target device 1 communicates with other terminals or servers, it only needs to transmit the encrypted data to the other terminals or servers. The entire process of encrypting the identification information is performed in the dynamic link library 2. The target device 1 cannot obtain the encryption algorithm and key during encryption. Therefore, even if the target device 1 is attacked, the security of the encrypted data can be guaranteed.

[0033] In the Internet of Things remote device encryption system provided by the embodiment of the present invention, the encryption process is completed by the dynamic link library 2. The decompilation difficulty of the dynamic link library 2 is relatively high, so the encryption algorithm and key used by the dynamic link library 2 are not easy to be cracked. In addition, when the target device 1 calls the dynamic link library 2, the dynamic link library 2 will first verify the target device 1, thereby preventing the dynamic link library 2 from being maliciously attacked by the terminal device, and indirectly adding a layer of protection for the security of the encrypted data. It can be seen that the Internet of Things device encryption system provided by the embodiment of the present invention provides double protection for the encryption process, and the encrypted data obtained is safer.

[0034] In an optional embodiment, in the above step S11, the calling request sent by the target device 1 to the dynamic link library 2 includes the name and signature of the application of the target device 1, which is a program in the target device 1 used to call the dynamic link library 2, and the signature of the application is calculated by a preset algorithm.

[0035] In an optional embodiment, when the call request includes the name and signature of the application of the target device 1, in step S12, the dynamic link library 2 determines whether the target device 1 meets the preset conditions according to the name and signature of the application, specifically including:

[0036] First, determine whether the name and signature of the application of the target device 1 are consistent with the preset content. If the name and signature of the application of the target device 1 are consistent with the preset content, it means that the target device 1 meets the preset conditions; if the name and signature of the application of the target device 1 are inconsistent with the preset content, it means that the target device 1 does not meet the preset conditions.

[0037] In an optional embodiment, the preset content includes the name and signature of the authorized application that is allowed to call the dynamic link library 2, the name and signature of each authorized application are stored correspondingly, the name and signature of each authorized application are different, and the signature of the authorized application in the preset content is calculated by a preset algorithm.

[0038] Example 2

[0039] The embodiment of the present invention provides an Internet of Things remote device encryption method, which is applied to a target device, such as Figure 3 As shown, including:

[0040] Step S21: Send a call request to the dynamic link library. For details, see the description of step S11 in the above embodiment 1.

[0041] Step S22: receiving information sent by the dynamic link library for indicating successful calling, and sending identification information of the target device to the dynamic link library. For details, see the description of step S15 in the above embodiment 1.

[0042] Step S23: receiving the encrypted data sent by the dynamic link library, wherein the encrypted data is generated by the dynamic link library by encrypting the identification information of the target device using a preset encryption algorithm and a key. For details of how the dynamic link library encrypts the identification information, see the description of step S16 in the above embodiment 1.

[0043] In the IoT remote device encryption method provided by the embodiment of the present invention, the encryption process is completed by a dynamic link library. The decompilation difficulty of the dynamic link library is relatively high, so the encryption algorithm and key used by the dynamic link library are not easy to be cracked. In addition, when the target device calls the dynamic link library, the dynamic link library will first verify the target device, thereby avoiding the dynamic link library from being maliciously attacked by the terminal device, and indirectly adding a layer of protection for the security of the encrypted data. It can be seen that the IoT device encryption method provided by the embodiment of the present invention provides double protection for the encryption process, and the encrypted data obtained is safer.

[0044] Example 3

[0045] The embodiment of the present invention provides an Internet of Things remote device encryption method, which is applied to a dynamic link library, such as Figure 4 As shown, including:

[0046] Step S31: receiving a call request from a target device. For details, see the description of step S12 in the above embodiment 1.

[0047] Step S32: Determine whether the target device meets the preset conditions based on the call request of the target device. For details, see the description of step S12 in the above embodiment 1. If the target device meets the preset conditions, execute step S33. If the target device does not meet the preset conditions, send an error warning to the application of the target device.

[0048] Step S33: Send information indicating successful calling to the target device, and obtain identification information of the target device.

[0049] Step S34: Encrypt the identification information of the target device using a preset encryption algorithm and a key to obtain encrypted data. For details, see the description of step S16 in the above embodiment 1.

[0050] Step S35: Send the encrypted data to the target device.

[0051] In the IoT remote device encryption method provided by the embodiment of the present invention, the encryption process is completed by a dynamic link library. The decompilation difficulty of the dynamic link library is relatively high, so the encryption algorithm and key used by the dynamic link library are not easy to be cracked. In addition, when the target device calls the dynamic link library, the dynamic link library will first verify the target device, thereby avoiding the dynamic link library from being maliciously attacked by the terminal device, and indirectly adding a layer of protection for the security of the encrypted data. It can be seen that the IoT device encryption method provided by the embodiment of the present invention provides double protection for the encryption process, and the encrypted data obtained is safer.

[0052] Example 4

[0053] The embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer storage medium stores computer executable instructions, which can execute the IoT remote device encryption method in any of the above method embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0054] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A method for encrypting a remote device of the Internet of Things, characterized in that: The Internet of Things remote device encryption method is applied to a dynamic link library, and the method comprises: Receive a call request from a target device; Determining whether the target device meets a preset condition according to a call request of the target device, wherein the call request includes an identifier that can prove the legitimacy of the target device, and the dynamic link library determines whether the target device meets the preset condition according to the identifier; If the target device meets the preset conditions, send information indicating that the call is successful to the target device, and obtain identification information of the target device; Encrypting the identification information of the target device using a preset encryption algorithm and a key to obtain encrypted data; The encrypted data is sent to the target device.

2. The method for encrypting a remote device of the Internet of Things according to claim 1, characterized in that: The calling request of the target device includes the name and signature of the application of the target device, and the signature of the application is calculated by a preset algorithm.

3. The method for encrypting a remote device of the Internet of Things according to claim 2, characterized in that: The step of determining whether the target device meets a preset condition according to the call request of the target device comprises: Determine whether the name and signature of the application program of the target device are consistent with the preset content; If the name and signature of the application program of the target device match the preset content, the target device meets the preset condition; If the name and signature of the application program of the target device do not match the preset content, the target device does not meet the preset condition.

4. The method for encrypting a remote device of the Internet of Things according to claim 3, characterized in that: The steps of setting the preset content include: determining the name of at least one authorized application; Calculating a signature corresponding to the name of the authorized application using a preset algorithm, wherein the signatures of the authorized applications are different from each other; The name and signature of the authorized application are stored correspondingly to form the preset content.

5. The method for encrypting a remote device of the Internet of Things according to claim 1, characterized in that: If the target device does not meet the preset condition, an error warning is sent to the application of the target device.

6. A method for encrypting a remote device of the Internet of Things, characterized in that: The Internet of Things remote device encryption method is applied to a target device, and the Internet of Things remote device encryption method includes: Sending a call request to a dynamic link library, wherein the call request includes an identifier that can prove the legality of the target device, and the dynamic link library determines whether the target device meets the preset conditions based on the identifier; If the information sent by the dynamic link library indicating successful calling is received, the identification information of the target device is sent to the dynamic link library; The encrypted data sent by the dynamic link library is received, where the encrypted data is generated by the dynamic link library encrypting the identification information of the target device using a preset encryption algorithm and a key.

7. The method for encrypting a remote device of the Internet of Things according to claim 6, characterized in that: The calling request includes the name and signature of the application program for calling the dynamic link library, and the signature of the application program is calculated by a preset algorithm.

8. An Internet of Things remote device encryption system, characterized in that: Including target devices and dynamic link libraries, The target device sends a call request to the dynamic link library, wherein the call request includes an identifier that can prove the legitimacy of the target device, and the dynamic link library determines whether the target device meets a preset condition based on the identifier; The dynamic link library receives the call request, and determines whether the target device meets the preset condition according to the call request, and if the target device meets the preset condition, sends information indicating that the call is successful to the target device; If the target device receives the information indicating that the call is successful, the identification information of the target device is sent to the dynamic link library; The dynamic link library receives the identification information of the target device, encrypts the identification information of the target device by using a preset encryption algorithm and a key to obtain encrypted data, and sends the encrypted data to the target device; The target device receives the encrypted data.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the Internet of Things remote device encryption method according to any one of claims 1 to 7.