Personal data service data exporting method and device and storage medium

By sending the public key and decrypted data key to the personal data service, calculating the hash value to verify the file password, decrypting the download address for one-time data download, and using the software development tool kit to convert into a readable table file, the data in the existing technology is solved. Export low-security issues to achieve high data security and compliance.

CN118764203AActive Publication Date: 2024-10-11NUBIA TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410782393.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-11
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing data export solutions for personal data services have low security issues, including the fact that the data can be output to an excel table once the interface is called. The export interface allows the business system to freely input SQL query statements, which is easy to be attacked. The asynchronous download address is leaked, leading to data leakage. , storing excel tables as plain text can easily lead to data leakage.

Method used

By sending the public key to the personal data service and receiving the encrypted data key and file hash salt, using the private key to decrypt the data key to obtain the compressed encrypted download address, calculating the hash value to verify the file password, decrypting the download address for one-time data download, using the software The development toolkit converts it into a readable table file, splits the query statement in the export interface, uses chain interface verification and paging reading, and adds watermark and password protection.

Benefits of technology

It achieves higher security for data export, prevents data leaks and attacks, and ensures the security and compliance of data during the export process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764203A_ABST
    Figure CN118764203A_ABST
Patent Text Reader

Abstract

The invention discloses a personal data service data exporting method and device and a computer readable storage medium, and the method comprises the steps: transmitting a data exporting application and a public key to a personal data service party, and receiving a data key and a file hash salt transmitted by the service party; acquiring a download address file compressed and encrypted by the server; calculating the download address file and the file hash salt according to a preset secure hash algorithm, and sending the calculated hash value to the service party to receive a file password returned by the service party; decrypting the downloading address file according to the file password, and executing one-time data downloading according to the decrypted downloading address within a preset time to obtain an unreadable data file; and converting the data file into a readable form file through a preset software development kit in combination with account information. According to the invention, a personal data service data exporting scheme with higher security is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile communications, and in particular to a method and device for exporting personal data service data, and a computer-readable storage medium. Background Art

[0002] In the existing technology, in order to comply with the national personal data protection law and overseas laws such as the GDPR General Data Protection Regulation, various Internet companies are developing their own personal data services, that is, unifying all personal-related data into the service. At present, the business systems that use this service will involve a functional point, that is, batch export of data in certain business scenarios. The solution used by most companies is to call the interface of the personal data service and directly export the data into an Excel spreadsheet.

[0003] The problems with the above solution are:

[0004] 1. The solution has low security, and the interface can be called once to output data to an Excel table;

[0005] 2. The export interface generally allows the business system to freely input SQL and other query statements, which is easy to be attacked by a third party;

[0006] 3. Export is usually done asynchronously, and the service provides the download address of the Excel spreadsheet. Once the address is leaked, there will be data leakage problems;

[0007] 4. Excel spreadsheets are generally stored in plain text, which can easily lead to data leakage when forwarded to others.

[0008] Therefore, a new solution needs to be implemented to solve the above-mentioned problem of low security. Summary of the invention

[0009] In order to solve the above technical defects in the prior art, the present invention proposes a method for exporting personal data service data, which is applied to a data access party, and the method includes:

[0010] Sending an application for exporting data and a public key to a personal data service provider, and receiving a data key and a file hash salt encrypted according to the public key sent by the personal data service provider;

[0011] When it is found that the data export action of the personal service provider has been completed, the data key decrypted by the private key is sent to the personal data service provider to obtain the download address file of the exported data compressed and encrypted by the personal data service provider;

[0012] Calculate the download address file and the file hash salt according to a preset secure hash algorithm, and send the calculated hash value to the personal data service provider to receive the file password sent by the personal data service provider after verifying the hash value;

[0013] Decrypting the download address file according to the file password, and performing a one-time data download according to the decrypted download address within a preset time to obtain an unreadable data file;

[0014] Log in to the software development kit provided by the personal data service provider according to the preset account information, and convert the data file into a readable table file through the software development kit.

[0015] Optionally, the sending of the application for exporting data to the personal data service provider includes:

