Method for encrypting database by using encrypted character string

By using hardware information to generate encrypted strings in the database management system, the problems of coarse data management and weak key security in traditional database management systems are solved. Fine-grained access control and data security are achieved, preventing social engineering and brute-force attacks, and avoiding data leakage caused by storage media migration.

CN121980593AActive Publication Date: 2026-05-05SHANDONG HENGYUN INFORMATION TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANDONG HENGYUN INFORMATION TECH CO LTD
Filing Date
2026-04-08
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Traditional database management systems suffer from problems such as coarse data management, weak key security, and data leakage due to storage media. They are unable to achieve fine-grained access control and are vulnerable to social engineering and brute-force attacks.

Method used

An encrypted string method is adopted. By adding a data dictionary table to the database management system, the computer hardware information is used to generate four coordinate points to calculate the identification code authKey as the encryption key. The encryption parameters are stored in a distributed manner to avoid human-set passwords and strictly bind to hardware devices.

Benefits of technology

It achieves fine-grained data access control, prevents social engineering and brute-force attacks, avoids data leakage caused by storage media migration, and improves data security and management accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure QLYQS_16
    Figure QLYQS_16
  • Figure QLYQS_21
    Figure QLYQS_21
  • Figure QLYQS_22
    Figure QLYQS_22
Patent Text Reader

Abstract

A method for encrypting a database by using an encrypted character string relates to the technical field of information security, and acquires a correct decryption key by dispersedly storing parameters of password calculation to a plurality of different positions and combining the parameters by using an algorithm when a database field needs to be accessed. According to parameters needing to be set by an administrator, a password password mode is not used any more, a space coordinate position mode is adopted, and the administrator provides three space coordinates, obtains a hardware identification code and forms a fourth space coordinate. The purpose of generating the identification code authKey through the algorithm is to replace a traditional situation that an administrator subjectively sets a password manually, a character string is replaced with coordinates, and the complexity and the safety of the password are guaranteed through the algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information security technology, and specifically to a method for encrypting a database using encrypted strings. Background Technology

[0002] In contemporary society, where the value of data assets is becoming increasingly prominent, data management requires more granularity, stricter security access control, and more rigorous data access logic.

[0003] Traditional database management systems, which use a rudimentary account + password management model, have the following problems: 1. Data management is too broad. All tables and all data under the same account can be clearly accessed, making fine-grained control impossible. For example, setting access permissions for table A to a specific host, or only allowing applications with authentication keys to access table A.

[0004] 2. Key Security Measures: Traditionally, passwords are set by administrators, making them vulnerable to attacks using brute-force algorithms and social engineering techniques, leading to password leaks. In some environments, passwords are set in application configuration files, making them easily accessible to application administrators—all potential risks.

[0005] 3. Data leaks caused by storage media, such as when a hard drive storing database files is taken to another computer and data leaks occur due to access to the data files. Summary of the Invention

[0006] To overcome the shortcomings of the above technologies, this invention provides a method for effectively preventing social engineering and brute-force attacks by using encrypted strings to encrypt databases.

[0007] The technical solution adopted by this invention to overcome its technical problems is: A method for encrypting a database using an encrypted string includes: S1. In the database management system, add a column to the data dictionary table that records information about all data tables in the database. This column records whether the corresponding table in the database is an encryption algorithm used by the encrypted meter. S2. When creating a new data table in the database, select "encrypted table" in the corresponding column of the data dictionary, and the administrator enters three coordinate points; S3. When the database management system receives a table creation command, it receives three coordinate points and uses computer hardware information to generate a fourth coordinate point. S4. Calculate the identification code authKey using the four coordinate points; S5. Using the identification code authKey as the encryption key, the information to be written to the database is encrypted and stored as ciphertext, or the encrypted data read out is decrypted. S6. When reading or modifying a created data table, provide three coordinate points to the database management system and generate a fourth coordinate point using computer hardware information. Calculate the identification code authKey. After the database management system verifies that the authKey encryption and decryption are correct, it performs read and write operations on the table data.

[0008] Furthermore, in step S1, the database management system is a relational database management system or an embedded database management system.

[0009] Furthermore, in step S2, the administrator inputs three coordinate points as follows: , , coordinates The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are coordinates The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are coordinates The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are .

[0010] Furthermore, the fourth coordinate point in step S3 is... coordinates The dimension is three-dimensional. CPU identification code This is the motherboard identification code. This is the network card identification code.

