Data security management method and system

By converting data into a module matrix and performing multiple module operations to generate a key chain, it solves the problem of insufficient security of symmetric encryption algorithms, achieves higher security performance and applicability, and is suitable for data encryption in the field of information security.

CN118740462APending Publication Date: 2024-10-01SHANDONG LUNENG SOFTWARE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410881832.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing symmetric encryption algorithms such as DES, 3DES and AES have problems with insufficient security, lack of adaptability and flexibility. In particular, the singleness of the key and fixed block length make it difficult to ensure data integrity and security in information security. Confidentiality.

Method used

The data to be encrypted is converted into a module matrix, and a key chain is generated by randomly performing multiple module operations. The key chain is used to encrypt or decrypt the module matrix. The module operation includes rotating the row or column data of the matrix, adding a variety of Change modes to increase security.

Benefits of technology

Through the multiple transformation modes of the module matrix, the security performance of the symmetric encryption method is significantly improved, providing stronger security and applicability, and is suitable for data encryption needs in the field of information security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740462A_ABST
    Figure CN118740462A_ABST
Patent Text Reader

Abstract

The invention discloses a data security management method and system, and relates to the field of information security, and the method comprises the steps: converting to-be-encrypted data into a module matrix; randomly carrying out r times of module operation on the module matrix to obtain a key chain; the module operation is to rotate data of rows or columns in a module matrix; and encrypting or decrypting the module matrix by using the key chain. The safety performance of the symmetric encryption method can be improved, and then the data safety is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security, and in particular to a data security management method and system. Background Art

[0002] Cryptography is one of the core theories of information security. It ensures confidentiality, unforgeability and integrity in a network environment. Currently, encryption algorithms and digital signature technologies are the main methods to achieve these characteristics. In traditional encryption schemes, encryption schemes can be divided into symmetric encryption and asymmetric encryption. Compared with asymmetric encryption, symmetric encryption improves computational efficiency, but its security is lower than that of asymmetric encryption.

[0003] In symmetric encryption algorithms, the data sender processes the plaintext and the key together through a special encryption algorithm, and then turns it into a complex encrypted ciphertext and sends it out. After the recipient receives the ciphertext, if he wants to interpret the original text, he needs to use the key to decrypt the ciphertext to restore it to plaintext. Unlike asymmetric encryption, there is only one key used, and both the sender and the receiver use this key to encrypt and decrypt data, so the key must be confidential.

[0004] At present, symmetric encryption mainly includes Data Encryption Standard (DES), Triple Data Encryption Standard (3DES), Advanced Encryption Standard (AES), etc. The problems of these algorithms are mainly reflected in:

[0005] (1) The encryption process of the DES and 3DES algorithms is too simple, and it is difficult to ensure their security by relying solely on the method of replacing the number of plaintext bits.

[0006] (2) The DES algorithm, 3DES algorithm, and AES algorithm all have fixed packet lengths, which results in a lack of adaptability and flexibility in the algorithms.

[0007] (3) Although AES encryption has five working modes, the number of modes is still relatively small and security cannot be guaranteed. Summary of the invention

[0008] The purpose of the present invention is to provide a data security management method and system, which can improve the security performance of the symmetric encryption method and thus ensure data security.

[0009] To achieve the above object, the present invention provides the following solutions:

[0010] A data security management method, comprising:

[0011] Convert the data to be encrypted into a module matrix;

[0012] Randomly perform r types of module operations on the module matrix to obtain a key chain; the module operation is to rotate the data of the rows or columns in the module matrix;

[0013] The module matrix is ​​encrypted or decrypted using the key chain.

[0014] Optionally, the step of converting the data to be encrypted into a module matrix further includes:

[0015] Using formula M (i,α) =αE-M i For the module matrix M i Perform non-singular matrix transformations;

[0016] Set the coefficient α to 1 and determine the converted module matrix M (i,α) Whether it is a non-singular matrix;

[0017] If not, the coefficient α is determined to be 2, and the converted module matrix M is determined (i,α) Is it a non-singular matrix? And so on, until the converted module matrix M (i,α) is a non-singular matrix;

[0018] Among them, α is the coefficient, E is the unit matrix, M i is the i-th module matrix.

[0019] Optionally, the key chain is

