Data processing method, device, system, computing device and medium

By decoupling the data encryption process, the encryption details are independently processed by using the key management device, the problems of large coupling between data encryption programs and systems and data leakage in the prior art are solved, and high portability and data security are achieved.

CN112329026BActive Publication Date: 2024-11-15BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202010606788.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2024-11-15
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

In the prior art, data encryption programs are highly coupled with the system, resulting in multiple developments required when expanding the business, repeated codes are repeated, and the workload is large. In addition, R&D personnel understand encryption details, cannot prevent employees from leaking secrets, affecting data confidentiality.

Method used

Through the data processing method, the original data and key ciphertext are obtained, the pending data is determined, and sent to the key management device for encryption or decryption operations. The decoupling of the encryption process is based on the original system logic, and the specific encryption details are independent The key management device is processed, and the R&D personnel cannot know.

Benefits of technology

It realizes the automation and decoupling of the data encryption and decryption process, improves portability and reusability, prevents employee leaks, and enhances data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112329026B_ABST
    Figure CN112329026B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data processing method performed by a data processing device, including: obtaining original data, a configuration file, and a key ciphertext assigned by a key management device; determining data to be processed from the original data; sending the data to be processed and the key ciphertext to the key management device, and according to the configuration file, requesting the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; receiving the target data from the key management device; and replacing the data to be processed in the original data with the target data. The present disclosure also provides a data processing device, a system, a computing device, and a medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically, to a data processing method, apparatus, system, computing device, and medium. Background Art

[0002] In order to prevent the sensitive data stored in the database from being leaked due to intrusion into the database, it is necessary to encrypt the sensitive data when storing it. The related technology develops a customized program for the data to be encrypted, which is used to encrypt or decrypt the data separately.

[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related technology: the developed program is highly coupled with the system, and because it is a customized development, when the business expands, the content that needs to be encrypted increases, and multiple developments must be done, with too much repeated code and a large workload. In addition, the R&D personnel know all the encryption details, and it is impossible to prevent employees from leaking information, which is not conducive to data confidentiality. Summary of the invention

[0004] In view of this, the present disclosure provides a data processing method, apparatus, system, computing device and medium.

[0005] One aspect of the present disclosure provides a data processing method performed by a data processing device, including: acquiring original data, a configuration file, and a key ciphertext assigned by a key management device; determining data to be processed from the original data; sending the data to be processed and the key ciphertext to the key management device, and according to the configuration file, requesting the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; receiving the target data from the key management device; and replacing the data to be processed in the original data with the target data.

[0006] According to an embodiment of the present disclosure, requesting the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain the target data according to the configuration file includes: determining the plaintext field and the ciphertext field corresponding to the data to be processed in the configuration file; if the plaintext field is not empty and the ciphertext field is empty, requesting the key management device to perform an encryption operation on the data to be processed according to the key ciphertext to obtain the target data; if the plaintext field is empty and the ciphertext field is not empty, requesting the key management device to perform a decryption operation on the data to be processed according to the key ciphertext to obtain the target data.

[0007] According to an embodiment of the present disclosure, determining the data to be processed from the original data includes: when the original data is not of a basic type, decomposing the original data into at least one basic type of data as the data to be processed, wherein the basic type includes one of the following: integer type, floating point type, character type and Boolean type; and when the original data is of a basic type, using the original data as the data to be processed.

[0008] According to an embodiment of the present disclosure, the original data includes inbound data or outbound data of a database.

[0009] One aspect of the present disclosure provides a data processing method performed by a key management device, comprising: a data processing method performed by a key management device, comprising: allocating a key ciphertext to a data processing device; receiving data to be processed and the key ciphertext from the data processing device; performing an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; and sending the target data to the data processing device.

[0010] According to an embodiment of the present disclosure, performing an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data includes: decrypting the key ciphertext to obtain key plaintext; obtaining a target algorithm; and performing an encryption operation or a decryption operation on the data to be processed using the target algorithm and the key plaintext to obtain the target data.

[0011] Another aspect of the present disclosure provides a data processing device, including: an acquisition module, used to acquire original data, a configuration file and a key ciphertext assigned by a key management device; a determination module, used to determine the data to be processed from the original data; a request module, used to send the data to be processed and the key ciphertext to the key management device, and according to the configuration file, request the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; a receiving module, used to receive the target data from the key management device; and a replacement module, used to replace the data to be processed in the original data with the target data.

[0012] Another aspect of the present disclosure provides a data processing system, including: a data processing device, configured to obtain original data, a configuration file, and a key ciphertext assigned by a key management device; determine the data to be processed from the original data; send the data to be processed and the key ciphertext to the key management device, and according to the configuration file, request the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; receive the target data from the key management device; and replace the data to be processed in the original data with the target data; and a key management device, configured to assign a key ciphertext to the data processing device; receive the data to be processed and the key ciphertext from the data processing device; perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain the target data; and send the target data to the data processing device.

[0013] Another aspect of the present disclosure provides a computing device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.

[0014] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.

[0015] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the method described above when executed.

[0016] According to the data processing method of the embodiment of the present disclosure, data can be automatically encrypted or decrypted according to the configuration file, and the encryption and decryption process is decoupled from the original system logic, with high portability and reusability. In addition, the specific encryption or decryption process is performed by a key management device independent of the data processing device, and the R&D personnel of the data processing device cannot know the encryption details, thereby preventing employees from leaking secrets and increasing data security. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0018] Figure 1 An exemplary system architecture to which a data processing method according to an embodiment of the present disclosure can be applied is schematically shown;

[0019] Figure 2A flowchart schematically shows a data processing method executed by a data processing device according to an embodiment of the present disclosure;

[0020] Figure 3 A flowchart schematically shows a data processing method executed by a key management device according to an embodiment of the present disclosure;

[0021] Figure 4 A schematic diagram schematically shows a data processing method according to another embodiment of the present disclosure;

[0022] Figure 5 A block diagram schematically shows a data processing system according to an embodiment of the present disclosure; and

[0023] Figure 6 The block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0024] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0025] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0026] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0027] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0028] The embodiment of the present disclosure provides a data processing method and a device capable of applying the method. The method includes obtaining original data, a configuration file, and a key ciphertext assigned by a key management device; determining data to be processed from the original data; sending the data to be processed and the key ciphertext to the key management device, and according to the configuration file, requesting the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; receiving the target data from the key management device; and replacing the data to be processed in the original data with the target data.

[0029] Figure 1 The exemplary system architecture 100 to which the data processing method according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0030] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a data processing device 101 and a key management device 102 .

[0031] The key management device 102 may be, for example, a key management server (KMS). KMS can be deployed in the cloud, independent of the data processing device, and is responsible for the distribution and storage of keys (Key), as well as the implementation of encryption / decryption algorithms. During the encryption and decryption process, the program in the data processing device 101 will send the key ciphertext assigned by the KMS to the KMS, requesting the KMS to determine the key plaintext based on the key ciphertext and use the key plaintext to encrypt and decrypt the data. The process of determining the key plaintext needs to be verified by the KMS authority. The specific encryption algorithm is determined by the KMS, and the encryption algorithm can be changed periodically.

[0032] The data processing device 101 can be used to obtain the original data, and determine the data to be processed that needs to be encrypted or decrypted in the original data according to the configuration file. Then the key management device 102 is requested to encrypt or decrypt the data to be processed accordingly to obtain the target data. Finally, the data to be processed in the original data is replaced with the target data. For example, the data processing device 101 can request the key management device 102 to encrypt the incoming data stream according to the configuration file to obtain the corresponding ciphertext data stream, and request the key management device 102 to decrypt the outgoing ciphertext data stream to obtain the corresponding plaintext data stream.

[0033] Figure 2 The flowchart schematically shows a data processing method executed by a data processing device according to an embodiment of the present disclosure.

[0034] like Figure 2 As shown, the method includes operations S210 to S250.

[0035] More specifically, in operation S210, original data, a configuration file, and a key ciphertext assigned by a key management device are acquired.

[0036] According to an embodiment of the present disclosure, the original data may include, for example, the incoming data or the outgoing data of the database. It should be noted that, according to other embodiments of the present disclosure, the original data may also include other data that needs to be encrypted or decrypted in addition to the incoming data and the outgoing data. This application does not specifically limit this.

[0037] Then, in operation S220, data to be processed is determined from the original data.

[0038] According to an embodiment of the present disclosure, when the original data is not of a basic type, the original data can be disassembled into at least one basic type of data as data to be processed, wherein the basic type includes one of the following: integer, floating point, character, and Boolean. When the original data is of a basic type, the original data is used as data to be processed.

[0039] For example, for data types with nested structures such as list, map, and bean that do not belong to basic types, the data of these data types are disassembled into the most fine-grained basic type data.

[0040] In operation S230, the data to be processed and the key ciphertext are sent to the key management device, and according to the configuration file, the key management device is requested to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data.

[0041] According to an embodiment of the present disclosure, the plaintext field and ciphertext field corresponding to the data to be processed can be determined in the configuration file; if the plaintext field is not empty and the ciphertext field is empty, the key management device is requested to perform an encryption operation on the data to be processed according to the key ciphertext to obtain the target data; if the plaintext field is empty and the ciphertext field is not empty, the key management device is requested to perform a decryption operation on the data to be processed according to the key ciphertext to obtain the target data.

[0042] In operation S240, target data is received from the key management device.

[0043] In operation S250, the data to be processed in the original data is replaced with the target data.

[0044] According to an embodiment of the present disclosure, the encrypted / decrypted data can be written back to the original data by Java reflection or other technologies to replace the data to be processed with the target data. According to other embodiments of the present disclosure, other programming languages ​​other than Java can also be used to write the encrypted / decrypted data back to the original data.

[0045] According to an embodiment of the present disclosure, Figure 2 The method shown can be executed by a program module. The program module can be packaged in the form of a JAR (Java Archive) package. For a program project that needs to add encryption and decryption functions, the program module can be imported into the program project, and then the configuration items such as the fields, entry points, KMS (key management server) address and key ciphertext that need to be encrypted and decrypted in the configuration file can be configured. The program module will automatically read the configuration file and execute Figure 2 The program modules in the JAR package implement data encryption and decryption through aspects without intruding the original system code. Even if the JAR package is deleted, the original system is still available, thereby achieving system deconstruction.

[0046] According to the data processing method of the embodiment of the present disclosure, data can be automatically encrypted or decrypted according to the configuration file, and the encryption and decryption process is decoupled from the original system logic, with high portability and reusability. In addition, the specific encryption or decryption process is performed by a key management device independent of the data processing device, and the R&D personnel of the data processing device cannot know the encryption details, thereby preventing employees from leaking secrets and increasing data security.

[0047] Figure 3 The flowchart schematically shows a data processing method executed by a key management device according to an embodiment of the present disclosure.

[0048] like Figure 3 As shown, the method includes operations S310 to S340.

[0049] More specifically, in operation S310, a key ciphertext is distributed to the data processing device.

[0050] In operation S320, data to be processed and key ciphertext are received from a data processing device.

[0051] In operation S330, an encryption operation or a decryption operation is performed on the data to be processed according to the key ciphertext to obtain target data.

[0052] According to an embodiment of the present disclosure, operation S330 may, for example, include decrypting a key ciphertext to obtain a key plaintext; acquiring a target algorithm; and performing an encryption operation or a decryption operation on the data to be processed using the target algorithm and the key plaintext to obtain target data.

[0053] According to an embodiment of the present disclosure, the entire encryption or decryption process can be encapsulated in a memory to ensure the privacy of the process.

[0054] In operation S340, the target data is transmitted to the data processing device.

[0055] Reference below Figure 4 , taking the encryption and decryption of the storage database as an example Figure 2-3 The method shown is further explained. Those skilled in the art will understand that the following example embodiments are only used to understand the present disclosure, and the present disclosure is not limited thereto. In the process of actual application, the above data processing method can be used in various data storage scenarios with encryption or decryption requirements, where the entry point is configurable and can be processed in multiple processes, depending on the specific project.

[0056] Figure 4 A schematic diagram of a data processing method according to another embodiment of the present disclosure is schematically shown.

[0057] like Figure 4As shown in the figure, controller represents the controller layer, service represents the service layer, dao (data access object) represents the data access object, and DB (Database) represents the database. The data processing device is configured with a JAR package and a configuration file for executing the data processing method.

[0058] In step A, apply for KMS permission to obtain the key ciphertext. Read the configuration file through the program module in the JAR package, set the section before entering the database to intercept the input and output data of the database.

[0059] In step B, data analysis is performed on the intercepted data to determine the data type. If the data is not of a basic type, recursive processing is performed to decompose the data into data of a basic type.

[0060] In step C, which data needs to be encrypted and which data needs to be decrypted are analyzed according to the configuration file. If the plaintext field corresponding to the data is not empty and the ciphertext field is empty, the data needs to be encrypted; if the ciphertext field is not empty and the plaintext field is empty, the data needs to be decrypted; if none of the above conditions are met, no processing is required. Exemplarily, in this embodiment, the configuration file configures the plaintext field corresponding to the incoming data as non-empty and the ciphertext field as empty, and configures the plaintext field corresponding to the outgoing data as empty and the ciphertext field as non-empty.

[0061] In step D, the data to be processed and the key ciphertext held locally are sent to the KMS server to request the KMS server to encrypt or decrypt the data. The KMS server decrypts the received key ciphertext to obtain the key plaintext, and then uses the key plaintext to encrypt or decrypt the data. Encryption can be done in a symmetric encryption manner, and the encryption algorithm can use multiple algorithms such as AES, DES, IDEA, etc. The specific algorithm to be used can be determined by the KMS.

[0062] In step E, the KMS server sends the encrypted or decrypted data back to the program module. The program module writes the encrypted / decrypted data back to the original data through Java reflection and other technologies to obtain the final data, thus completing the data processing process.

[0063] Figure 5 A block diagram of a data processing system according to an embodiment of the present disclosure is schematically shown.

[0064] like Figure 5 As shown, the data processing system 500 includes an acquisition module 510 , a determination module 520 , a request module 530 , a receiving module 540 and a replacement module 550 .

[0065] The acquisition module 510 is used to acquire original data, configuration files and key ciphertexts allocated by the key management device.

[0066] The determination module 520 is used to determine the data to be processed from the original data.

[0067] The request module 530 is used to send the data to be processed and the key ciphertext to the key management device, and according to the configuration file, request the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain the target data.

[0068] The receiving module 540 is used to receive target data from the key management device.

[0069] The replacement module 550 is used to replace the data to be processed in the original data with the target data.

[0070] According to the data processing device of the embodiment of the present disclosure, the data can be automatically encrypted or decrypted according to the configuration file, and the encryption and decryption process is decoupled from the original system logic, which has high portability and reusability. In addition, the specific encryption or decryption process is performed by a key management device independent of the data processing device, and the R&D personnel of the data processing device cannot know the encryption details, thereby preventing employees from leaking secrets and increasing the security of data.

[0071] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0072] For example, any multiple of the acquisition module 510, the determination module 520, the request module 530, the receiving module 540, and the replacement module 550 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 510, the determination module 520, the request module 530, the receiving module 540, and the replacement module 550 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware or in an appropriate combination of any of them. Alternatively, at least one of the acquisition module 510, the determination module 520, the request module 530, the reception module 540 and the replacement module 550 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.

[0073] Figure 6 A block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 6 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0074] like Figure 6 As shown, the computer system 600 according to the embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.

[0075] In RAM 603, various programs and data required for the operation of system 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other through bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0076] According to an embodiment of the present disclosure, the system 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The system 600 may further include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0077] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0078] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0079] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0080] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0081] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0082] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A data processing method executed by a data processing device, wherein the data processing device is configured with a program module, and the program module is configured with an entry point, comprising: Acquire original data, a configuration file, and a key ciphertext assigned by a key management device, wherein the original data is data intercepted by the program module and passes through the entry point, and the configuration file includes a plaintext field and a ciphertext field; Determining data to be processed from the original data; Sending the data to be processed and the key ciphertext to the key management device, and requesting the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data according to the configuration file; receiving the target data from the key management device; and The data to be processed in the original data is replaced by the target data.

2. The method according to claim 1, wherein: The step of requesting the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data according to the configuration file includes: Determining, in the configuration file, a plaintext field and a ciphertext field corresponding to the data to be processed; If the plaintext field is not empty and the ciphertext field is empty, requesting the key management device to perform an encryption operation on the data to be processed according to the key ciphertext to obtain target data; If the plaintext field is empty and the ciphertext field is not empty, the key management device is requested to perform a decryption operation on the data to be processed according to the key ciphertext to obtain the target data.

3. The method according to claim 1, wherein: Determining the data to be processed from the original data includes: In the case that the original data is not of a basic type, the original data is decomposed into data of at least one basic type as the data to be processed, wherein the basic type includes one of the following: an integer type, a floating point type, a character type, and a Boolean type; and In the case that the original data is of a basic type, the original data is used as the data to be processed.

4. The method according to claim 1, wherein: The original data includes the incoming data or the outgoing data of the database.

5. A data processing method performed by a key management device, comprising: distributing a key ciphertext to a data processing device; Receiving the data to be processed and the key ciphertext from the data processing device, wherein the data to be processed is determined from data passing through an entry point intercepted by a program module configured in the data processing device; Performing an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; and The target data is sent to the data processing device.

6. The method according to claim 5, wherein: The performing an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data includes: Decrypting the key ciphertext to obtain the key plaintext; obtaining a target algorithm; and The target algorithm and the key plaintext are used to perform an encryption operation or a decryption operation on the data to be processed to obtain the target data.

7. A data processing device, the data processing device being configured with a program module, the program module being configured with an entry point, comprising: an acquisition module, used to acquire original data, a configuration file, and a key ciphertext assigned by a key management device, wherein the original data is data intercepted by the program module and passing through the entry point, and the configuration file includes a plaintext field and a ciphertext field; A determination module, used for determining the data to be processed from the original data; a request module, configured to send the data to be processed and the key ciphertext to the key management device, and, according to the configuration file, request the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; a receiving module, configured to receive the target data from the key management device; and A replacement module is used to replace the to-be-processed data in the original data with the target data.

8. A data processing system comprising: A data processing device, wherein the data processing device is configured with a program module, the program module is configured with an entry point, and the data processing device is used to obtain original data, a configuration file, and a key ciphertext assigned by a key management device, wherein the original data is data intercepted by the program module and passes through the entry point, and the configuration file includes a plaintext field and a ciphertext field; determine the data to be processed from the original data; send the data to be processed and the key ciphertext to the key management device, and according to the configuration file, request the key management device to perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; receive the target data from the key management device; and replace the data to be processed in the original data with the target data; and A key management device is used to allocate key ciphertext to a data processing device; receive the data to be processed and the key ciphertext from the data processing device; perform an encryption operation or a decryption operation on the data to be processed according to the key ciphertext to obtain target data; and send the target data to the data processing device.

9. A computing device comprising: one or more processors; a storage device for storing one or more programs, Wherein, when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method of any one of claims 1 to 6.

10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to implement the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Encrypted file system mounting method and device

    CN109033869A

  • Key management method and device, electronic device and storage medium

    CN109450899A

  • Key management method, equipment, storage medium and device

    CN109728902A

  • Data encryption method, data decryption method, user side, server and data management system

    CN110061957A

  • Data encryption method and device, data decryption method and device, data encryption system, data decryption system, readable medium and electronic equipment

    CN110460563A