[0011] Furthermore, step S4 includes the following steps: S4-1. Through formula The adjusted coordinates were calculated. Through formula The adjusted coordinates were calculated. Through formula The adjusted coordinates were calculated. Construct coordinate points , ; S4-2. Through formula The spatial centroid was calculated. Spatial centroid The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are ; S4-3. Based on coordinate points Calculate the length of the six weighted edges , , , , , ; S4-4. Through formula The volume of the parallelepiped was calculated. , To take the norm; S4-5. Using the lengths of the six weighted edges , , , , , Spatial centroid Volume of a parallelepiped The identification code authKey is calculated.

[0012] Furthermore, in step S4-3, the formula is used... The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. .

[0013] Furthermore, through the formula The authentication code authKey is calculated, where, For Hamiltonian operators, , The unit vector in the X-axis direction. It is the unit vector in the Y-axis direction. It is the unit vector in the Z-axis direction. , To take the absolute value, , , , , This is for rounding down.

[0014] Furthermore, in step S5, the AES-256 algorithm or the SM4 algorithm is used to obtain the encryption and decryption key for writing data to the authKey.

[0015] The beneficial effects of this invention are: avoiding subjective issues caused by administrators and effectively preventing problems such as social engineering and brute-force attacks. Distributed storage of encryption parameters effectively avoids data leakage caused by storage media migration. For example, before each encryption operation, the algorithm extracts certain unique hardware identifiers as parameters for computation. When the database is migrated to a new hardware server platform (e.g., the hard drive is stolen and placed on another server), the hardware change will cause the computation results to deviate from the correct values, making decryption impossible. Data authorization can be precise down to the data table level, providing underlying technical support for data classification and grading. Detailed Implementation

[0016] The present invention will be further described below.

[0017] A method for encrypting a database using an encrypted string includes: S1. In the database management system, add a column to the data dictionary table that records information about all data tables in the database. This column records whether the corresponding table in the database uses an encryption algorithm.

[0018] S2. When creating a new data table in the database, select "encrypted table" in the corresponding column of the data dictionary, and the administrator enters three coordinate points.

[0019] S3. When the database management system receives a create table command, it receives three coordinate points and uses computer hardware information to generate a fourth coordinate point.

[0020] S4. Calculate the identification code authKey using the four coordinate points.

[0021] S5. Using the identification code authKey as the encryption key, the information to be written to the database is encrypted and stored as ciphertext, or the encrypted data read out is decrypted.

[0022] S6. When reading or modifying a created data table, provide three coordinate points to the database management system and generate a fourth coordinate point using computer hardware information. Calculate the identification code authKey. After the database management system verifies that the authKey encryption and decryption are correct, it performs read and write operations on the table data.

[0023] By distributing the parameters for password calculation across multiple different locations, an algorithm combines these parameters when database fields need to be accessed to obtain the correct decryption key. Parameters set by the administrator are no longer expressed as passwords but instead as spatial coordinates. The administrator provides three spatial coordinates, obtains a hardware identification code, and generates a fourth spatial coordinate. The purpose of generating the authKey through an algorithm is to replace the traditional method of administrators subjectively setting passwords. Coordinates replace strings, and the algorithm ensures password complexity and security. The database management system itself only stores the algorithm and encrypted data files; it does not store any keys. The administrator only possesses a subset of keys, presented in a coordinate system. There is a strict binding to the server running the database system; changing the device renders it unusable.

[0024] In one embodiment of the present invention, the database management system in step S1 is a relational database management system or an embedded database management system.

[0025] In one embodiment of the present invention, in step S2, the administrator inputs three coordinate points as follows: , , coordinates The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are coordinates The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are coordinates The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are .

[0026] In one embodiment of the present invention, the fourth coordinate point in step S3 is: coordinates The dimension is three-dimensional. CPU identification code This is the motherboard identification code. This is the network card identification code.

[0027] In one embodiment of the present invention, step S4 includes the following steps: S4-1. Through formula The adjusted coordinates were calculated. Through formula The adjusted coordinates were calculated. Through formula The adjusted coordinates were calculated. Construct coordinate points , .

[0028] S4-2. Through formula The spatial centroid was calculated. Spatial centroid The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are .

[0029] S4-3. Based on coordinate points Calculate the length of the six weighted edges , , , , , .

[0030] S4-4. In three-dimensional space, four vertices not on the same plane form a tetrahedron. The volume of the tetrahedron needs to be calculated. The volume of the parallelepiped spanned by three vectors originating from the same point can be calculated using the formula... The volume of the parallelepiped was calculated. , To take the norm.

[0031] S4-5. Using the lengths of the six weighted edges , , , , , Spatial centroid Volume of a parallelepiped The identification code authKey is calculated.

[0032] In one embodiment of the present invention, step S4-3 is performed using the formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. .