[0020] in, Represents the i-th unknown matrix after j-times modular transformation, i=1,2,...,6, j>r.

[0021] Optionally, the encrypting or decrypting the module matrix by using the key chain specifically includes:

[0022] Encryption using T = M·X;

[0023] Using the formula M = T·X -1 Decryption is performed;

[0024] Among them, M is the module matrix, X is the unknown matrix, and T is the target matrix.

[0025] Optionally, the encrypting or decrypting the module matrix by using the key chain specifically includes:

[0026] Using the formula T (i,β) =βE-T i Perform non-singular matrix transformation on the target matrix;

[0027] Set the coefficient β to 1 and determine the target matrix T after conversion. (i,β) Whether it is a non-singular matrix;

[0028] If so, according to the transformed target matrix T (i,β) Determine the current M i =T (i,β) ·(X i -1 ) whether it has a solution;

[0029] If there is no solution, the coefficient β is determined to be 2, then according to the transformed target matrix T (i,β) Determine the current M i =T (i,β) ·(X i -1 ) whether there is a solution, and so on, until the target matrix T after transformation is obtained. (i,β) Make M i There is a solution;

[0030] Among them, β is the coefficient, E is the unit matrix, T i is the i-th target matrix.

[0031] A data security management system, comprising:

[0032] A module matrix determination unit, used for converting the data to be encrypted into a module matrix;

[0033] The key chain determination unit is used to randomly perform r types of module operations on the module matrix to obtain a key chain; the module operation is to rotate the data of the rows or columns in the module matrix; the encryption and decryption unit is used to encrypt or decrypt the module matrix using the key chain.

[0034] A data security management system comprises: at least one processor, at least one memory and computer program instructions stored in the memory, and the method described is implemented when the computer program instructions are executed by the processor.

[0035] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0036] The present invention provides a data security management method and system, which converts the data to be encrypted into a module matrix; randomly performs r types of module operations on the module matrix to obtain a key chain; the module operation is to rotate the data in the row or column of the module matrix; the transformation operation of the symmetric encryption method of the present invention has a total of 4·i 2The transformation mode is far superior to the affine transformation, so the security is stronger. The plaintext length is in the form of a matrix, and the size of the matrix can be selected according to the specific situation. The present invention has the advantages of high security performance, scientific and reasonable, strong applicability, good effect, etc. of the symmetric encryption method. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] 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 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.

[0038] Figure 1 A schematic diagram of a data security management method provided by the present invention;

[0039] Figure 2 This is a schematic diagram of the overall flow of a data security management method provided by the present invention. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] The purpose of the present invention is to provide a data security management method and system, which can improve the security performance of the symmetric encryption method and thus ensure data security.

[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0043] like Figure 1 and Figure 2 As shown, a data security management method provided by the present invention includes:

[0044] S101, convert the data to be encrypted into module matrices M1, .. . , M6.

[0045] In a data encryption environment, the six colors of the Rubik's Cube are represented by numbers, namely: red-1, orange-2, blue-3, green-4, yellow-5, and white-6. First, six n×n random matrices are generated, and the evaluation formula for n is:

[0046]

[0047] Among them, len(m) is the length of plaintext m, The symbol for rounding up.

[0048] The module matrices M1, ···, M6 are:

[0049]

[0050] Among them, M1 represents the forward module matrix, corresponding to the red color in the Rubik's Cube, M2 represents the backward module matrix, corresponding to the orange face in the Rubik's Cube, M3 represents the left module matrix, corresponding to the blue face in the Rubik's Cube, M4 represents the right module matrix, corresponding to the green face in the Rubik's Cube, M5 represents the upward module matrix, corresponding to the yellow face in the Rubik's Cube, and M6 represents the downward module matrix, corresponding to the white face in the Rubik's Cube.

[0051] The following is the matrix judgment mechanism:

[0052] When the matrix is ​​transformed into a module, the following calculations need to be performed, namely, T i =M i ·X i , where i = 1, 2, ···, 6. During the decryption operation, the module inverse transformation operation is required. The formula is as follows:

[0053]

[0054] For a known matrix M i To invert, since M i It is composed of plaintext and is not necessarily a non-singular matrix, so its inverse matrix does not necessarily exist. Therefore, it is necessary to i Perform non-singular matrix transformation to obtain M (i,α) :M (i,α) =αE-M i .

