Data transmission encryption method, system, medium and equipment
By randomly generating the encryption keys extracted by meshing and encoding in the database, the problem that the encryption process in the prior art is easily cracked is solved, and high security and stability of data transmission is achieved to prevent data tampering and leakage.
Patent Information
- Application Number
- CN202411675210.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-01-07
AI Technical Summary
Existing data encryption methods rely on fixed encryption algorithms and keys, are easily cracked, and ignore the security and stability of data during data transmission, making it difficult to ensure the integrity and confidentiality of data.
By randomly generating storage pages and grid edge lengths in the preset database, meshing is performed, encoded data at the intersection of the grid diagonal lines as encryption keys, re-arranged using hash function and used for data encryption, and The network is interrupted during transmission to prevent unauthorized access.
It improves the unpredictability of encryption keys, enhances data security and transmission stability, prevents data tampering and leakage, and provides more secure and reliable data encryption and transmission services.
Smart Images

Figure CN119276626A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data encryption, and in particular relates to a data transmission encryption method, system, medium and equipment. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Databases are currently widely used in various industries and fields, but the security of data transmission and storage is increasingly valued. Especially when using databases for data storage and transmission, how to ensure the security, integrity and confidentiality of data has become an urgent problem to be solved.
[0004] Most traditional data encryption methods rely on fixed encryption algorithms and keys, which makes the encryption process easy to crack, thereby reducing the security of the data. At present, although some data encryption methods based on random number generation have been proposed, these methods often have problems such as low quality of random number generation, insufficient randomness of key generation, and easy prediction of the encryption process. In addition, existing data encryption often ignores the security and stability of data transmission during the encryption process. During the data transmission process, how to ensure the integrity and security of data and prevent data from being tampered with or leaked is also an important issue that needs to be solved in the current data encryption field. Summary of the invention
[0005] To solve the above problems, the present invention proposes a data transmission encryption method, system, medium and device, which realize grid division and key extraction through random numbers, generate encryption keys, and improve the security and reliability of data transmission.
[0006] According to some embodiments, a first solution of the present invention provides a data transmission encryption method, which adopts the following technical solution: A data transmission encryption method, comprising: Acquire the data to be transmitted, and store the acquired data to be transmitted in a preset database; Randomly generate random storage pages and grid side lengths based on a preset database, and perform grid division of the random storage pages according to the grid side lengths; Extracting the coded data at the intersection of each grid diagonal after the random storage page is grid-divided, and using the extracted coded data as a data encryption key; The data to be transmitted is encrypted according to the obtained data encryption key, and the encrypted data is transmitted to realize data transmission encryption.
[0007] As a further technical limitation, before randomly generating random storage pages and grid edge lengths based on a preset database, a random number generation unit matching the acquired size of data to be transmitted is generated in the preset database, and two random numbers are randomly generated based on the generated matching random number generation unit.
[0008] Furthermore, one of the obtained random numbers is used as a random storage page of a preset database, and another random number is used as a grid side length. Grid division is performed from one corner of the random storage page to the other three corners according to the generated grid side length. When the division is close to the other three corners, the grids that exceed the boundary of the random storage page for grid division are deleted, and the remaining grids are retained to complete the grid division.
[0009] As a further technical limitation, the method of extracting the encoded data at the intersection of each grid diagonal after the random storage page is grid-divided, and using the extracted encoded data as the data encryption key, includes: traversing the intersections of the diagonals of all divided grids, extracting the encoded information at the intersections, extracting the encoded information at the intersections of the diagonals of each grid, and rearranging the extracted codes using a hash function, and the rearranged encoded data is the data encryption key.
[0010] As a further technical limitation, the data to be transmitted is encrypted according to the obtained data encryption key, and the encrypted data is transmitted, so as to realize data transmission encryption based on a preset database, including: using the obtained data encryption key to encrypt the data to be transmitted, and using a secure communication protocol to transmit the encrypted data information through a unique interface connected to the preset database, so as to realize data transmission encryption based on the preset database.
[0011] As a further technical limitation, before performing grid division of random storage pages, the preset database is disconnected from the network to prevent the information from being accessed or tampered with without authorization.
[0012] According to some embodiments, a second solution of the present invention provides a data transmission encryption system, which adopts the following technical solution: A data transmission encryption system, comprising: A data acquisition module, which is configured to acquire data to be transmitted and store the acquired data to be transmitted in a preset database; A grid division module, which is configured to randomly generate random storage pages and grid side lengths based on a preset database, and perform grid division of random storage pages according to the grid side lengths; A key extraction module is configured to extract the coded data at the intersection of each grid diagonal after the random storage page is gridded, and use the extracted coded data as a data encryption key; The encryption transmission module is configured to encrypt the data to be transmitted according to the obtained data encryption key, and perform data transmission on the encrypted data to realize data transmission encryption.
[0013] As a further technical limitation, in the grid division module, before randomly generating random storage pages and grid side lengths based on a preset database, a random number generation unit matching the acquired size of data to be transmitted is generated in the preset database, and two random numbers are randomly generated based on the generated matching random number generation unit.
[0014] Furthermore, one of the obtained random numbers is used as a random storage page of a preset database, and another random number is used as a grid side length. Grid division is performed from one corner of the random storage page to the other three corners according to the generated grid side length. When the division is close to the other three corners, the grids that exceed the boundary of the random storage page for grid division are deleted, and the remaining grids are retained to complete the grid division.
[0015] As a further technical limitation, in the key extraction module, the encoding data at the intersection of each grid diagonal after the random storage page is grid-divided is extracted, and the extracted encoding data is used as the data encryption key, including: traversing the intersections of the diagonals of all divided grids, extracting the encoding information at the intersections, extracting the encoding information at the intersection of the diagonals of each grid, and rearranging the extracted encodings using a hash function, and the rearranged encoding data is the data encryption key.
[0016] As a further technical limitation, in the encryption transmission module, the data to be transmitted is encrypted according to the obtained data encryption key, and the encrypted data is transmitted, so as to realize data transmission encryption based on a preset database, including: using the obtained data encryption key to encrypt the data to be transmitted, and using a secure communication protocol to transmit the encrypted data information through a unique interface connected to the preset database, so as to realize data transmission encryption based on the preset database.
[0017] As a further technical limitation, before performing grid division of random storage pages, the preset database is disconnected from the network to prevent the information from being accessed or tampered with without authorization.
[0018] According to some embodiments, a third solution of the present invention provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium stores a program, which, when executed by a processor, implements the steps in the data transmission encryption method as described in the first solution of the present invention.
[0019] According to some embodiments, a fourth solution of the present invention provides an electronic device, which adopts the following technical solution: An electronic device comprises a memory, a processor and a program stored in the memory and running on the processor, wherein when the processor executes the program, the steps in the data transmission encryption method as described in the first solution of the present invention are implemented.
[0020] According to some embodiments, a fifth solution of the present invention provides a computer program product, which adopts the following technical solution: A computer program product includes software codes, wherein the program in the software codes executes the steps in the data transmission encryption method as described in the first solution of the present invention.
[0021] Compared with the prior art, the present invention has the following beneficial effects: The present invention generates random numbers for selecting storage pages and grid side lengths, performs grid division and key extraction, thereby greatly enhancing the unpredictability of the encryption process, making the generation of encryption keys more difficult to crack, thereby improving data security. When used subsequently, the scheme generates a new random number through one of the random number generation units used last time. In this way, each encryption process is based on the previous state, forming a dynamic and adaptive encryption mechanism, which can effectively resist potential cracking attempts and make data encryption more effective.
[0022] The present invention performs random grid division on a preset database storage medium through a grid division module, and generates an encryption key using the coded data at the intersection of the grid diagonals, thereby realizing random encryption of data, increasing the randomness and unpredictability of the encryption process, and preventing the data from being tampered with or leaked during transmission. The scheme provides users with more secure and reliable data encryption and transmission services through a highly random encryption process, a dynamic and adaptive encryption mechanism, an innovative grid division and code extraction method, and security measures. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings in the specification that constitute a part of this embodiment are used to provide a further understanding of this embodiment. The schematic embodiments of this embodiment and their descriptions are used to explain this embodiment and do not constitute improper limitations on this embodiment.
[0024] Figure 1 This is a flow chart of the data transmission encryption method in Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of the data transmission encryption method in the first embodiment of the present invention; Figure 3 This is a structural block diagram of the data transmission encryption system in the second embodiment of the present invention. DETAILED DESCRIPTION
[0025] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0026] It should be noted that the following 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 meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0027] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0028] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0029] Embodiment 1 Embodiment 1 of the present invention introduces a data transmission encryption method.
[0030] This embodiment provides a data transmission encryption method, which aims to solve the security and stability problems of data transmission and improve the security and reliability of data encryption; combining the characteristics of a preset database and advanced random number generation technology, it realizes random encryption and secure transmission of data, providing a more secure and reliable protection for data storage and transmission.
[0031] like Figure 1 The data transmission encryption method shown includes the following steps: Acquire the data to be transmitted, and store the acquired data to be transmitted in a preset database; Randomly generate random storage pages and grid side lengths based on a preset database, and perform grid division of the random storage pages according to the grid side lengths; Extracting the coded data at the intersection of each grid diagonal after the random storage page is grid-divided, and using the extracted coded data as a data encryption key; The data to be transmitted is encrypted according to the obtained data encryption key, and the encrypted data is transmitted to realize data transmission encryption.
[0032] In order to achieve secure data transmission, this embodiment adopts Figure 2The architecture diagram shown includes a preset database storage medium for storing the data encoding to be transmitted, a grid division module for performing grid division on random pages of the preset database storage medium, a code extraction module for extracting data encryption keys, and a random number generation module for generating two random numbers.
[0033] As one or more implementation methods, the size of the data to be transmitted in the preset database storage medium is matched with the numbering interval of the random number generation unit, two random numbers are randomly generated using the matched random number generation unit, and the corresponding two random number generation units are searched through the numbering interval corresponding to the two random numbers; one of the random number generation units is randomly used to generate a random number, and the random number is a random storage page in the preset database storage medium, and the random number generated by the other random number generation unit is the side length of the grid required to be divided by the grid division module, and then the grid division is performed on the random storage page through the grid division module.
[0034] It should be noted that when used for the first time, the storage size of the data to be transmitted is used as a reference to search for the corresponding numbering interval, and the corresponding random number generation unit is searched according to the numbering interval, and two random numbers are generated by the random number generation unit at the same time, and the two corresponding random number generation units are searched according to the numbering interval to which the two random numbers belong, wherein the random number generated by one of the random number generation units is used to randomly search for a random storage page in the preset database storage medium, and the random number generated by the other random number generation unit is used to create the side length of the grid divided by the grid division module; In subsequent use, a random number is generated by one of the two random number generation units used last time, and the random number generation unit to which the numbering interval corresponding to the random number belongs is used to find a random storage page in the preset database storage medium, and the random number generated by the other random number generation unit is used to create the side length of the grid divided by the grid division module.
[0035] In this embodiment, in order to ensure the disorder of the numerical values generated by the random number generation unit and prevent the key from being cracked, each random number generation unit needs to pass a series of statistical tests of the random number test suite provided by NIST (National Institute of Standards and Technology) to detect various potential defects in the random number sequence, and can check whether there is an obvious pattern or periodicity in the random number sequence through entropy rate test, sequence correlation test, etc., and can determine whether the entropy value of the generator is high enough by analyzing the block entropy rate of the random data stream. If the entropy value of the random number sequence generated by the random number generation unit is high enough, it means that the generated random number sequence is more disordered, and there is no obvious pattern and periodicity in the random number sequence, which means that the random number generation unit generates a high-quality sequence, the generated sequence is truly random, and the possibility of being cracked is reduced.
[0036] As one or more implementation modes, the specific process of meshing is as follows: (1) Use dynamic meshing software, including but not limited to GAMBIT, TGrid, and GeoMesh. Before using dynamic meshing software for meshing, the preset database storage medium must be disconnected from the network to ensure that these code pages are not easily accessed or tampered with by unauthorized persons; (2) importing the random storage code page in the preset database storage medium selected by the random number generation unit into the grid division module, and creating the grid edge length data generated by the random number generation unit in the grid division module, starting from a corner of the grid division module, and grid division of the searched storage code page with the created edge length; (3) When performing grid division, the grid is divided from one corner of the storage code page to the other three corners. When the grid is close to the other three corners, the grid division module deletes the grids that exceed the boundary of the storage code page and retains the remaining grids.
[0037] It should be noted that when performing grid division, since the side length of the grid is randomly generated, when the grid is gradually divided from one corner of the coding page to the other three corners, a situation will occur. When approaching the other three corners of the coding page, the remaining space is not enough to divide a complete grid. In this case, all grids that cannot be divided completely are directly deleted, and all other grids are retained. This step can also further increase the disorder of code generation. The grid division does not adopt the division method of evenly covering the coding page to prevent the key from being cracked, thereby further improving the encryption effect.
[0038] As one or more implementation modes, after the grid division is completed, a diagonal line is generated on each grid by a programming language, and the coded data of the intersection of the diagonal lines is extracted, the extracted code is used as a data encryption key, the data to be transmitted is encrypted, and the encrypted data is used for data transmission, thereby realizing data transmission encryption; specifically: (1) Calculate the path of the diagonal line of each grid using the Python programming language and determine the encoded data of the position of the diagonal intersection of each grid; (2) Traverse the intersections of the diagonals of all the divided grids, extract the coded information at the intersections, extract the coded information at the intersections of the diagonals of each grid, and use the hash function to rearrange the extracted codes. The rearranged codes are the encryption keys. (3) Encrypt the data to be transmitted using an encryption key and transmit the data through a unique interface. During transmission, use a secure communication protocol (such as TLS / SSL) to transmit the encrypted file to the target location to ensure the confidentiality and integrity of the data. At the target location of the data transmission, use the same encryption key and algorithm to decrypt the data. After decryption, verify the integrity of the data to ensure that the data has not been tampered with during transmission; (4) During data transmission, the system records key data such as the start time, end time, transmission speed, and recipient information for subsequent auditing and troubleshooting, so as to timely identify performance bottlenecks and optimize them.
[0039] It should be noted that in order to meet the real-time data transmission requirements, this embodiment uses a symmetric encryption algorithm to encrypt data, and formulates specific encryption strategies for different situations, such as data type, sensitivity level and transmission environment, including encryption algorithm selection, key management scheme, encryption granularity (field level, record level or database level), etc.
[0040] It should be noted that before extracting the key, this embodiment uses the previously selected symmetric encryption algorithm to encrypt the data to be transmitted. After the encryption is completed, the data will be transmitted to the target location through the unique interface and secure communication protocol set, and end-to-end encryption technology is used to ensure the security of the data during transmission. The data is automatically encrypted by the sender and encapsulated in data packets through TCP / IP, and then passed through the Internet as unreadable and unrecognizable data. When this information reaches the destination, it will be automatically reorganized and decrypted to become readable data, and in the whole process, access control technology is used to review and restrict user qualifications and permissions to prevent illegal users from accessing data or legal users from accessing data beyond their authority.
[0041] This embodiment generates random numbers through a random number generation module, which are used to select storage pages and grid side lengths, and then perform grid division and key extraction; the unpredictability of the encryption process is greatly enhanced, making the generation of encryption keys more difficult to crack, and improving data security. When used subsequently, a new random number is generated through one of the random number generation units used last time, so that each encryption process is based on the previous state, forming a dynamic and adaptive encryption mechanism; it can effectively resist potential cracking attempts, making data encryption more effective.
[0042] Embodiment 2 Embodiment 2 of the present invention introduces a data transmission encryption system.
[0043] like Figure 3 A data transmission encryption system shown includes: A data acquisition module, which is configured to acquire data to be transmitted and store the acquired data to be transmitted in a preset database; A grid division module, which is configured to randomly generate random storage pages and grid side lengths based on a preset database, and perform grid division of random storage pages according to the grid side lengths; A key extraction module is configured to extract the coded data at the intersection of each grid diagonal after the random storage page is gridded, and use the extracted coded data as a data encryption key; The encryption transmission module is configured to encrypt the data to be transmitted according to the obtained data encryption key, and perform data transmission on the encrypted data to realize data transmission encryption.
[0044] As one or more implementation modes, in the grid division module, before randomly generating random storage pages and grid side lengths based on a preset database, a random number generation unit matching the acquired data size to be transmitted is generated in the preset database, two random numbers are randomly generated based on the generated matching random number generation unit, and the corresponding two random number generation units are searched through the interval numbers corresponding to the two generated random numbers.
[0045] As one or more implementation methods, one of the obtained random numbers is used as a random storage page of a preset database, and another random number is used as a grid side length. Grid division is performed from one corner of the random storage page to the other three corners according to the obtained grid side length. When the division is close to the other three corners, the grids that exceed the boundary of the random storage page for grid division are deleted, and the remaining grids are retained to complete the grid division.
[0046] As one or more implementation modes, in the key extraction module, the intersections of the diagonals of all divided grids are traversed to extract the coding information at the intersections, the coding information at the intersections of the diagonals of each grid is extracted, and the extracted codes are rearranged using a hash function, and the rearranged coding data is the data encryption key.
[0047] As one or more implementation modes, in the encryption transmission module, the obtained data encryption key is used to encrypt the data to be transmitted, and a secure communication protocol is used to transmit the encrypted data information through a unique interface connected to a preset database, thereby realizing data transmission encryption based on the preset database.
[0048] As one or more implementation modes, before performing grid division of random storage pages, the preset database needs to be disconnected from the network to prevent the information from being accessed or tampered with without authorization.
[0049] The detailed steps are the same as those of the data transmission encryption method provided in Example 1 and will not be repeated here.
[0050] Embodiment 3 Embodiment 3 of the present invention provides a computer-readable storage medium.
[0051] A computer-readable storage medium stores a program, which, when executed by a processor, implements the steps in the data transmission encryption method as described in Embodiment 1 of the present invention.
[0052] The detailed steps are the same as those of the data transmission encryption method provided in Example 1 and will not be repeated here.
[0053] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The solutions in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and interpreted scripting language JavaScript, etc.
[0054] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0055] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0056] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0057] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0058] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0059] Embodiment 4 A fourth embodiment of the present invention provides an electronic device.
[0060] An electronic device comprises a memory, a processor and a program stored in the memory and running on the processor, wherein when the processor executes the program, the steps in the data transmission encryption method as described in the first embodiment of the present invention are implemented.
[0061] The detailed steps are the same as those of the data transmission encryption method provided in Example 1 and will not be repeated here.
[0062] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The solutions in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and interpreted scripting language JavaScript, etc.
[0063] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0064] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0066] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0067] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0068] Embodiment 5 Embodiment 5 of the present invention provides a computer program product.
[0069] A computer program product includes software codes, wherein the program in the software codes executes the steps in the data transmission encryption method as described in the first embodiment of the present invention.
[0070] The detailed steps are the same as those of the data transmission encryption method provided in Example 1 and will not be repeated here.
[0071] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The solutions in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and interpreted scripting language JavaScript, etc.
[0072] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0073] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0074] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0075] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0076] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0077] The above description is only a preferred embodiment of the present embodiment and is not intended to limit the present embodiment. For those skilled in the art, the present embodiment may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present embodiment shall be included in the protection scope of the present embodiment.
Claims
1. A data transmission encryption method, characterized in that: include: Acquire the data to be transmitted, and store the acquired data to be transmitted in a preset database; Randomly generate random storage pages and grid side lengths based on a preset database, and perform grid division of the random storage pages according to the grid side lengths; Extracting the coded data at the intersection of each grid diagonal after the random storage page is grid-divided, and using the extracted coded data as a data encryption key; The data to be transmitted is encrypted according to the obtained data encryption key, and the encrypted data is transmitted to realize data transmission encryption.
2. A data transmission encryption method as claimed in claim 1, characterized in that: Before randomly generating random storage pages and grid side lengths based on a preset database, a random number generation unit matching the acquired size of data to be transmitted is generated in the preset database, and two random numbers are randomly generated based on the generated matching random number generation unit.
3. A data transmission encryption method as claimed in claim 2, characterized in that: A generated random number is used as a random storage page of a preset database, and another random number is used as a grid side length. Grid division is performed from one corner of the random storage page to the other three corners according to the obtained grid side length. When the division is close to the other three corners, the grids that exceed the boundary of the random storage page for grid division are deleted, and the remaining grids are retained to complete the grid division.
4. A data transmission encryption method as claimed in claim 1, characterized in that: The method extracts the coded data at the intersection of each grid diagonal after the random storage page is grid-divided, and uses the extracted coded data as a data encryption key, including: traversing the intersections of the diagonals of all divided grids, extracting the coded information at the intersections, extracting the coded information at the intersections of the diagonals of each grid, and rearranging the extracted codes using a hash function, wherein the rearranged coded data is the data encryption key.
5. A data transmission encryption method as claimed in claim 1, characterized in that: The method encrypts the data to be transmitted according to the obtained data encryption key, and transmits the encrypted data to realize data transmission encryption based on a preset database, including: using the obtained data encryption key to encrypt the data to be transmitted, using a secure communication protocol to transmit the encrypted data information through a unique interface connected to the preset database, to realize data transmission encryption based on the preset database.
6. A data transmission encryption method as claimed in claim 1, characterized in that: Before performing grid division of random storage pages, the preset database is disconnected from the network.
7. A data transmission encryption system, characterized in that: include: A data acquisition module, which is configured to acquire data to be transmitted and store the acquired data to be transmitted in a preset database; A grid division module, which is configured to randomly generate random storage pages and grid side lengths based on a preset database, and perform grid division of random storage pages according to the grid side lengths; A key extraction module is configured to extract the coded data at the intersection of each grid diagonal after the random storage page is gridded, and use the extracted coded data as a data encryption key; The encryption transmission module is configured to encrypt the data to be transmitted according to the obtained data encryption key, and perform data transmission on the encrypted data to realize data transmission encryption.
8. A data transmission encryption system as claimed in claim 7, characterized in that: In the grid division module, before randomly generating random storage pages and grid side lengths based on a preset database, a random number generation unit matching the acquired data size to be transmitted is generated in the preset database, and two random numbers are randomly generated based on the generated matching random number generation unit.
9. A data transmission encryption system as claimed in claim 8, characterized in that: A generated random number is used as a random storage page of a preset database, and another random number is used as a grid side length. Grid division is performed from one corner of the random storage page to the other three corners according to the obtained grid side length. When the division is close to the other three corners, the grids that exceed the boundary of the random storage page for grid division are deleted, and the remaining grids are retained to complete the grid division.
10. A data transmission encryption system as claimed in claim 7, characterized in that: In the key extraction module, the encoding data at the intersection of each grid diagonal after the random storage page is grid-divided is extracted, and the extracted encoding data is used as the data encryption key, including: traversing the intersections of the diagonals of all divided grids, extracting the encoding information at the intersections, extracting the encoding information at the intersection of the diagonals of each grid, and rearranging the extracted encodings using a hash function, and the rearranged encoding data is the data encryption key.
11. A data transmission encryption system as claimed in claim 7, characterized in that: In the encryption transmission module, the data to be transmitted is encrypted according to the obtained data encryption key, and the encrypted data is transmitted, so as to realize data transmission encryption based on the preset database, including: using the obtained data encryption key to encrypt the data to be transmitted, and using a secure communication protocol to transmit the encrypted data information through a unique interface connected to the preset database, so as to realize data transmission encryption based on the preset database.
12. A data transmission encryption system as claimed in claim 7, characterized in that: Before performing grid division of random storage pages, the preset database is disconnected from the network.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the data transmission encryption method as described in any one of claims 1 to 6 are implemented.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the steps of the data transmission encryption method according to any one of claims 1 to 6 are implemented.
15. A computer program product comprising software code, characterized in that The program in the software code executes the steps of the data transmission encryption method according to any one of claims 1 to 6.