[0016] The field groups of the data to be exported and the corresponding query conditions of the business system are sent to the personal data service provider in batches through the first interface provided by the personal data service provider, so that the personal data service provider combines the field groups and the query conditions to obtain a query statement.

[0017] Optionally, the converting the data file into a readable table file by the software development kit further comprises:

[0018] Adding and embedding watermark information corresponding to the account information into the table file through the software development kit;

[0019] Furthermore, an independent opening password and editing authority are set for the table file through the software development kit.

[0020] The present invention also proposes a method for exporting personal data service data, which is applied to a personal data service provider, and the method comprises:

[0021] Receiving the field groups of the data to be exported and the query conditions of the corresponding business system sent in batches by the data access party, and combining the field groups and the query conditions to obtain a query statement;

[0022] When the query statement passes the legality check, the data key and file hash salt encrypted by the public key provided by the data access party are sent to the data access party, and the data is read in pages according to the query statement;

[0023] When the reading is completed, the data key decrypted by the data access party using the private key is received, and when the data key is verified, the compressed and encrypted download address file is sent to the data access party;

[0024] Receiving a hash value calculated by the data access party using the file hash salt and the download address file, and when the received hash value is consistent with the local hash value, sending a file password corresponding to the download address file to the data access party;

[0025] A preset software development kit is provided to the data access party, so that the data access party can decrypt the download address file according to the file password, and perform a one-time data download according to the decrypted download address within a preset time. After obtaining an unreadable data file, the data access party logs in to the software development kit according to preset account information, and converts the data file into a readable table file through the software development kit.

[0026] Optionally, the receiving of the field groups of the data to be exported and the corresponding query conditions of the business system sent in batches by the data access party further includes:

[0027] The field groups and the query conditions sent by the data access party are received in batches through a preset first interface.

[0028] Optionally, the paging reading of data according to the query statement further includes:

[0029] After each page of data is read, the data of the page is written into an unreadable data file;

[0030] And, receiving a query instruction sent by the data access party through a preset second interface to determine whether the data export action has been completed.

[0031] Optionally, the sending the file password corresponding to the download address file to the data access party further includes:

[0032] Sending the file password to the data access party through a preset third interface;

[0033] After the file password is sent, the download address file is deleted.

[0034] Optionally, after the file password is sent, deleting the download address file further includes:

[0035] Monitor data downloading actions within a preset time period;

[0036] When the downloading action is not detected within the time period, or when the downloading action is detected for the second time within the time period, the data file is deleted.

[0037] The present invention also proposes a personal data service data export device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the personal data service data export method as described in any one of the above items when executed by the processor.

[0038] The present invention also proposes a computer-readable storage medium, on which a personal data service data export program is stored. When the personal data service data export program is executed by a processor, the steps of the personal data service data export method as described in any one of the above items are implemented.

[0039] The method, device and computer-readable storage medium for exporting personal data service data of the present invention are implemented by sending an application for exporting data and a public key to a personal data service provider, and receiving a data key and a file hash salt encrypted according to the public key sent by the personal data service provider; when it is queried that the data export action of the personal service provider has been completed, the data key decrypted by the private key is sent to the personal data service provider to obtain a download address file of the exported data compressed and encrypted by the personal data service provider; the download address file and the file hash salt are calculated according to a preset secure hash algorithm, and the calculated hash value is sent to the personal data service provider to receive the file password sent by the personal data service provider after the hash value is verified; the download address file is decrypted according to the file password, and a one-time data download is performed according to the decrypted download address within a preset time to obtain an unreadable data file; the software development kit provided by the personal data service provider is logged in according to the preset account information, and the data file is converted into a readable table file through the software development kit. The present invention realizes a more secure personal data service data export scheme. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0041] Figure 1 It is a hardware structure diagram of a mobile terminal involved in the present invention;

[0042] Figure 2 is a first flow chart of the method for exporting personal data service data of the present invention;

[0043] Figure 3 It is the second flow chart of the method for exporting personal data service data of the present invention. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0046] The terminal may be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0047] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will appreciate that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed-type terminals.