[0055] Set the coefficient α to 1 and determine the converted module matrix M (i,α) Is it a non-singular matrix? If M (i,1) is a non-singular matrix, then M (i,1) Substitute T i =M (i,α) ·X i .

[0056] If not, the coefficient α is determined to be 2, and the converted module matrix M is determined (i,α) Is it a non-singular matrix? And so on, until the converted module matrix M (i,α) is a non-singular matrix;

[0057] Among them, α is the coefficient, E is the unit matrix, M i is the i-th module matrix.

[0058] Matrix T i The non-singular matrix condition is not met and a non-singular matrix transformation is required.

[0059] S102, randomly perform r types of module operations on the module matrix to obtain a key chain The module operation is to rotate the data of rows or columns in the module matrix; wherein, Represents the i-th unknown matrix after j-times modular transformation, i=1,2,...,6, j>r.

[0060] There are 4 module operations: X i Axis rotates clockwise, X i Axis rotates counterclockwise, Y i Axis rotates clockwise, Y i The shaft rotates counterclockwise.

[0061] X i The axis rotates clockwise, that is, the i-th row rotates clockwise. This operation moves the i-th row of M1 to the i-th row of M4, the i-th row of M4 to the i-th row of M2, the i-th row of M2 to the i-th row of M3, the i-th row of M3 to the i-th row of M1, and M5 and M6 remain unchanged.

[0062] X i The axis rotates counterclockwise, that is, the i-th row rotates counterclockwise. This operation moves the i-th row of M1 to the i-th row of M3, the i-th row of M3 moves to the i-th row of M2, the i-th row of M2 moves to the i-th row of M4, the i-th row of M4 moves to the i-th row of M1, and M5 and M6 remain unchanged.

[0063] Y i The axis rotates clockwise, that is, the i-th column rotates clockwise. This operation moves the i-th column of M1 to the i-th column of M6, the i-th column of M6 to the i-th column of M2, the i-th column of M2 to the i-th column of M5, the i-th column of M5 to the i-th column of M1, and M3 and M4 remain unchanged.

[0064] Y i The axis rotates counterclockwise, that is, the i-th column rotates counterclockwise. This operation moves the i-th column of M1 to the i-th column of M5, the i-th column of M5 to the i-th column of M2, the i-th column of M2 to the i-th column of M6, the i-th column of M6 to the i-th column of M1, and M3 and M4 remain unchanged.

[0065] S103, encrypting or decrypting the module matrix using the key chain.

[0066] Module Matrix M i After r transformations, we get T i (r) The formula is as follows:

[0067]

[0068] T i (r) M i The target matrix for r-times modular transformation is the final ciphertext. is the unknown matrix after r times of modular transformation operation.

[0069] S103 specifically includes:

[0070] Encryption is performed using T=M·X.

[0071] Using the formula M = T·X -1 Decrypt.

[0072] Among them, M is the module matrix, X is the unknown matrix, and T is the target matrix.

[0073] Since a module judgment operation is required every time a module transformation operation is performed, when decrypting the ciphertext matrix, the matrix that has undergone non-singular matrix transformation needs to be restored accordingly, that is: M i =αE-M (i,α) .

[0074] During the decryption phase, the following calculations are required:

[0075] For the unknown matrix X i To invert, since X i is an unknown matrix. As the key itself, the unknown matrix cannot be changed and must be a non-singular matrix. From formula (8), it can be concluded that if the target matrix T i is a non-singular matrix, then the position matrix X i Both are non-singular matrices. If the target matrix T i It does not meet the non-singular matrix condition and needs to be transformed into a non-singular matrix to obtain T (i,β) .

[0076] Using the formula T (i,β) =βE-T i Performs nonsingular matrix transformation on the target matrix.

[0077] Set the coefficient β to 1 and determine the target matrix T after conversion. (i,β) Whether it is a non-singular matrix.

[0078] If so, according to the transformed target matrix T (i,β) Determine the current M i =T (i,β) ·(X i -1 ) is there a solution.

[0079] If there is no solution, the coefficient β is determined to be 2, then according to the transformed target matrix T (i,β) Determine the current M i =T (i,β) ·(X i -1 ) whether there is a solution, and so on, until the target matrix T after transformation is obtained. (i,β) Make M i There is a solution.

