A network data transmission method and device based on high-speed encryption algorithm
By using high-speed encryption algorithms and the key intervention of intermediate units in network data transmission, the existing technology problems of high computing power and difficulty in ensuring security of interacting parties are solved, and the security of data transmission and low security under high concurrency are achieved. Delayed communication.
Patent Information
- Application Number
- CN202410119280.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-01-29
AI Technical Summary
Existing network data transmission methods have high requirements on the computing power of the interaction between the interacting party and the requesting party. In high concurrency situations, the information verification and encryption and decryption processes are cumbersome, occupying a large amount of storage and computing power, and the security is difficult to guarantee. .
Adopt a network data transmission method based on high-speed encryption algorithm, verify the interaction type and protocol type, and use the key intervention of the intermediate unit to ensure data security, and judge the interaction by writing the response timestamp and verification timestamp. Source, avoid malicious tracking, reduce direct interaction time, and improve security.
It improves the security of data transmission, reduces the time of direct communication links, avoids data leakage, and ensures the security of communication links and data redundancy in times of high concurrency.
Smart Images

Figure CN117938984B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of data transmission technology, and specifically relates to a network data transmission method and device using a high-speed encryption algorithm. Background Art
[0002] With the progress of socialization, network data transmission has become an indispensable social communication tool in society. However, the secure transmission of network data has long been a highly concerned issue. As the requirements for data security gradually increase and the computing power of existing personal computing terminals gradually increases, there is a need for data transmission under new encryption algorithms.
[0003] Existing network data transmission methods have high requirements on the computing power of the interaction between the interacting party and the requesting party. In addition, for high-concurrency interactions, the information verification and encryption and decryption process between interactions is complicated and requires a large amount of storage and computing power to record the interaction logs of each interaction, and its security is difficult to guarantee.
[0004] In view of this, a network data transmission method and device based on a high-speed encryption algorithm are proposed. Summary of the invention
[0005] To this end, the present invention provides a network data transmission method and device based on a high-speed encryption algorithm to solve the encryption requirements in network data transmission.
[0006] A first aspect of the present invention provides a network data transmission method based on a high-speed encryption algorithm, which is used in a first unit and comprises the following steps:
[0007] Sending a first interaction request and first interaction data to the second unit, wherein the first interaction request includes at least an interaction type request and an interaction protocol request, and the first interaction data includes at least interaction data and protocol data;
[0008] receiving a first interaction response from the second unit, wherein the first interaction response includes at least an interaction return value and a protocol return value, and a first registration value;
[0009] sending a first registration value to an intermediate unit, and receiving a first registration key from the intermediate unit;
[0010] Decrypting the interaction return value and the protocol return value by using the first registration key to obtain an interaction registration value and a protocol registration value;
[0011] Writing the interaction registration value and the protocol registration value into the first interaction data to obtain second interaction data;
[0012] Writing second interaction data into the first interaction request and sending it to the second unit;
[0013] An interaction corresponding to the interaction type is performed.
[0014] Furthermore, the specific steps of writing the interaction registration value and the protocol registration value are as follows:
[0015] Obtaining a response timestamp of the first interaction response;
[0016] Writing the response timestamp and the interaction registration value into the protocol header of the protocol data;
[0017] The response timestamp and the interaction registration value are written into the interaction data.
[0018] Furthermore, the first registration value includes:
[0019] A first unit check bit, including a request timestamp of the first interaction request and a unit tag of the first unit;
[0020] A second unit check bit, including a response timestamp of the first interactive response and a unit tag of the second unit;
[0021] The key preset position includes a first registration key preset position and a first registration key additional position,
[0022] The first registration key is preset to a random length and a random key placeholder is set,
[0023] The first registration key additional bits are fixed in length and a random extension placeholder is set, and a random extension placeholder is extended to an adjacent bit of the random key placeholder by the intermediate unit according to the number of interactions.
[0024] Furthermore, it also includes:
[0025] After performing an interaction corresponding to the interaction type, when performing a new interaction, perform the following steps:
[0026] The first registration value is sent to the intermediate unit, and interaction is requested after receiving the updated first registration value forwarded by the intermediate unit.
[0027] A second aspect of the present invention provides a network data transmission method based on a high-speed encryption algorithm, which is used in a second unit and comprises the following steps:
[0028] receiving a first interaction request and first interaction data from a first unit, verifying an interaction type and a protocol type, and generating a first interaction response, wherein:
[0029] If the interaction type does not match the preset type, set the interaction return value to the first preset key placeholder;
[0030] If the protocol type does not match the preset type, set the protocol return value to the second preset key placeholder;
[0031] sending a first interaction response and a registration request to the intermediate unit, and receiving a first registration value from the intermediate unit;
[0032] Returning a first registration value and a first interaction response to the first unit;
[0033] receiving second interaction data from the first unit,
[0034] After the verification is passed, the interaction corresponding to the interaction type is executed.
[0035] A third aspect of the present invention provides a network data transmission method based on a high-speed encryption algorithm, which is used in an intermediate unit and comprises the following steps:
[0036] receiving a registration request and a first interaction response from the second unit;
[0037] Verify the first preset key placeholder and the second preset key placeholder, and generate a first registration key corresponding to the first preset key placeholder and the second preset key placeholder from the key dictionary;
[0038] Generate a first registration value and write values of the first preset key placeholder and the second preset key placeholder to the random extension placeholder of the first registration value;
[0039] sending the first registration value to the second unit;
[0040] A first registration value is received from the first unit, and a random extension placeholder is verified to send a first registration key to the first unit.
[0041] Further, when receiving the first registration value, it also includes:
[0042] When receiving the first registration value, it also includes:
[0043] Verify the first registration additional key bit length of the first registration value, if the length is greater than a preset value,
[0044] Requesting interaction data and protocol data from the first unit and the second unit respectively;
[0045] Generate a new first registration value, and extend another random extension placeholder in an adjacent position of the random key placeholder in the first registration additional key position;
[0046] Returns the first register value to the first cell.
[0047] The third aspect of the present invention provides a network data transmission device based on a high-speed encryption algorithm, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method of the first aspect, the second aspect, or the third aspect is implemented.
[0048] The above technical solution of the present invention has the following advantages compared with the prior art:
[0049] The present invention first verifies the interaction type and protocol type from the first unit to the second unit to determine whether the interaction complies with the initial rules, then writes the response timestamp and the verification timestamp into the first registration value to determine whether the verification source is the first unit and the second unit that initiated the interaction, and then intervenes through the key of the intermediate unit to ensure the data security of the interaction process.
[0050] The present invention also ensures the security of data by forwarding the interaction performed by the intermediate unit after the first interaction occurs, thereby preventing a malicious third party from tracking the direct communication link between the first unit and the second unit, which may lead to data leakage. At the same time, it also reduces the direct interaction time between the first unit and the second unit, ensuring that when concurrency is high, the communication link does not suffer from low communication link security and data redundancy due to excessive direct communication time. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 is a schematic diagram of interaction between various units provided in an embodiment of the present invention;
[0052] Figure 2 It is a schematic diagram of the structure of the device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display. Embodiment 1
[0054] The embodiment of the present disclosure provides a network data transmission method based on a high-speed encryption algorithm, including an interaction involving a first unit, a second unit, and an intermediate unit.
[0055] In the embodiment of the present disclosure, the first unit refers to the interactive party that initiates the request, the second unit refers to the interactive party that responds to the request, and the intermediate unit refers to the server end that stores the key.
[0056] The interaction for the first unit includes the following steps:
[0057] Sending a first interaction request and first interaction data to the second unit, wherein the first interaction data at least includes the first interaction request and the first interaction data, the first interaction request at least includes an interaction type request and an interaction protocol request, and the first interaction data at least includes interaction data and protocol data;
[0058] receiving a first interaction response from the second unit, wherein the first interaction response includes at least an interaction return value and a protocol return value, and a first registration value;
[0059] sending a first registration value to an intermediate unit, and receiving a first registration key from the intermediate unit;
[0060] Decrypting the interaction return value and the protocol return value by using the first registration key to obtain an interaction registration value and a protocol registration value;
[0061] Writing the interaction registration value and the protocol registration value into the first interaction data to obtain second interaction data;
[0062] Writing second interaction data into the first interaction request and sending it to the second unit;
[0063] An interaction corresponding to the interaction type is performed.
[0064] After performing an interaction corresponding to the interaction type, when performing a new interaction, perform the following steps:
[0065] The first registration value is sent to the intermediate unit, and interaction is requested after receiving the updated first registration value forwarded by the intermediate unit.
[0066] As a further preferred embodiment of the present disclosure, the specific steps of writing the interaction registration value and the protocol registration value are as follows:
[0067] Obtaining a response timestamp of the first interaction response;
[0068] Writing the response timestamp and the interaction registration value into the protocol header of the protocol data;
[0069] The response timestamp and the interaction registration value are written into the interaction data. In the disclosed embodiment, when the protocol header of the protocol data is written with the response timestamp, the protocol data of this interaction is no longer available after the written value is removed. Only the interaction party holding the key can correctly read the data after decrypting the data in the protocol header and removing the response timestamp and interaction registration value written in the protocol header. In contrast, after obtaining the interaction return value and the protocol return value, the first unit also encrypts the response timestamp and the interaction registration value with the first registration key to obtain a set of new values. The encrypted new value is different from the interaction return value, which also ensures that in the process of one interaction, there is no same value encrypted by the first unit or the second unit, so as to ensure the security of the interaction process.
[0070] As a further preferred embodiment of the present disclosure, the first registration value includes:
[0071] A first unit check bit, including a request timestamp of the first interaction request and a unit tag of the first unit;
[0072] A second unit check bit, including a response timestamp of the first interactive response and a unit tag of the second unit;
[0073] The key preset position includes a first registration key preset position and a first registration key additional position,
[0074] The first registration key is preset to a random length and a random key placeholder is set,
[0075] The first registration key additional bits are fixed in length and a random extension placeholder is set, and a random extension placeholder is extended to an adjacent bit of the random key placeholder by the intermediate unit according to the number of interactions.
[0076] It should be noted that the values in the first unit check bit and the second unit check bit are also encrypted by the first registration key, that is, the first registration value stores the original value of the first registration key and the key update value that records the number of interactions and the interaction updates, and is also encrypted by the first registration key. Even if the first registration value is brute-force cracked to obtain the first registration key, since the first registration value is an intermediate check value of the interaction process, the check itself is the update status of the first registration key additional bit of the verifier after returning the first registration value to the intermediate unit and after passing the check, the intermediate unit determines and returns it to each unit for interaction. Therefore, after it is cracked, it still needs to be returned to the intermediate unit, and the steps executed by the intermediate unit need to obtain the interaction information from the first unit and the second unit according to the first registration value before initiating interaction verification.
[0077] The interaction for the second unit includes the following steps:
[0078] receiving a first interaction request and first interaction data from a first unit, verifying an interaction type and a protocol type, and generating a first interaction response, wherein:
[0079] If the interaction type does not match the preset type, set the interaction return value to the first preset key placeholder;
[0080] If the protocol type does not match the preset type, set the protocol return value to the second preset key placeholder;
[0081] sending a first interaction response and a registration request to the intermediate unit, and receiving a first registration value from the intermediate unit;
[0082] Returning a first registration value and a first interaction response to the first unit;
[0083] receiving second interaction data from the first unit,
[0084] After the verification is passed, the interaction corresponding to the interaction type is executed.
[0085] In the embodiment of the present disclosure, a variety of return values are preset according to the difference in interaction types;
[0086] According to the difference in protocol types, multiple return values are preset. In the embodiment of the present disclosure, the key dictionary stored by the intermediate unit stores key units related to different return values respectively.
[0087] When the first registration key is initially generated, the combination of key units is determined according to the return value, and the corresponding preset key unit is selected in the key dictionary according to the response timestamp and the unit tag value. The key units are combined and encrypted using a preset encryption algorithm to obtain a first key value, and then encrypted again using the preset encryption algorithm to obtain the first registration key. The first registration key is used for encryption of the first registration value and other corresponding encryption and decryption processes in this embodiment.
[0088] For the interaction of intermediate units, the following steps are included:
[0089] receiving a registration request and a first interaction response from the second unit;
[0090] Verify the first preset key placeholder and the second preset key placeholder, and generate a first registration key corresponding to the first preset key placeholder and the second preset key placeholder from the key dictionary;
[0091] Generate a first registration value and write values of the first preset key placeholder and the second preset key placeholder to the random extension placeholder of the first registration value;
[0092] sending the first registration value to the second unit;
[0093] A first registration value is received from the first unit, and a random extension placeholder is verified to send a first registration key to the first unit.
[0094] As a further preferred embodiment of the present disclosure, when receiving the first registration value, it also includes:
[0095] When receiving the first registration value, it also includes:
[0096] Verify the first registration additional key bit length of the first registration value, if the length is greater than a preset value,
[0097] Requesting interaction data and protocol data from the first unit and the second unit respectively;
[0098] Generate a new first registration value, and extend another random extension placeholder in the adjacent position of the random key placeholder in the first registration additional key position; in the embodiment of the present disclosure, if the total length of the key preset position is greater than the preset number of bytes, delete the first preset key additional position, and the initial length of the key preset position is always less than the preset number of bytes.
[0099] Returns the first register value to the first cell.
[0100] This embodiment first verifies the interaction type and protocol type from the first unit to the second unit to determine whether the interaction complies with the initial rules, and then writes the response timestamp and the verification timestamp into the first registration value to determine whether the verification source is the first unit and the second unit that initiated the interaction, and then intervenes through the key of the intermediate unit to ensure the data security of the interaction process.
[0101] This embodiment also ensures the security of data by forwarding the interaction through the intermediate unit after the first interaction occurs, thereby preventing a malicious third party from tracking the direct communication link between the first unit and the second unit, which could lead to data leakage. It also reduces the direct interaction time between the first unit and the second unit, ensuring that during high concurrency, the communication link does not suffer from low security and data redundancy due to excessive direct communication time.
[0102] Combination Figure 2As shown, the embodiment of the present disclosure provides a network data transmission device based on a high-speed encryption algorithm, including a processor (processor) 30 and a memory (memory) 31. Optionally, the electronic device may also include a communication interface (CommunicationInterface) 32 and a bus 33. Among them, the processor 30, the communication interface 32, and the memory 31 can communicate with each other through the bus 33. The communication interface 32 can be used for information transmission. The processor 30 can call the logic instructions in the memory 31 to execute the network data transmission method based on the high-speed encryption algorithm of the enterprise based on value co-creation in the above embodiment.
[0103] An embodiment of the present disclosure provides a storage medium storing computer executable instructions, wherein the computer executable instructions are configured to execute the above-mentioned network data transmission method based on a high-speed encryption algorithm for an enterprise based on value co-creation.
[0104] The above-mentioned storage medium may be a transient computer-readable storage medium or a non-transient computer-readable storage medium. Non-transient storage media include: USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks or optical disks, and other media that can store program codes, which may also be transient storage media.
[0105] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
Claims
1. A network data transmission method based on a high-speed encryption algorithm, used in a first unit, characterized in that: The steps include: Sending a first interaction request and first interaction data to the second unit, wherein the first interaction request includes at least an interaction type request and an interaction protocol request, and the first interaction data includes at least interaction data and protocol data; receiving a first interaction response from the second unit, wherein the first interaction response includes at least an interaction return value and a protocol return value, and a first registration value; The first registration value includes: A first unit check bit, including a request timestamp of the first interaction request and a unit tag of the first unit; A second unit check bit, including a response timestamp of the first interactive response and a unit tag of the second unit; The key preset position includes a first registration key preset position and a first registration key additional position, The first registration key is preset to a random length and a random key placeholder is set, The first registration key additional bits are fixed in length and a random extension placeholder is set, and a random extension placeholder is extended to an adjacent position of the random key placeholder by an intermediate unit according to the number of interactions; sending a first registration value to an intermediate unit, and receiving a first registration key from the intermediate unit; Decrypting the interaction return value and the protocol return value by using the first registration key to obtain an interaction registration value and a protocol registration value; Writing the interaction registration value and the protocol registration value into the first interaction data to obtain second interaction data; Writing second interaction data into the first interaction request and sending it to the second unit; An interaction corresponding to the interaction type is performed.
2. The network data transmission method based on high-speed encryption algorithm according to claim 1 is characterized in that: The specific steps of writing the interaction registration value and the protocol registration value are as follows: Obtaining a response timestamp of the first interaction response; Writing the response timestamp and the interaction registration value into the protocol header of the protocol data; The response timestamp and the interaction registration value are written into the interaction data.
3. The network data transmission method based on high-speed encryption algorithm according to claim 1 is characterized in that: Also includes: After performing an interaction corresponding to the interaction type, when performing a new interaction, perform the following steps: The first registration value is sent to the intermediate unit, and interaction is requested after receiving the updated first registration value forwarded by the intermediate unit.
4. A network data transmission method based on a high-speed encryption algorithm, used in the second unit, comprising the following steps: receiving a first interaction request and first interaction data from a first unit, verifying an interaction type and a protocol type, and generating a first interaction response, wherein: If the interaction type does not match the preset type, set the interaction return value to the first preset key placeholder; If the protocol type does not match the preset type, set the protocol return value to the second preset key placeholder; sending a first interaction response and a registration request to the intermediate unit, and receiving a first registration value from the intermediate unit; Returning a first registration value and a first interaction response to the first unit; The first registration value includes: A first unit check bit, including a request timestamp of the first interaction request and a unit tag of the first unit; A second unit check bit, including a response timestamp of the first interactive response and a unit tag of the second unit; The key preset position includes a first registration key preset position and a first registration key additional position, The first registration key is preset to a random length and a random key placeholder is set, The first registration key additional bits are fixed in length and a random extension placeholder is set, and a random extension placeholder is extended to an adjacent position of the random key placeholder by the intermediate unit according to the number of interactions; receiving second interaction data from the first unit, After the verification is passed, the interaction corresponding to the interaction type is executed.
5. A network data transmission method based on a high-speed encryption algorithm, used in an intermediate unit, characterized in that: The steps include: receiving a registration request and a first interaction response from the second unit; Verify the first preset key placeholder and the second preset key placeholder, and generate a first registration key corresponding to the first preset key placeholder and the second preset key placeholder from the key dictionary; Generate a first registration value and write values of the first preset key placeholder and the second preset key placeholder to the random extension placeholder of the first registration value; The first registration value includes: A first unit check bit, including a request timestamp of the first interaction request and a unit tag of the first unit; A second unit check bit, including a response timestamp of the first interactive response and a unit tag of the second unit; The key preset position includes a first registration key preset position and a first registration key additional position, The first registration key is preset to a random length and a random key placeholder is set, The first registration key additional bits are fixed in length and a random extension placeholder is set, and a random extension placeholder is extended to an adjacent position of the random key placeholder by the intermediate unit according to the number of interactions; sending the first registration value to the second unit; A first registration value is received from the first unit, and a random extension placeholder is verified to send a first registration key to the first unit.
6. The network data transmission method based on high-speed encryption algorithm according to claim 5 is characterized in that: When receiving the first registration value, it also includes: Verify the first registration additional key bit length of the first registration value, if the length is greater than a preset value, Requesting interaction data and protocol data from the first unit and the second unit respectively; Generate a new first registration value, and extend another random extension placeholder in an adjacent position of the random key placeholder in the first registration additional key position; Returns the new first register value to the first cell.
7. A network data transmission device based on a high-speed encryption algorithm, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