[0048] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0049] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:

[0050] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0051] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.

[0052] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0053] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.

[0054] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can also be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0055] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0056] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0057] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.

[0058] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.

[0059] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0060] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0061] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0062] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.

[0063] Based on the above mobile terminal hardware structure, various embodiments of the method of the present invention are proposed.

[0064] Figure 2 This is the first flow chart of the method for exporting personal data service data of the present invention. This embodiment proposes a method for exporting personal data service data, which is applied to a data access party, and the method includes:

[0065] S1. Send an application for exporting data and a public key to a personal data service provider, and receive a data key and a file hash salt encrypted according to the public key sent by the personal data service provider;

[0066] S2. When it is found that the data export action of the personal service provider has been completed, the data key decrypted by the private key is sent to the personal data service provider to obtain the download address file of the exported data compressed and encrypted by the personal data service provider;

[0067] S3, calculating the download address file and the file hash salt according to a preset secure hash algorithm, and sending the calculated hash value to the personal data service provider, so as to receive the file password sent by the personal data service provider after verifying the hash value;

[0068] S4, decrypting the download address file according to the file password, and performing a one-time data download according to the decrypted download address within a preset time to obtain an unreadable data file;

[0069] S5. Log in to the software development kit provided by the personal data service provider according to the preset account information, and convert the data file into a readable table file through the software development kit.

[0070] In this embodiment, the application for exporting data is sent to the personal data service provider, including: sending field groups of the data to be exported and query conditions of the corresponding business system to the personal data service provider in batches through a first interface provided by the personal data service provider, so that the personal data service provider combines the field groups and the query conditions to obtain a query statement.

[0071] In this embodiment, converting the data file into a readable table file through the software development kit further includes: adding and embedding watermark information corresponding to the account information into the table file through the software development kit; and setting an independent opening password and editing permissions for the table file through the software development kit.

[0072] In this embodiment, the export interface implements the minimization control of the query statements allowed to be input by the business system. Among them, the parameters of the export interface are changed to not allow the business system to directly input the query statement, but are split into two parts, one is the field group that the business system needs to export, and the other is the query condition of the business system. After receiving the interface request, the personal data service combines the field group and the query condition to obtain the SQL statement to be queried. If the business system specifies the number of data to be exported, the query is performed according to the number; if not specified, it is limited to exporting data for the most recent period in accordance with the provisions of the data protection law.

[0073] In this embodiment, a chain interface verification method is adopted, and multiple interface calls are used to complete the export function. Among them, in order to further improve security, the personal data service changes the original one interface call in the export scheme into three interface calls, and completes the complete one-time export function through the chain interface verification method. Specifically, the data access party calls the interface to apply for exporting data. After the personal data service checks the legality of the parameters, it generates a data key and file hash salt encrypted according to the public key of the data access party. Furthermore, the personal data service reads the data in pages according to the assembled SQL statements, and writes the data into the file after each page is read. Furthermore, the data access party will periodically call the second interface of the personal data service to query whether the export action is completed, and the data key decrypted with the private key needs to be passed in the second interface to obtain the download address of the export file.

[0074] In this embodiment, the download address of the exported file implements a one-time available mechanism. Among them, after the data access party obtains the download address of the file, since the file is compressed and encrypted and cannot be used, it is necessary to call the third interface of the personal data service at this time. The parameter passed in is the hash value of SHA256 (a secure hash algorithm) after adding the hash salt in the second interface to the file content to indicate that it has indeed downloaded the file. Further, after comparing the hash value and finding that it is consistent, the third interface returns the password of the file. Further, after the third interface completes the action of returning the password of the file, it immediately deletes the download address of the file, that is, the download address of the file is only guaranteed to be available once. Further, if the file has not been downloaded within the specified time, the file will also be automatically deleted by the service.

