A data interaction processing method and system
By splitting the data information and generating unique encodings using self-built mathematical models, the problem of insufficient data transmission security in the existing technology is solved, and the security and integrity of data transmission is significantly improved.
Patent Information
- Application Number
- CN202411435252.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-10-15
AI Technical Summary
The existing data interaction verification methods are too simplified, resulting in flaws in monitoring and defending potential tampering and attacking interaction behaviors at a finer granularity, resulting in improved data transmission security.
By splitting the data to be processed into multiple sub-data information and matching the real-time computed encoding for each sub-data information, the encoding relies on a self-built mathematical model to generate unique security attributes and enhance data transmission security.
It effectively increases the security and integrity of data transmission, increases the difficulty of potential attackers to crack data, and significantly improves the security of data during transmission.
Smart Images

Figure CN118972173B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data interaction, and in particular to a data interaction processing method and a system thereof. Background Art
[0002] In today's information age, with the rapid development of network technology and computing technology, data interaction and communication have become the core part of enterprise operations. Existing secure interaction management technologies mainly rely on network security protocols, encryption technology, identity authentication mechanisms, and access control strategies. These technologies together build a relatively secure data exchange environment to ensure the security and integrity of data during transmission.
[0003] Network security protocols such as SSL / TLS provide an encrypted channel for data transmission, ensuring that data cannot be eavesdropped or tampered with during transmission. Public key encryption and symmetric encryption technologies are used to protect data content from unauthorized access. Identity authentication mechanisms, such as multi-factor authentication, ensure that only verified users can access sensitive information. Access control policies limit access to sensitive resources by defining the rules for interaction between users and systems. In addition, existing technologies also include intrusion detection systems and security information and event management systems (SIEM), which can monitor and analyze network behavior to identify and respond to potential security threats.
[0004] However, although the existing secure interaction management technology provides basic security guarantees, it has certain limitations in the way data is transmitted and interacted. Current data interaction verification methods are often oversimplified, which leads to defects in monitoring and defending against potential tampering and attack interaction behaviors at a finer granularity.
[0005] Therefore, it is necessary to provide a safer data interaction processing method and system to solve the above problems. Summary of the invention
[0006] The present invention aims to provide a data interaction processing method and system to solve the technical problems in the prior art that the security of data transmission needs to be improved, and the risks of potential tampering and attack interaction behaviors are monitored and defended at a finer granularity due to the oversimplification of the data interaction verification method. The technical problems to be solved by the present invention are achieved through the following technical solutions.
[0007] A first aspect of the present invention provides a data interaction method, comprising an information sending end and an information receiving end for data interaction with the information sending end, comprising: determining data information to be processed; establishing a dynamic mathematical model for matching and coding the data information to be processed, specifically comprising: determining a curve function image so that a line segment of the curve function image passes through an equilateral triangle, determining a second related point according to the curve function image and a selected first related point, and determining a first calculated distance; calculating a second calculated distance between the second related point and a second side of the equilateral triangle, and calculating a third calculated distance between the second related point and a third side of the equilateral triangle; splitting the data information to be processed into three segments of sub-data information, matching and coding each segment of the sub-data information according to the first calculated distance, the second calculated distance, and the third calculated distance; and sending the multiple segments of sub-data information after matching and coding to the information receiving end.
[0008] The second aspect of the present invention provides a data interaction method, including an information receiving end and an information sending end that interacts with the information receiving end, wherein the information receiving end receives the data information to be processed obtained by the matching coding processing in the method according to the first aspect of the present invention, specifically comprising: sequentially receiving the data information to be processed from the information sending end after the matching coding processing, wherein the data information to be processed includes the first segment of sub-data information, the middle segment of data information and the last segment of sub-data information; respectively encoding and extracting the sub-data information of each segment of the received data information to be processed, and encoding and verifying the result of the conversion calculation; merging all the sub-data information that have passed the coding verification to obtain the data information to be processed.
[0009] The third aspect of the present invention provides a processing system, including an information sending end and an information receiving end for data interaction with the information sending end, which uses the data interaction method described in the first aspect of the present invention or the second aspect of the present invention, including: an information sending end, used to determine the data information to be processed, and send the data information to be processed after matching coding processing to the information receiving end; a coding matching module, used to split the data information to be processed to obtain multiple segments of sub-data information, and match coding processing for each segment of sub-data information; an information receiving end, used to receive the data information to be processed after matching coding processing; a coding verification module, used to perform coding verification on the multiple segments of sub-data information received by the information receiving end after matching coding processing, and merge all the segments of sub-data information that have passed the coding verification to determine the complete data information to be processed.
[0010] The fourth aspect of the present invention provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the data interaction method described in the first aspect or the second aspect of the present invention.
[0011] A fifth aspect of the present invention provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the data interaction method described in the first aspect or the second aspect of the present invention.
[0012] Beneficial effects of the present invention:
[0013] Compared with the prior art, the present invention splits the data information to be processed into multiple segments of sub-data information, and matches each segment of sub-data information with a real-time calculated code. The code of each segment of data is generated by relying on a self-built mathematical model, so that each segment of sub-data information has a unique security attribute. Therefore, it can effectively increase the security of data transmission, and at the same time effectively increase the difficulty for potential attackers to crack data, and can also significantly improve the security and integrity of data during transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a flowchart of an example of the data interaction processing method of the present invention;
[0015] Figure 2 It is a flow chart of establishing a mathematical model in the data interaction processing method of the present invention;
[0016] Figure 3 It is a schematic diagram of the principle of establishing a mathematical model in the data interaction processing method of the present invention;
[0017] Figure 4 is a flowchart of another example of the data interaction processing method of the present invention;
[0018] Figure 5 is a structural diagram of an example of a data interaction processing system of the present invention;
[0019] Figure 6 is a schematic structural diagram of an electronic device embodiment according to the present invention;
[0020] Figure 7 It is a schematic diagram of the structure of a computer-readable medium embodiment according to the present invention. DETAILED DESCRIPTION
[0021] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] In view of the above problems, the present invention provides a data interaction method, which specifically splits the data information to be processed to obtain multiple segments of sub-data information, and matches each segment of sub-data information with a real-time calculated code. The encoding of each segment of data relies on a self-built mathematical model to generate, so that each segment of sub-data information has a unique security attribute. Therefore, it can effectively increase the security of data transmission and effectively increase the difficulty for potential attackers to crack data.
[0023] It should be noted that the method of the present invention is applicable to the following system, which includes an information sending end and an information receiving end system that interacts with the information sending end. The method of the present invention is widely used, and is particularly suitable for the transmission and communication of internal technical data between users in enterprise departments. It can effectively ensure the communication security of the interaction process between users of these content technical data. In order to ensure that the data is not tampered with, internal users (internal clients and clients) use this method to process the data information to be processed or the data information to be transmitted (such as files). In addition, the present invention can also be applied to the transmission of data information such as landmark buildings, roads, etc. obtained by various sensors in the scene of urban intelligent construction. For example, the above-mentioned data information obtained by the sensor is encrypted by the method of the present invention and then sent to, for example, a control center or other equipment, which can effectively ensure the communication security of the above-mentioned data, and then ensure the accurate operation of various construction projects in the scene of urban intelligent construction. In addition, it can also be applied to telemedicine, after collecting the action data of remote doctors, etc., it is encrypted and transmitted, which can avoid medical accidents caused by data tampering, loss, etc.
[0024] Example 1
[0025] Refer to the following Figure 1 , Figure 2 and Figure 3 , the data interaction processing method of the present invention will be described in detail.
[0026] Figure 1 It is a step flow chart of an example of the data interaction processing method of the present invention.
[0027] First, in step S101, data information to be processed is determined.
[0028] In a specific application example, the data management system includes an information sending end and an information receiving end that interacts with the information sending end. The data management system uses the data interaction method of Example 1 to interact with data. The data management system is used for data interaction and data transmission of data information to be processed.
[0029] Specifically, the data to be processed include data that needs to be kept confidential within the enterprise, data information such as landmark buildings and roads obtained by various sensors in urban intelligent construction scenarios, and doctor's operation data collected in telemedicine scenarios.
[0030] It should be noted that the above is only described as an optional example and should not be understood as a limitation to the present invention.
[0031] Next, in step S102, a dynamic mathematical model is established to perform matching coding processing on the data information to be processed, specifically including: determining a curve function image so that the line segment of the curve function image passes through the inside of an equilateral triangle, determining a second related point according to the curve function image and the selected first related point, and determining a first calculated distance; calculating a second calculated distance between the second related point and the second side of the equilateral triangle, and calculating a third calculated distance between the second related point and the third side of the equilateral triangle.
[0032] For building dynamic mathematical models, such as Figure 2 As shown, the specific steps include:
[0033] Step S201: Establish a rectangular coordinate system and configure an equilateral triangle to establish a dynamic mathematical model.
[0034] Specifically, establish a rectangular coordinate system, set an equilateral triangle with a side length of R, the base (first side) of the equilateral triangle coincides with the X-axis of the rectangular coordinate system, and one end of the base coincides with the origin, and the equilateral triangle is located in the first quadrant, where R is a preset value, which is set by the staff according to the application scenario. For details, please refer to Figure 3 The rectangular coordinate system shown.
[0035] Step S202: determine a curve function image so that a line segment of the curve function image passes through an equilateral triangle, determine a second related point based on the curve function image and the selected first related point, and determine a first calculated distance.
[0036] Specifically, a quadratic function y=ax is set in the rectangular coordinate system. 2 +b, as the curve function image, make the line segment of the curve function image pass through the inside of the equilateral triangle, arbitrarily select a point on the (0, R) interval in the x-axis as the first correlation point, substitute the first correlation point into the curve function image to obtain the specific value of y, and determine the specific coordinate point (x, y), that is, the second correlation point, through the values of x and y, where a is the first coefficient and b is the second coefficient.
[0037] It should be noted that there is no particular restriction on the specific values of a, b, and R. As long as there are two intersection points between the equilateral triangle and the quadratic function, the corresponding g1, g2, and y can be obtained.
[0038] Further, a second calculated distance between the second related point and the second side of the equilateral triangle is calculated, and a third calculated distance between the second related point and the third side of the equilateral triangle is calculated, and the first side is closer to the Y axis than the second side.
[0039] Specifically, the second side of the equilateral triangle is converted into the expression of a linear function y= (For details, please refer to Figure 3 ), determine the distance from the second related point (x, y) to the second side y= through the distance formula from the second related point to the second side The second calculated distance g1.
[0040] The straight-line distance from the second related point to the third side of the equilateral triangle is determined to be g2 by the following expression, where h is the height of the equilateral triangle:
[0041] g2=hy-g1
[0042] Wherein, g2 represents the straight-line distance from the second related point to the third side of the equilateral triangle, i.e., the third calculated distance; h is the height of the equilateral triangle; g1 represents the straight-line distance from the second related point (x, y) to the second side y= The second calculated distance; y represents substituting the first related point into the curve function image to obtain the first calculated distance.
[0043] It should be noted that, in this example, the triangle is an equilateral triangle, and in other examples, it may also be an isosceles triangle, a right triangle, etc. For the curve function, the above is only described as an optional example and cannot be understood as a limitation of the present invention.
[0044] Next, in step S103, the data information to be processed is split into three segments of sub-data information, and matching coding processing is performed on each segment of sub-data information according to the first calculated distance, the second calculated distance, and the third calculated distance.
[0045] Specifically, the data information to be processed (such as data information involving landmark buildings, roads, etc. obtained by various sensors in urban intelligent construction scenarios) is split and divided into three sub-data information sections: first sub-data information, middle sub-data information, and last sub-data information.
[0046] Next, matching encoding processing is performed on each segment of sub-data information according to the first calculated distance, the second calculated distance, and the third calculated distance.
[0047] In a specific implementation, for example, according to a certain application scenario, the attribute type of the data to be sent is used to determine R, and the first calculated distance, the second calculated distance, and the third calculated distance are calculated in real time according to the method of step S102.
[0048] In this example, the information sending end obtains the first calculated distance, the second calculated distance, and the third calculated distance calculated in real time.
[0049] Furthermore, the first calculated distance, the second calculated distance and the third calculated distance are converted into binary numbers to be matched as codes in the first segment of sub-data information, the middle segment of data information and the last segment of sub-data information respectively.
[0050] For example, y, g1 and g2 are obtained, converted into binary numbers, and used as codes to match the three sub-data information. Specifically, y is converted into binary numbers and matched with the first sub-data information, g1 is converted into binary numbers and matched with the second sub-data information, and g2 is converted into binary numbers and matched with the last sub-data information. For example, the following binary information is used to represent the obtained data information involving landmark buildings, roads, etc.: 0000000100000010 00000010 1 10010 000001.
[0051] The above data information is now divided into three segments, namely 00000001; 00000010 00000010; 1 10010000001.
[0052] After y, g1 and g2 are converted into binary, the converted binary codes are placed at the first position of each corresponding code segment above to obtain multiple segments of word data information after matching code processing, that is, multiple segments of word data information after encryption.
[0053] It should be noted that the above is only described as an optional example and should not be understood as a limitation to the present invention.
[0054] Next, in step S104, the multiple segments of sub-data information after matching coding processing are sent to the information receiving end.
[0055] Specifically, the first segment of sub-data information, the middle segment of data information and the last segment of sub-data information after matching coding processing are sent to the information receiving end in sequence at specified intervals.
[0056] The interval time T is a preset value. The interval time T is related to the data processing efficiency, that is, the second segment of information is sent after the first segment of information is processed. If the previous data does not meet the verification requirements, the subsequent data will not be transmitted. The above segmented transmission method can block the information processing process in time.
[0057] When all segment data information is sent to the information receiving end, decryption and other processing are performed at the information receiving end.
[0058] It should be noted that the above is only described as an optional example and should not be understood as a limitation to the present invention.
[0059] Compared with the prior art, the present invention splits the data information to be processed into multiple segments of sub-data information, and matches each segment of sub-data information with a real-time calculated code. The code of each segment of data is generated by relying on a self-built mathematical model, so that each segment of sub-data information has a unique security attribute. Therefore, it can effectively increase the security of data transmission, and at the same time effectively increase the difficulty for potential attackers to crack data, and can also significantly improve the security and integrity of data during transmission.
[0060] Example 2
[0061] Refer to the following Figure 4 , the data interaction processing method of the present invention will be described in detail.
[0062] Figure 4 It is a step flow chart of another example of the data interaction processing method of the present invention.
[0063] In an application example, a data management system includes an information receiving end and an information sending end that interacts with the information receiving end. The data management system interacts with data using the data interaction method of this embodiment. The data information to be processed includes data to be kept confidential within the enterprise, data information involving landmark buildings, roads, etc. obtained by various sensors in the urban intelligent construction scenario, and operation data of doctors collected in the telemedicine scenario.
[0064] Specifically, the information receiving end receives the data information to be processed obtained by the matching coding process in the method according to Embodiment 1 of the present invention.
[0065] It should be noted that, since the matching coding process for the data information to be processed in Embodiment 2 is the same as the matching coding process for the data information to be processed in Embodiment 1, the description of the same parts is omitted.
[0066] like Figure 4 As shown, in step S301, the data information to be processed after matching coding processing is received in sequence from the information sending end, and the data information to be processed includes the first segment sub-data information, the middle segment data information and the last segment sub-data information.
[0067] In a specific implementation, when the data information to be processed is divided into three segments, the data information to be processed after matching coding is received from the information sending end three times, specifically, the first segment of the data information is received the first time, the middle segment of the data information is received the second time, and the last segment of the data information is received the third time.
[0068] It should be noted that the above is only described as an optional example and should not be understood as a limitation to the present invention.
[0069] Next, in step S302, each segment of the received data information to be processed is coded and extracted, and the result of the conversion calculation is coded and verified.
[0070] Specifically, extract the binary code in the first sub-data information received for the first time, convert the extracted binary code into decimal to obtain y1, and substitute y1 as y into the equation y=ax of the curve function image. 2 +b, determine the result x1, determine the coordinates (x1, y1), that is, the first verification point, and calculate the first verification distance G1 from the first verification point to the second side of the equilateral triangle. For example, in the above-mentioned example of data information obtained involving landmark buildings, roads, etc., for example, the first segment of data information corresponds to the binary code of y1, which is extracted and converted into decimal, and then used as a proxy for a quadratic equation (i.e., equation y=ax 2 +b), a verification distance G1 is calculated.
[0071] The second segment of sub-data information received for the second time is further converted into a decimal system by extracting the binary code to obtain a second verification distance g1s, and the second verification distance g1s is compared with the first verification distance G1. When the second verification distance g1s is the same as the first verification distance G1, it indicates that the first segment of sub-data information and the second segment of sub-data information have passed the coding verification, and it is determined that the first segment of sub-data information received for the first time is the first segment of sub-data information, and it is determined that the second segment of sub-data information received for the second time is the middle segment of sub-data information.
[0072] When the second verification distance g1s is different from the first verification distance G1, it means that the first segment of sub-data information and the second segment of sub-data information fail the coding verification, and the first segment of sub-data information received for the first time and the second segment of sub-data information received for the second time are deleted.
[0073] When the first segment of sub-data information and the second segment of sub-data information pass the coding verification, the third segment of sub-data information received for the third time is obtained, the binary code in the third segment of sub-data information is extracted, and the extracted binary code is converted into decimal to obtain a third verification distance g2s.
[0074] Whether the third segment of sub-data information has passed the coding verification is determined by judging whether the expression h=y1+g1s+g2s is satisfied.
[0075] When the expression h=y1+g1s+g2s is satisfied, it means that the third segment of sub-data information has passed the coding verification, and the third segment of sub-data information is determined to be the last segment of sub-data information.
[0076] The three pieces of sub-data information, namely, the first sub-data information, the second sub-data information, and the third sub-data information that have passed the coding verification are merged to determine the complete data information to be processed.
[0077] When the expression h=y1+g1s+g2s is not satisfied, it means that the third segment of sub-data information has not passed the coding verification, and the third segment of sub-data information is deleted.
[0078] It should be noted that, in this example, the three-segment encoding verification is performed and then merged. In other embodiments, for example, each segment is decoded and verified separately or multiple segments are decoded and verified simultaneously. The above is only described as a preferred example and cannot be understood as a limitation of the present invention.
[0079] Next, in step S303, all sub-data information that have passed the coding verification are merged to obtain data information to be processed.
[0080] Specifically, the first segment of sub-data information, the middle segment of data information and the last segment of sub-data information that have passed the coding verification are merged to obtain complete data information to be processed.
[0081] It should be noted that the above is only described as an optional example and should not be understood as a limitation to the present invention.
[0082] Compared with the prior art, the present invention splits the data information to be processed into multiple segments of sub-data information, and matches each segment of sub-data information with a real-time calculated code. The code of each segment of data is generated by relying on a self-built mathematical model, so that each segment of sub-data information has a unique security attribute. Therefore, it can effectively increase the security of data transmission, and at the same time effectively increase the difficulty for potential attackers to crack data, and can also significantly improve the security and integrity of data during transmission.
[0083] Example 3
[0084] The following is a system embodiment of the present invention, which can be used to implement the method embodiment of the present invention. For details not disclosed in the system embodiment of the present invention, please refer to the method embodiment of the present invention.
[0085] Figure 5 It is a structural diagram of an example of a data interaction system according to the present invention.
[0086] The following will refer to Figure 5 , the data interaction system 500 is specifically described. The data interaction system 500 includes an information sending end 510 and an information receiving end 530 for data interaction with the information sending end 510, and the data interaction system 500 executes the data interaction method described in Embodiment 1 and Embodiment 2 of the present invention.
[0087] It should be noted that the information sender and the information receiver are various devices that can be used for data interaction, including mobile phones, computers, tablets and many other devices. A device that can be an information sender and an information receiver includes a coding matching module and a coding verification module.
[0088] Specifically, the information sending end 510 is used to determine the data information to be processed, and send the data information to be processed after matching coding processing to the information receiving end. The coding matching module 520 is used to split the data information to be processed to obtain multiple segments of sub-data information, and perform matching coding processing on each segment of sub-data information. The information receiving end 530 is used to receive the data information to be processed after matching coding processing. The coding verification module 540 is used to perform coding verification on the multiple segments of sub-data information received by the information receiving end after matching coding processing, and merge all the segments of sub-data information that have passed the coding verification to determine the complete data information to be processed.
[0089] According to an optional implementation manner, the curve function image is determined so that a line segment of the curve function image passes through an equilateral triangle, and the second related point is determined based on the curve function image and the selected first related point, and the first calculated distance is determined.
[0090] Specifically, the method includes: establishing a rectangular coordinate system and setting an equilateral triangle to establish a dynamic mathematical model; determining a curve function image so that a line segment of the curve function image passes through the inside of the equilateral triangle, determining a second related point according to the curve function image and the selected first related point, and determining a first calculated distance, wherein a quadratic function y=ax is set in the rectangular coordinate system. 2 +b, as the curve function image, make the line segment of the curve function image pass through the inside of the equilateral triangle, arbitrarily select a point on the (0, R) interval in the x-axis as the first correlation point, substitute the first correlation point into the curve function image to obtain the specific value of y, and determine the specific coordinate point (x, y), that is, the second correlation point, through the values of x and y, where a is the first coefficient and b is the second coefficient.
[0091] According to an optional implementation, a second calculated distance between the second related point and the second side of the equilateral triangle is calculated, and a third calculated distance between the second related point and the third side of the equilateral triangle is calculated, and the first side is closer to the Y axis than the second side; specifically, the second side of the equilateral triangle is converted into an expression of a linear function y= , through the distance formula from the second related point to the second side, determine the distance from the second related point (x, y) to the second side y= The second calculated distance g1 is determined by the following expression: the straight-line distance from the second related point to the third side of the equilateral triangle is g2, where h is the height of the equilateral triangle:
[0092] g2=hy-g1
[0093] Wherein, g2 represents the straight-line distance from the second related point to the third side of the equilateral triangle, i.e., the third calculated distance; h is the height of the equilateral triangle; g1 represents the straight-line distance from the second related point (x, y) to the second side y= The second calculated distance; y represents substituting the first related point into the curve function image to obtain the first calculated distance.
[0094] According to an optional implementation manner, the splitting into three sections of sub-data information and matching coding processing for each section of sub-data information according to the first calculated distance, the second calculated distance, and the third calculated distance include: splitting into three sections of sub-data information: a first section of sub-data information, a middle section of sub-data information, and a last section of sub-data information; acquiring the first calculated distance, the second calculated distance, and the third calculated distance in real time, converting the first calculated distance, the second calculated distance, and the third calculated distance into binary numbers as codes to match them respectively in the first section of sub-data information, the middle section of data information, and the last section of sub-data information; and sending the first section of sub-data information, the middle section of data information, and the last section of sub-data information that have been matched and coded to the information receiving end at specified intervals.
[0095] According to an optional implementation manner, data information to be processed is received in sequence from an information sending end after matching coding processing, wherein the data information to be processed includes a first segment of sub-data information, a middle segment of data information and a last segment of sub-data information; each segment of sub-data information of the received data information to be processed is encoded and extracted respectively, and the result of the conversion calculation is encoded and verified; all sub-data information that has passed the coding verification are merged to obtain the data information to be processed.
[0096] According to an optional implementation manner, encoding and extracting each segment of the received data information to be processed, and encoding and verifying the result of the conversion calculation, includes: extracting the binary code in the first segment of sub-data information received for the first time, converting the extracted binary code into decimal to obtain y1, substituting y1 as y into the equation of the curve function image y=ax2+b, determining the obtained result x1, determining the coordinates (x1, y1), that is, the first verification point, and calculating the first verification distance G1 from the first verification point to the second side of the equilateral triangle.
[0097] The second segment of sub-data information received for the second time is further converted into a decimal system by extracting the binary code to obtain a second verification distance g1s, and the second verification distance g1s is compared with the first verification distance G1. When the second verification distance g1s is the same as the first verification distance G1, it indicates that the first segment of sub-data information and the second segment of sub-data information have passed the coding verification, and it is determined that the first segment of sub-data information received for the first time is the first segment of sub-data information, and it is determined that the second segment of sub-data information received for the second time is the middle segment of sub-data information.
[0098] When the second verification distance g1s is different from the first verification distance G1, it means that the first segment of sub-data information and the second segment of sub-data information fail the coding verification, and the first segment of sub-data information received for the first time and the second segment of sub-data information received for the second time are deleted.
[0099] When the first segment of sub-data information and the second segment of sub-data information pass the coding verification, the third segment of sub-data information received for the third time is obtained, the binary code in the third segment of sub-data information is extracted, and the extracted binary code is converted into decimal to obtain a third verification distance g2s.
[0100] By judging whether the expression h=y1+g1s+g2s is satisfied, it is judged whether the third segment of sub-data information has passed the coding verification, wherein when the expression h=y1+g1s+g2s is satisfied, it means that the third segment of sub-data information has passed the coding verification, and the third segment of sub-data information is determined to be the last segment of sub-data information;
[0101] The three pieces of sub-data information, namely, the first sub-data information, the second sub-data information, and the third sub-data information that have passed the coding verification are merged to determine the complete data information to be processed.
[0102] When the expression h=y1+g1s+g2s is not satisfied, it means that the third segment of sub-data information has not passed the coding verification, and the third segment of sub-data information is deleted.
[0103] It should be noted that due to Figure 5 Data interaction method and data interaction system executed by Figure 1 Data interaction methods in or Figure 4 The data interaction methods in are roughly the same, so the description of the same parts is omitted.
[0104] Compared with the prior art, the present invention splits the data information to be processed into multiple segments of sub-data information, and matches each segment of sub-data information with a real-time calculated code. The code of each segment of data is generated by relying on a self-built mathematical model, so that each segment of sub-data information has a unique security attribute. Therefore, it can effectively increase the security of data transmission, and at the same time effectively increase the difficulty for potential attackers to crack data, and can also significantly improve the security and integrity of data during transmission.
[0105] Example 4
[0106] Figure 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
[0107] like Figure 6 As shown, the electronic device is presented in the form of a general computing device. The processor may be one or more and work in coordination. The present invention does not exclude distributed processing, that is, the processor may be dispersed in different physical devices. The electronic device of the present invention is not limited to a single entity, but may also be the sum of multiple physical devices.
[0108] The memory stores a computer executable program, which is usually a machine-readable code. The computer-readable program can be executed by the processor to enable the electronic device to perform the method of the present invention, or at least part of the steps in the method.
[0109] The memory includes a volatile memory, such as a random access memory unit (RAM) and / or a cache memory unit, and may also be a non-volatile memory, such as a read-only memory unit (ROM).
[0110] Optionally, in this embodiment, the electronic device further includes an I / O interface, which is used for the electronic device to exchange data with an external device. The I / O interface can represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures.
[0111] It should be understood that Figure 6The electronic device shown is only an example of the present invention, and the electronic device of the present invention may also include elements or components not shown in the above examples. For example, some electronic devices also include display units such as display screens, and some electronic devices also include human-computer interaction elements such as buttons, keyboards, etc. As long as the electronic device can execute the computer-readable program in the memory to implement the method of the present invention or at least part of the steps of the method, it can be considered as an electronic device covered by the present invention.
[0112] Through the above description of the implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by combining software with necessary hardware. Figure 7 As shown, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of commands to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment of the present invention.
[0113] The software product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0114] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, device, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0115] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0116] The computer-readable medium carries one or more programs. When the one or more programs are executed by a device, the computer-readable medium implements the data interaction method of the present disclosure.
[0117] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly and only used in one or more devices different from the embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.
[0118] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the exemplary embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several commands to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
[0119] It should be noted that the above detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present application belongs.
[0120] In the above detailed description, reference is made to the accompanying drawings, which form a part of this document. In the accompanying drawings, similar symbols typically identify similar components unless the context indicates otherwise. The illustrated embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be used, and other changes may be made, without departing from the spirit or scope of the subject matter presented herein.
[0121] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data interaction method, applied to an information sending end, It is characterized in that include: Determine the data information to be processed; Establishing a dynamic mathematical model for matching and encoding the data information to be processed, specifically comprising: determining a curve function image so that a line segment of the curve function image passes through an equilateral triangle, determining a second related point according to the curve function image and the selected first related point, and determining a first calculated distance; calculating a second calculated distance between the second related point and a second side of the equilateral triangle, and calculating a third calculated distance between the second related point and a third side of the equilateral triangle; Splitting the data information to be processed into three segments of sub-data information, and performing matching coding processing on each segment of sub-data information according to the first calculated distance, the second calculated distance, and the third calculated distance; Send the multi-segment sub-data information after matching coding to the information receiving end; wherein, Establish a rectangular coordinate system and an equilateral triangle to establish a dynamic mathematical model; Determine a curve function image so that a line segment of the curve function image passes through an equilateral triangle, determine a second related point based on the curve function image and the selected first related point, and determine a first calculated distance, wherein: In the rectangular coordinate system, set the quadratic function y=ax 2 +b, as the curve function image, make the line segment of the curve function image pass through the interior of the equilateral triangle, arbitrarily select a point on the (0, R) interval in the X-axis as the first correlation point, substitute the first correlation point into the curve function image to obtain the specific value of y, and determine the specific coordinate point (x, y), i.e., the second correlation point, by the values of x and y, wherein a is the first coefficient and b is the second coefficient; calculating a second calculated distance between the second related point and a second side of the equilateral triangle, and calculating a third calculated distance between the second related point and a third side of the equilateral triangle, the first side being closer to the Y axis than the second side; Specifically, the second side of the equilateral triangle is converted into the expression of a linear function y= , through the distance formula from the second related point to the second side, determine the distance from the second related point (x, y) to the second side y= The second calculated distance g1 is determined by the following expression: the straight-line distance from the second related point to the third side of the equilateral triangle is g2, where h is the height of the equilateral triangle: g2=hy-g1 Wherein, g2 represents the straight-line distance from the second related point to the third side of the equilateral triangle, i.e., the third calculated distance; h is the height of the equilateral triangle; g1 represents the straight-line distance from the second related point (x, y) to the second side y= y represents substituting the first related point into the curve function image to obtain the first calculated distance; Split into three sub-data sections: the first sub-data section, the middle sub-data section and the last sub-data section; Acquire the first calculated distance, the second calculated distance and the third calculated distance in real time, convert the first calculated distance, the second calculated distance and the third calculated distance into binary numbers as codes to be matched in the first segment of sub-data information, the middle segment of data information and the last segment of sub-data information respectively; The first segment of sub-data information, the middle segment of data information and the last segment of sub-data information after matching coding processing are sent to the information receiving end at specified intervals.
2. A data interaction method, applied to an information receiving end, It is characterized in that The information receiving end receives the data information to be processed obtained by the matching coding process in the method according to claim 1, specifically including: receiving in sequence the data information to be processed after matching coding processing from the information sending end, wherein the data information to be processed includes the first segment sub-data information, the middle segment data information and the last segment sub-data information; Encode and extract each segment of the received data information to be processed, and perform encoding verification on the converted and calculated results; All sub-data information that has passed the coding verification is merged to obtain the data information to be processed.
3. The data interaction method according to claim 2, It is characterized in that The step of respectively encoding and extracting each segment of the received data information to be processed, and encoding and verifying the result of the conversion calculation includes: Extract the binary code in the first sub-data information received for the first time, convert the extracted binary code into decimal to obtain y1, and substitute y1 as y into the equation of the curve function image y=ax 2 +b, determine the obtained result x1, determine the coordinates (x1, y1), that is, the first verification point, and calculate the first verification distance G1 from the first verification point to the second side of the equilateral triangle; Further, the second segment of sub-data information received for the second time is converted into a decimal system by extracting the binary code to obtain a second verification distance g1s, and the second verification distance g1s is compared with the first verification distance G1. When the second verification distance g1s is the same as the first verification distance G1, it indicates that the first segment of sub-data information and the second segment of sub-data information have passed the coding verification, and it is determined that the first segment of sub-data information received for the first time is the first segment of sub-data information, and it is determined that the second segment of sub-data information received for the second time is the middle segment of sub-data information; When the second verification distance g1s is different from the first verification distance G1, it means that the first segment of sub-data information and the second segment of sub-data information fail the coding verification, and the first segment of sub-data information received for the first time and the second segment of sub-data information received for the second time are deleted.
4. The data interaction method according to claim 3, It is characterized in that Further including: When the first segment of sub-data information and the second segment of sub-data information pass the coding verification, the third segment of sub-data information received for the third time is obtained, the binary code in the third segment of sub-data information is extracted, and the extracted binary code is converted into decimal to obtain a third verification distance g2s.
5. The data interaction method according to claim 4, It is characterized in that Whether the third segment of sub-data information passes the coding verification is determined by determining whether the expression h=y1+g1s+g2s is satisfied, where: When the expression h=y1+g1s+g2s is satisfied, it means that the third segment of sub-data information has passed the coding verification, and the third segment of sub-data information is determined to be the last segment of sub-data information; The three pieces of sub-data information, namely, the first sub-data information, the second sub-data information, and the third sub-data information that have passed the coding verification are merged to determine the complete data information to be processed.
6. The method according to claim 5, It is characterized in that When the expression h=y1+g1s+g2s is not satisfied, it means that the third segment of sub-data information has not passed the coding verification, and the third segment of sub-data information is deleted.
7. A data interaction system, comprising an information sending end and an information receiving end for data interaction with the information sending end, It is characterized in that The data interaction system executes the data interaction method according to claim 1 or claim 2, including: An information sending end is used to determine the data information to be processed, and send the data information to be processed after matching coding processing to the information receiving end; The coding matching module is used to split the data information to be processed to obtain multiple segments of sub-data information, and perform matching coding processing on each segment of sub-data information; An information receiving end is used to receive the data information to be processed after matching coding processing; The coding verification module is used to perform coding verification on multiple segments of sub-data information received by the information receiving end and after matching coding processing, and merge all the segments of sub-data information that have passed the coding verification to determine the complete data information to be processed.
