Encrypted communication method and system based on hardware fingerprint
Through the encrypted communication method based on hardware fingerprints, the client cluster is monitored, hash values are generated, and permissions are judged, which solves the problem of high computing resource overhead in the existing technology and realizes secure communication between the server and the client.
Patent Information
- Application Number
- CN202410516843.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-09-06
AI Technical Summary
Existing encrypted communication methods rely on certificate identification or public-private key pair exchange, which results in high computational resource overhead and cannot guarantee the confidentiality and security of communication between the server and client while reducing resources.
Adopt an encrypted communication method based on hardware fingerprints, determine the target client by monitoring the client cluster, send the server's hardware fingerprint information, generate a hash value, perform registration requests and permission judgments, build an encrypted communication channel, and ensure identity authentication and communication security.
While reducing computing resource overhead, the confidentiality and security of communication between the server and client are effectively guaranteed, and identity authentication and the establishment of encrypted communication channels are achieved.
Smart Images

Figure CN118611901A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication processing, and in particular to an encryption communication method and system based on hardware fingerprint. Background Art
[0002] Currently, encrypted communication between the server and the client usually relies on certificate recognition between the server and the client to achieve identity authentication, or the server and the client manually exchange public and private key pairs for encryption. In actual applications, not all scenarios meet the condition of having certificates, and the computing resource overhead required for asymmetric encryption relying on public and private key pairs is large, which cannot effectively ensure the confidentiality and security of communication between the server and the client while reducing computing resource overhead. Summary of the invention
[0003] The purpose of the present invention is to provide an encrypted communication method and system based on hardware fingerprint, which monitors a client cluster, determines a target client that needs to execute a communication task within the client cluster, and sends the hardware fingerprint information of the server to the target client; generates a first hash value based on the hardware fingerprint information received by the target client, and sends a registration request to the server based on the first hash value to realize the encrypted communication request from the client to the server; determines whether the target client has the registration authority based on the first hash value in the registration request and the second hash value of the hardware fingerprint information of the server itself, and then sends a key instruction to the target client based on the first hash value and the second hash value to realize the correct identity authentication of the two; also verifies the key instruction received by the target client, and builds an encrypted communication channel between the two, thereby effectively ensuring the confidentiality and security of communication between the server and the client while reducing the computing resource overhead.
[0004] The present invention is achieved through the following technical solutions:
[0005] The encrypted communication method based on hardware fingerprint includes:
[0006] Monitor the client cluster to determine the target client that needs to perform the communication task within the client cluster; send the hardware fingerprint information of the server to the target client based on the network location information of the target client;
[0007] When the target client correctly receives the hardware fingerprint information, a corresponding first hash value is generated based on the hardware fingerprint information, and the first hash value is stored in the storage space of the target client; based on the first hash value, a registration request is sent to the server;
[0008] Based on the first hash value in the registration request and the second hash value of the server itself about the hardware fingerprint information, determining whether the target client has the registration authority; if the target client has the registration authority, sending a key instruction to the target client based on the first hash value and the second hash value;
[0009] The key instruction received by the target client is verified, and when the key instruction is successfully verified, an encrypted communication channel between the target client and the server is established.
[0010] Optionally, the method further includes generating hardware fingerprint information, which includes:
[0011] Step S1, assuming that the hardware fingerprint information of the server hardware a is Generate hardware fingerprint information The original data mapping value set is A = {A 1 ,A 2 ,…,A n}, where A 1 ,A 2 ,…,A n is the value corresponding to each feature of the key information of the hardware fingerprint information A, n is the total number of features; for another hardware b on the server side, let its hardware fingerprint information The original data mapping value set is B = {B 1 ,B 2 ,…,B n}, where B 1 ,B 2 ,…,B n To generate the values corresponding to each feature of the key information of the hardware fingerprint information B, the inner product value of set A and set B is:
[0012]
[0013] In the above formula (1), f(A|B) is the inner product value of set A and set B, i is the feature number, which is an integer greater than or equal to 1 and less than or equal to n;
[0014] Step S2, determining the modular product of set A and set B based on the elements of set A and set B,
[0015]
[0016] In the above formula (2), M(A|B) is the modular product of set A and set B, i is the feature number, which is an integer greater than or equal to 1 and less than or equal to n;
[0017] Step S3, based on the calculation results of the above steps S1 and S2, determine the similarity of the fingerprint key information of set A and set B,
[0018]
[0019] In the above formula (3), S(A|B) is the similarity of the fingerprint key information of set A and set B. When the similarity of the fingerprint key information is greater than or equal to 0.95, it indicates that hardware b and hardware a belong to the same hardware, and the fingerprint information generated by hardware b should be Otherwise, hardware b and hardware a do not belong to the same hardware, then the fingerprint information generated by hardware b is the same as different.
[0020] Optionally, monitoring the client cluster to determine a target client that needs to perform a communication task within the client cluster; and sending hardware fingerprint information of the server to the target client based on network location information of the target client, including:
[0021] Monitor the work log updates of all clients under the client cluster to obtain the work log update addition information items of each client; analyze the work log update addition information items to determine whether the work task newly initiated by the internal application of the client belongs to the external data communication task, and if so, determine the corresponding client as the target client that needs to execute the communication task;
[0022] Based on the gateway address information accessed by the target client, the hardware fingerprint information of the server itself is sent to the target client in a targeted manner.
[0023] Optionally, when the target client correctly receives the hardware fingerprint information, generating a corresponding first hash value based on the hardware fingerprint information, and storing the first hash value in a storage space of the target client; and sending a registration request to the server based on the first hash value, including:
[0024] Performing data content verification on the hardware fingerprint information received by the target client to determine whether the hardware fingerprint information is in a data integrity state; if so, determining that the target client correctly receives the hardware fingerprint information; if not, determining that the target client does not correctly receive the hardware fingerprint information;
[0025] When the target client correctly receives the hardware fingerprint information, a hash operation is performed on the hardware fingerprint information to generate a corresponding first hash value, and the first hash value is stored in the isolated storage space of the target client;
[0026] The first Hash value is processed into blocks to obtain a plurality of first Hash value data blocks, and after all the first Hash value data blocks are encrypted, a registration request is generated, and then the registration request is sent to the server.
[0027] Optionally, judging whether the target client has registration authority based on a first hash value in the registration request and a second hash value of the server itself regarding the hardware fingerprint information; and sending a key instruction to the target client based on the first hash value and the second hash value when the target client has registration authority includes:
[0028] Parsing and restoring the registration request to obtain a corresponding first hash value, comparing the first hash value with a second hash value of the server itself regarding the hardware fingerprint information to obtain data similarity between the first hash value and the second hash value; if the data similarity is greater than or equal to a preset similarity threshold, determining that the target client has registration authority; otherwise, determining that the target client does not have registration authority;
[0029] When the target client has registration authority, the first hash value and the second hash value are symmetrically encrypted to generate a corresponding key instruction, and the key instruction is sent to the target client.
[0030] Optionally, verifying the key instruction received by the target client, and when the key instruction is successfully verified, establishing an encrypted communication channel between the target client and the server, including:
[0031] Verifying the key instruction received by the target client to determine whether the key instruction is compatible with the internal operating environment of the target client, and if so, determining that the verification of the key instruction is successful; if not, determining that the verification of the key instruction fails;
[0032] When the key instruction is successfully verified, an encrypted communication channel between the target client and the server is established based on the gateway address information to which the target client and the server are respectively connected.
[0033] The encrypted communication system based on hardware fingerprint includes:
[0034] A client monitoring module is used to monitor the client cluster and determine the target client that needs to perform the communication task within the client cluster;
[0035] A hardware fingerprint information sending module, used to send the hardware fingerprint information of the server to the target client based on the network location information of the target client;
[0036] A hardware fingerprint information verification and processing module, configured to generate a corresponding first hash value based on the hardware fingerprint information when the target client correctly receives the hardware fingerprint information, and store the first hash value in a storage space of the target client;
[0037] A registration request sending module, configured to send a registration request to the server based on the first hash value;
[0038] A key instruction sending module, configured to determine whether the target client has registration authority based on a first hash value in the registration request and a second hash value of the server itself regarding the hardware fingerprint information; if the target client has registration authority, sending a key instruction to the target client based on the first hash value and the second hash value;
[0039] The encrypted communication channel construction module is used to verify the key instruction received by the target client, and when the key instruction verification is successful, to build an encrypted communication channel between the target client and the server.
[0040] Optionally, the client monitoring module is used to monitor the client cluster to determine the target client that needs to perform the communication task within the client cluster, including:
[0041] Monitor the work log updates of all clients under the client cluster to obtain the work log update addition information items of each client; analyze the work log update addition information items to determine whether the work task newly initiated by the internal application of the client belongs to the external data communication task, and if so, determine the corresponding client as the target client that needs to execute the communication task;
[0042] The hardware fingerprint information sending module is used to send the hardware fingerprint information of the server to the target client based on the network location information of the target client, including:
[0043] Based on the gateway address information accessed by the target client, the hardware fingerprint information of the server itself is sent to the target client in a targeted manner.
[0044] Optionally, the hardware fingerprint information verification and processing module is used to generate a corresponding first hash value based on the hardware fingerprint information when the target client correctly receives the hardware fingerprint information, and store the first hash value in the storage space of the target client, including:
[0045] Performing data content verification on the hardware fingerprint information received by the target client to determine whether the hardware fingerprint information is in a data integrity state; if so, determining that the target client correctly receives the hardware fingerprint information; if not, determining that the target client does not correctly receive the hardware fingerprint information;
[0046] When the target client correctly receives the hardware fingerprint information, a hash operation is performed on the hardware fingerprint information to generate a corresponding first hash value, and the first hash value is stored in the isolated storage space of the target client;
[0047] The registration request sending module is used to send a registration request to the server based on the first hash value, including:
[0048] The first Hash value is processed into blocks to obtain a plurality of first Hash value data blocks, and after all the first Hash value data blocks are encrypted, a registration request is generated, and then the registration request is sent to the server.
[0049] Optionally, the key instruction sending module is used to determine whether the target client has registration authority based on a first hash value in the registration request and a second hash value of the server itself regarding the hardware fingerprint information; when the target client has registration authority, sending a key instruction to the target client based on the first hash value and the second hash value, including:
[0050] Parsing and restoring the registration request to obtain a corresponding first hash value, comparing the first hash value with a second hash value of the server itself regarding the hardware fingerprint information to obtain data similarity between the first hash value and the second hash value; if the data similarity is greater than or equal to a preset similarity threshold, determining that the target client has registration authority; otherwise, determining that the target client does not have registration authority;
[0051] When the target client has registration authority, the first hash value and the second hash value are symmetrically encrypted to generate a corresponding key instruction, and the key instruction is sent to the target client.
[0052] Optionally, the encrypted communication channel construction module is used to verify the key instruction received by the target client, and when the key instruction verification is successful, construct an encrypted communication channel between the target client and the server, including:
[0053] Verifying the key instruction received by the target client to determine whether the key instruction is compatible with the internal operating environment of the target client, and if so, determining that the verification of the key instruction is successful; if not, determining that the verification of the key instruction fails;
[0054] When the key instruction is successfully verified, an encrypted communication channel between the target client and the server is established based on the gateway address information to which the target client and the server are respectively connected.
[0055] Compared with the prior art, the present invention has the following beneficial effects:
[0056] The hardware fingerprint-based encrypted communication method and system provided in the present application monitor a client cluster, determine a target client that needs to perform a communication task within the client cluster, and send the hardware fingerprint information of the server to the target client; generate a first hash value based on the hardware fingerprint information received by the target client, and send a registration request to the server based on the first hash value to implement an encrypted communication request from the client to the server; determine whether the target client has registration authority based on the first hash value in the registration request and the server's own second hash value of the hardware fingerprint information, and then send a key instruction to the target client based on the first hash value and the second hash value to implement correct identity authentication of the two; also verify the key instruction received by the target client, and build an encrypted communication channel between the two, thereby effectively ensuring the confidentiality and security of communication between the server and the client while reducing computing resource overhead. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0058] Figure 1 A schematic diagram of the process flow of the hardware fingerprint-based encryption communication method provided by the present invention.
[0059] Figure 2 A schematic diagram of the structure of the hardware fingerprint-based encrypted communication system provided by the present invention. DETAILED DESCRIPTION
[0060] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some structures related to the present application are shown in the accompanying drawings, rather than all structures. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0061] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0062] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0063] See also Figure 1 As shown, an encryption communication method based on hardware fingerprint provided by an embodiment of the present application includes:
[0064] Monitor the client cluster to determine the target client that needs to perform the communication task within the client cluster; send the hardware fingerprint information of the server to the target client based on the network location information of the target client;
[0065] When the target client correctly receives the hardware fingerprint information, a corresponding first hash value is generated based on the hardware fingerprint information, and the first hash value is stored in the storage space of the target client; based on the first hash value, a registration request is sent to the server;
[0066] Based on the first hash value in the registration request and the second hash value of the server itself about the hardware fingerprint information, determining whether the target client has the registration authority; if the target client has the registration authority, sending a key instruction to the target client based on the first hash value and the second hash value;
[0067] The key instruction received by the target client is verified, and when the key instruction verification is successful, an encrypted communication channel between the target client and the server is established.
[0068] The beneficial effects of the above embodiments are as follows: the hardware fingerprint-based encrypted communication method monitors a client cluster, determines a target client that needs to perform a communication task within the client cluster, and sends the hardware fingerprint information of the server to the target client; generates a first hash value based on the hardware fingerprint information received by the target client, and sends a registration request to the server based on the first hash value to implement an encrypted communication request from the client to the server; determines whether the target client has registration authority based on the first hash value in the registration request and the server's own second hash value of the hardware fingerprint information, and then sends a key instruction to the target client based on the first hash value and the second hash value to implement correct identity authentication of the two; also verifies the key instruction received by the target client, and builds an encrypted communication channel between the two, thereby effectively ensuring the confidentiality and security of communication between the server and the client while reducing computing resource overhead.
[0069] In another embodiment, the method further includes generating hardware fingerprint information, which includes:
[0070] Step S1, based on the information that traditional hardware fingerprint calculation relies on, random hardware information is added to generate hardware fingerprints, including file information and application information in the hardware, such as file similarity, quantity, file format, file size, file content, application installation status, application installation time, and other information as the original data for hardware fingerprint calculation; assuming that the hardware fingerprint information of hardware a on the server side is Generate hardware fingerprint information The original data mapping value set is A = {A 1 ,A 2 ,…,A n}, where A 1 ,A 2 ,…,A n To generate the value of each feature of the key information of hardware fingerprint information A, n is the total number of features. For example, assuming A 1 Represents the device model. The corresponding value of the server's device model in the preset device model table is 56. 1 The value of is 56, and so on. Its value can be obtained in the preset feature corresponding coding table. The value in the preset coding table is always greater than 0. For another hardware b on the server side, let its hardware fingerprint information The original data mapping value set is B = {B 1 ,B 2 ,…,B n}, where B 1 ,B 2 ,…,B n To generate the values corresponding to each feature of the key information of the hardware fingerprint information B, the inner product value of set A and set B is:
[0071]
[0072] In the above formula (1), f(A|B) is the inner product value of set A and set B, i is the feature number, which is an integer greater than or equal to 1 and less than or equal to n;
[0073] Step S2, determining the modular product of set A and set B based on the elements of set A and set B,
[0074]
[0075] In the above formula (2), M(A|B) is the modular product of set A and set B, i is the feature number, which is an integer greater than or equal to 1 and less than or equal to n;
[0076] Step S3, based on the calculation results of the above steps S1 and S2, determine the similarity of the fingerprint key information of set A and set B,
[0077]
[0078] In the above formula (3), S(A|B) is the similarity of the fingerprint key information of set A and set B. When the similarity of the fingerprint key information is greater than or equal to 0.95, it indicates that hardware b and hardware a belong to the same hardware, and the fingerprint information generated by hardware b should be Otherwise, hardware b and hardware a do not belong to the same hardware, then the fingerprint information generated by hardware b is the same as different.
[0079] The beneficial effects of the above embodiments are that the hardware fingerprint information is usually a unique device identifier generated based on some inherent and difficult-to-tamper information of the hardware, but with the development of technology, these inherent and difficult-to-tamper information can be modified through technical means, such as IMEI, MAC address, IDFA, etc. In order to accurately identify these tampered devices, prevent criminals from changing the hardware fingerprint by tampering with the device information, bypassing the system risk control to perform illegal acts, and endangering the security of the system. Through the above method, the hardware fingerprint information of the device is generated according to the massive information in the hardware, ensuring that it can still be accurately identified when the basic information in the device is changed or tampered, preventing criminals from changing the hardware fingerprint by tampering with the device information, bypassing the system risk control to perform illegal acts, and endangering the security of the system.
[0080] In another embodiment, monitoring a client cluster to determine a target client within the client cluster that needs to perform a communication task; and sending hardware fingerprint information of the server to the target client based on network location information of the target client, including:
[0081] Monitor the work log updates of all clients under the client cluster to obtain the work log update addition information items of each client; analyze the work log update addition information items to determine whether the work task newly initiated by the internal application of the client belongs to the external data communication task, and if so, determine the corresponding client as the target client that needs to execute the communication task;
[0082] Based on the gateway address information accessed by the target client, the hardware fingerprint information of the server itself is sent to the target client.
[0083] The beneficial effect of the above embodiment is to monitor the work log updates of all clients under the client cluster, and obtain the work log update addition information items of each client, so that the newly added tasks to be executed of each client under the client cluster can be accurately identified; then the work log update addition information items are analyzed to determine whether the new work tasks initiated by the internal application of the client belong to external data communication tasks, so as to comprehensively determine whether the client needs to communicate with the server. In addition, based on the gateway address information accessed by the target client, the server's own hardware fingerprint information is sent to the target client to ensure the accuracy of the sending of the hardware fingerprint information.
[0084] In another embodiment, when the target client correctly receives the hardware fingerprint information, a corresponding first hash value is generated based on the hardware fingerprint information, and the first hash value is stored in the storage space of the target client; based on the first hash value, a registration request is sent to the server, including:
[0085] Verify the data content of the hardware fingerprint information received by the target client to determine whether the hardware fingerprint information is in a data integrity state; if so, determine that the target client has correctly received the hardware fingerprint information; if not, determine that the target client has not correctly received the hardware fingerprint information;
[0086] When the target client correctly receives the hardware fingerprint information, a hash operation is performed on the hardware fingerprint information to generate a corresponding first hash value, and the first hash value is stored in the isolated storage space of the target client;
[0087] The first Hash value is divided into blocks to obtain a plurality of first Hash value data blocks, and after all the first Hash value data blocks are encrypted, a registration request is generated, and then the registration request is sent to the server.
[0088] The beneficial effect of the above embodiment is to verify the data content of the hardware fingerprint information received by the target client and determine whether the hardware fingerprint information is in a data integrity state, so as to ensure the accuracy of the subsequent hash operation on the hardware fingerprint information. Then the first hash value is divided into blocks to obtain a number of first hash value data blocks, and after all the first hash value data blocks are encrypted, a registration request is generated to ensure that the registration request can be closely related to the hardware fingerprint information of the server.
[0089] In another embodiment, based on the first hash value in the registration request and the second hash value of the server itself about the hardware fingerprint information, determining whether the target client has the registration authority; when the target client has the registration authority, sending a key instruction to the target client based on the first hash value and the second hash value, including:
[0090] The registration request is parsed and restored to obtain a corresponding first hash value, and the first hash value is compared with the second hash value of the server itself regarding the hardware fingerprint information to obtain data similarity between the first hash value and the second hash value; if the data similarity is greater than or equal to a preset similarity threshold, it is determined that the target client has the registration authority; otherwise, it is determined that the target client does not have the registration authority;
[0091] When the target client has the registration authority, the first hash value and the second hash value are symmetrically encrypted to generate a corresponding key instruction, and the key instruction is sent to the target client.
[0092] The beneficial effect of the above embodiment is that the registration request is parsed and restored to obtain the corresponding first hash value, the first hash value is compared with the second hash value of the server itself about the hardware fingerprint information, the data similarity of the first hash value and the second hash value is obtained, and then the data similarity is compared by threshold value, which can accurately determine whether the client has the registration authority on the server. When the target client has the registration authority, the first hash value and the second hash value are symmetrically encrypted to generate the corresponding key instruction, and the key instruction is sent to the target client, and the key instruction is used as the encrypted authentication information between the client and the server.
[0093] In another embodiment, the key instruction received by the target client is verified, and when the key instruction is successfully verified, an encrypted communication channel between the target client and the server is established, including:
[0094] Verifying the key instruction received by the target client to determine whether the key instruction is compatible with the internal operating environment of the target client, and if so, determining that the verification of the key instruction is successful; if not, determining that the verification of the key instruction fails;
[0095] When the key instruction is successfully verified, an encrypted communication channel between the target client and the server is established based on the gateway address information to which the target client and the server are respectively connected.
[0096] The beneficial effect of the above embodiment is to verify the key instruction received by the target client and determine whether the key instruction is compatible with the internal operating environment of the target client, thereby ensuring the stability of subsequent encrypted communication between the client and the server.
[0097] See also Figure 2 As shown, an encrypted communication system based on hardware fingerprint provided by an embodiment of the present application includes:
[0098] The client monitoring module is used to monitor the client cluster and determine the target client that needs to perform the communication task within the client cluster;
[0099] A hardware fingerprint information sending module, used to send the hardware fingerprint information of the server to the target client based on the network location information of the target client;
[0100] A hardware fingerprint information verification and processing module, configured to generate a corresponding first hash value based on the hardware fingerprint information when the target client correctly receives the hardware fingerprint information, and store the first hash value in a storage space of the target client;
[0101] A registration request sending module, configured to send a registration request to the server based on the first hash value;
[0102] A key instruction sending module is used to determine whether the target client has the registration authority based on the first hash value in the registration request and the second hash value of the server itself about the hardware fingerprint information; if the target client has the registration authority, the key instruction is sent to the target client based on the first hash value and the second hash value;
[0103] The encrypted communication channel construction module is used to verify the key instruction received by the target client, and when the key instruction verification is successful, to build an encrypted communication channel between the target client and the server.
[0104] The beneficial effects of the above embodiments are as follows: the hardware fingerprint-based encrypted communication system monitors the client cluster, determines the target client that needs to perform the communication task within the client cluster, and sends the hardware fingerprint information of the server to the target client; generates a first hash value based on the hardware fingerprint information received by the target client, and sends a registration request to the server based on the first hash value to implement the encrypted communication request from the client to the server; determines whether the target client has the registration authority based on the first hash value in the registration request and the server's own second hash value of the hardware fingerprint information, and then sends a key instruction to the target client based on the first hash value and the second hash value to implement the correct identity authentication of the two; also verifies the key instruction received by the target client, and builds an encrypted communication channel between the two, thereby effectively ensuring the confidentiality and security of communication between the server and the client while reducing computing resource overhead.
[0105] In another embodiment, the client monitoring module is used to monitor the client cluster and determine the target client that needs to perform the communication task within the client cluster, including:
[0106] Monitor the work log updates of all clients under the client cluster to obtain the work log update addition information items of each client; analyze the work log update addition information items to determine whether the work task newly initiated by the internal application of the client belongs to the external data communication task, and if so, determine the corresponding client as the target client that needs to execute the communication task;
[0107] The hardware fingerprint information sending module is used to send the hardware fingerprint information of the server to the target client based on the network location information of the target client, including:
[0108] Based on the gateway address information accessed by the target client, the hardware fingerprint information of the server itself is sent to the target client.
[0109] The beneficial effect of the above embodiment is to monitor the work log updates of all clients under the client cluster, and obtain the work log update addition information items of each client, so that the newly added tasks to be executed of each client under the client cluster can be accurately identified; then the work log update addition information items are analyzed to determine whether the new work tasks initiated by the internal application of the client belong to external data communication tasks, so as to comprehensively determine whether the client needs to communicate with the server. In addition, based on the gateway address information accessed by the target client, the server's own hardware fingerprint information is sent to the target client to ensure the accuracy of the sending of the hardware fingerprint information.
[0110] In another embodiment, the hardware fingerprint information verification and processing module is used to generate a corresponding first hash value based on the hardware fingerprint information when the target client correctly receives the hardware fingerprint information, and store the first hash value in the storage space of the target client, including:
[0111] Verify the data content of the hardware fingerprint information received by the target client to determine whether the hardware fingerprint information is in a data integrity state; if so, determine that the target client has correctly received the hardware fingerprint information; if not, determine that the target client has not correctly received the hardware fingerprint information;
[0112] When the target client correctly receives the hardware fingerprint information, a hash operation is performed on the hardware fingerprint information to generate a corresponding first hash value, and the first hash value is stored in the isolated storage space of the target client;
[0113] The registration request sending module is used to send a registration request to the server based on the first hash value, including:
[0114] The first Hash value is divided into blocks to obtain a plurality of first Hash value data blocks, and after all the first Hash value data blocks are encrypted, a registration request is generated, and then the registration request is sent to the server.
[0115] The beneficial effect of the above embodiment is to verify the data content of the hardware fingerprint information received by the target client and determine whether the hardware fingerprint information is in a data integrity state, so as to ensure the accuracy of the subsequent hash operation on the hardware fingerprint information. Then the first hash value is divided into blocks to obtain a number of first hash value data blocks, and after all the first hash value data blocks are encrypted, a registration request is generated to ensure that the registration request can be closely related to the hardware fingerprint information of the server.
[0116] In another embodiment, the key instruction sending module is used to determine whether the target client has registration authority based on the first hash value in the registration request and the second hash value of the server itself about the hardware fingerprint information; when the target client has registration authority, the key instruction is sent to the target client based on the first hash value and the second hash value, including:
[0117] The registration request is parsed and restored to obtain a corresponding first hash value, and the first hash value is compared with the second hash value of the server itself regarding the hardware fingerprint information to obtain data similarity between the first hash value and the second hash value; if the data similarity is greater than or equal to a preset similarity threshold, it is determined that the target client has the registration authority; otherwise, it is determined that the target client does not have the registration authority;
[0118] When the target client has the registration authority, the first hash value and the second hash value are symmetrically encrypted to generate a corresponding key instruction, and the key instruction is sent to the target client.
[0119] The beneficial effect of the above embodiment is that the registration request is parsed and restored to obtain the corresponding first hash value, the first hash value is compared with the second hash value of the server itself about the hardware fingerprint information, the data similarity of the first hash value and the second hash value is obtained, and then the data similarity is compared by threshold value, which can accurately determine whether the client has the registration authority on the server. When the target client has the registration authority, the first hash value and the second hash value are symmetrically encrypted to generate the corresponding key instruction, and the key instruction is sent to the target client, and the key instruction is used as the encrypted authentication information between the client and the server.
[0120] In another embodiment, the encrypted communication channel construction module is used to verify the key instruction received by the target client, and when the key instruction verification is successful, construct an encrypted communication channel between the target client and the server, including:
[0121] Verifying the key instruction received by the target client to determine whether the key instruction is compatible with the internal operating environment of the target client, and if so, determining that the verification of the key instruction is successful; if not, determining that the verification of the key instruction fails;
[0122] When the key instruction is successfully verified, an encrypted communication channel between the target client and the server is established based on the gateway address information to which the target client and the server are respectively connected.
[0123] The beneficial effect of the above embodiment is to verify the key instruction received by the target client and determine whether the key instruction is compatible with the internal operating environment of the target client, thereby ensuring the stability of subsequent encrypted communication between the client and the server.
[0124] In general, the hardware fingerprint-based encrypted communication method and system monitor a client cluster, determine a target client that needs to perform a communication task within the client cluster, and send the hardware fingerprint information of the server to the target client; generate a first hash value based on the hardware fingerprint information received by the target client, and based on the first hash value, send a registration request to the server to implement an encrypted communication request from the client to the server; based on the first hash value in the registration request and the server's own second hash value about the hardware fingerprint information, determine whether the target client has registration authority, and then send a key instruction to the target client based on the first hash value and the second hash value to implement correct identity authentication of the two; also verify the key instruction received by the target client, and build an encrypted communication channel between the two, thereby effectively ensuring the confidentiality and security of communication between the server and the client while reducing computing resource overhead.
[0125] The above is only a specific implementation of the present invention, and any other improvements made based on the concept of the present invention are considered to be within the protection scope of the present invention.
Claims
1. The encryption communication method based on hardware fingerprint is characterized in that: include: Monitor the client cluster to determine the target client that needs to perform the communication task within the client cluster; Based on the network location information of the target client, sending the hardware fingerprint information of the server to the target client; When the target client correctly receives the hardware fingerprint information, a corresponding first hash value is generated based on the hardware fingerprint information, and the first hash value is stored in the storage space of the target client; Based on the first hash value, sending a registration request to the server; Based on the first hash value in the registration request and the second hash value of the server itself regarding the hardware fingerprint information, determining whether the target client has registration authority; When the target client has registration authority, sending a key instruction to the target client based on the first hash value and the second hash value; The key instruction received by the target client is verified, and when the key instruction is successfully verified, an encrypted communication channel between the target client and the server is established.
2. The encryption communication method based on hardware fingerprint according to claim 1, characterized in that: It also includes generating hardware fingerprint information, which includes: Step S1, assuming that the hardware fingerprint information of the server hardware a is Generate hardware fingerprint information The original data mapping value set is A={A1,A2,…,A n }, where A1, A2, …, A n is the value corresponding to each feature of the key information of the hardware fingerprint information A, n is the total number of features; for another hardware b on the server side, let its hardware fingerprint information The original data mapping value set is B = {B1, B2, ..., B n }, where B1, B2, …, B n To generate the values corresponding to each feature of the key information of the hardware fingerprint information B, the inner product value of set A and set B is: In the above formula (1), f(A|B) is the inner product value of set A and set B, i is the feature number, which is an integer greater than or equal to 1 and less than or equal to n; Step S2, determining the modular product of set A and set B based on the elements of set A and set B, In the above formula (2), M(A|B) is the modular product of set A and set B, i is the feature number, which is an integer greater than or equal to 1 and less than or equal to n; Step S3, based on the calculation results of the above steps S1 and S2, determine the similarity of the fingerprint key information of set A and set B, In the above formula (3), S(A|B) is the similarity of the fingerprint key information of set A and set B. When the similarity of the fingerprint key information is greater than or equal to 0.95, it indicates that hardware b and hardware a belong to the same hardware, and the fingerprint information generated by hardware b should be Otherwise, hardware b and hardware a do not belong to the same hardware, then the fingerprint information generated by hardware b is the same as different.
3. The encryption communication method based on hardware fingerprint according to claim 1, characterized in that: Monitor the client cluster to determine the target client that needs to perform the communication task within the client cluster; Based on the network location information of the target client, sending the hardware fingerprint information of the server to the target client includes: Monitor the work log updates of all clients under the client cluster to obtain the work log update addition information items of each client; analyze the work log update addition information items to determine whether the work task newly initiated by the internal application of the client belongs to the external data communication task, and if so, determine the corresponding client as the target client that needs to execute the communication task; Based on the gateway address information accessed by the target client, the hardware fingerprint information of the server itself is sent to the target client in a targeted manner.
4. The encryption communication method based on hardware fingerprint according to claim 1, characterized in that: When the target client correctly receives the hardware fingerprint information, a corresponding first hash value is generated based on the hardware fingerprint information, and the first hash value is stored in the storage space of the target client; Based on the first hash value, sending a registration request to the server includes: Performing data content verification on the hardware fingerprint information received by the target client to determine whether the hardware fingerprint information is in a data integrity state; if so, determining that the target client correctly receives the hardware fingerprint information; if not, determining that the target client does not correctly receive the hardware fingerprint information; When the target client correctly receives the hardware fingerprint information, a hash operation is performed on the hardware fingerprint information to generate a corresponding first hash value, and the first hash value is stored in the isolated storage space of the target client; The first Hash value is processed into blocks to obtain a plurality of first Hash value data blocks, and after all the first Hash value data blocks are encrypted, a registration request is generated, and then the registration request is sent to the server.
5. The encryption communication method based on hardware fingerprint according to claim 1, characterized in that: Based on the first hash value in the registration request and the second hash value of the server itself regarding the hardware fingerprint information, determining whether the target client has registration authority; When the target client has registration authority, sending a key instruction to the target client based on the first hash value and the second hash value includes: Parsing and restoring the registration request to obtain a corresponding first hash value, comparing the first hash value with a second hash value of the server itself regarding the hardware fingerprint information to obtain data similarity between the first hash value and the second hash value; if the data similarity is greater than or equal to a preset similarity threshold, determining that the target client has registration authority; Otherwise, it is determined that the target client does not have the registration authority; When the target client has registration authority, the first hash value and the second hash value are symmetrically encrypted to generate a corresponding key instruction, and the key instruction is sent to the target client.
6. The encryption communication method based on hardware fingerprint according to claim 1, characterized in that: Verifying the key instruction received by the target client, and when the key instruction verification succeeds, building an encrypted communication channel between the target client and the server, including: Verifying the key instruction received by the target client to determine whether the key instruction is compatible with the internal operating environment of the target client, and if so, determining that the verification of the key instruction is successful; if not, determining that the verification of the key instruction fails; When the key instruction is successfully verified, an encrypted communication channel between the target client and the server is established based on the gateway address information to which the target client and the server are respectively connected.
7. The encrypted communication system based on hardware fingerprint is characterized by: include: A client monitoring module is used to monitor the client cluster and determine the target client that needs to perform the communication task within the client cluster; A hardware fingerprint information sending module, used to send the hardware fingerprint information of the server to the target client based on the network location information of the target client; A hardware fingerprint information verification and processing module, configured to generate a corresponding first hash value based on the hardware fingerprint information when the target client correctly receives the hardware fingerprint information, and store the first hash value in a storage space of the target client; A registration request sending module, configured to send a registration request to the server based on the first hash value; A key instruction sending module, configured to determine whether the target client has registration authority based on a first hash value in the registration request and a second hash value of the server itself regarding the hardware fingerprint information; if the target client has registration authority, sending a key instruction to the target client based on the first hash value and the second hash value; The encrypted communication channel construction module is used to verify the key instruction received by the target client, and when the key instruction verification is successful, to build an encrypted communication channel between the target client and the server.
8. The hardware fingerprint-based encryption communication system according to claim 7, characterized in that: The client monitoring module is used to monitor the client cluster and determine the target client that needs to perform the communication task within the client cluster, including: Monitor the work log updates of all clients under the client cluster to obtain the work log update addition information items of each client; analyze the work log update addition information items to determine whether the work task newly initiated by the internal application of the client belongs to the external data communication task, and if so, determine the corresponding client as the target client that needs to execute the communication task; The hardware fingerprint information sending module is used to send the hardware fingerprint information of the server to the target client based on the network location information of the target client, including: Based on the gateway address information accessed by the target client, the hardware fingerprint information of the server itself is sent to the target client in a targeted manner.
9. The hardware fingerprint-based encryption communication system according to claim 7, characterized in that: The hardware fingerprint information verification and processing module is used to generate a corresponding first hash value based on the hardware fingerprint information when the target client correctly receives the hardware fingerprint information, and store the first hash value in the storage space of the target client, including: Performing data content verification on the hardware fingerprint information received by the target client to determine whether the hardware fingerprint information is in a data integrity state; if so, determining that the target client correctly receives the hardware fingerprint information; if not, determining that the target client does not correctly receive the hardware fingerprint information; When the target client correctly receives the hardware fingerprint information, a hash operation is performed on the hardware fingerprint information to generate a corresponding first hash value, and the first hash value is stored in the isolated storage space of the target client; The registration request sending module is used to send a registration request to the server based on the first hash value, including: The first Hash value is processed into blocks to obtain a plurality of first Hash value data blocks, and after all the first Hash value data blocks are encrypted, a registration request is generated, and then the registration request is sent to the server.
10. The hardware fingerprint-based encryption communication system according to claim 7, characterized in that: The key instruction sending module is used to determine whether the target client has registration authority based on the first hash value in the registration request and the second hash value of the server itself about the hardware fingerprint information; When the target client has registration authority, sending a key instruction to the target client based on the first hash value and the second hash value includes: Parsing and restoring the registration request to obtain a corresponding first hash value, comparing the first hash value with a second hash value of the server itself regarding the hardware fingerprint information to obtain data similarity between the first hash value and the second hash value; if the data similarity is greater than or equal to a preset similarity threshold, determining that the target client has registration authority; Otherwise, it is determined that the target client does not have the registration authority; When the target client has registration authority, the first hash value and the second hash value are symmetrically encrypted to generate a corresponding key instruction, and the key instruction is sent to the target client. The encrypted communication channel construction module is used to verify the key instruction received by the target client, and when the key instruction verification is successful, to build an encrypted communication channel between the target client and the server, including: Verifying the key instruction received by the target client to determine whether the key instruction is compatible with the internal operating environment of the target client, and if so, determining that the verification of the key instruction is successful; if not, determining that the verification of the key instruction fails; When the key instruction is successfully verified, an encrypted communication channel between the target client and the server is established based on the gateway address information to which the target client and the server are respectively connected.