[0075] In this embodiment, a watermark of the user's identification is automatically added to the exported file. Among them, for the data access party, after decrypting the file, it will be found that the file is still unavailable and is not in Excel format. At this time, the data access party needs to use the SDK (Software Development Kit) of the personal data service to generate a readable Excel file based on the current login account information obtained by the service side. Furthermore, when generating Excel, the SDK automatically adds a watermark of the user account information to the entire document, and the watermark is embedded in the Excel document and cannot be removed. Furthermore, the exported file automatically adds a password and does not allow copying and modification of the content. Specifically, the SDK will modify the document information of Excel, add a password when it is opened, and does not allow copying and modification of the content.

[0076] It can be seen that in this embodiment, the chain interface verification method and the modification of the interface parameter structure are used to complete the export function to improve the security strength of the export function; and a watermark is added to the excel file generated at the end to improve the security of the exported file. At the same time, since the download file address is only guaranteed to be available once and there is a strong security verification mechanism, it can be ensured that there are no security loopholes in the entire export function, which can well meet the requirements of the data protection law and provide strong support for the company's compliance construction.

[0077] The beneficial effect of this embodiment is that, by sending an application for exporting data and a public key to a personal data service provider, and receiving a data key and a file hash salt encrypted according to the public key sent by the personal data service provider; when it is queried that the data export action of the personal data service provider has been completed, the data key decrypted by the private key is sent to the personal data service provider to obtain a download address file of the exported data compressed and encrypted by the personal data service provider; the download address file and the file hash salt are calculated according to a preset secure hash algorithm, and the calculated hash value is sent to the personal data service provider to receive the file password sent by the personal data service provider after the hash value is verified; the download address file is decrypted according to the file password, and a one-time data download is performed according to the decrypted download address within a preset time to obtain an unreadable data file; the software development kit provided by the personal data service provider is logged in according to the preset account information, and the data file is converted into a readable table file through the software development kit. A more secure personal data service data export solution is realized.

[0078] Figure 3 The present invention also proposes a method for exporting personal data service data, which is applied to a personal data service provider, and the method comprises:

[0079] S10, receiving the field groups of the data to be exported and the query conditions of the corresponding business system sent in batches by the data access party, and combining the field groups and the query conditions to obtain a query statement;

[0080] S20, when the query statement passes the legality check, the data key and file hash salt encrypted by the public key provided by the data access party are sent to the data access party, and the data is read in pages according to the query statement;

[0081] S30, when the reading is completed, receiving the data key decrypted by the data access party using the private key, and when the data key is verified, sending the compressed and encrypted download address file to the data access party;

[0082] S40, receiving a hash value calculated by the data access party using the file hash salt and the download address file, and when the received hash value is consistent with the local hash value, sending a file password corresponding to the download address file to the data access party;

[0083] S50. Provide a preset software development kit to the data access party, so that the data access party can decrypt the download address file according to the file password, and perform a one-time data download according to the decrypted download address within a preset time. After obtaining the unreadable data file, the data access party logs in to the software development kit according to the preset account information, and converts the data file into a readable table file through the software development kit.

[0084] In this embodiment, the receiving of the field groups of the data to be exported and the corresponding query conditions of the business system sent in batches by the data access party further includes: receiving the field groups and the query conditions sent by the data access party in batches through a preset first interface.

[0085] In this embodiment, the paging reading of data according to the query statement further includes: writing the data of one page into an unreadable data file after each page of data is read; and receiving a query instruction sent by the data access party through a preset second interface to determine whether the data export action has been completed.

[0086] In this embodiment, sending the file password corresponding to the download address file to the data access party further includes: sending the file password to the data access party through a preset third interface; after the file password is sent, deleting the download address file.

[0087] In this embodiment, after the file password is sent, the download address file is deleted, which further includes: monitoring the data download action within a preset time period; when the download action is not detected within the time period, or when the second download action is detected within the time period, deleting the data file.

[0088] In this embodiment, the export interface implements the minimization control of the query statements allowed to be input by the business system. Among them, the parameters of the export interface are changed to not allow the business system to directly input the query statement, but are split into two parts, one is the field group that the business system needs to export, and the other is the query condition of the business system. After receiving the interface request, the personal data service combines the field group and the query condition to obtain the SQL statement to be queried. If the business system specifies the number of data to be exported, the query is performed according to the number; if not specified, it is limited to exporting data for the most recent period in accordance with the provisions of the data protection law.

