Data encryption and decryption method, device and equipment
By dividing the data to be encrypted into multiple data blocks and selecting random encryption algorithms, the problem that encryption algorithms and keys in the prior art are easily cracked, and high security of data encryption is achieved.
Patent Information
- Application Number
- CN202411948103.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, fixed encryption algorithms and keys are easily brute-forced, resulting in low security of data encryption.
By dividing the data to be encrypted into multiple data blocks, and each small data block is randomly selected to encrypt the encryption algorithm, multiple encrypted small data blocks are generated, and then these encrypted small data blocks are classified and reorganized, and secondary encryption is performed to finally generate the final encrypted data.
Ensure that the encryption algorithm and key of the small data blocks in each data block are different, greatly increasing the security of the data to a great extent, making it difficult to decrypt through brute force cracking.
Smart Images

Figure CN119728273A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and in particular to a data encryption and decryption method, device and equipment. Background Art
[0002] With the development of Internet technology, more and more information data is transmitted through the network, and the problem of how to ensure the security of data storage and transmission has become increasingly prominent. For some private data, people usually encrypt the stored and transmitted data when storing and transmitting it to ensure the security of data storage and transmission.
[0003] With the development of encryption algorithms, block encryption algorithms encrypt data in groups, increasing the difficulty of data decryption. However, when using a fixed encryption algorithm and key for encryption, after the encryption algorithm and key are determined, the plaintext and the password form a corresponding relationship, which can be cracked by brute force methods such as exhaustive method, and the security needs to be improved. Summary of the invention
[0004] In view of the deficiencies in the prior art, the object of the present invention is to provide a data encryption and decryption method, device and equipment to improve the security of data encryption.
[0005] In order to achieve the above object, the present invention adopts the following technical solution.
[0006] In a first aspect, a data encryption method is provided, comprising the following steps:
[0007] S1: Divide the data to be encrypted into multiple data blocks;
[0008] S2: Split each data block into multiple small data blocks;
[0009] S3: For each small data block in each data block, randomly select an encryption algorithm from the encryption algorithm set to encrypt, obtain the corresponding encrypted small data block, and generate a first encryption algorithm chain table and a first key chain table corresponding to each data block;
[0010] S4: classify all the encrypted small data blocks according to the encryption algorithm, and use the linked list method to generate combined data for the encrypted small data blocks under the same encryption algorithm;
[0011] S5: Encrypt each combination data using an encryption algorithm to obtain encrypted combination data, and generate a second encryption algorithm chain table and a second key chain table;
[0012] S6: Combine the encrypted combined data to obtain the final encrypted data.
[0013] Furthermore, step S3 specifically includes:
[0014] For each small data block in each data block, randomly select an encryption algorithm from the encryption algorithm set, and organize the encryption algorithms in a linked list manner to generate a first encryption algorithm linked list corresponding to each data block;
[0015] For each encryption algorithm in the first encryption algorithm chain table corresponding to each data block, a matching encryption key is randomly generated, and the encryption keys are organized in a chain table manner to generate a first key chain table corresponding to each data block;
[0016] Based on the first encryption algorithm chain table and the first key chain table corresponding to each data block, each small data block in each data block is encrypted to obtain a corresponding encrypted small data block.
[0017] Furthermore, in step S4, when the small encrypted data blocks under the same encryption algorithm are used to generate combined data in a linked list manner, the small encrypted data blocks under the same encryption algorithm are combined in a random order.
[0018] Further, step S5 includes:
[0019] For each combination of data, a key of the encryption algorithm corresponding to the combination of data is generated, and the combination of data is encrypted using the encryption algorithm and the key to obtain encrypted combination data; and the encryption algorithms and keys corresponding to all the combination of data are organized into a second encryption algorithm chain table and a second key chain table using a chain table.
[0020] Further, step S5 includes:
[0021] For each combination of data, randomly select an encryption algorithm from the encryption algorithm set, and organize the encryption algorithms into a second encryption algorithm linked list using a linked list method;
[0022] For each encryption algorithm in the second encryption algorithm chain table, a matching encryption key is randomly generated, and the encryption keys are organized into a second key chain table using a chain table method;
[0023] Each corresponding combination data is encrypted based on the second encryption algorithm chain table and the second key chain table to obtain corresponding encrypted combination data.
[0024] Furthermore, in step S6, a random combination method is used when combining the encrypted combined data.
[0025] In a second aspect, a data encryption device is provided, comprising:
[0026] A first data segmentation module, used for segmenting the data to be encrypted into a plurality of data blocks;
[0027] A second data segmentation module is used to segment each data block into multiple small data blocks;
[0028] A first encryption module is used to randomly select an encryption algorithm from the encryption algorithm set to encrypt each small data block in each data block, obtain a corresponding encrypted small data block, and generate a first encryption algorithm chain table and a first key chain table corresponding to each data block;
[0029] The encrypted data reorganization module is used to classify all the encrypted small data blocks according to the encryption algorithm, and generate combined data using a linked list for the encrypted small data blocks under the same encryption algorithm;
[0030] The second encryption module is used to encrypt each combination data using an encryption algorithm to obtain encrypted combination data, and generate a second encryption algorithm chain table and a second key chain table;
[0031] The encrypted data combination module is used to combine the encrypted combination data to obtain the final encrypted data.
[0032] In a third aspect, a decryption method is provided for decrypting encrypted data generated by the data encryption method as described above, comprising the following steps:
[0033] Decrypting the encrypted data using the second key chain table to obtain a plurality of combined data;
[0034] Decrypting each encrypted small data block in each combined data using the first key chain table to obtain multiple small data blocks;
[0035] The multiple small data blocks are reorganized to synthesize multiple data blocks; then the multiple data blocks are reorganized to synthesize the final decrypted data.
[0036] In a fourth aspect, a decryption device is provided for decrypting encrypted data generated by the aforementioned data encryption method or data encryption device, comprising:
[0037] A first decryption module, used to decrypt the encrypted data using the second key chain table to obtain a plurality of combined data;
[0038] A second decryption module is used to decrypt each encrypted small data block in each combined data using the first key chain table to obtain multiple small data blocks;
[0039] The decrypted data combination module is used to reorganize the positions of multiple small data blocks to synthesize multiple data blocks; then reorganize the positions of multiple data blocks to synthesize final decrypted data.
[0040] In a fifth aspect, an electronic device is provided, including:
[0041] Memory on which computer programs or instructions are stored;
[0042] The processor is used to load and execute the computer program or instruction to implement the data encryption method or decryption method as described above.
[0043] In a sixth aspect, a computer-readable storage medium is provided, on which a computer program or instruction is stored. When the computer program or instruction is executed by a processor, the data encryption method or decryption method as described above is implemented.
[0044] Compared with the prior art, the present invention has the following advantages: first, the data to be encrypted is divided into multiple data blocks, and then each data block is divided twice to obtain multiple small data blocks, and then each small data is randomly selected for encryption algorithm to be encrypted, thereby ensuring that the encryption algorithms and keys of the small data blocks in each data block obtained after the initial cutting are different, thereby improving the security of the data; moreover, the encrypted small data blocks obtained after encryption are classified and reorganized according to the encryption algorithm, and then the combined data obtained after the reorganization is encrypted twice, and the encryption algorithms and keys of each combined data are also different, thereby greatly increasing the security of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 is a flow chart of a data encryption method provided by an embodiment of the present invention;
[0047] Figure 2 is a schematic diagram of an encryption process provided by an embodiment of the present invention;
[0048] Figure 3 is a schematic diagram of a secondary encryption process provided by an embodiment of the present invention;
[0049] Figure 4 It is a structural schematic diagram of a data encryption device provided by an embodiment of the present invention;
[0050] Figure 5 is a flow chart of a decryption method provided by an embodiment of the present invention;
[0051] Figure 6 It is a schematic diagram of the structure of a decryption device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0052] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0053] The existing block encryption algorithm uses a fixed encryption algorithm and key for encryption, which can be cracked by brute force methods such as exhaustive method, and the security is not high. Based on this, the present invention provides a data encryption and decryption method, device and equipment to improve the security of data encryption. The technical difficulties of the present invention are described in detail below in conjunction with specific embodiments.
[0054] Example 1
[0055] This embodiment provides a data encryption method, comprising the following steps:
[0056] S1: Divide the data to be encrypted into n data blocks, and mark each data block with a number Nx, where x=1,2,…,n.
[0057] S2: Divide each data block Nx into m small data blocks, and mark each small data block with a number NxMy, y=1,2,…,m, where Nx corresponds to the data block number.
[0058] S3: For each small data block in each data block, randomly select an encryption algorithm from the encryption algorithm set to encrypt, obtain the corresponding encrypted small data block, and generate the first encryption algorithm chain table and the first key chain table corresponding to each data block. Figure 2 As shown, a specific example of the encryption process in step S3 is given.
[0059] In this embodiment, step S3 specifically includes:
[0060] For each small data block in each data block, an encryption algorithm Pz is randomly selected from the encryption algorithm set, and the encryption algorithms are organized in a linked list manner to generate a first encryption algorithm linked list corresponding to each data block. Each encryption algorithm in the first encryption algorithm linked list corresponding to each data block is marked with a number NxPz, z=1,2,…,p, p is the number of encryption algorithms in the encryption algorithm set, and Nx corresponds to the data block number; it should be noted that the encryption algorithm set is extensible, and new encryption algorithms can be added to the encryption algorithm set later to further improve the security of the encryption algorithm;
[0061] For each encryption algorithm in the first encryption algorithm chain table corresponding to each data block, a matching encryption key is randomly generated, and the encryption keys are organized in a chain table manner to generate a first key chain table corresponding to each data block; each encryption key in the first key chain table corresponding to each data block is marked with a number NxPzKy, where Nx corresponds to the data block number, and y in Ky corresponds to y in the small data block number NxMy;
[0062] Based on the first encryption algorithm chain table and the first key chain table corresponding to each data block, each small data block in each data block is encrypted to obtain a corresponding encrypted small data block NxMy'.
[0063] S4: Classify all the encrypted small data blocks NxMy' according to the encryption algorithm, and use the linked list method to generate combined data for the encrypted small data blocks under the same encryption algorithm. Each combined data is marked with a number Ql, l=1,2,…,q, where q is the number of combined data.
[0064] In some preferred embodiments, when small encrypted data blocks under the same encryption algorithm are used to generate combined data in a linked list manner, the small encrypted data blocks under the same encryption algorithm are combined in a random order to increase the complexity of decoding, thereby improving the security of the encryption algorithm.
[0065] S5: Encrypt each combination data Q1 using the encryption algorithm to obtain the encrypted combination data Q1', and generate the second encryption algorithm chain table and the second key chain table. Figure 3 As shown, a specific example of the encryption process in step S5 is given.
[0066] In this embodiment, step S5 specifically includes:
[0067] For each combined data Ql, a key of the encryption algorithm Pz corresponding to the combined data is generated, and the combined data is encrypted using the encryption algorithm and key (i.e., the encryption algorithm used for each encrypted small data block in the combined data is used to encrypt the combined data twice), and the encrypted combined data is obtained; and the encryption algorithms and keys corresponding to all combined data are organized into a second encryption algorithm chain table and a second key chain table in a chain table manner. Each encryption algorithm in the second encryption algorithm chain table is marked with a number Pz; each encryption key in the second key chain table is marked with a number PzKl, where the l in Kl corresponds to the l in the combined data number Ql.
[0068] S6: Combine the encrypted combined data Ql' to obtain the final encrypted data.
[0069] In some preferred embodiments, a random combination method is used when combining the encrypted combination data to obtain the final encrypted data, so as to improve the security of the encryption algorithm.
[0070] The above embodiment provides a data encryption method, which first divides the data to be encrypted into multiple data blocks, and then divides each data block for a second time to obtain multiple small data blocks, and then randomly selects an encryption algorithm for each small data to encrypt it, thereby ensuring that the encryption algorithms and keys of the small data blocks in each data block obtained after the initial cutting are not the same, thereby improving the security of the data; moreover, the encrypted small data blocks obtained after encryption are classified and reorganized according to the encryption algorithm, and then the combined data obtained after the reorganization is encrypted for a second time, and the encryption algorithms and keys of each combined data are also different, thereby greatly increasing the security of the data.
[0071] Example 2
[0072] This embodiment provides a data encryption method, which differs from Embodiment 1 only in the encryption algorithm selection method of step S5. In this embodiment, step S5 specifically includes:
[0073] For each combination data Q1, an encryption algorithm Pz is randomly selected from the encryption algorithm set, and the encryption algorithms are organized into a second encryption algorithm chain list using a chain list method; each encryption algorithm in the second encryption algorithm chain list is marked with a number Pz;
[0074] For each encryption algorithm in the second encryption algorithm chain table, a matching encryption key is randomly generated, and the encryption keys are organized into a second key chain table using a chain table method; each encryption key in the second key chain table is marked with a number PzK1, wherein the 1 in K1 corresponds to the 1 in the combination data number Q1;
[0075] Based on the second encryption algorithm chain table and the second key chain table, each corresponding combination data is encrypted to obtain the corresponding encrypted combination data Ql'.
[0076] The difference between this embodiment and embodiment 1 is that in embodiment 1, when each combined data is encrypted twice, the encryption algorithm used is the same as the encryption algorithm used to encrypt the small data block in the combined data, while in this embodiment, when each combined data is encrypted twice, the encryption algorithm used is randomly selected and the key is also randomly generated, which further increases the difficulty of decoding and improves the security of the encryption algorithm.
[0077] Example 3
[0078] This embodiment provides a data encryption device, such as Figure 4 As shown, including:
[0079] A first data segmentation module, used for segmenting the data to be encrypted into a plurality of data blocks;
[0080] A second data segmentation module is used to segment each data block into multiple small data blocks;
[0081] A first encryption module is used to randomly select an encryption algorithm from the encryption algorithm set to encrypt each small data block in each data block, obtain a corresponding encrypted small data block, and generate a first encryption algorithm chain table and a first key chain table corresponding to each data block;
[0082] The encrypted data reorganization module is used to classify all the encrypted small data blocks according to the encryption algorithm, and generate combined data using a linked list for the encrypted small data blocks under the same encryption algorithm;
[0083] The second encryption module is used to encrypt each combination data using an encryption algorithm to obtain encrypted combination data, and generate a second encryption algorithm chain table and a second key chain table;
[0084] The encrypted data combination module is used to combine the encrypted combination data to obtain the final encrypted data.
[0085] Example 4
[0086] This embodiment provides a decryption method for decrypting encrypted data generated by the data encryption method as described above. Figure 5 As shown, the following steps are included:
[0087] Step 1: Decrypt the encrypted data using the second key chain table to obtain multiple combined data.
[0088] The encrypted data is composed of Q encrypted combination data Ql'. Since the l in the encrypted combination data number Ql' corresponds to the l in the key number PzKl in the second key chain table, the encryption algorithm Pz and key Kl of the encrypted combination data Ql' can be found through the number correspondence, and then it can be decrypted to obtain multiple combination data Ql.
[0089] Step 2: Decrypt each encrypted small data block in each combined data using the first key chain table to obtain multiple small data blocks.
[0090] Each encrypted small data block in each combined data has a number NxMy', and the x and y in the number correspond to the x and y in the encryption key number NxPzKy in the first key chain table. Therefore, the encryption algorithm Pz and key Ky of each encrypted small data block NxMy' can be found by the number, and then it can be decrypted to obtain multiple small data blocks NxMy.
[0091] Step 3: Rearrange the positions of multiple small data blocks according to the number NxMy to synthesize multiple data blocks Nx; then reorganize the positions of multiple data blocks according to the number Nx to synthesize the final decrypted data.
[0092] Example 5
[0093] This embodiment provides a decryption device for decrypting encrypted data generated by the above-mentioned data encryption method or data encryption device. Figure 6 As shown, including:
[0094] A first decryption module, used to decrypt the encrypted data using the second key chain table to obtain a plurality of combined data;
[0095] A second decryption module is used to decrypt each encrypted small data block in each combined data using the first key chain table to obtain multiple small data blocks;
[0096] The decrypted data combination module is used to reorganize the positions of multiple small data blocks to synthesize multiple data blocks; then reorganize the positions of multiple data blocks to synthesize final decrypted data.
[0097] Example 6
[0098] This embodiment provides an electronic device, including:
[0099] Memory on which computer programs or instructions are stored;
[0100] The processor is used to load and execute the computer program or instruction to implement the data encryption method or decryption method as described above.
[0101] Example 7
[0102] This embodiment provides a computer-readable storage medium on which a computer program or instruction is stored. When the computer program or instruction is executed by a processor, the data encryption method or decryption method as described above is implemented.
[0103] Example 8
[0104] This embodiment also provides a communication system, which includes an encryption end and a decryption end of a communication connection;
[0105] The encryption end is configured to perform the following process: divide the data to be encrypted into a plurality of data blocks; divide each data block into a plurality of small data blocks; for each small data block in each data block, randomly select an encryption algorithm from the encryption algorithm set to encrypt, obtain the corresponding encrypted small data block, and generate a first encryption algorithm chain table and a first key chain table corresponding to each data block; classify all the encrypted small data blocks according to the encryption algorithm, and generate combined data by using a chain table for the encrypted small data blocks under the same encryption algorithm; encrypt each combined data again using the encryption algorithm to obtain encrypted combined data, and generate a second encryption algorithm chain table and a second key chain table; combine the encrypted combined data to obtain the final encrypted data;
[0106] The decryption end is configured to perform the following process: using the second key chain table to decrypt the encrypted data to obtain multiple combined data; using the first key chain table to decrypt each encrypted small data block in each combined data to obtain multiple small data blocks; reorganizing the positions of the multiple small data blocks to synthesize multiple data blocks; and then reorganizing the positions of the multiple data blocks to synthesize the final decrypted data.
[0107] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0108] It should be understood that the functional unit modules in various embodiments of the present invention may be concentrated in one processing unit, or each unit module may exist physically separately, or two or more unit modules may be integrated in one unit module, and may be implemented in the form of hardware or software.
[0109] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt 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.
[0110] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.
[0111] 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.
[0112] 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 A step that specifies a function in one or more boxes.
[0113] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A data encryption method, characterized in that: The steps include: S1: Divide the data to be encrypted into multiple data blocks; S2: Split each data block into multiple small data blocks; S3: For each small data block in each data block, randomly select an encryption algorithm from the encryption algorithm set to encrypt, obtain the corresponding encrypted small data block, and generate a first encryption algorithm chain table and a first key chain table corresponding to each data block; S4: classify all the encrypted small data blocks according to the encryption algorithm, and use the linked list method to generate combined data for the encrypted small data blocks under the same encryption algorithm; S5: Encrypt each combination data using an encryption algorithm to obtain encrypted combination data, and generate a second encryption algorithm chain table and a second key chain table; S6: Combine the encrypted combined data to obtain the final encrypted data.
2. The data encryption method according to claim 1, characterized in that: Step S3 specifically includes: For each small data block in each data block, randomly select an encryption algorithm from the encryption algorithm set, and organize the encryption algorithms in a linked list manner to generate a first encryption algorithm linked list corresponding to each data block; For each encryption algorithm in the first encryption algorithm chain table corresponding to each data block, a matching encryption key is randomly generated, and the encryption keys are organized in a chain table manner to generate a first key chain table corresponding to each data block; Based on the first encryption algorithm chain table and the first key chain table corresponding to each data block, each small data block in each data block is encrypted to obtain a corresponding encrypted small data block.
3. The data encryption method according to claim 1, characterized in that: In step S4, when the small encrypted data blocks under the same encryption algorithm are used to generate combined data in a linked list manner, the small encrypted data blocks under the same encryption algorithm are combined in a random order.
4. The data encryption method according to claim 1, characterized in that: Step S5 includes: For each combination of data, a key of the encryption algorithm corresponding to the combination of data is generated, and the combination of data is encrypted using the encryption algorithm and the key to obtain encrypted combination data; and the encryption algorithms and keys corresponding to all the combination of data are organized into a second encryption algorithm chain table and a second key chain table using a chain table.
5. The data encryption method according to claim 1, characterized in that: Step S5 includes: For each combination of data, randomly select an encryption algorithm from the encryption algorithm set, and organize the encryption algorithms into a second encryption algorithm linked list using a linked list method; For each encryption algorithm in the second encryption algorithm chain table, a matching encryption key is randomly generated, and the encryption keys are organized into a second key chain table using a chain table method; Each corresponding combination data is encrypted based on the second encryption algorithm chain table and the second key chain table to obtain corresponding encrypted combination data.
6. The data encryption method according to claim 1, characterized in that: In step S6, the encrypted combined data is combined in a random order.
7. A data encryption device, characterized in that: include: A first data segmentation module, used for segmenting the data to be encrypted into a plurality of data blocks; A second data segmentation module is used to segment each data block into multiple small data blocks; A first encryption module is used to randomly select an encryption algorithm from the encryption algorithm set to encrypt each small data block in each data block, obtain a corresponding encrypted small data block, and generate a first encryption algorithm chain table and a first key chain table corresponding to each data block; The encrypted data reorganization module is used to classify all the encrypted small data blocks according to the encryption algorithm, and generate combined data using a linked list for the encrypted small data blocks under the same encryption algorithm; The second encryption module is used to encrypt each combination data using an encryption algorithm to obtain encrypted combination data, and generate a second encryption algorithm chain table and a second key chain table; The encrypted data combination module is used to combine the encrypted combination data to obtain the final encrypted data.
8. A decryption method, characterized in that: The method for decrypting encrypted data generated by the data encryption method according to any one of claims 1 to 6 comprises the following steps: Decrypting the encrypted data using the second key chain table to obtain a plurality of combined data; Decrypting each encrypted small data block in each combined data using the first key chain table to obtain multiple small data blocks; Rearrange the positions of multiple small data blocks to synthesize multiple data blocks; Then multiple data blocks are repositioned to synthesize the final decrypted data.
9. A decryption device, characterized in that: Used to decrypt encrypted data generated by the data encryption method according to any one of claims 1 to 6 or the data encryption device according to claim 7, comprising: A first decryption module, used to decrypt the encrypted data using the second key chain table to obtain a plurality of combined data; A second decryption module is used to decrypt each encrypted small data block in each combined data using the first key chain table to obtain multiple small data blocks; The decrypted data combination module is used to reorganize the positions of multiple small data blocks to synthesize multiple data blocks; then reorganize the positions of multiple data blocks to synthesize final decrypted data.
10. An electronic device, characterized in that: include: Memory on which computer programs or instructions are stored; A processor, used to load and execute the computer program or instruction to implement the data encryption method according to any one of claims 1 to 6 or the decryption method according to claim 8.
Citation Information
Cited By
Encrypted communication method and device based on microcomputer
CN119996087A