Secure data transmission method based on encryption algorithm
By dividing the data to be transmitted into a small fragment and using the hash value to generate the transmission number control table, the problem of data security hidden dangers in the traditional data transmission method is solved, and the security and integrity of the data transmission process are realized.
Patent Information
- Application Number
- CN202411521426.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-01-24
AI Technical Summary
Traditional data transmission methods have security risks during data transmission. Unencrypted data is easily intercepted or tampered, resulting in data leakage or damage.
By evenly dividing the data to be transmitted into multiple small fragments, and using the hash value to determine the calibration number, a transmission number comparison table is generated, each small fragment is encrypted and transmitted, and restored and compared at the receiving end to identify and compare Handle exception fragments.
It reduces the risk of data being stolen or tampered with during transmission, ensures the integrity and accuracy of data, improves the security of data transmission, and promptly detects and handles errors or tampering during transmission.
Smart Images

Figure CN119363453A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data encryption transmission, and in particular is a data security transmission method based on encryption algorithm. Background Art
[0002] In today's digital age, secure data transmission is of vital importance. With the rapid development of network technology, data faces many risks during transmission, such as being intercepted and tampered by hackers. Traditional data transmission methods may have insufficient security issues. For example, some transmission methods may only rely on simple encryption algorithms and lack effective verification mechanisms for data integrity and accuracy.
[0003] The patent with the patent publication number CN110572261A discloses a data encryption transmission method. The method includes: S1, the data sending end generates the first part of the data key, and sends the first part of the data key to the data receiving end; S2, the data receiving end generates the second part of the data key, and sends the second part of the data key to the data sending end; S3, the encryption key and the decryption key are generated by the first part of the data key and the second part of the data key; S4, the data sending end uses the encryption key to encrypt the data to be transmitted, and sends the generated encrypted data to the data receiving end; S5, the data receiving end uses the decryption key to decrypt the received encrypted data to obtain the data to be transmitted. The encryption key of this patent is jointly generated by the data sending end and the data receiving end, and only a part of the key is transmitted each time, which effectively prevents data interception and data cracking, and improves data transmission security.
[0004] However, in the field of data encryption transmission technology, traditional data transmission methods often have security risks. For example, unencrypted data can be easily intercepted or tampered with during transmission, resulting in data leakage or damage. Based on this, a data security transmission method based on encryption algorithm is proposed. Summary of the invention
[0005] The purpose of the present invention is to provide a data security transmission method based on an encryption algorithm, which solves the technical problem that unencrypted data is easily intercepted or tampered with during transmission, thereby causing data leakage or damage.
[0006] The data security transmission method based on encryption algorithm includes the following steps: Step 1: Evenly divide the data to be transmitted into multiple small segments; Step 2: Obtain the original fragment numbers corresponding to each small fragment in the data to be transmitted; Step 3: Obtain the calibration number according to the original segment number corresponding to each small segment; Step 4: According to the calibration number and the original fragment number of each small fragment, the transmission number of each small fragment is analyzed and obtained, and a transmission number comparison table is generated; Step 5: Transform the transmission number value of the small fragment that is interfered with; Step 6: After the transmission is completed, the transmission number of each small segment after the transmission is completed is used as the receiving number, and the receiving number is restored to obtain the restored segment number; Step 7: Compare and analyze the restored fragment number of each small fragment with the original transmission number to mark the abnormal fragments.
[0007] As a further solution of the present invention: the specific method of obtaining the original fragment numbers corresponding to each small fragment in the data to be transmitted is: Each small fragment is numbered in sequence from front to back, and then the original fragment number i corresponding to each small fragment in the data to be transmitted is obtained, where i=1, 2, ..., f, f refers to the number of small fragments in the data to be transmitted, f is a positive integer, f≥1.
[0008] As a further solution of the present invention: the specific method of obtaining the calibration number is: Obtain the hash values Hi corresponding to each small fragment, and use the original fragment number i corresponding to the small fragment with the largest hash value Hi as the calibration number b.
[0009] As a further solution of the present invention: the specific method of obtaining the transmission number of each small fragment is: The product of the sum of the original segment number i and the calibration number b corresponding to each small segment and the original segment number i corresponding to each small segment is used as the transmission number c corresponding to each small segment.
[0010] As a further solution of the present invention: the specific method of generating the transmission number comparison table is: Create an empty table, fill the original fragment number i and the calibration number b of each small fragment into the empty table, and then obtain the transmission number comparison table.
[0011] As a further solution of the present invention, the specific method of transforming the transmission number value of the small fragment subjected to the interference operation is: The interference operation is to intercept, open and insert each small segment during the transmission process. The transmission number value of the small segment subjected to the interference operation is divided by 2 and used as the new transmission number, thereby completing the transformation of the transmission number value.
[0012] As a further solution of the present invention: the specific method of obtaining the restored fragment number is: Through the formula, i=c / (b+i), we can obtain the restored fragment numbers corresponding to each small fragment.
[0013] As a further solution of the present invention: the specific method of marking the abnormal fragments is: When the restored fragment number is consistent with the original transmission number, no processing is performed; when it is inconsistent, the corresponding small fragment is marked as an abnormal fragment.
[0014] As a further solution of the present invention: when there is only one small fragment with the largest hash value in each small fragment, the original fragment number of this small fragment is used as the calibration number of the data to be transmitted; when the number of small fragments with the largest hash value in each small fragment is greater than one, the smallest original fragment number therein is used as the calibration number of the data to be transmitted.
[0015] Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention reduces the risk of data being stolen or tampered with as a whole during transmission by evenly dividing the data to be transmitted into multiple small fragments. Even if some fragments are intercepted or tampered with, the integrity and accuracy of the data can still be ensured by subsequent verification and processing mechanisms for other fragments. The calibration number is determined by the hash value, and a transmission number comparison table is generated based on the calibration number and the original fragment number. This method gives each fragment in the data transmission process a unique identifier, which facilitates the management and verification of data during the transmission process. The data is encrypted and transmitted through the above steps to ensure the secure transmission of the data, and errors or tampering during the transmission process are discovered and processed in a timely manner. (2) The present invention performs specific processing on the transmission numbers of the fragments that are intercepted or interfered with during the data transmission process, so that the receiving end can recognize that the data may have been interfered with, and thus take corresponding measures to deal with it, thereby further improving the security of data transmission. After the data transmission is completed, by restoring the receiving number and comparing and analyzing it with the transmission number comparison table, it is possible to accurately determine whether each fragment is transmitted normally, and timely discover and process abnormal fragments, thereby ensuring the accuracy and integrity of the data. The abnormal fragments are processed accordingly, and the processing methods may be to re-request transmission, discard the fragment, or report it to the sending end for processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of the data security transmission method of the present invention; Figure 2 A schematic diagram of the process of determining and marking abnormal fragments according to the present invention; Figure 3 The figure is a schematic diagram of the determination flow of the calibration numbering of the data to be transmitted according to the present invention. DETAILED DESCRIPTION
[0017] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] Example 1: Please refer to Figure 1-Figure 2 , this application provides a data security transmission method based on an encryption algorithm, comprising the following steps: Step 1: Evenly divide the data to be transmitted into multiple small segments; Step 2: number each small fragment in order from the front to the back, and then obtain the original fragment number i corresponding to each small fragment in the data to be transmitted, where i refers to the original fragment number corresponding to each small fragment, i=1, 2, ..., f, where f refers to the number of small fragments in the data to be transmitted, f is a positive integer, f≥1; Step 3: According to the original fragment numbers i corresponding to each small fragment in the data to be transmitted, the calibration number b of the data to be transmitted is obtained by analysis, and the specific method is as follows: Calculate and obtain the hash values Hi corresponding to each small segment, and use the original segment number i corresponding to the small segment with the largest hash value Hi as the calibration number b of the data to be transmitted; It should be noted that when there is only one small fragment with the largest hash value Hi among the small fragments, the original fragment number of this small fragment is used as the calibration number b of the data to be transmitted; When the number of small fragments with the largest hash value Hi among the small fragments is greater than one, the smallest original fragment number among them is used as the calibration number b of the data to be transmitted; For example, suppose the data to be transmitted is divided into 4 small fragments, and the original fragment numbers are 1, 2, 3, and 4. After calculating the hash value of each fragment, the following results are obtained; The hash value of fragment 1 is H1=123456789; the hash value of fragment 2 is H2=987654321 (maximum); the hash value of fragment 3 is H3=555555555; the hash value of fragment 4 is H4=444444444; in this example, the hash value of fragment 2 is the largest, and since only one fragment has the largest hash value, the original fragment number 2 of fragment 2 is used as the calibration number b; To take another example, if there are multiple fragments with the largest hash values, for example: the hash value of fragment 1 is H1=987654321 (maximum), the hash value of fragment 2 is H2=987654321 (maximum), the hash value of fragment 3 is H3=555555555, and the hash value of fragment 4 is H4=444444444. Since in this example, the hash values of fragment 1 and fragment 2 are both the largest, and since the original fragment number 1 of fragment 1 is less than the original fragment number 2 of fragment 2, the original fragment number 1 of fragment 1 is used as the calibration number b.
[0019] Step 4: According to the calibration number and the original segment number corresponding to each small segment, the transmission number corresponding to each small segment is analyzed and obtained, and a transmission number comparison table is generated. The specific method is as follows: Create an empty table to store the mapping relationship between the original segment number i, the calibration number b and the corresponding transmission number c. The product of the sum of the original segment number i and the calibration number b corresponding to each small segment and the original segment number i corresponding to each small segment is used as the transmission number c corresponding to each small segment. For each small original segment number i, fill i, b and the corresponding c value into the empty table to obtain a transmission number comparison table. That is, through the formula, c=(b+i)×i, the transmission number c corresponding to each small fragment is calculated, and it is converted into a quadratic equation in the form of c=i2+bi; For example, assume that the data to be transmitted is divided into 4 small segments, and the original segment numbers are 1, 2, 3, and 4, respectively, and the calibration number b is 2. For segment 1 (i=1), the transmission number c is calculated as: c=(2+1)×1=3×1=3, and the record (1,2,3) is added to the comparison table. For segment 2 (i=2), the transmission number c is calculated as: c=(2+2)×2=4×2=8, and the record (2,2,8) is added to the comparison table. For segment 3 (i=3), the transmission number c is calculated as: c=(2+3)×3=5×3=15, and the record (3,2,15) is added to the comparison table. For segment 4 (i=4), the transmission number c is calculated as: c=(2+4)×4=6×4=24, and the record (4,2,24) is added to the comparison table, thereby obtaining a transmission number comparison table.
[0020] Step 5: During the transmission of each small segment, if it is intercepted, opened, inserted or other interference operations, the specific value of the transmission number is divided by 2 and used as the new transmission number; By evenly dividing the data to be transmitted into multiple small fragments, the risk of data being stolen or tampered with as a whole during transmission is reduced. Even if some fragments are intercepted or tampered with, other fragments can still ensure the integrity and accuracy of the data through subsequent verification and processing mechanisms. The hash value is used to determine the calibration number, and a transmission number comparison table is generated based on the calibration number and the original fragment number. This method gives each fragment in the data transmission process a unique identifier, which facilitates the management and verification of data during transmission. Through the above steps, data is encrypted and transmitted to ensure secure data transmission, and errors or tampering during transmission are discovered and handled in a timely manner.
[0021] Example 2: As Example 2 of the present invention, please refer to Figure 3 , when the present application is implemented, compared with the embodiment 1, the difference between the technical solution of the present embodiment and the embodiment 1 is only that the present embodiment further includes step 6 and step 7; Step 6: After the transmission of each small segment is completed, the transmission number corresponding to each small segment is obtained as the receiving number, and the original segment number corresponding to each small segment is restored according to the receiving number corresponding to each small segment, so as to obtain the restored segment number corresponding to each small segment. The specific method is as follows: For each small segment, use the following formula to restore the original segment number i: i = c / (b+i), where c is the received transmission number and b is the known calibration number; Step 7: Compare and analyze the restored segment numbers corresponding to each small segment with the original transmission numbers corresponding to each small segment in the transmission number comparison table, and mark the abnormal segments according to the comparison and analysis results. The specific method is as follows: The original transmission numbers corresponding to each small fragment in the restored fragment number and transmission number comparison table are compared and analyzed. If the restored fragment number is consistent with the original transmission number, it means that the transmission of the small fragment is normal; if they are inconsistent, it means that an error or tampering has occurred in the transmission process of the small fragment, and the corresponding small fragment will be marked as an abnormal fragment.
[0022] During the transmission process, if it is intercepted or interfered with, the transmission number can be specifically processed to enable the receiving end to recognize that the data may have been interfered with, so that corresponding measures can be taken to deal with it, further improving the security of data transmission. When the data transmission is completed, the receiving number can be restored and compared with the transmission number comparison table to accurately determine whether each fragment is transmitted normally, and abnormal fragments can be discovered and processed in time to ensure the accuracy and integrity of the data. The abnormal fragments can be processed accordingly, and the processing method can be re-requesting transmission, discarding the fragment, or reporting to the sending end for processing.
[0023] Embodiment 3: As the embodiment 3 of the present invention, when the present application is implemented specifically, compared with the embodiments 1 and 2, the technical solution of this embodiment is to combine the solutions of the above-mentioned embodiments 1 and 2 for implementation.
[0024] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.
[0025] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data security transmission method based on an encryption algorithm, characterized in that: The following steps are involved: Step 1: Evenly divide the data to be transmitted into multiple small segments; Step 2: Obtain the original fragment numbers corresponding to each small fragment in the data to be transmitted; Step 3: Obtain the calibration number according to the original segment number corresponding to each small segment; Step 4: According to the calibration number and the original fragment number of each small fragment, the transmission number of each small fragment is analyzed and obtained, and a transmission number comparison table is generated; Step 5: Transform the transmission number value of the small fragment that is interfered with; Step 6: After the transmission is completed, the transmission number of each small segment after the transmission is completed is used as the receiving number, and the receiving number is restored to obtain the restored segment number; Step 7: Compare and analyze the restored fragment number of each small fragment with the original transmission number to mark the abnormal fragments.
2. The data security transmission method based on encryption algorithm according to claim 1 is characterized in that: The specific method of obtaining the original fragment numbers corresponding to each small fragment in the data to be transmitted is: Each small fragment is numbered in sequence from front to back, and then the original fragment number i corresponding to each small fragment in the data to be transmitted is obtained, where i=1, 2, ..., f, f refers to the number of small fragments in the data to be transmitted, f is a positive integer, f≥1.
3. The data security transmission method based on encryption algorithm according to claim 2 is characterized in that: The specific method to obtain the calibration number is: Obtain the hash values Hi corresponding to each small fragment, and use the original fragment number i corresponding to the small fragment with the largest hash value Hi as the calibration number b.
4. The data security transmission method based on encryption algorithm according to claim 3 is characterized in that: The specific method of obtaining the transmission number of each small fragment is: The product of the sum of the original segment number i and the calibration number b corresponding to each small segment and the original segment number i corresponding to each small segment is used as the transmission number c corresponding to each small segment.
5. The data security transmission method based on encryption algorithm according to claim 4 is characterized in that: The specific method of generating the transmission number comparison table is as follows: Create an empty table, fill the original fragment number i and the calibration number b of each small fragment into the empty table, and then obtain the transmission number comparison table.
6. The data security transmission method based on encryption algorithm according to claim 4 is characterized in that: The specific method of changing the transmission number value of the small fragment of the disturbed operation is as follows: The interference operation is intercepted, opened and inserted during the transmission of each small fragment. The transmission number value of the small fragment subjected to the interference operation is divided by 2 and used as the new transmission number, thereby completing the transformation of the transmission number value.
7. The data security transmission method based on encryption algorithm according to claim 6 is characterized in that: The specific method of obtaining the restored fragment number is: Through the formula, i=c / (b+i), we can obtain the restored fragment numbers corresponding to each small fragment.
8. The data security transmission method based on encryption algorithm according to claim 7 is characterized in that: The specific method of marking abnormal fragments is as follows: When the restored fragment number is consistent with the original transmission number, no processing is performed; when it is inconsistent, the corresponding small fragment is marked as an abnormal fragment.
9. The data security transmission method based on encryption algorithm according to claim 3 is characterized in that: When there is only one small fragment with the largest hash value in each small fragment, the original fragment number of this small fragment is used as the calibration number of the data to be transmitted; when the number of small fragments with the largest hash value in each small fragment is greater than one, the smallest original fragment number is used as the calibration number of the data to be transmitted.
Citation Information
Patent Citations
Data encryption transmission method
CN110572261A
Cited By
Secure data transmission method based on encryption algorithm
CN121396452A