[0080] Among them, β is the coefficient, E is the unit matrix, T i is the i-th target matrix.

[0081] Since a module judgment operation is required every time a module transformation operation is performed, when decrypting an unknown matrix, the matrix that has undergone a non-singular matrix transformation needs to be restored accordingly, that is: T i =βE-T (i,β) .

[0082] Corresponding to the above method, the present invention also provides a data security management system, including:

[0083] The module matrix determination unit is used to convert the data to be encrypted into a module matrix.

[0084] The key chain determination unit is used to randomly perform r types of module operations on the module matrix to obtain the key chain; the module operation is to rotate the data of the rows or columns in the module matrix.

[0085] The encryption and decryption unit is used to encrypt or decrypt the module matrix using the key chain.

[0086] In order to execute the method corresponding to the above-mentioned embodiment 1 to achieve the corresponding functions and technical effects, the present invention also provides a data security management system, including: at least one processor, at least one memory and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the described method is implemented.

[0087] In the traditional transformation method, there are 5 transformation modes for example, affine transformation, which is not applicable to the field of information security due to the small number of transformation types. The transformation modes of the symmetric encryption method based on magic cube transformation in the data encryption environment of the present invention are 4·i 2 There are many transformation modes, i is the order of the matrix, and the transformation mode far exceeds the affine transformation, so it is more secure.

[0088] The plaintext length of a traditional symmetric encryption algorithm (such as the AES encryption algorithm) is fixed at 128 bits. The plaintext length of the symmetric encryption method based on magic cube transformation in the data encryption environment of the present invention is in matrix form, and the size of the matrix can be selected according to the specific situation.

[0089] Therefore, the symmetric encryption method based on magic cube transformation in the data encryption environment of the present invention has high security performance, scientific rationality, strong applicability, good effect and the like.

[0090] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0091] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A data security management method, characterized in that: include: Convert the data to be encrypted into a module matrix; Randomly perform r types of module operations on the module matrix to obtain a key chain; The module operation is to rotate the data of rows or columns in the module matrix; The module matrix is ​​encrypted or decrypted using the key chain.

2. A data security management method according to claim 1, characterized in that: The step of converting the data to be encrypted into a module matrix further includes: Using formula M (i,α) =αE-M i For the module matrix M i Perform non-singular matrix transformations; Set the coefficient α to 1 and determine the converted module matrix M (i,α) Whether it is a non-singular matrix; If not, the coefficient α is determined to be 2, and the converted module matrix M is determined (i,α) Is it a non-singular matrix? And so on, until the converted module matrix M (i,α) is a non-singular matrix; Among them, α is the coefficient, E is the unit matrix, M i is the i-th module matrix.

3. A data security management method according to claim 1, characterized in that: The key chain is in, Represents the i-th unknown matrix after j-times modular transformation, i=1,2,...,6, j>r.

4. A data security management method according to claim 3, characterized in that: The method of encrypting or decrypting the module matrix by using the key chain specifically includes: Encryption using T = M·X; Using the formula M = T·X -1 Decryption is performed; Among them, M is the module matrix, X is the unknown matrix, and T is the target matrix.

5. A data security management method according to claim 4, characterized in that: The method of encrypting or decrypting the module matrix by using the key chain specifically includes: Using the formula T (i,β) =βE-T i Perform non-singular matrix transformation on the target matrix; Set the coefficient β to 1 and determine the target matrix T after conversion. (i,β) Whether it is a non-singular matrix; If so, according to the transformed target matrix T (i,β) Determine the current Is there a solution? If there is no solution, the coefficient β is determined to be 2, then according to the transformed target matrix T (i,β) Determine the current Is there a solution? And so on, until the target matrix T is transformed. (i,β) Make M i There is a solution; Among them, β is the coefficient, E is the unit matrix, T i is the i-th target matrix.

6. A data security management system, characterized in that: include: A module matrix determination unit, used for converting the data to be encrypted into a module matrix; A key chain determination unit is used to randomly perform r types of module operations on the module matrix to obtain a key chain; the module operation is to rotate the data of rows or columns in the module matrix; The encryption and decryption unit is used to encrypt or decrypt the module matrix using the key chain.

7. A data security management system, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 5.