Data processing method and related device
Through the secondary encryption of the global secret key and associated data, combined with the data splicing of the current encryption time, the problem of data leakage risk in the database is solved, and the security of the data and the difficulty of cracking are significantly improved.
Patent Information
- Application Number
- CN202410808696.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-10
AI Technical Summary
Data stored in clear text in the database is at risk of leakage. Simple password encryption methods are difficult to effectively protect data security, resulting in a greater risk of data being cracked.
The global secret key is used for the initial encryption, and the second encryption operation is performed based on part of the associated data and the current encryption time. Through data splicing and re-encryption, the complexity of data mixing and encryption is improved, and the risk of cracking is reduced.
Through secondary encryption and data splicing, data security is significantly improved, the risk of data leakage and cracking is reduced, and the storage security of data in the database is enhanced.
Smart Images

Figure CN118627094A
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial technology, and in particular to a data processing method and related devices. Background Art
[0002] As the storage capacity of databases continues to increase, more and more data is stored in the database. If the data in the database is stored in plain text, the risk of data leakage in the database is relatively high, resulting in the loss of customer data.
[0003] In order to improve the storage security of data in the database, data encryption can be used to encrypt the data to reduce the risk of data leakage. At present, when encrypting, a simple password encryption method is used, which has a greater risk of data being cracked and a lower data security. Summary of the invention
[0004] In view of the above problems, this application provides a data processing method and related devices to achieve the purpose of improving data storage security and reducing the risk of data leakage. The specific scheme is as follows:
[0005] The first aspect of the present application provides a data processing method, comprising:
[0006] Acquire target data; the target data is obtained by encrypting the maintenance data using a global key;
[0007] Determine associated data corresponding to the target data;
[0008] Using part of the associated data and the current encryption time, the target data is encrypted to obtain first data, and using part of the target data and the current encryption time, the associated data is encrypted to obtain second data;
[0009] Performing a concatenation operation on the first data and the second data to obtain third data;
[0010] Perform an encryption operation on the third data to obtain fourth data, and store the fourth data in a database.
[0011] In a possible implementation, obtaining target data includes:
[0012] Perform data merging operations on the maintenance data to obtain intermediate data;
[0013] Performing data compression and storage operations on the intermediate data to obtain data to be processed;
[0014] By filling the data to be processed with preset characters, the length of the data to be processed is expanded to a standard length to obtain data to be encrypted;
[0015] Using the global key, an encryption operation is performed on the data to be encrypted to obtain target data.
[0016] In a possible implementation, determining the associated data corresponding to the target data includes:
[0017] Acquire a data preparation set; the data preparation set includes the target data and designated target data in the same data encryption cycle as the target data;
[0018] Obtaining the obfuscation encryption level of the application system corresponding to the data preparation set;
[0019] According to the data grouping rule corresponding to the obfuscation encryption level, a grouping operation is performed on the data in the data preparation set to obtain a grouping result;
[0020] The designated target data in the grouping result and in the same group as the target data are used as associated data.
[0021] In a possible implementation, using part of the associated data and the current encryption time to perform an encryption operation on the target data to obtain the first data includes:
[0022] Extracting part of the data from the associated data;
[0023] Based on the current encryption time, the part of data is divided into multiple parts to obtain multiple sub-data;
[0024] Determining a filling position in the target data corresponding to the current encryption time;
[0025] The plurality of sub-data are filled into the target data according to the filling positions to obtain the first data.
[0026] In a possible implementation, storing the fourth data in a database includes:
[0027] According to the data amount of the field in the database, split the fourth data into a plurality of sub-encrypted data;
[0028] Determining whether sub-encrypted data corresponding to the maintenance data is stored in a database;
[0029] If so, updating the sub-encrypted data corresponding to the maintenance data stored in the database to the multiple sub-encrypted data obtained by splitting the fourth data;
[0030] If not, the plurality of sub-encrypted data obtained by splitting the fourth data are stored in the database.
[0031] A second aspect of the present application provides a data processing method, comprising:
[0032] In response to a query operation on the maintenance data, fourth data corresponding to the maintenance data is determined; the fourth data is encrypted according to the above data processing method;
[0033] Performing a decryption operation on the fourth data to obtain third data;
[0034] Splitting the first data corresponding to the maintenance data from the third data;
[0035] Based on the encryption method of the first data, decrypt the first data to obtain the target data;
[0036] The target data is decrypted using a global key to obtain maintenance data, and the maintenance data is displayed.
[0037] A third aspect of the present application provides a data processing device, including:
[0038] A data acquisition module, used to acquire target data; the target data is obtained by encrypting the maintenance data using a global secret key;
[0039] A data determination module, used to determine associated data corresponding to the target data;
[0040] A first encryption module, configured to use part of the associated data and the current encryption time to perform an encryption operation on the target data to obtain first data, and to use part of the target data and the current encryption time to perform an encryption operation on the associated data to obtain second data;
[0041] A splicing module, used for performing a splicing operation on the first data and the second data to obtain third data;
[0042] The second encryption module is used to perform an encryption operation on the third data to obtain fourth data, and store the fourth data in a database.
[0043] A fourth aspect of the present application provides a data processing device, including:
[0044] A data processing module, configured to respond to a query operation on the maintenance data and determine fourth data corresponding to the maintenance data; the fourth data is encrypted according to the data processing method according to any one of claims 1 to 5;
[0045] A first decryption module, used for performing a decryption operation on the fourth data to obtain third data;
[0046] A data splitting module, used for splitting the first data corresponding to the maintenance data from the third data;
[0047] A second decryption module, configured to decrypt the first data based on the encryption method of the first data to obtain target data;
[0048] The third decryption module is used to use the global key to perform a decryption operation on the target data to obtain maintenance data, and display the maintenance data.
[0049] A fifth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0050] The memory is used to store computer programs;
[0051] The processor is used to execute the computer program so that the electronic device can implement the above-mentioned data processing method.
[0052] A sixth aspect of the present application provides a computer storage medium, characterized in that the storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the above-mentioned data processing method.
[0053] By means of the above technical solution, the present application provides a data processing method and related devices. In the present application, when performing encryption operations on data, two encryption operations are implemented by using a global key for encryption, and using part of the content in the associated data and the current encryption time to perform encryption operations on the target data, thereby reducing the risk of data cracking and improving data security. Furthermore, after the second encryption operation, the present invention performs a splicing operation on the first data and the second data to obtain third data, and performs an encryption operation on the third data to obtain fourth data, thereby implementing data re-mixing and encryption, and further improving data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0055] Figure 1 A schematic diagram of a system architecture provided for this application;
[0056] Figure 2 A schematic diagram of the structure of a terminal provided for this application;
[0057] Figure 3 A schematic diagram of the structure of a server provided for this application;
[0058] Figure 4 A flowchart of a data processing method provided for this application;
[0059] Figure 5 A flowchart of a method for obtaining target data provided by the present application;
[0060] Figure 6 A flowchart of a method for determining associated data provided by the present application;
[0061] Figure 7 A flowchart of a method for determining first data provided by the present application;
[0062] Figure 8 A flowchart of another data processing method provided for this application;
[0063] Fig. 9 A schematic diagram of the structure of a data processing device provided in this application;
[0064] Fig.10 A schematic diagram of the structure of another data processing device provided by the present application;
[0065] Fig.11 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0066] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0067] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0068] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0069] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0070] See also Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a terminal 100 and a server 200. The server 200 may include one or more servers ( Figure 1 In the example, a server is included, and the server 200 can provide the method provided in the embodiment of the present application for one or more terminals.
[0071] Among them, a data processing application can be installed on the terminal 100, and the above application and web page can provide an interface. The terminal 100 can receive relevant parameters entered by the user on the data processing interface and send the above parameters to the server 200. The server 200 can obtain the processing results based on the received parameters and return the processing results to the terminal 100.
[0072] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the processing result based on the received parameters by itself without the cooperation of the server, and the embodiments of the present application are not limited to this.
[0073] Next describe Figure 1 The product form of the mid-terminal 100;
[0074] The terminal 100 in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiment of the present application does not impose any limitation on this.
[0075] Figure 2 An optional hardware structure diagram of the terminal 100 is shown.
[0076] refer to Figure 2As shown, the terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 2 These are merely examples of terminals or multi-function devices and do not constitute limitations on the terminals or multi-function devices, which may include more or fewer components than those shown in the figures, or combinations of certain components, or different components.
[0077] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the portable multifunctional device. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0078] Among them, the input device 132 can receive input data and the like.
[0079] The display unit 140 can be used to display information input by the user or provided to the user, various menus of the terminal 100, interactive interfaces, file display and / or playback of any multimedia file. In the embodiment of the present application, the display unit 140 can be used to display the interface of data processing, processing results, etc.
[0080] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.
[0081] The processor 170 is the control center of the terminal 100. It uses various interfaces and lines to connect various parts of the entire terminal 100. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the terminal 100 and processes data, thereby controlling the terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.
[0082] Among them, the memory 120 can be used to store software codes related to the data processing method, the processor 170 can execute the steps of the data processing method, and can also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to achieve corresponding functions.
[0083] The radio frequency unit 110 (optional) can be used for receiving and sending information or receiving and sending signals during a call, for example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0084] In this embodiment of the present application, the RF unit 110 can send data to the server 200 and receive processing results sent by the server 200.
[0085] It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network port.
[0086] The terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0087] The terminal 100 further includes an external interface 180 , which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal 100 to communicate with other devices, or to connect a charger to charge the terminal 100 .
[0088] Although not shown, the terminal 100 may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which are not described in detail here. Some or all of the methods described below may be applied in the following embodiments. Figure 2 In the terminal 100 shown.
[0089] Next describe Figure 1 The product form of the server 200;
[0090] Figure 3 A structural diagram of a server 200 is provided, such as Figure 3 As shown, the server 200 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other via the bus 201.
[0091] The bus 201 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0092] The processor 202 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0093] The memory 204 may include a volatile memory, such as a random access memory (RAM). The memory 204 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard drive (HDD), or a solid state drive (SSD).
[0094] The memory 204 may be used to store software codes related to the data processing method, and the processor 202 may execute the steps of the data processing method of the chip, and may also schedule other units to implement corresponding functions.
[0095] It should be understood that the above-mentioned terminal 100 and server 200 can be centralized or distributed devices, and the processors in the above-mentioned terminal 100 and server 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.
[0096] In actual applications, as the storage capacity of databases continues to increase, more and more data is stored in the database, such as the basic information of customers, financial transaction data of customers, or other confidential important data. If the data in the database is stored in plain text, the risk of data leakage in the database is relatively high, resulting in the loss of customer data.
[0097] In order to improve the storage security of data in the database, data encryption can be used to encrypt data and reduce the risk of data leakage. At present, when encrypting, a simple password encryption method is used, such as a simple number or letter encryption method. The encryption method is simple, the risk of data being cracked is greater, and the data security is low.
[0098] In order to improve the data encryption level and reduce the risk of data being cracked and leaked, in this embodiment, the encryption method is improved, and a two-time encryption scheme is adopted. When obtaining the maintenance data, the global key is used for the initial encryption to obtain the target data, and then the target data is encrypted for the second time using part of the content in the associated data and the current encryption time to obtain the first data, thereby improving the complexity of the password. In addition, the associated data is encrypted using part of the content in the target data and the current encryption time to obtain the second data. Then, the first data and the second data are concatenated to obtain the third data, thereby achieving data mixing and improving the complexity of data encryption. Subsequently, the third data is encrypted to obtain the fourth data, and the data security is improved and the risk of being cracked is reduced by the re-encryption operation.
[0099] From the above, it can be seen that the present invention complicates the encryption method by performing a secondary encryption operation on the data (one secret key encryption and one obfuscation encryption), and then performing a data splicing and mixing operation and encrypting it again, thereby increasing the difficulty of data cracking, reducing the risk of data leakage, and improving data security.
[0100] Based on the above content, this embodiment provides a data processing method and related devices. In this application, when encrypting data, two encryption operations are implemented by using a global key to encrypt, and using part of the content in the associated data and the current encryption time to encrypt the target data, thereby reducing the risk of data cracking and improving data security. Furthermore, after the second encryption operation, the present invention performs a splicing operation on the first data and the second data to obtain third data, and performs an encryption operation on the third data to obtain fourth data, thereby implementing data re-mixing and encryption, and further improving data security.
[0101] It should be noted that the data processing method and related devices provided by the present invention can be used in the field of network security or the financial field. The above is only an example and does not limit the application field of the data processing method and related devices provided by the present invention.
[0102] Based on the above content, an embodiment of the present invention provides a data processing method, which is applied to the above server 200. Figure 4 , the data processing method may include:
[0103] S11. Obtain target data.
[0104] The target data is obtained by encrypting the maintenance data using a global key.
[0105] In actual applications, users can perform data operations on the data in the application system, such as deletion, modification or addition, to achieve data maintenance.
[0106] Taking modification as an example, if the user modifies a certain data in the application system, then the data stored in the database needs to be modified accordingly.
[0107] After the user modifies a certain data, he clicks Save, and the client will obtain the maintained data. Then the maintained data can be encrypted for the first time on the client, or uploaded to the server for the first encryption of the maintained data.
[0108] In this embodiment, the server performs the initial encryption operation on the maintenance data as an example to illustrate the specific implementation of the initial encryption operation.
[0109] Reference Figure 5, obtaining target data may include:
[0110] S21. Perform a data merging operation on the maintenance data to obtain intermediate data.
[0111] In actual applications, after the user maintains the data on the client, he clicks the save operation and the maintained data can be uploaded to the server.
[0112] There may be spaces between each data in the maintenance data, or the data may be stored at intervals. In this embodiment, a plurality of independent data in the maintenance data are merged to obtain intermediate data.
[0113] S22: Perform data compression and storage operations on the intermediate data to obtain data to be processed.
[0114] In this embodiment, after the intermediate data is obtained, the amount of the intermediate data may be relatively large. In order to reduce the amount of data, a data compression storage operation is performed on the intermediate data to obtain the data to be processed.
[0115] S23, by filling the data to be processed with preset characters, the length of the data to be processed is expanded to a standard length to obtain data to be encrypted.
[0116] After the data to be processed is compressed and stored, the length of the data to be processed may not be the standard length. The standard length in this embodiment may be an integer byte length such as 8, 16, 24, etc. Therefore, in this embodiment, for the standardization of subsequent data processing, the data to be processed is filled with preset characters, such as spaces, so that the length of the data to be processed is the standard length.
[0117] For example, if the length of the data to be processed is 21 bytes, 3 bytes may be added to obtain the length of the data to be encrypted being 24 bytes.
[0118] It should be noted that if the length of the data to be processed is a standard length, the length expansion step in this embodiment can be omitted, and the data to be processed can be directly used as the data to be encrypted.
[0119] S24: Use the global key to perform an encryption operation on the data to be encrypted to obtain target data.
[0120] The global key in this embodiment may be a key for encryption that is pre-set by the user in the system and may be a combination of 6 digits or letters.
[0121] After obtaining the global key, the global key is directly used to perform encryption operations on the data to be encrypted to obtain the target data.
[0122] The target data will be stored in the background mixed storage module, and the target data will be marked as unobfuscated data.
[0123] It should be noted that the above embodiment is to obtain the target data by encrypting the maintenance data by the server. If the client encrypts the maintenance data, the encryption process is similar to the encryption process of the server, and only the encryption subject is different.
[0124] At this time, data confidentiality storage has a dual confidentiality mechanism. The first encryption is client-side encryption, and the second encryption is system-level encryption, that is, server-side encryption. Users can set the client-side encryption key in the management module before or after data maintenance, such as a combination of 6 digits or letters.
[0125] During the first encryption, the customer enters the maintenance data in the application system, and clicks Submit after the data maintenance is completed. The client pre-processes the submitted maintenance data, including merging multiple independent data items, compressing and storing the data, and extending the length of the data; after the arrangement is completed, it is encrypted using the global key to obtain the converted ciphertext.
[0126] In this embodiment, when storing data, the ciphertext is sent to the server through data preprocessing and initial encryption on the client side. The server then performs association mapping and obfuscation on multiple data items to complete the final storage of the information, which can not only meet the client's usage requirements but also ensure the security of the data in the database.
[0127] S12: Determine the associated data corresponding to the target data.
[0128] In this embodiment, after obtaining the target data, an encryption operation on the server side is performed, that is, a second encryption operation. In the second encryption operation, it is necessary to obtain the associated data corresponding to the target data through an associated interactive matching operation, and use the associated data to perform an encryption operation on the target data.
[0129] In this embodiment, first determine the associated data corresponding to the target data, refer to Figure 6 , which may include:
[0130] S31. Obtain a data preparation set.
[0131] The data preparation set includes the target data and designated target data that is in the same data encryption cycle as the target data.
[0132] In actual applications, when the initial state table is generated, the server can collect target data corresponding to the same application system, specifically, it can obtain target data of an application system from the background mixed storage module. After obtaining the target data, a data preparation set is constructed according to the data encryption cycle. Taking the data encryption cycle as 5 seconds, the target data of every 5 seconds is combined to obtain a data preparation set, that is, the data preparation set includes all target data collected within 5 seconds.
[0133] In order to facilitate the distinction of target data in the data preparation set, in this embodiment, for one target data, the data preparation set is set, and other target data other than the target data is referred to as designated target data.
[0134] It should be noted that if there are multiple application systems, the data preparation sets of different application systems are stored separately, and the subsequent data encryption operations are performed separately.
[0135] S32. Obtain the obfuscation encryption level of the application system corresponding to the data preparation set.
[0136] In actual applications, the data preparation set corresponds to the application system, including the target data obtained by encrypting the maintenance data generated by the application system. Then the data preparation set has a corresponding application system, and its corresponding application system can be determined based on the corresponding relationship between the data preparation set and the application system.
[0137] For the application system, an obfuscation encryption level is set for each application system, and the obfuscation encryption level can be 1, 2, 3, etc. The higher the obfuscation encryption level, the higher the encryption level required for the data, and the more complex the obfuscation encryption method used.
[0138] The obfuscation encryption level corresponding to each application system can be pre-stored in the database and can be directly obtained when used.
[0139] S33. According to the data grouping rule corresponding to the obfuscation encryption level, a grouping operation is performed on the data in the data preparation set to obtain a grouping result.
[0140] In practical applications, different obfuscation encryption levels correspond to different data grouping rules. For example, if the obfuscation encryption level is level 1, in the data grouping rules, the target data are grouped in pairs, and the mapping relationship of the grouped target data (that is, which target data are in the same group) is added to the association relationship mapping table.
[0141] In this data grouping rule, grouping rules are also configured, such as random grouping in pairs, or specifying two serial number data to form a group, such as the first target data and the third target data to form a group, and the fifth target data and the seventh target data to form a group.
[0142] If the obfuscation encryption level is level 2, in the data grouping rule, the target data is randomly grouped in groups of three, and the mapping relationship of the grouped target data is added to the association relationship mapping table.
[0143] If the obfuscation encryption level is level 3, in the data grouping rule, the target data is randomly grouped into four groups, and the mapping relationship of the grouped target data is added to the association relationship mapping table.
[0144] It should be noted that, at different obfuscation encryption levels, the number of target data in the same group can be configured according to actual conditions.
[0145] In this embodiment, after obtaining the data grouping rule, the data in the data preparation set is grouped using the data grouping rule to obtain a grouping result, which may be the above-mentioned association relationship mapping table.
[0146] For example, the obfuscation encryption level of the application system corresponding to the target data in this embodiment is level one, and random grouping is adopted when grouping.
[0147] If the number of target data is 20, 10 groups can be obtained by randomly grouping them in pairs. If the number of target data is an odd number, such as 19, 10 groups can be obtained by randomly grouping them in pairs, and the last group has only one target data.
[0148] S34: taking the designated target data in the grouping result and in the same group as the target data as associated data.
[0149] In this embodiment, after grouping, for the target data in this embodiment, the designated target data in the same group as the data is taken as the associated data.
[0150] For example, the target data in this embodiment is A. If the data is grouped in pairs, then in this embodiment, B in the same group as A is used as the associated data. If the data is grouped in pairs, then in this embodiment, B and C in the same group as A are used as the associated data.
[0151] S13. Using part of the content in the associated data and the current encryption time, encrypt the target data to obtain first data, and using part of the content in the target data and the current encryption time, encrypt the associated data to obtain second data.
[0152] In this embodiment, after the associated data is determined, the associated data can be used to perform encryption operations on the target data. At the same time, the target data can also be used to perform encryption operations on the associated data, that is, by obfuscating the encryption method, the complexity of data encryption is increased, thereby reducing the risk of data leakage and improving data security.
[0153] Reference Figure 7 , using part of the content in the associated data and the current encryption time to encrypt the target data to obtain the first data, may include:
[0154] S41, extracting part of the data from the associated data.
[0155] In this embodiment, the interception rule may be preset, and the interception rule may be, for example, intercepting the first 8 bits of the associated data, or intercepting the last 8 bits of the associated data, or intercepting the first 4 bits and the last 4 bits of the associated data.
[0156] The data interception position can be set according to actual conditions. The number of data interception bits needs to be a multiple of 4. The 4 in this embodiment refers to the number of time bits. Generally, the year and month of the time are not considered, only the hour and minute are considered, such as 12.34 minutes, then the hour and minute occupy a total of 4 bits. The intercepted data needs to be split into 4 parts (the total number of bits occupied by the hour and minute) later. Therefore, the number of data interception bits needs to be a multiple of 4.
[0157] S42. Based on the current encryption time, the part of the data is divided into multiple parts to obtain multiple sub-data.
[0158] In this embodiment, the current encryption time is obtained, such as 12.34 minutes as mentioned above. The hour and minute occupy 4 bits in total. Therefore, the intercepted partial data is divided into 4 parts to obtain four sub-data.
[0159] S43. Determine a filling position in the target data corresponding to the current encryption time.
[0160] In this embodiment, still taking the above-mentioned current encryption time of 12.34 minutes as an example, each digit of the current encryption time can be used as a filling position, that is, the filling positions are the first digit, the second digit, the third digit and the fourth digit.
[0161] S44. Fill the plurality of sub-data into the target data according to the filling positions to obtain first data.
[0162] In specific implementation, it can be known from the above content that there are four sub-data, and the filling positions are the first, second, third and fourth positions. When filling data subsequently, the four sub-data are added to the target data in sequence.
[0163] In detail, if the number of bits of the target data is 24 bits, for example, the first bit of the target data is determined, the original first bit is shifted back, a new first bit is vacated, and the first sub-data is added to the new first bit, so that the target data becomes 25 bits. Then the second bit of the 25-bit target data is filled with the second sub-data to obtain 26-bit target data. Then the third bit of the 26-bit target data is filled with the third sub-data to obtain 27-bit target data. Finally, the fourth bit of the 27-bit target data is filled with the fourth sub-data to obtain 28-bit target data.
[0164] In this embodiment, when filling the data content, the current encryption time is used, so that the number of encryption bits during data encryption is irregular, thereby increasing the complexity of data encryption.
[0165] After obtaining the first data, the associated data is encrypted using part of the target data and the current encryption time to obtain the second data, the implementation process of which is the same as the generation process of the first data.
[0166] It should be noted that the generation process of the first data and the second data can be performed sequentially, that is, the first data is generated first, and then the second data is generated. In addition, they can also be performed simultaneously, that is, the first data and the second data are generated simultaneously. In addition, the second data can be generated first, and then the first data is generated. The specific method to be used depends on the actual configuration.
[0167] S14: performing a concatenation operation on the first data and the second data to obtain third data.
[0168] In this embodiment, in order to increase the encryption complexity, the first data and the second data are mixed together. When mixing, the first data and the second data can be spliced together, such as splicing the second data to the first data to obtain the third data.
[0169] S15. Perform an encryption operation on the third data to obtain fourth data, and store the fourth data in a database.
[0170] Specifically, after obtaining the third data, in order to further improve data security, the third data may be encrypted, such as by using a DES (Data Encryption Standard) encryption algorithm or other encryption algorithms to obtain fourth data.
[0171] After the fourth data is obtained, it is necessary to store the fourth data in a database. In practical applications, a plurality of fields are stored in a data table in a database, and the maximum amount of data in each field is a set value, such as 32 bits. If the fourth data is directly stored in a certain field, the amount of data of the fourth data is large and the amount of data in the field cannot support it. Therefore, in this embodiment, the fourth data is split and then stored in the field.
[0172] Specifically, storing the fourth data in a database may include:
[0173] 1) According to the data amount of the field in the database, the fourth data is split into a plurality of sub-encrypted data.
[0174] In practical applications, the data size of the field may be the maximum data size, such as 32 bits as mentioned above, and then the fourth data is evenly divided into a plurality of 32-bit sub-encrypted data.
[0175] It should be noted that, since the data size of the fourth data may not be an integer multiple of 32, the number of data bits of the last sub-encrypted data obtained by segmentation is allowed to be less than 32.
[0176] In this embodiment, the sub-encrypted data obtained by segmentation or the fourth data before segmentation can constitute a confusion set.
[0177] 2) Determine whether sub-encrypted data corresponding to the maintenance data is stored in the database.
[0178] In actual applications, if a user adds, deletes or modifies a data item in an existing form in the application system, the maintenance data at this time is still the original form. Since the original form has been stored in the database, the database will contain sub-encrypted data corresponding to the maintenance data.
[0179] If the user adds a new form in the application system, the sub-encrypted data corresponding to the form is not stored in the database.
[0180] Therefore, in this embodiment, it is necessary to determine whether sub-encrypted data corresponding to the maintenance data is stored in the database to determine whether to perform a new addition operation or an update operation.
[0181] 3) Updating the sub-encrypted data corresponding to the maintenance data stored in the database to the multiple sub-encrypted data obtained by splitting the fourth data.
[0182] Specifically, if sub-encrypted data corresponding to the maintenance data is stored in the database, an update operation needs to be performed to update the sub-encrypted data corresponding to the maintenance data stored in the database to multiple sub-encrypted data obtained by splitting the fourth data.
[0183] 4) storing the multiple sub-encrypted data obtained by splitting the fourth data into the database.
[0184] Specifically, if the sub-encrypted data corresponding to the maintenance data is not stored in the database, a new adding operation needs to be performed to store the multiple sub-encrypted data obtained by splitting the fourth data into the database, with each sub-encrypted data being stored in a field.
[0185] It should be noted that in order to monitor the changes of data items in the application system, snapshots of data items deleted by customers can be saved, and the deleted data items can be updated regularly, such as every 5 seconds as mentioned above, and the snapshots before deletion can be physically deleted after the update is completed.
[0186] In this embodiment, when performing encryption operations on data, two encryption operations are performed by using a global key for encryption, and using part of the associated data and the current encryption time to perform encryption operations on the target data, thereby reducing the risk of data cracking and improving data security. Furthermore, after the second encryption operation, the present invention performs a splicing operation on the first data and the second data to obtain third data, and performs an encryption operation on the third data to obtain fourth data, thereby achieving data re-mixing and encryption, and further improving data security.
[0187] In order to enable those skilled in the art to more clearly understand the present invention, the implementation process of the present invention is now described with examples. In this embodiment, data confidentiality storage adopts a dual confidentiality mechanism, the first encryption is client-side encryption, and the second encryption is system-level encryption.
[0188] 1. First encryption:
[0189] After the customer adds, deletes, or modifies data in the application system, he / she submits the maintenance data after entering it. Subsequently, the global key for customer-side encryption can be set in the management module, such as a combination of 6 digits or letters.
[0190] The client pre-processes the submitted maintenance data, including merging multiple independent data items, compressing and storing the data, and extending the length of the data. After the sorting is completed, the data is encrypted using the global key to obtain the converted ciphertext, which is called the target data in this embodiment.
[0191] The target data is sent to the background mixed storage module and the data is marked as unobfuscated data.
[0192] 2. Correlate and match the received multiple target data. The working method of the second encryption obfuscation is as follows:
[0193] Construct the preparation set and confusion set, and put the received target data into the preparation set in the initial state.
[0194] For the data in the preparation set, the data is associated and mapped in the preparation set according to the obfuscation encryption level of the application system, and the data is grouped during mapping. If the obfuscation encryption level is level 1 (the higher the level, the more complex the obfuscation), the data is randomly grouped in pairs, and the grouped data is added to the association relationship mapping table.
[0195] Traverse the grouped data of the association relationship mapping table (such as A and B, encrypt A first), intercept the associated item B of the grouped data, intercept part of the associated grouped data item B and fill it into A according to the current encryption time, so as to realize the irregular addition of A data content.
[0196] The above method is used to fill the content of data item B. After A and B are filled, A and B are concatenated and encrypted with DES (or other encryption algorithms). After encryption, the data is evenly divided and the divided data is stored in the database.
[0197] Monitor changes in data items, save snapshots of data items deleted by customers, and regularly update the database data for deleted data items according to the above steps. After the update is completed, physically delete the snapshot before deletion.
[0198] In this embodiment, a data confidentiality storage solution based on associated interactive matching is established, which can double encrypt data on the client side and the system side during confidential storage, store the encrypted obfuscated content, improve the data protection level, and thus prevent the data from being deciphered when the data is stolen.
[0199] The above embodiment mainly introduces how to encrypt data and store it in the database when storing addition, deletion and modification operations. If a query is obtained for the data, the data in the database needs to be decrypted and displayed to the user. The decryption process is the reverse operation of the encryption process. This embodiment provides another data processing method, which mainly introduces the decryption operation. Figure 8 , which may include:
[0200] S51. In response to a query operation on maintenance data, determine fourth data corresponding to the maintenance data.
[0201] The fourth data is encrypted according to the above data processing method.
[0202] If the user wants to query a certain maintenance data on the client, he can click on the maintenance data, and the server can receive the query instruction and determine the fourth data corresponding to the maintenance data in the database. Since the fourth data has been split into multiple sub-encrypted data and stored in different fields, it is necessary to combine the multiple sub-encrypted data in different fields to obtain the complete fourth data.
[0203] S52: Perform a decryption operation on the fourth data to obtain third data.
[0204] If the DES encryption algorithm is used during encryption, a decryption algorithm corresponding to the DES encryption algorithm is used to perform a decryption operation on the fourth data to obtain the third data.
[0205] S53: Split the first data corresponding to the maintenance data from the third data.
[0206] In actual applications, during encryption, when the first data and the second data are concatenated to obtain the third data, the data lengths of the first data and the second data, as well as the concatenation order of the first data and the second data are recorded. Therefore, it is possible to determine whether the first data comes first or last according to the concatenation order of the first data and the second data in the third data, and then extract the first data from the third data based on the data length.
[0207] S54. Based on the encryption method of the first data, decrypt the first data to obtain target data.
[0208] In this embodiment, taking the current encryption time of 12.34 as an example, after obtaining the first data, first delete the fourth bit to obtain new data, then delete the third bit of the new data to obtain another new data, delete the second bit of the new data to obtain another new data, and finally delete the first bit to obtain the target data.
[0209] S55. Use the global key to decrypt the target data to obtain maintenance data, and display the maintenance data.
[0210] Specifically, since the target data is obtained by encrypting the maintenance data using a global key, in this embodiment, the target data is decrypted using the global key to obtain the maintenance data, and then the maintenance data is displayed to the user, who can query the data. If the data is to be added, deleted, modified, or queried, the above-mentioned encryption scheme is used to encrypt it and store it in the database.
[0211] In this embodiment, through the decryption scheme, the encrypted data can be decrypted through a decryption operation and displayed to the user. Since the entire encryption process is complex, the security of the data in the database can be guaranteed, thereby ensuring the reliability and security of the query results provided to the user.
[0212] A data processing method provided in an embodiment of the present application is introduced above, and a device for executing the above data processing method will be introduced below.
[0213] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application. Fig. 9 As shown, the data processing device comprises:
[0214] The data acquisition module 11 is used to acquire target data; the target data is obtained by encrypting the maintenance data using a global key;
[0215] A data determination module 12, used to determine associated data corresponding to the target data;
[0216] A first encryption module 13 is used to use part of the associated data and the current encryption time to perform an encryption operation on the target data to obtain first data, and to use part of the target data and the current encryption time to perform an encryption operation on the associated data to obtain second data;
[0217] A splicing module 14, configured to perform a splicing operation on the first data and the second data to obtain third data;
[0218] The second encryption module 15 is used to perform an encryption operation on the third data to obtain fourth data, and store the fourth data in a database.
[0219] In a possible implementation, the data acquisition module 11 includes:
[0220] The merging submodule is used to perform data merging operations on the maintenance data to obtain intermediate data;
[0221] A compression submodule, used for performing data compression and storage operation on the intermediate data to obtain data to be processed;
[0222] A filling submodule, used for expanding the length of the data to be processed to a standard length by filling the data to be processed with preset characters to obtain data to be encrypted;
[0223] The encryption submodule is used to use the global secret key to perform an encryption operation on the data to be encrypted to obtain target data.
[0224] In a possible implementation, the data determination module 12 includes:
[0225] A data set acquisition submodule is used to acquire a data preparation set; the data preparation set includes the target data and the specified target data in the same data encryption cycle as the target data;
[0226] A level acquisition submodule, used to obtain the obfuscation encryption level of the application system corresponding to the data preparation set;
[0227] A grouping submodule, used to perform a grouping operation on the data in the data preparation set according to the data grouping rule corresponding to the obfuscation encryption level to obtain a grouping result;
[0228] The data determination submodule is used to take the designated target data in the grouping result that is in the same group as the target data as the associated data.
[0229] In a possible implementation, the first encryption module 13 includes:
[0230] A data interception submodule, used to intercept part of the data from the associated data;
[0231] A first data splitting submodule is used to split the partial data into multiple parts based on the current encryption time to obtain multiple sub-data;
[0232] A position determination submodule, used to determine a filling position in the target data corresponding to the current encryption time;
[0233] The data encryption submodule is used to fill the multiple sub-data into the target data according to the filling position to obtain the first data.
[0234] In a possible implementation, the second encryption module 15 includes:
[0235] A second data splitting submodule, used for splitting the fourth data into a plurality of sub-encrypted data according to the data amount of the field in the database;
[0236] A judgment submodule, used for judging whether sub-encrypted data corresponding to the maintenance data is stored in the database;
[0237] an updating submodule, configured to update the sub-encrypted data corresponding to the maintenance data stored in the database to the multiple sub-encrypted data obtained by splitting the fourth data;
[0238] The storage submodule is used to store the multiple sub-encrypted data obtained by splitting the fourth data into the database if no.
[0239] In this embodiment, when performing encryption operations on data, two encryption operations are performed by using a global key for encryption, and using part of the associated data and the current encryption time to perform encryption operations on the target data, thereby reducing the risk of data cracking and improving data security. Furthermore, after the second encryption operation, the present invention performs a splicing operation on the first data and the second data to obtain third data, and performs an encryption operation on the third data to obtain fourth data, thereby achieving data re-mixing and encryption, and further improving data security.
[0240] It should be noted that, for the working process of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiment, which will not be repeated here.
[0241] See also Fig.10 , Fig.10 This is a schematic diagram of the structure of another data processing device provided in an embodiment of the present application. Fig.10 As shown, the data processing device comprises:
[0242] A data processing module, configured to respond to a query operation on the maintenance data and determine fourth data corresponding to the maintenance data; the fourth data is encrypted according to the data processing method according to any one of claims 1 to 5;
[0243] A first decryption module, used for performing a decryption operation on the fourth data to obtain third data;
[0244] A data splitting module, used for splitting the first data corresponding to the maintenance data from the third data;
[0245] A second decryption module, configured to decrypt the first data based on the encryption method of the first data to obtain target data;
[0246] The third decryption module is used to use the global key to perform a decryption operation on the target data to obtain maintenance data, and display the maintenance data.
[0247] In this embodiment, through the decryption scheme, the encrypted data can be decrypted through a decryption operation and displayed to the user. Since the entire encryption process is complex, the security of the data in the database can be guaranteed, thereby ensuring the reliability and security of the query results provided to the user.
[0248] The present application also provides an electronic device in an embodiment. Fig.11 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include but is not limited to fixed terminals such as mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Fig.11 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0249] like Fig.11 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can execute the above-mentioned data processing method according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0250] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig.11 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0251] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any data processing method provided in the embodiment of the present application.
[0252] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any data processing method provided in the embodiment of the present application.
[0253] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0254] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0255] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0256] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
Claims
1. A data processing method, characterized in that: include: Get target data; The target data is obtained by encrypting the maintenance data using a global key; Determine associated data corresponding to the target data; Using part of the associated data and the current encryption time, the target data is encrypted to obtain first data, and using part of the target data and the current encryption time, the associated data is encrypted to obtain second data; Performing a concatenation operation on the first data and the second data to obtain third data; Perform an encryption operation on the third data to obtain fourth data, and store the fourth data in a database.
2. The data processing method according to claim 1, characterized in that: Get target data, including: Perform data merging operations on the maintenance data to obtain intermediate data; Performing data compression and storage operations on the intermediate data to obtain data to be processed; By filling the data to be processed with preset characters, the length of the data to be processed is expanded to a standard length to obtain data to be encrypted; Using the global key, an encryption operation is performed on the data to be encrypted to obtain target data.
3. The data processing method according to claim 1, characterized in that: Determining the associated data corresponding to the target data includes: Acquire a data preparation set; the data preparation set includes the target data and designated target data in the same data encryption cycle as the target data; Obtaining the obfuscation encryption level of the application system corresponding to the data preparation set; According to the data grouping rule corresponding to the obfuscation encryption level, a grouping operation is performed on the data in the data preparation set to obtain a grouping result; The designated target data in the grouping result and in the same group as the target data are used as associated data.
4. The data processing method according to claim 1, characterized in that: Using part of the associated data and the current encryption time, performing an encryption operation on the target data to obtain first data, including: Extracting part of the data from the associated data; Based on the current encryption time, the part of data is divided into multiple parts to obtain multiple sub-data; Determining a filling position in the target data corresponding to the current encryption time; The plurality of sub-data are filled into the target data according to the filling positions to obtain the first data.
5. The data processing method according to claim 1, characterized in that: Storing the fourth data in a database comprises: According to the data amount of the field in the database, split the fourth data into a plurality of sub-encrypted data; Determining whether sub-encrypted data corresponding to the maintenance data is stored in a database; If so, updating the sub-encrypted data corresponding to the maintenance data stored in the database to the multiple sub-encrypted data obtained by splitting the fourth data; If not, the plurality of sub-encrypted data obtained by splitting the fourth data are stored in the database.
6. A data processing method, characterized in that: include: In response to a query operation on the maintenance data, determining fourth data corresponding to the maintenance data; The fourth data is encrypted according to the data processing method according to any one of claims 1 to 5; Performing a decryption operation on the fourth data to obtain third data; Splitting the first data corresponding to the maintenance data from the third data; Based on the encryption method of the first data, decrypt the first data to obtain the target data; The target data is decrypted using a global key to obtain maintenance data, and the maintenance data is displayed.
7. A data processing device, characterized in that: include: A data acquisition module, used to acquire target data; The target data is obtained by encrypting the maintenance data using a global key; A data determination module, used to determine associated data corresponding to the target data; A first encryption module, configured to use part of the associated data and the current encryption time to perform an encryption operation on the target data to obtain first data, and to use part of the target data and the current encryption time to perform an encryption operation on the associated data to obtain second data; A splicing module, used for performing a splicing operation on the first data and the second data to obtain third data; The second encryption module is used to perform an encryption operation on the third data to obtain fourth data, and store the fourth data in a database.
8. A data processing device, characterized in that: include: A data processing module, configured to respond to a query operation on the maintenance data and determine fourth data corresponding to the maintenance data; The fourth data is encrypted according to the data processing method according to any one of claims 1 to 5; A first decryption module, used for performing a decryption operation on the fourth data to obtain third data; A data splitting module, used for splitting the first data corresponding to the maintenance data from the third data; A second decryption module, configured to decrypt the first data based on the encryption method of the first data to obtain target data; The third decryption module is used to use the global key to perform a decryption operation on the target data to obtain maintenance data, and display the maintenance data.
9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the data processing method according to any one of claims 1 to 5, or implement the data processing method according to claim 6.
10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, which, when executed by an electronic device, enable the electronic device to implement the data processing method as described in any one of claims 1 to 5, or the data processing method as described in claim 6.
Citation Information
Cited By
Virtual power plant data security protection method, platform, equipment and system based on cloud computing platform
CN119299147A
Virtual power plant data security protection method, platform, device and system based on cloud computing platform
CN119299147B