[0033] In one embodiment of the present invention, through formula The authentication code authKey is calculated, where, For Hamiltonian operators, , The unit vector in the X-axis direction. It is the unit vector in the Y-axis direction. It is the unit vector in the Z-axis direction. , To take the absolute value, , , , , This formula is for rounding down. It is a unique feature quantization and encoding model for four-point configurations in three-dimensional space, used for high-fidelity feature extraction and unique characterization of the geometric topology formed by four points in three-dimensional space. The formula uses the coordinates of the four points, the centroid of the space, the geometric scale of the six edges between the point sets, and the volume of the tetrahedron as basic geometric parameters. Through multi-level nonlinear mappings such as vector operations, integral transformations, series summations, multiplication operations, and matrix algebraic transformations, it fuses discrete spatial geometric information into a single compact feature value.

[0034] This feature value can uniquely identify a set of four spatial configurations, exhibiting high sensitivity and strong discriminative power against coordinate perturbations, positional offsets, and scale changes. It enables accurate matching, uniqueness verification, and tamper-proof identification of spatial configurations. By integrating multi-dimensional geometric features, it effectively improves the uniqueness and stability of spatial structure identification, and can be applied to technical scenarios such as spatial configuration recognition, data uniqueness binding, encrypted feature generation, and geometric topology verification.

[0035] In one embodiment of the present invention, in step S5, the AES-256 algorithm or the SM4 algorithm is used to obtain the encryption and decryption key for writing data to the identification code authKey.

[0036] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for encrypting a database using an encrypted string, characterized in that, include: S1. In the database management system, add a column to the data dictionary table that records information about all data tables in the database. This column records whether the corresponding table in the database is an encryption algorithm used by the encrypted meter. S2. When creating a new data table in the database, select "encrypted table" in the corresponding column of the data dictionary, and the administrator enters three coordinate points; S3. When the database management system receives a table creation command, it receives three coordinate points and uses computer hardware information to generate a fourth coordinate point. S4. Calculate the identification code authKey using the four coordinate points; S5. Using the identification code authKey as the encryption key, the information to be written to the database is encrypted and stored as ciphertext, or the encrypted data read out is decrypted. S6. When reading or modifying a created data table, provide three coordinate points to the database management system and generate a fourth coordinate point using computer hardware information. Calculate the identification code authKey. After the database management system verifies that the authKey encryption and decryption are correct, it performs read and write operations on the table data.

2. The method for encrypting a database using an encrypted string according to claim 1, characterized in that: In step S1, the database management system is either a relational database management system or an embedded database management system.

3. The method for encrypting a database using an encrypted string according to claim 1, characterized in that: In step S2, the administrator inputs three coordinate points as follows: , , coordinates The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are coordinates The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are coordinates The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are .

4. The method for encrypting a database using an encrypted string according to claim 3, characterized in that: The fourth coordinate point in step S3 is coordinates The dimension is three-dimensional. CPU identification code This is the motherboard identification code. This is the network card identification code.

5. The method for encrypting a database using an encrypted string according to claim 4, characterized in that, Step S4 includes the following steps: S4-1. Through formula The adjusted coordinates were calculated. Through formula The adjusted coordinates were calculated. Through formula The adjusted coordinates were calculated. Construct coordinate points , ; S4-2. Through formula The spatial centroid was calculated. Spatial centroid The X-axis coordinate is Y-axis coordinate is Z-axis coordinates are ; S4-3. Based on coordinate points Calculate the length of the six weighted edges , , , , , ; S4-4. Through formula The volume of the parallelepiped was calculated. , To take the norm; S4-5. Using the lengths of the six weighted edges , , , , , Spatial centroid Volume of a parallelepiped The identification code authKey is calculated.

6. The method for encrypting a database using an encrypted string according to claim 5, characterized in that: In step S4-3, the formula is used. The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. Through formula The edge weight length is calculated. .

7. The method for encrypting a database using an encrypted string according to claim 6, characterized in that: Through formula The authentication code authKey is calculated, where, For Hamiltonian operators, , The unit vector in the X-axis direction. It is the unit vector in the Y-axis direction. It is the unit vector in the Z-axis direction. , To take the absolute value, , , , , This is for rounding down.

8. The method for encrypting a database using an encrypted string according to claim 1, characterized in that: In step S5, the AES-256 algorithm or SM4 algorithm is used to obtain the encryption and decryption key for writing data to the authKey.

Citation Information

Patent Citations

  • Private key, public key and decryption method

    CN106027246A

  • Database data encryption system based on SM4 cryptographic algorithm

    CN114154195A

  • Character string encryption method based on three-dimensional coordinate system

    CN115906111A

  • Product information code management system

    CN116049845A

  • Database management and security analysis method

    CN117540434A