Transparent encryption and decryption system based on big data platform
By designing a transparent encryption and decryption system in the big data platform, the encryption, decryption and adaptation problems in the data ETL process are solved, and custom identification, encryption and decryption of important data are realized. Hardware cryptographic devices are used to provide national encryption algorithms, which improves data quality. Security and privacy, solving the problem of data leakage in the existing technology.
Patent Information
- Application Number
- CN202311168888.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2024-09-27
AI Technical Summary
Existing big data platform technology cannot perform encryption and decryption operations during the data ETL process, cannot effectively adapt and process different data sources, cannot customize and accurately identify important data, and the encryption and decryption algorithms are weak in security and easy to be cracked. , leading to data leakage.
A transparent encryption and decryption system based on the big data platform is designed, including a data identification module, a data source adaptation module, a data encryption and decryption module and an HA automatic switching module. It supports custom identification and encryption and decryption of important data and is compatible with a variety of databases. Use hardware cryptographic devices to provide national encryption algorithms to achieve heartbeat detection and high availability.
The big data platform realizes transparent encryption and decryption in the data ETL process, improves data security and reliability, supports customized important data identification and processing of massive data, enhances data privacy and security, and avoids data leakage. .
Smart Images

Figure CN118709197A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and in particular to a transparent encryption and decryption system based on a big data platform. Background Art
[0002] In recent years, with the rapid development of Internet technology, the amount of data in enterprises of all sizes has also grown explosively. The traditional data structure model has long been unable to meet the current business scenarios.
[0003] In order to solve the current scenario of excessive data volume, big data platform technology came into being. This technology has many advantages such as data diversification, data value, data intelligence, and data centralization. However, with the widespread application of this technology, a series of problems have become increasingly prominent, among which the most prominent are data security and data privacy.
[0004] The defects of the prior art solutions are:
[0005] (1) It is not possible to encrypt and decrypt data during the data ETL process. The data can only be encrypted and decrypted after the data ETL is completed and stored in the ADS layer.
[0006] (2) It is impossible to effectively adapt and process different data sources during the data ETL process;
[0007] (3) It does not support the customization of important data in massive data, and cannot accurately identify important data in massive data;
[0008] (4) Encryption and decryption algorithms are mostly implemented in software, which has weak security and can be easily cracked by brute force, resulting in data leakage.
[0009] With the advent of the digital age, big data has become an indispensable part of all walks of life. Especially in enterprises, the application of big data has become more and more popular. Big data technology can provide enterprises with a variety of data analysis using a specific technical architecture to help them make better decisions; and the advantages of big data technology itself can also help enterprises operate more efficiently, improve their production efficiency and reduce costs through big data technology.
[0010] However, with the widespread application of big data, privacy issues have become increasingly prominent. In the process of collecting large amounts of data, users' personal information may be leaked. In addition, if the data is not managed properly, the data may be stolen or abused. Therefore, companies need to take specific security measures to protect user privacy, such as encrypting user data, limiting data access rights, and providing data authorization. In addition, big data technology can collect a large amount of sensitive information, such as company finances, customer data, and so on. If this data is hacked, leaked by internal personnel, or other forms of data loss, it may cause significant losses to the company. Therefore, companies need to take measures to protect the security of big data, such as backup, encryption, access control, and so on.
[0011] Although the current big data platform technology in the Internet environment can meet some data analysis and processing operations in the case of explosive data growth, due to some of the architecture and data storage methods of the big data platform technology itself, there are many data security issues, which can easily lead to a series of problems such as data leakage, data tampering, and data destruction of important data. Once the data is leaked, personal information and corporate information will be exposed to the public.
[0012] To sum up, it is necessary to make further innovations on existing technologies. Summary of the invention
[0013] In response to the technical problems existing in the above-mentioned background technology, the present invention proposes a transparent encryption and decryption system based on a big data platform, which has a reasonable concept, can support customized important data in massive data and support accurate identification of important data, can adapt to different types of data sources, and perform different processing on data in different data sources.
[0014] In order to solve the above technical problems, the present invention provides a transparent encryption and decryption system based on a big data platform, which includes a data identification module, a data source adaptation module, a data encryption and decryption module, a heartbeat detection module and an HA automatic switching module; the data identification module is used to identify important data in the big data platform; the data source adaptation module is used to make a compatibility for various data sources in the data ETL process of the big data platform; the encryption and decryption module is used to perform encryption and decryption operations on the important data in the big data platform, and is a module that specifically executes important data; the heartbeat detection module is used to detect a heartbeat of the transparent encryption and decryption system itself; the HA automatic switching module is used to ensure the high availability of the transparent encryption and decryption system.
[0015] The transparent encryption and decryption system based on the big data platform, wherein: the data identification module can identify important data that needs to be encrypted from the massive data on the big data platform, and the user only needs to configure the database location and data table location of the important data in the data identification module.
[0016] The transparent encryption and decryption system based on the big data platform, wherein: the data identification module supports the function of customizing important data, and the user can customize the data identified as important in the business system according to the actual business needs of the application system that needs to encrypt and decrypt data. When the data is defined as important data, the data will be identified.
[0017] The transparent encryption and decryption system based on the big data platform, wherein: the data source adaptation module is compatible with common databases currently on the market, and can accurately perform various operations on data of various types of databases.
[0018] The transparent encryption and decryption system based on the big data platform, wherein: the cryptographic algorithms that can be provided by the encryption and decryption module include symmetric algorithm national secret SM4, international algorithms DES and AES, asymmetric algorithm national secret SM2, international algorithm RSA and data hash algorithm national secret SM3, international algorithms MD5 and SHA-1; and the cryptographic algorithms are mainly based on national secret algorithms.
[0019] The transparent encryption and decryption system based on the big data platform, wherein: the cryptographic algorithms provided by the encryption and decryption modules are all provided by hardware cryptographic devices.
[0020] The transparent encryption and decryption system based on the big data platform, wherein: the heartbeat detection module starts running during the startup initialization phase, and every five seconds the heartbeat detection module sends its own heartbeat to other associated modules in the transparent encryption and decryption system, so that the data identification module, the HA automatic switching module, the data source adaptation module and the data encryption and decryption module can know in real time whether the service is in a normal state. If the data identification module, the HA automatic switching module, the data source adaptation module and the data encryption and decryption module do not receive the heartbeat sent by the heartbeat detection module within five seconds, a module exception processing operation will be performed.
[0021] The transparent encryption and decryption system based on the big data platform, wherein: when the service status of the transparent encryption and decryption system is abnormal and cannot provide data encryption and decryption operations, the HA automatic switching module will automatically switch the HA, but during deployment, the transparent encryption and decryption system needs to be deployed on at least two server nodes, and the transparent encryption and decryption systems on the two server nodes need to configure their own IP addresses and ensure that the network policies between the two servers are interoperable; when the transparent encryption and decryption system is deployed on both server nodes, and the transparent encryption and decryption system on each server node is respectively configured with the IP address and port of the transparent encryption and decryption system on the other server node, HA automatic switching can be performed, and even if various abnormal situations occur, the transparent encryption and decryption system can provide normal data encryption and data decryption operations.
[0022] By adopting the above technical solution, the present invention has the following beneficial effects:
[0023] The transparent encryption and decryption system based on the big data platform of the present invention is reasonably conceived and can support customized important data in massive data and support accurate identification of important data. It can adapt to different types of data sources and perform different processing on data in different data sources.
[0024] The present invention can effectively solve the data security problem of big data platform technology in the current Internet environment, and can effectively perform transparent encryption and decryption operations on data in the data ETL process in the big data platform technology, so that the data can be stored in the form of ciphertext in the final storage database, thereby maximally improving the security, reliability, and compliance of the data and protecting massive data.
[0025] The data encryption and decryption module of the present invention supports symmetric encryption and decryption of data and asymmetric encryption and decryption, and can perform encryption operations on important plaintext data in the system. It uses a specific cryptographic algorithm in a cryptographic hardware device with a national commercial cryptographic product certification certificate, such as the national cryptographic SM4 and SM2 algorithms to encrypt data, thereby obtaining a string of ciphertext data and finally storing the encrypted ciphertext in a database.
[0026] In the current Internet environment, big data platform technologies all use data warehouses, data mining, report development and other modes to clean, analyze, model and perform other operations on massive amounts of data. In order to pursue performance, the synchronization between data and data all adopts a table-to-table data synchronization mode, and the data cleaning operations are completed through CDM operations in the middle. In this case, it is difficult to perform other operations on the data through some external APIs, custom functions and other methods between data and data synchronization. In the above situation, the present invention adopts a lightweight intermediate plug-in method to process the data while taking into account the data warehouse technology, the current existing architecture model of the big data platform and the data processing method. In the process from data cleaning to the final storage database, the middleware is inserted to change the original synchronization direction of the data, and the encryption operation of the data is completed in the middleware.
[0027] The present invention can perform encryption and decryption processing on data during the ETL process of big data technology, effectively solving the problem that the existing solution needs to wait until the data reaches the ADS layer before processing; wherein, the data identification module solves the problem that the existing solution cannot customize important data in massive data and cannot accurately identify important data; the data source adaptation module can effectively solve the problem that there are multiple data sources in the data cleaning process in the existing solution, resulting in the inability to effectively perform different processing on the data of each different data source; the algorithms in the data encryption and decryption module are all derived from hardware cryptographic devices, which are safer and more reliable, and can effectively solve the problem that the data encryption and decryption algorithms in the existing solution are all soft-implemented, and the data is easily cracked by brute force, resulting in data leakage.
[0028] The data identification module of the present invention can effectively identify important data in the massive data environment of the big data platform without any impact on the original data processing operations of the big data platform, and can improve the scalability and diversity of data processing in big data technology.
[0029] The data encryption and decryption module of the present invention can encrypt and decrypt important data in big data technology, and the encryption and decryption technology and interface implemented by the present invention comply with GB / T 39786-2021 "Basic Requirements for Cryptographic Application of Information Security Technology Information Systems". On the one hand, the present invention can effectively solve the problem of data privacy in the current Internet environment, and on the other hand, it can also improve the data security of big data technology and effectively protect important data to prevent data leakage.
[0030] The data source adapter module of the present invention can effectively adapt to different types of data sources that appear in the data processing process of the big data platform technology, and perform different processing according to the data, field type, storage method, storage structure, authorization method, etc. of different data sources, so that the big data platform technology does not need to worry about separate processing due to different data sources during the data processing process, thereby improving the efficiency of the data cleaning process of the big data platform technology and the overall fault tolerance of the big data platform technology.
[0031] Since the present invention exists in the form of a plug-in, it can encrypt and decrypt data during the ETL process of the big data platform technology data. There is no need to wait until the data has been completely cleaned before operating it, which improves the flexibility, effectiveness and timeliness of the big data platform technology data cleaning. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 This is a structure diagram of the transparent encryption and decryption system based on the big data platform of the present invention;
[0034] Figure 2 This is a flowchart of the ETL operation of massive data using the current Internet environment big data platform technology;
[0035] Figure 3 It is a schematic flow chart of the location of data encryption operation performed by the transparent encryption and decryption system based on the big data platform of the present invention;
[0036] Figure 4 The present invention is a flowchart showing the position of data decryption operation performed by the transparent encryption and decryption system based on the big data platform. DETAILED DESCRIPTION
[0037] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. 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.
[0038] The present invention is further explained below in conjunction with specific implementation modes.
[0039] Definition of terms:
[0040] ETL: The process of extracting, transforming, and loading data from the source to the destination.
[0041] ADS: Application Data Store is a dedicated database used to support business-specific applications.
[0042] CDM: provides batch data migration services between homogeneous / heterogeneous data sources to help customers achieve free flow of data.
[0043] The main function of the present invention is to provide data encryption and decryption operations based on massive data on a big data platform, so the present invention is applicable to various big data platforms that require encryption and decryption operations for data.
[0044] like Figure 1 As shown, the transparent encryption and decryption system based on the big data platform provided in this embodiment includes a data identification module 1, a data source adaptation module 2, a data encryption and decryption module 3, a heartbeat detection module 4 and a HA automatic switching module 5.
[0045] The data identification module 1 is used to identify important data in the massive data of the big data platform. Among them, the main function of the big data platform is to deal with the explosive growth of data in the current Internet environment. The amount of data to be stored is a very large number. In the case of such a large amount of data, it is completely unnecessary and unrealistic to encrypt all data, so it is only necessary to encrypt the important data in the massive data, such as the user's personal information, important business data, etc. The data identification module 1 can effectively identify the important data that needs to be encrypted in the massive data. The user only needs to configure the database location and data table location of the important data in the module; and the data identification module 1 supports the function of customizing important data. The user can customize the data identified as important in the business system according to the actual business needs of the system (referring to the application system that needs to encrypt and decrypt data, such as a certain application system that needs to use the data encryption and decryption capabilities provided by the transparent encryption and decryption system of the big data platform, and the system refers to a certain application system). When the data is defined as important data, the data will be identified.
[0046] The data source adapter module 2 is used to make a compatibility with various data sources in the data ETL process of the big data platform; the data source adapter module 2 is compatible with some common databases on the market, such as mysql, oracle, sql server, DB2, etc., and can accurately perform various operations on data of various types of databases. The process of data ETL operation on the big data platform will involve operations between various types of databases, and there will be differences in openness, scalability, parallelism, security authentication, client support and application mode between different databases.
[0047] The encryption and decryption module 3 is a core module, which is used to perform encryption and decryption operations on important data in the big data platform. It is a module that specifically executes important data. The encryption and decryption module 3 provides a variety of cryptographic algorithms, including symmetric algorithms such as SM4, DES, AES, asymmetric algorithms such as SM2, RSA, and data hashing algorithms such as SM3, MD5, SHA-1, etc. The algorithms are mainly based on national secret algorithms. The encryption and decryption module 3 itself can provide the above-mentioned various cryptographic algorithms, and the algorithms are all provided by hardware cryptographic devices, which can maximize the security of the provided cryptographic algorithms.
[0048] The heartbeat detection module 4 is mainly used for a heartbeat detection of the present invention itself; in the big data platform environment, facing so many operations of massive data, it is first necessary to ensure its own high availability. The heartbeat detection module 4 has already started running in the startup initialization phase. Every five seconds, the module will send its own heartbeat to other associated modules of the transparent encryption and decryption system based on the big data platform of the present invention, so that other functional modules (referring to the data identification module 1, the HA automatic switching module 5, the data source adaptation module 2 and the data encryption and decryption module 3) of the transparent encryption and decryption system based on the big data platform of the present invention can know in real time whether the service is in a normal state. If other modules (referring to the data identification module 1, the HA automatic switching module 5, the data source adaptation module 2 and the data encryption and decryption module 3) do not receive the heartbeat sent by the heartbeat detection module 4 within five seconds, they will perform module abnormality processing operations, such as email alarms, automatic switching and other operations to ensure the basic availability of the service.
[0049] The HA automatic switching module 5 is used to ensure the high availability of the present invention (high availability refers to the ability of the transparent encryption and decryption system based on the big data platform of the present invention to operate continuously with extremely high reliability and stability during actual use and operation. When the transparent encryption and decryption system of the big data platform of a node is down due to some unexpected circumstances, such as network reasons, physical power failure, etc., the HA automatic switching module can quickly switch to the transparent encryption and decryption system of another large data platform node, thereby ensuring that the business use will not be affected during actual use); when the transparent encryption and decryption system based on the big data platform of the present invention deployed on a server node has an abnormal service status due to various reasons such as network reasons and power failure reasons, and cannot provide data encryption and decryption operations, the HA automatic switching module 5 will automatically switch the HA, but during deployment, the transparent encryption and decryption system based on the big data platform of the present invention needs to be deployed on at least two server nodes, and the transparent encryption and decryption systems based on the big data platform of the present invention on the two server nodes need to configure their respective IP addresses and ensure that the network policies between the two servers are interoperable. When the transparent encryption and decryption system based on the big data platform of the present invention is deployed on two server nodes, and the transparent encryption and decryption system based on the big data platform of the present invention on each server node is respectively configured with the IP address and port of the transparent encryption and decryption system based on the big data platform of the present invention on another server node, HA automatic switching can be performed. Even if various abnormal situations occur, the present invention can also provide normal data encryption operations and data decryption operations.
[0050] like Figure 2 As shown in the figure, it is a flowchart of the current Internet environment big data platform technology for massive data ETL operations. The flowchart reflects the schematic diagram of extracting, converting, and loading massive data in the big data platform, as well as the final data flow after the data is cleaned; the specific process is as follows:
[0051] (1) The big data platform first obtains massive amounts of raw data from various data sources, such as business databases, manually entered data, and API interfaces;
[0052] (2) The massive amount of raw data obtained is uniformly stored in the intermediate database of the big data platform;
[0053] (3) The intermediate database performs a series of operations such as extracting, converting, and loading massive amounts of raw data;
[0054] (4) After the intermediate database in the big data platform cleans the massive amount of raw data, it synchronizes the cleaned massive data to the target source database for use in actual business scenarios.
[0055] like Figure 3As shown, the present invention performs detailed operations on data in the data ETL process in the big data platform. The schematic flow includes the specific flow of data after the present invention is added to the data ETL process of the big data platform. It also reflects the specific step in which the data is encrypted during the data ETL operation process in the big data platform. The specific process is as follows:
[0056] (1) The intermediate database in the big data platform completes the cleaning of massive raw data;
[0057] (2) The intermediate database in the big data platform synchronizes the cleaned database to the target source database;
[0058] (3) The data identification module 1 of the transparent encryption and decryption system based on the big data platform of the present invention will identify important data during the process of synchronizing the cleaned data to the target source database in the intermediate database of the big data platform;
[0059] (4) The data encryption and decryption module 3 of the transparent encryption and decryption system based on the big data platform of the present invention performs data encryption operation on the identified important data
[0060] (5) The transparent encryption and decryption system based on the big data platform of the present invention synchronizes the encrypted important data to the destination source database.
[0061] like Figure 4 As shown, in the present invention, in the big data platform, when the data has been stored in the database in the form of ciphertext, the flow of the data to the outside and the location where the decryption operation is performed are specifically as follows:
[0062] (1) Important data is already stored in the target source database in the big data platform in the form of encrypted text;
[0063] (2) The actual business request requests the data in the target source database;
[0064] (3) The data identification module 1 of the transparent encryption and decryption system based on the big data platform of the present invention identifies the data returned by the actual business request and determines whether there is important data;
[0065] (4) When the data identification module 1 of the transparent encryption and decryption system based on the big data platform of the present invention identifies that the returned data contains important data, the data encryption and decryption module 3 of the transparent encryption and decryption system based on the big data platform of the present invention will first decrypt the important data to obtain the plain text of the important data;
[0066] (5) The decrypted data is returned normally to the actual business request.
[0067] The present invention has a reasonable concept and can effectively solve the data security problem of big data platform technology in the current Internet environment. It can effectively perform transparent encryption and decryption operations on data in the data ETL process in the big data platform technology, so that the data can be stored in the form of ciphertext in the final storage database, thereby maximally improving the security, reliability and compliance of the data and protecting massive data.
[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A transparent encryption and decryption system based on a big data platform, characterized by: The transparent encryption and decryption system includes a data identification module, a data source adaptation module, a data encryption and decryption module, a heartbeat detection module and a HA automatic switching module; The data identification module is used to identify important data in the big data platform; The data source adapter module is used to make a compatibility with various data sources in the data ETL process of the big data platform; The encryption and decryption module is used to perform encryption and decryption operations on important data in the big data platform, and is a module that specifically executes important data; The heartbeat detection module is used to detect a heartbeat of the transparent encryption and decryption system itself; The HA automatic switching module is used to ensure the high availability of the transparent encryption and decryption system.
2. The transparent encryption and decryption system based on a big data platform as claimed in claim 1, characterized in that: The data identification module can identify important data that needs to be encrypted from the massive data on the big data platform. The user only needs to configure the database location and data table location of the important data in the data identification module.
3. The transparent encryption and decryption system based on a big data platform as claimed in claim 1, characterized in that: The data identification module supports the function of customizing important data. Users can customize the data identified as important in the business system according to the actual business needs of the application system that needs to encrypt and decrypt data. When data is defined as important data, the data will be identified.
4. The transparent encryption and decryption system based on a big data platform as claimed in claim 1, characterized in that: The data source adapter module is compatible with common databases currently on the market, and can accurately perform various operations on data in various types of databases.
5. The transparent encryption and decryption system based on a big data platform as claimed in claim 1, characterized in that: The encryption and decryption module can provide cryptographic algorithms including symmetric algorithm national secret SM4, international algorithms DES and AES, asymmetric algorithm national secret SM2, international algorithm RSA, and data hash algorithm national secret SM3, international algorithms MD5 and SHA-1; and the cryptographic algorithms are mainly based on national secret algorithms.
6. The transparent encryption and decryption system based on a big data platform as claimed in claim 5, characterized in that: The cryptographic algorithms provided by the encryption and decryption modules are all provided by hardware cryptographic devices.
7. The transparent encryption and decryption system based on a big data platform as claimed in claim 1, characterized in that: The heartbeat detection module starts running during the startup initialization phase. Every five seconds, the heartbeat detection module sends its own heartbeat to other associated modules in the transparent encryption and decryption system, so that the data identification module, the HA automatic switching module, the data source adaptation module and the data encryption and decryption module can know in real time whether the service is in a normal state. If the data identification module, the HA automatic switching module, the data source adaptation module and the data encryption and decryption module do not receive the heartbeat sent by the heartbeat detection module within five seconds, a module exception processing operation will be performed.
8. The transparent encryption and decryption system based on a big data platform as claimed in claim 1, characterized in that: When the service status of the transparent encryption and decryption system is abnormal and cannot provide data encryption and decryption operations, the HA automatic switching module will automatically switch the HA. However, during deployment, the transparent encryption and decryption system needs to be deployed on at least two server nodes, and the transparent encryption and decryption systems on the two server nodes need to configure their own IP addresses and ensure that the network policies between the two servers are interoperable. When the transparent encryption and decryption system is deployed on both server nodes, and the transparent encryption and decryption system on each server node is respectively configured with the IP address and port of the transparent encryption and decryption system on the other server node, HA automatic switching can be performed, and even if various abnormal situations occur, the transparent encryption and decryption system can provide normal data encryption and data decryption operations.