[0089] In this embodiment, a chain interface verification method is adopted, and multiple interface calls are used to complete the export function. Among them, in order to further improve security, the personal data service changes the original one interface call in the export scheme into three interface calls, and completes the complete one-time export function through the chain interface verification method. Specifically, the data access party calls the interface to apply for exporting data. After the personal data service checks the legality of the parameters, it generates a data key and file hash salt encrypted according to the public key of the data access party. Furthermore, the personal data service reads the data in pages according to the assembled SQL statements, and writes the data into the file after each page is read. Furthermore, the data access party will periodically call the second interface of the personal data service to query whether the export action is completed, and the data key decrypted with the private key needs to be passed in the second interface to obtain the download address of the export file.

[0090] In this embodiment, the download address of the exported file implements a one-time available mechanism. Among them, after the data access party obtains the download address of the file, since the file is compressed and encrypted and cannot be used, it is necessary to call the third interface of the personal data service at this time. The parameter passed in is the hash value of SHA256 (a secure hash algorithm) after adding the hash salt in the second interface to the file content to indicate that it has indeed downloaded the file. Further, after comparing the hash value and finding that it is consistent, the third interface returns the password of the file. Further, after the third interface completes the action of returning the password of the file, it immediately deletes the download address of the file, that is, the download address of the file is only guaranteed to be available once. Further, if the file has not been downloaded within the specified time, the file will also be automatically deleted by the service.

[0091] In this embodiment, a watermark of the user's identification is automatically added to the exported file. Among them, for the data access party, after decrypting the file, it will be found that the file is still unavailable and is not in Excel format. At this time, the data access party needs to use the SDK (Software Development Kit) of the personal data service to generate a readable Excel file based on the current login account information obtained by the service side. Furthermore, when generating Excel, the SDK automatically adds a watermark of the user account information to the entire document, and the watermark is embedded in the Excel document and cannot be removed. Furthermore, the exported file automatically adds a password and does not allow copying and modification of the content. Specifically, the SDK will modify the document information of Excel, add a password when it is opened, and does not allow copying and modification of the content.

[0092] It can be seen that in this embodiment, the chain interface verification method and the modification of the interface parameter structure are used to complete the export function to improve the security strength of the export function; and a watermark is added to the excel file generated at the end to improve the security of the exported file. At the same time, since the download file address is only guaranteed to be available once and there is a strong security verification mechanism, it can be ensured that there are no security loopholes in the entire export function, which can well meet the requirements of the data protection law and provide strong support for the company's compliance construction.

[0093] The beneficial effect of this embodiment is that the query statement is obtained by receiving the field group of the data to be exported and the query conditions of the corresponding business system sent in batches by the data access party, and combining the field group and the query conditions; when the legitimacy check of the query statement is passed, the data key and file hash salt obtained by encrypting with the public key provided by the data access party are sent to the data access party, and the data is read in pages according to the query statement; when the reading is completed, the data key decrypted by the data access party using the private key is received, and when the data key is verified, the compressed and encrypted download address file is sent to the data access party. ; receiving the hash value calculated by the data access party using the file hash salt and the download address file, and when the received hash value is consistent with the local hash value, sending the file password corresponding to the download address file to the data access party; providing the data access party with a preset software development kit, so that the data access party can decrypt the download address file according to the file password, and perform a one-time data download according to the decrypted download address within a preset time, and after obtaining the unreadable data file, log in to the software development kit according to the preset account information, and convert the data file into a readable table file through the software development kit. A more secure personal data service data export solution is realized.

[0094] Based on the above embodiments, the present invention also proposes a personal data service data export device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the personal data service data export method as described in any one of the above items are implemented.

[0095] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the device embodiment, which will not be repeated here.

[0096] Based on the above embodiments, the present invention also proposes a computer-readable storage medium, on which a personal data service data export program is stored. When the personal data service data export program is executed by a processor, the steps of the personal data service data export method as described in any of the above items are implemented.

[0097] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the medium embodiment, which will not be repeated here.

