Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for switching AES (Advanced Encryption Standard) and national password based on MySQL encryption algorithm

An encryption algorithm and national secret technology, applied in the database field, can solve the problems of single encryption algorithm and cannot better meet data security requirements.

Pending Publication Date: 2022-07-01
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] MySQL is a secure, cross-platform, efficient database system that is closely integrated with mainstream programming languages ​​such as PHP and Java. At present, MySQL is widely used in small and medium-sized websites on the Internet. The MySQL Community Edition starts from 5.7.11 Support table-based data encryption scheme, the encryption algorithm is AES, the encryption algorithm is single, can not better meet the user's requirements for MySQL data security; the national secret algorithm is a series of data encryption processing algorithms independently developed and innovated by my country, from SM1 -SM4 implements algorithm functions such as symmetric, asymmetric, and digest respectively
[0003] It is particularly important to realize the switching of MySQL encryption algorithm from AES to national secret; but currently there is no way to switch MySQL from the default encryption algorithm AES to national secret;

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for switching AES (Advanced Encryption Standard) and national password based on MySQL encryption algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] A switching method based on MySQL encryption algorithm AES and national secret, the method records the conversion process of all encrypted tables by creating a system table, and records the state of the conversion process of data by field status;

[0051] Save all encrypted table names and related information to the created system table by transaction;

[0052] Identify the current encryption algorithm type with a global variable, close the binlog log and enable multithreading during the data conversion process;

[0053] The encrypted data table is stored in plaintext through the temporary table, and the encrypted data is converted into a new encrypted data table;

[0054] The method of the present invention records the conversion process of all encrypted tables by creating a system table, and records the state of the data conversion process through the field status, which is characterized as described in S8, S9, S11, and S14, and records the encryption table through th...

Embodiment 2

[0098] A kind of switching system based on MySQL encryption algorithm AES and national secret, according to any described method of claim 1-7, described system conversion record module, information preservation module, data processing module and data conversion module:

[0099] Conversion record module: record the conversion process of all encrypted tables by creating a system table, and record the status of the data conversion process through the field status;

[0100] Information saving module: save all encrypted table names and related information to the created system table by transaction;

[0101] Data processing module: use global variables to identify the current encryption algorithm type, close the binlog log and enable multi-threading during the data conversion process;

[0102] Data conversion module: store the encrypted data table in plaintext through a temporary table, and convert the encrypted data into a new encrypted data table.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an AES and national password switching method and system based on a MySQL encryption algorithm, and belongs to the field of databases. The method comprises the following steps: creating a global variable (curricular variable) for identifying a current encryption algorithm type, defining a switched encryption algorithm type (curricular variable) in a MySQL configuration file, creating a system table (curricular variable), restarting a MySQL service, screening all encrypted data tables in the MySQL, storing results and related default values in the created system table, and storing the results and the related default values in the system table. The method comprises the following steps of: performing data conversion in a multi-thread manner, traversing table information of a table stored in a system, storing data of an original table in a plaintext manner by creating a temporary table, deleting the original table, replacing the original table with the temporary table, updating the table information in the system table, and after all data tables are successfully converted, switching an encryption algorithm to an encryptallogistic mtype, so as to complete encryption of the system table. All the converted plaintext data tables are encrypted and stored, switching of encryption algorithms is completed, a system table encryptalverthmtransfer is deleted, and the MySQL service is started.

Description

technical field [0001] The invention discloses a switching method and system based on MySQL encryption algorithm AES and national secret, and relates to the technical field of databases. Background technique [0002] MySQL is a secure, cross-platform, efficient database system that is closely integrated with mainstream programming languages ​​such as PHP and Java. Currently, MySQL is widely used in small and medium-sized websites on the Internet. MySQL Community Edition starts from 5.7.11 Support table-based data encryption scheme, its encryption algorithm is AES, the encryption algorithm is single, which cannot better meet the user's requirements for MySQL data security; the national secret algorithm is a set of data encryption processing algorithms independently developed and innovative in my country, from SM1 -SM4 implements algorithm functions such as symmetric, asymmetric, and digest, respectively. [0003] It is particularly important to realize the switch of MySQL encr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F21/60G06F21/62G06F11/14
CPCG06F21/6218G06F21/602G06F11/1448
Inventor 张跃刘刚王阳赵山
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD