Sensitive data storage management maintenance method and system
Through segmented key processing and mask processing, the security risks of client-side encryption and decryption are solved, ensuring the security of sensitive data during transmission, and achieving safe storage and display of sensitive data.
Patent Information
- Application Number
- CN202410817263.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, the client encrypts and decrypts sensitive data, which has security risks, and the return data received by the client contains the original sensitive data content, which increases the risk of sensitive data being leaked during transmission.
Using segmented key processing, the client initiates a sensitive data operation request to the server. The server performs segmented key processing based on the received request, including encryption, decryption and mask processing, and returns the encrypted sensitive data and mask information to the client. On the client side, ensure that sensitive data only displays mask information and encrypted data on the client side.
By storing sensitive data on the server side for encryption processing, the storage security of sensitive data is ensured, and only mask information and encrypted data are displayed on the client side, reducing the risk of leakage of sensitive data during transmission and improving the security of sensitive data. .
Smart Images

Figure CN118611954A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security technology, and specifically to a sensitive data storage management and maintenance method and system. Background Art
[0002] With the continuous progress and development of society, personal information management has become more and more important, and people are paying more and more attention to personal sensitive information (such as ID number, email address, phone number, etc.). At the national level, the "Personal Information Protection Law" has also been promulgated to protect personal information. When using sensitive information, various software and hardware systems have further requirements for the storage and transmission security of sensitive information, such as the need for masked display on sensitive information pages, and encrypted storage when stored in databases, etc. Masked display can ensure the security of user sensitive information, but when modifying user information, there is sensitive data in the user information modification interface, and the sensitive data does not need to be modified. At this time, the client also needs to obtain accurate information about the user's sensitive information (of course, encrypted transmission can be achieved through front-end and back-end agreed key encryption, but this also means that the user's sensitive data can be inferred from the data received by the client). To some extent, there are certain security risks.
[0003] Chinese patent CN114254390A discloses a method and device for desensitizing sensitive data, which obtains a sensitive data identifier for distinguishing sensitive data and separates the sensitive data according to the sensitive data identifier; encrypts the sensitive data and sends the encrypted sensitive data to a server; if the encrypted sensitive data returned by the server is received, the encrypted sensitive data is decrypted and the decrypted sensitive data is desensitized. However, the encryption and decryption of this patent are both performed on the client side, so that the client side can obtain the user's sensitive data, although it is in ciphertext, but the user's sensitive information content can be inferred only based on the relevant information of the client.
[0004] Chinese patent CN117390641A discloses a method, storage medium and computer device for processing sensitive data in a database, which receives an access request; determines the target data corresponding to the access request, and identifies whether the target data contains sensitive data; if so, obtains and decrypts the target sensitive data in a preset sensitive data table, which is used to store sensitive data in the database; concatenates the decrypted target sensitive data with the target non-sensitive data in the target data and returns it as result data. Although the patent focuses on the database storage of sensitive databases, the return data received by the client of the patent contains the original sensitive data content, and the data stream can be directly intercepted to obtain user sensitive data information.
[0005] Therefore, how to overcome the above-mentioned technical problems and defects becomes a key issue that needs to be addressed. Summary of the invention
[0006] In order to overcome the problem in the prior art that sensitive data is encrypted and decrypted at the client and the data returned by the client contains sensitive data, which makes the sensitive data have security risks, the present application provides a sensitive data storage management and maintenance method and system, which adopts the following technical solutions:
[0007] In a first aspect, the present application provides a sensitive data storage management and maintenance method, comprising:
[0008] The client initiates a sensitive data operation request to the server;
[0009] The server uses a segmented key to process sensitive data based on the sensitive data operation request received from the client;
[0010] The server returns the result of sensitive data processing to the client.
[0011] Furthermore, the client initiates a sensitive data operation request to the server, wherein the operation request includes: sensitive data query, sensitive data addition, and sensitive data modification.
[0012] Furthermore, when the server receives a sensitive data query based on the sensitive data operation request from the client, the server processes the sensitive data query using a segmented key, including:
[0013] The server obtains the sensitive data query request sent by the client;
[0014] Based on the sensitive data query request, the server queries the database for encrypted sensitive data that meets the requirements, and the database returns the encrypted sensitive data that meets the requirements to the server;
[0015] The server uses the preset method A to decrypt the encrypted sensitive data and obtain the original data of the sensitive data;
[0016] The server uses the preset method B to encrypt the original data of the sensitive data and obtain the encrypted sensitive data;
[0017] The server performs mask processing on the original data of the sensitive data based on the type of sensitive data to obtain mask information of the sensitive data;
[0018] The server returns the encrypted sensitive data and sensitive data mask information to the client.
[0019] Furthermore, the server returns the encrypted sensitive data and sensitive data mask information to the client, including:
[0020] Based on the preset method C, in the process of transmitting the encrypted sensitive data and the sensitive data mask information from the server to the client, the encrypted sensitive data and the sensitive data mask information are encrypted or signed;
[0021] The client obtains encryption or signature information of sensitive data.
[0022] Furthermore, during the query process of sensitive data, after the client obtains the encryption or signature information of the sensitive data, the encrypted or signed sensitive data information is decrypted or verified based on the preset method C, and partial mask information / full mask information of the sensitive data is displayed on the client.
[0023] Furthermore, when the server adds sensitive data based on the sensitive data operation request received from the client, the segmented key is used to process the sensitive data addition, including:
[0024] The client submits a form for adding sensitive data. When the client transmits the form for adding sensitive data to the server, the sensitive data in the form is encrypted or signed based on a preset method C to obtain first encrypted sensitive data.
[0025] When the server obtains the first encrypted sensitive data, it decrypts or verifies the signature based on the preset method C to obtain the second decrypted sensitive data;
[0026] The server side encrypts the second decrypted sensitive data using a preset method A to obtain the third encrypted sensitive data;
[0027] adding the third encrypted sensitive data to the database;
[0028] The database returns the storage result of the third encrypted sensitive data to the server, and the server returns the storage result of the third encrypted sensitive data as an addition result to the client.
[0029] Furthermore, when the server modifies sensitive data based on the sensitive data operation request received from the client, the server uses the segmented key to process the sensitive data modification, including:
[0030] The client obtains the query result of the sensitive data, the user modifies and submits the sensitive data based on the query result, the client obtains the sensitive data submitted by the user, and transmits it to the server, and the server obtains the first modified encrypted sensitive data;
[0031] The server determines the first modified encrypted sensitive data and obtains the first modified decrypted sensitive data;
[0032] The server encrypts the first modified decrypted sensitive data based on the preset method A to obtain the second modified encrypted sensitive data;
[0033] Adding the second modified encrypted sensitive data to the database;
[0034] The database returns the storage result of the second modified encrypted sensitive data to the server, and the server returns the storage result of the second modified encrypted sensitive data as the modification result to the client.
[0035] Further, the client obtains the query result of the sensitive data, the user modifies and submits the sensitive data based on the query result, the client obtains the sensitive data submitted by the user, and transmits it to the server, and the server obtains the first modified encrypted sensitive data, including:
[0036] If the sensitive data submitted by the user has not been modified, the encrypted sensitive data of the query result is used as the first modified encrypted sensitive data, and the server obtains the first modified encrypted sensitive data;
[0037] If the sensitive data submitted by the user is modified, the client uses the modified sensitive data to transmit to the server; when the client transmits the sensitive data to the server, the modified sensitive data is encrypted or signed based on the preset method C, and the server obtains the first modified encrypted sensitive data.
[0038] Furthermore, the server determines the first modified encrypted sensitive data and obtains the first modified decrypted sensitive data, including:
[0039] Determining whether the first modified encrypted sensitive data field is modified data or unmodified data;
[0040] When the first modified encrypted sensitive data field is the modified data, the first modified encrypted sensitive data is decrypted based on the preset method C to obtain the first modified decrypted sensitive data;
[0041] When the first modified encrypted sensitive data field is data that has not been modified, the first modified encrypted sensitive data is decrypted based on the preset method B to obtain the first modified decrypted sensitive data.
[0042] In a second aspect, the present application also provides a sensitive data storage management and maintenance system, including:
[0043] The client initiates an operation request module, which is used for the client to initiate a sensitive data operation request to the server;
[0044] The segmented key processing sensitive data module is used for the server to process sensitive data using the segmented key based on the sensitive data operation request received from the client;
[0045] The client obtains the processing result module, which is used by the server to return the result of sensitive data processing to the client.
[0046] In a third aspect, the present application provides an electronic device, including:
[0047] One or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, cause the device to perform the method as described in the first aspect.
[0048] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method described in the first aspect.
[0049] In a fifth aspect, the present application provides a computer program, which, when executed by a computer, is used to execute the method described in the first aspect.
[0050] In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor.
[0051] This application has the following beneficial effects:
[0052] 1. This application ensures the security of sensitive data storage by submitting the user's sensitive data from the client to the server and encrypting and storing it in the database.
[0053] 2. This application uses partial / full mask display when displaying the user's sensitive data on the client. The client can only obtain the masked data and encrypted data of the user's sensitive information, and the client is not aware of the specific encryption method, key, etc. of the sensitive data, thereby ensuring the security of sensitive data on the client.
[0054] 3. When the client modifies user information, the application submits the received encrypted sensitive data to the server as the value of the corresponding sensitive data without modifying the sensitive data information; when the sensitive data information needs to be modified, the newly modified sensitive data information is passed to the server, and the sensitive data is encrypted according to the client-server agreement during the transmission process, thereby ensuring the security of modifying sensitive data.
[0055] 4. This application initiates a sensitive data operation request from the client to the server. The server processes the sensitive data based on the received sensitive data operation request from the client using a segmented key. The server returns the processed sensitive data result to the client. This application prevents the client from directly obtaining or decrypting sensitive data, which can reduce the risk of sensitive data leakage during transmission and provide a safer way to maintain sensitive data. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 is an exemplary system architecture diagram to which the embodiments of the present application can be applied;
[0057] Figure 2 This is a flow chart of a sensitive data storage management and maintenance method according to an embodiment of the present application;
[0058] Figure 3 A schematic diagram of a sensitive data query process in an embodiment of the present application;
[0059] Figure 4 A schematic diagram of the process of adding sensitive data in an embodiment of the present application;
[0060] Figure 5 A schematic diagram of a sensitive data modification process in an embodiment of the present application;
[0061] Figure 6 This is a system flow chart of an embodiment of the present application;
[0062] Figure 7 It is a schematic diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0064] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0065] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0066] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0067] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0068] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.
[0069] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0070] It should be noted that the sensitive data storage management and maintenance method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the sensitive data storage management and maintenance system is generally set in the server / terminal device.
[0071] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0072] Sensitive data: Sensitive data is also called private data. Common data include name, ID number, address, phone number, bank account, email, password, medical information, educational background, etc. These data are closely related to personal life and work. Once leaked or illegally used, it will cause irreparable losses to individuals and even the country. If the companies or governments responsible for storing and publishing this information cannot guarantee data privacy, they will face serious financial, legal or accountability crises and suffer huge losses in user trust.
[0073] The sensitive data storage management and maintenance in this application includes adding, deleting, modifying and checking sensitive data, as well as storage management.
[0074] This application involves three encryption and decryption methods (the three methods of encryption and decryption appear in pairs):
[0075] -Method A: The server has its own encryption and decryption method, which is used to encrypt and decrypt sensitive data before entering the database (sensitive data is encrypted before entering the database and decrypted after reading from the database).
[0076] -Method B: The server has its own encryption and decryption method, which is used to encrypt and decrypt sensitive data sent to the client (encrypt before sending and decrypt after receiving).
[0077] -Method C: The encryption and decryption method agreed upon by the server and the client, used for encryption, decryption or verification of data transmitted between the server and the client.
[0078] Method A, method B, and method C in this application can use but is not limited to one or more encryption and decryption algorithms such as AES, DES, 3DES, SHA-256, MD5, etc. to encrypt and decrypt sensitive data.
[0079] Continue to refer Figure 2 , the figure shows a flow chart of a sensitive data storage management and maintenance method of the present application, the method comprising the following steps:
[0080] Step S1: The client initiates a sensitive data operation request to the server.
[0081] In a possible implementation, the client initiates a sensitive data operation request to the server, where the operation request includes: sensitive data query, sensitive data addition, and sensitive data modification.
[0082] Step S2: The server uses a segmented key to process the sensitive data based on the sensitive data operation request received from the client.
[0083] Step S3: The server returns the result of sensitive data processing to the client.
[0084] Steps S2 to S3 can refer to Figure 3-Figure 5 , the specific implementation is as follows:
[0085] In a possible implementation, when the server receives a sensitive data query based on the sensitive data operation request from the client, the server uses a segmented key to process the sensitive data query. Figure 3 , the specific steps include:
[0086] The server obtains the sensitive data query request sent by the client;
[0087] Based on the sensitive data query request, the server queries the database for encrypted sensitive data that meets the requirements, and the database returns the encrypted sensitive data that meets the requirements to the server;
[0088] The server uses the preset method A to decrypt the encrypted sensitive data and obtain the original data of the sensitive data;
[0089] The server uses the preset method B to encrypt the original data of the sensitive data and obtain the encrypted sensitive data;
[0090] The server performs mask processing on the original data of the sensitive data based on the type of sensitive data to obtain mask information of the sensitive data;
[0091] The server returns the encrypted sensitive data and sensitive data mask information to the client.
[0092] In a possible implementation manner, the server returns the encrypted sensitive data and sensitive data mask information to the client, including:
[0093] Based on the preset method C, in the process of transmitting the encrypted sensitive data and the sensitive data mask information from the server to the client, the encrypted sensitive data and the sensitive data mask information are encrypted or signed;
[0094] The client obtains encryption or signature information of sensitive data.
[0095] In one possible implementation, during the query process of sensitive data, after the client obtains the encryption or signature information of the sensitive data, the encrypted or signed sensitive data information is decrypted or verified based on a preset method C, and partial mask information / full mask information of the sensitive data is displayed on the client.
[0096] In one possible implementation, when the server adds sensitive data based on the sensitive data operation request received from the client, the segmented key is used to process the sensitive data addition. Figure 4 , the specific steps include:
[0097] The client submits a form for adding sensitive data. When the client transmits the form for adding sensitive data to the server, the sensitive data in the form is encrypted or signed based on a preset method C to obtain first encrypted sensitive data.
[0098] When the server obtains the first encrypted sensitive data, it decrypts or verifies the signature based on the preset method C to obtain the second decrypted sensitive data;
[0099] The server side encrypts the second decrypted sensitive data using a preset method A to obtain the third encrypted sensitive data;
[0100] adding the third encrypted sensitive data to the database;
[0101] The database returns the storage result of the third encrypted sensitive data to the server, and the server returns the storage result of the third encrypted sensitive data as an addition result to the client.
[0102] In a possible implementation, when the server modifies sensitive data based on the sensitive data operation request received from the client, the segmented key is used to process the sensitive data modification. Figure 5 , the specific steps include:
[0103] The client obtains the query result of the sensitive data, the user modifies and submits the sensitive data based on the query result, the client obtains the sensitive data submitted by the user, and transmits it to the server, and the server obtains the first modified encrypted sensitive data;
[0104] The server determines the first modified encrypted sensitive data and obtains the first modified decrypted sensitive data;
[0105] The server encrypts the first modified decrypted sensitive data based on the preset method A to obtain the second modified encrypted sensitive data;
[0106] Adding the second modified encrypted sensitive data to the database;
[0107] The database returns the storage result of the second modified encrypted sensitive data to the server, and the server returns the storage result of the second modified encrypted sensitive data as the modification result to the client.
[0108] In a possible implementation, the client obtains query results for sensitive data, the user modifies and submits the sensitive data based on the query results, the client obtains the sensitive data submitted by the user, and transmits it to the server, and the server obtains the first modified encrypted sensitive data, including:
[0109] If the sensitive data submitted by the user has not been modified (original data), the encrypted sensitive data of the query result is used as the first modified encrypted sensitive data, and the server obtains the first modified encrypted sensitive data;
[0110] If the sensitive data submitted by the user is modified (new data), the client uses the modified sensitive data to transmit to the server; when the client transmits the sensitive data to the server, the modified sensitive data is encrypted or signed based on the preset method C, and the server obtains the first modified encrypted sensitive data.
[0111] In a possible implementation manner, the server side judges the first modified encrypted sensitive data and obtains the first modified decrypted sensitive data, including:
[0112] Determine whether the first modified encrypted sensitive data field is modified data (new data) or unmodified data (original data);
[0113] When the first modified encrypted sensitive data field is the modified data, the first modified encrypted sensitive data is decrypted based on the preset method C to obtain the first modified decrypted sensitive data;
[0114] When the first modified encrypted sensitive data field is data that has not been modified, the first modified encrypted sensitive data is decrypted based on the preset method B to obtain the first modified decrypted sensitive data.
[0115] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0116] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0117] Continue to refer Figure 6 The sensitive data storage management and maintenance system described in this embodiment includes:
[0118] The client initiates an operation request module 601, which is used for the client to initiate a sensitive data operation request to the server;
[0119] The segmented key processing sensitive data module 602 is used for the server to process sensitive data using the segmented key based on the sensitive data operation request received from the client;
[0120] The client obtains the processing result module 603, which is used for the server to return the result of sensitive data processing to the client.
[0121] To solve the above technical problems, the present application also provides a computer device. Figure 7 , Figure 7 This is a basic structural block diagram of the computer device in this embodiment.
[0122] The computer device 7 includes a memory 7a, a processor 7b, and a network interface 7c that are interconnected through a system bus. It should be noted that the figure only shows a computer device 7 with components 7a-7c, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0123] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0124] The memory 7a includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 7a can be an internal storage unit of the computer device 7, such as a hard disk or memory of the computer device 7. In other embodiments, the memory 7a can also be an external storage device of the computer device 7, such as a plug-in hard disk equipped on the computer device 7, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 7a can also include both the internal storage unit of the computer device 7 and its external storage device. In this embodiment, the memory 7a is usually used to store the operating system and various application software installed on the computer device 7, such as the program code of the sensitive data storage management and maintenance method, etc. In addition, the memory 7a can also be used to temporarily store various types of data that have been output or are to be output.
[0125] The processor 7b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 7b is generally used to control the overall operation of the computer device 7. In this embodiment, the processor 7b is used to run the program code stored in the memory 7a or process data, such as running the program code of the sensitive data storage management and maintenance method.
[0126] The network interface 7c may include a wireless network interface or a wired network interface. The network interface 7c is generally used to establish a communication connection between the computer device 7 and other electronic devices.
[0127] The present application also provides another implementation, namely, providing a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a program of a sensitive data storage management and maintenance method, and the sensitive data storage management and maintenance can be executed by at least one processor so that the at least one processor performs the steps of the sensitive data storage management and maintenance method as described above.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0129] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A sensitive data storage management and maintenance method, characterized in that: include: The client initiates a sensitive data operation request to the server; The server uses a segmented key to process sensitive data based on the sensitive data operation request received from the client; The server returns the result of sensitive data processing to the client.
2. The sensitive data storage management and maintenance method according to claim 1, characterized in that: The client initiates a sensitive data operation request to the server, wherein the operation request includes: sensitive data query, sensitive data addition, and sensitive data modification.
3. The sensitive data storage management and maintenance method according to claim 2, characterized in that: When the server receives a sensitive data query based on the sensitive data operation request from the client, it uses a segmented key to process the sensitive data query, including: The server obtains the sensitive data query request sent by the client; Based on the sensitive data query request, the server queries the database for encrypted sensitive data that meets the requirements, and the database returns the encrypted sensitive data that meets the requirements to the server; The server uses the preset method A to decrypt the encrypted sensitive data and obtain the original data of the sensitive data; The server uses the preset method B to encrypt the original data of the sensitive data and obtain the encrypted sensitive data; The server performs mask processing on the original data of the sensitive data based on the type of sensitive data to obtain mask information of the sensitive data; The server returns the encrypted sensitive data and sensitive data mask information to the client.
4. The sensitive data storage management and maintenance method according to claim 3 is characterized in that: The server returns the encrypted sensitive data and sensitive data mask information to the client, including: Based on the preset method C, in the process of transmitting the encrypted sensitive data and the sensitive data mask information from the server to the client, the encrypted sensitive data and the sensitive data mask information are encrypted or signed; The client obtains encryption or signature information of sensitive data.
5. The sensitive data storage management and maintenance method according to claim 2, characterized in that: When the server adds sensitive data based on the sensitive data operation request received from the client, the segmented key is used to process the sensitive data addition, including: The client submits a form for adding sensitive data. When the client transmits the form for adding sensitive data to the server, the sensitive data in the form is encrypted or signed based on a preset method C to obtain first encrypted sensitive data. When the server obtains the first encrypted sensitive data, it decrypts or verifies the signature based on the preset method C to obtain the second decrypted sensitive data; The server side encrypts the second decrypted sensitive data using a preset method A to obtain the third encrypted sensitive data; adding the third encrypted sensitive data to the database; The database returns the storage result of the third encrypted sensitive data to the server, and the server returns the storage result of the third encrypted sensitive data as an addition result to the client.
6. The sensitive data storage management and maintenance method according to claim 4, characterized in that: When the server modifies sensitive data based on the sensitive data operation request received from the client, the server uses the segmented key to process the sensitive data modification, including: The client obtains the query result of the sensitive data, the user modifies and submits the sensitive data based on the query result, the client obtains the sensitive data submitted by the user, and transmits it to the server, and the server obtains the first modified encrypted sensitive data; The server determines the first modified encrypted sensitive data and obtains the first modified decrypted sensitive data; The server encrypts the first modified decrypted sensitive data based on the preset method A to obtain the second modified encrypted sensitive data; Adding the second modified encrypted sensitive data to the database; The database returns the storage result of the second modified encrypted sensitive data to the server, and the server returns the storage result of the second modified encrypted sensitive data as the modification result to the client.
7. The sensitive data storage management and maintenance method according to claim 6, characterized in that: The client obtains the query result of the sensitive data, the user modifies and submits the sensitive data based on the query result, the client obtains the sensitive data submitted by the user, and transmits it to the server, and the server obtains the first modified encrypted sensitive data, including: If the sensitive data submitted by the user has not been modified, the encrypted sensitive data of the query result is used as the first modified encrypted sensitive data, and the server obtains the first modified encrypted sensitive data; If the sensitive data submitted by the user is modified, the client uses the modified sensitive data to transmit to the server; when the client transmits the sensitive data to the server, the modified sensitive data is encrypted or signed based on the preset method C, and the server obtains the first modified encrypted sensitive data.
8. The sensitive data storage management and maintenance method according to claim 6, characterized in that: The server determines the first modified encrypted sensitive data and obtains the first modified decrypted sensitive data, including: Determining whether the first modified encrypted sensitive data field is modified data or unmodified data; When the first modified encrypted sensitive data field is the modified data, the first modified encrypted sensitive data is decrypted based on the preset method C to obtain the first modified decrypted sensitive data; When the first modified encrypted sensitive data field is data that has not been modified, the first modified encrypted sensitive data is decrypted based on the preset method B to obtain the first modified decrypted sensitive data.
9. A sensitive data storage management and maintenance system, used to implement the sensitive data storage management and maintenance method of claims 1-8, characterized in that: include: The client initiates an operation request module, which is used for the client to initiate a sensitive data operation request to the server; The segmented key processing sensitive data module is used for the server to process sensitive data using the segmented key based on the sensitive data operation request received from the client; The client obtains the processing result module, which is used by the server to return the result of sensitive data processing to the client.
10. An electronic device, characterized in that: include: one or more processors; Memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to perform the steps of the sensitive data storage management and maintenance method as described in any one of claims 1 to 8.