[0098] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0099] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0100] 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 invention, 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, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0101] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

Claims

1. A method for exporting personal data service data, applied to a data access party, characterized in that: The method comprises: Sending an application for exporting data and a public key to a personal data service provider, and receiving a data key and a file hash salt encrypted according to the public key sent by the personal data service provider; When it is found that the data export action of the personal service provider has been completed, the data key decrypted by the private key is sent to the personal data service provider to obtain the download address file of the exported data compressed and encrypted by the personal data service provider; Calculate the download address file and the file hash salt according to a preset secure hash algorithm, and send the calculated hash value to the personal data service provider to receive the file password sent by the personal data service provider after verifying the hash value; Decrypting the download address file according to the file password, and performing a one-time data download according to the decrypted download address within a preset time to obtain an unreadable data file; Log in to the software development kit provided by the personal data service provider according to the preset account information, and convert the data file into a readable table file through the software development kit.

2. The method for exporting personal data service data according to claim 1, characterized in that: The application for exporting data to the personal data service provider includes: The field groups of the data to be exported and the corresponding query conditions of the business system are sent to the personal data service provider in batches through the first interface provided by the personal data service provider, so that the personal data service provider combines the field groups and the query conditions to obtain a query statement.

3. The method for exporting personal data service data according to claim 1, characterized in that: The step of converting the data file into a readable table file by the software development kit further comprises: Adding and embedding watermark information corresponding to the account information into the table file through the software development kit; Furthermore, an independent opening password and editing authority are set for the table file through the software development kit.

4. A method for exporting personal data service data, applied to a personal data service provider, characterized in that: The method comprises: Receiving the field groups of the data to be exported and the query conditions of the corresponding business system sent in batches by the data access party, and combining the field groups and the query conditions to obtain a query statement; When the query statement passes the legality check, the data key and file hash salt encrypted by the public key provided by the data access party are sent to the data access party, and the data is read in pages according to the query statement; When the reading is completed, the data key decrypted by the data access party using the private key is received, and when the data key is verified, the compressed and encrypted download address file is sent to the data access party; Receiving a hash value calculated by the data access party using the file hash salt and the download address file, and when the received hash value is consistent with the local hash value, sending a file password corresponding to the download address file to the data access party; A preset software development kit is provided to the data access party, so that the data access party can decrypt the download address file according to the file password, and perform a one-time data download according to the decrypted download address within a preset time. After obtaining an unreadable data file, the data access party logs in to the software development kit according to preset account information, and converts the data file into a readable table file through the software development kit.

5. The method for exporting personal data service data according to claim 4, characterized in that: The receiving of the field groups of the data to be exported and the corresponding query conditions of the business system sent in batches by the data access party further includes: The field groups and the query conditions sent by the data access party are received in batches through a preset first interface.

6. The method for exporting personal data service data according to claim 4, characterized in that: The paging reading of data according to the query statement further includes: After each page of data is read, the data of the page is written into an unreadable data file; And, receiving a query instruction sent by the data access party through a preset second interface to determine whether the data export action has been completed.

7. The method for exporting personal data service data according to claim 4, characterized in that: The sending of the file password corresponding to the download address file to the data access party further includes: Sending the file password to the data access party through a preset third interface; After the file password is sent, the download address file is deleted.

8. The method for exporting personal data service data according to claim 7, characterized in that: When the file password is sent, deleting the download address file further includes: Monitor data downloading actions within a preset time period; When the downloading action is not detected within the time period, or when the downloading action is detected for the second time within the time period, the data file is deleted.

9. A personal data service data export device, characterized in that: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the personal data service data export method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a personal data service data export program, which, when executed by a processor, implements the steps of the personal data service data export method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Edge intelligent calculation method based on block chain and edge intelligent system

    CN112333187A

  • Offline package verification method and device, equipment and storage medium

    CN114218534A

  • Method and system for safely exporting large file data

    CN114282186A

  • Cloud data integrity dynamic verification method and system based on chameleon hash algorithm

    CN117424717A

  • Encrypted data fuzzy query method and device and electronic equipment

    CN117539927A