Data privacy protection transmission method and device based on compliance review
By introducing compliance review module and hash function verification during data transmission, the lack of compliance review in traditional data transmission solutions is solved, and the security and compliance of data transmission are achieved, ensuring the dual data Encrypt and decrypt and regulate to prevent the leakage of sensitive information.
Patent Information
- Application Number
- CN202310528358.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-11-12
AI Technical Summary
Traditional data transmission solutions lack support for data compliance review, especially in cross-border data transmission, which may lead to leakage of sensitive information, which cannot meet the encryption and decryption needs of dual recipients.
Using a data privacy protection transmission method based on compliance review, the data sender encrypts the plain text data, and the compliance review module decrypts the cipher text data and comply with the compliance review module to generate a hash function. After verification by the supervisor, the The ciphertext data reviewed is sent to the data recipient to ensure the security and compliance of the data during transmission.
实现了对数据传输的双接收者公钥混合加解密,确保数据接收方接收到合规数据,防止敏感数据泄露,简化了数据传输过程,并通过监管方的验证确保数据的合规性,提高 Data security and privacy protection.
Smart Images

Figure CN118944858A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data privacy protection transmission method and device based on compliance review. Background Art
[0002] In today's rapidly developing digital economy, data is not only a basic national strategic resource, but also an important business asset. Data security will not only affect the development of enterprises, but also endanger national and public interests. Therefore, in today's environment, ensuring data security and strengthening the review of data compliance have become important strategic directions for enterprises and even countries.
[0003] Traditional data transmission schemes involve two parties, the data sender and the data receiver. The data sender encrypts the message and sends it to the receiver, who then decrypts it using a private key. There is no supervisory authority to monitor the messages sent during data transmission, so there may be leakage of sensitive information, such as the transmission of sensitive information across borders, which may harm the interests of individuals or even the country.
[0004] The traditional ElGamal public key encryption scheme is a public key hybrid encryption scheme involving both the data sender and the data receiver, with only one receiver. This cannot meet the current need to add compliance review to the sent data, which requires encryption and decryption by two receivers. Summary of the invention
[0005] In view of the above analysis, an embodiment of the present invention aims to provide a data privacy protection transmission method based on compliance review, which is used to solve the technical problem of compliance review and secure transmission of sent data.
[0006] In order to solve the above technical problems, the main technical solutions adopted by the present invention include:
[0007] This specification provides a data privacy protection transmission method based on compliance review, including:
[0008] Step S1: The data sender encrypts the plaintext data to be sent to obtain ciphertext data;
[0009] Step S2: using the compliance review module to sequentially decrypt and conduct compliance review on the ciphertext data; if the review is passed, calculating a first keyed hash function on the ciphertext data;
[0010] Step S3: The data sender signs the ciphertext data, and sends the generated ciphertext data with signature information and the first keyed hash function to the supervisor;
[0011] Step S4: The supervisor verifies the first keyed hash function to determine whether the ciphertext data has passed the compliance review; if yes, the ciphertext data with the signature information is sent to the data recipient;
[0012] Step S5: After verifying the signature information, the data recipient decrypts the ciphertext data to obtain the plaintext data.
[0013] Optionally, the step S1 includes:
[0014] Generate public and private key pairs for the data sender, regulator, and data receiver based on the ElGamal encryption method;
[0015] The plaintext data is encrypted using the supervisor's public key and the data recipient's public key to obtain the ciphertext data.
[0016] Optionally, step S2 includes:
[0017] The compliance review module uses the supervisor's private key to decrypt the ciphertext data to obtain the plaintext data;
[0018] Perform a compliance review on the plaintext data to determine whether the plaintext data is compliant. If the review is passed, use the supervisor's private key to calculate a first keyed hash function of the ciphertext data.
[0019] Optionally, step S3 includes:
[0020] The data sender signs the ciphertext data using the data sender's private key to obtain signature information;
[0021] The ciphertext data with signature information and the first keyed hash function are sent to the supervisor.
[0022] Optionally, step S4 includes:
[0023] Based on the ciphertext data, the supervisor uses the supervisor private key to calculate a second keyed hash function;
[0024] The second keyed hash function is compared with the first keyed hash function. If the two are equal, it is determined that the ciphertext data has passed the compliance review, and the ciphertext data with signature information is sent to the data recipient.
[0025] Optionally, it is characterized in that
[0026] Based on the ciphertext data with signature information, the data recipient verifies the signature information using the data recipient's public key;
[0027] After the signature is verified, the data recipient's private key is used to decrypt the data to obtain the plaintext data.
[0028] This specification provides a data privacy protection transmission device based on compliance review, including:
[0029] Data sending module: set at the data sender, used to encrypt the plaintext data to be sent and send the ciphertext data to the compliance review module; used to send the generated ciphertext data with signature information and the corresponding first keyed hash function to the regulator after the data signature module signs the ciphertext data;
[0030] Compliance review module: set by the regulator at the data sender, used to decrypt and review the obtained ciphertext data in turn, and generate a first keyed hash function if the review is passed;
[0031] Data signature module: set at the data sender, used to sign the ciphertext data that has passed the review after the compliance review module returns the result of passing the review, and send the generated ciphertext data with signature information and the first keyed hash function to the regulator;
[0032] Supervision verification module: set at the supervisor, used to generate a second keyed hash function using the supervisor's private key, compare the second keyed hash function with the first keyed hash function, and if they are equal, it is determined that the sent data has passed the compliance review, and the ciphertext data with signature information is sent to the data recipient;
[0033] Data receiving module: It is set at the data receiving party and is used to receive the ciphertext data with signature information sent by the supervisor and decrypt it to obtain the plaintext data.
[0034] Optionally, the compliance review module decrypts the ciphertext data using the supervisor's private key to obtain plaintext data;
[0035] Perform a compliance review on the plaintext data to determine whether the plaintext data is compliant. If the review is passed, use the supervisor's private key to calculate a first keyed hash function of the ciphertext data.
[0036] Optionally, the data receiving module uses the public key of the data recipient to verify the signature based on the ciphertext data with signature information, and if the signature verification passes, uses the private key of the data recipient to decrypt the data to obtain the plaintext data.
[0037] This specification also provides a data privacy protection transmission method. Any of the above data privacy protection transmission methods, after the data receiving party obtains the plaintext data, further includes the following steps:
[0038] The supervisor analyzes the data to be sent and obtains a result of the data analysis;
[0039] Analyze the compliance review log to obtain the review log analysis result;
[0040] Analyze the compliance review pass / fail results of the sent data to obtain the compliance review result;
[0041] Based on the sending data analysis results, the review log analysis results and the compliance review results, the preset sensitive words of the compliance review module are improved.
[0042] Compared with the prior art, the technical solution of the present invention can achieve at least one of the following beneficial effects:
[0043] 1. Different from the single sender and receiver solution, a dual-receiver public key hybrid encryption and decryption solution is used to encrypt the data sender's plaintext message and conduct compliance review to ensure that the data receiver receives compliant data;
[0044] 2. The supervisor deploys a compliance check module at the data sender. There is no communication between the supervisor and the compliance check module. The supervisor only verifies whether the sent data has passed the review without obtaining the plain text data. After the review is passed, the data is sent through the supervisor. The interactive data is supervised and sensitive data leakage is prevented, thus safeguarding personal privacy and national interests.
[0045] 3. The data recipient only needs to perform signature verification and ciphertext decryption once to obtain the plaintext, which can be decrypted efficiently;
[0046] 4. The solution process is simple, with little interaction, and only a small amount of calculation is needed to achieve the goal of data review and transmission;
[0047] 5. The regulator analyzes the data sending situation, compliance review logs, and compliance review pass status, and further improves the preset sensitive words of the compliance review module to lay the foundation for subsequent data compliance reviews.
[0048] In the present invention, the above-mentioned technical solutions can also be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present invention will be described in the subsequent description, and some advantages can become obvious from the description, or can be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like components throughout the drawings.
[0050] Figure 1 A flowchart of a data privacy protection transmission method based on compliance review;
[0051] Figure 2 Schematic diagram of a data privacy protection transmission device based on compliance review. DETAILED DESCRIPTION
[0052] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0053] Embodiment 1
[0054] In order to protect sensitive data from being leaked, data needs to be supervised during data transmission to ensure data compliance.
[0055] The present invention provides a data privacy protection transmission method based on compliance review, which performs mixed encryption and decryption of the public keys of two recipients on the transmitted data, and transmits the data after passing the review.
[0056] The present invention has three participants, namely: data sender, data receiver and regulator. The roles of the three participants are as follows:
[0057] ① Data sender: Encrypt the plaintext data to be sent and send it to the compliance review module for compliance review. The compliance review module is deployed by the regulator at the data sender and is isolated from the regulator. The regulator cannot obtain the plaintext data. After the data to be sent passes the compliance review, the ciphertext data is signed and the ciphertext data with the signature information is sent to the regulator;
[0058] ② Supervisor: The supervisor's compliance review module has been separated, and the supervisor no longer conducts data compliance review. The supervisor only checks whether the ciphertext data sent has indeed passed the compliance review, so there is no need to decrypt the ciphertext;
[0059] ③Data receiver: After verifying the signature of the ciphertext data with signature information sent by the regulator and confirmed to have passed the compliance check, it can be efficiently decrypted to obtain the plaintext data.
[0060] The present invention provides a data privacy protection transmission method based on compliance review. The data sent by the data sender flows in the following process: data sender --> compliance review module -> data sender -> supervisor -> data receiver.
[0061] like Figure 1 As shown, it mainly includes the following steps S1-S5:
[0062] Step S1: The data sender encrypts the plaintext data to be sent to obtain ciphertext data.
[0063] The data sender encrypts the plaintext data to be sent. The encryption method used is a dual - recipient public - key hybrid encryption scheme. Based on the ElGamal encryption scheme, a public - private key pair (pk3, sk3) of the data sender is generated. At the same time, two recipient public - private key pairs are generated, namely the public - private key pair (pk1, sk1) of the data recipient and the public - private key pair (pk2, sk2) of the regulatory party.
[0064] The data sender encrypts the data to be sent using the public keys of the data recipient and the regulatory party, PE.Enc pk1,pk2 (msg)→pct, where msg is the plaintext of the data to be sent, encrypted using pk1 and pk2, and pct is the ciphertext obtained after encrypting the plaintext msg. The specific encryption process is as follows:
[0065] 1) Randomly select k in G and randomly select an integer r, where 2 < r < q; here G is a finite cyclic group of order q;
[0066] 2) Calculate c0 = g r , where g is the generator of the finite cyclic group G;
[0067] 3) Calculate c1 = k·pk1 r ;
[0068] 4) Calculate c2 = k·pk2 r ;
[0069] 5) Calculate sek = KDF k (c0,c1), where KDF is a key - derivation function, generating a pseudorandom number sek of length
[0070] |msg|;
[0071] 6) c3 = sek⊕msg;
[0072] 7) pct=(c0,c1,c2,c3), obtaining the ciphertext pct.
[0073] After generating the ciphertext pct, send the ciphertext pct to the compliance review module for data compliance review.
[0074] Step S2: Use the compliance review module to decrypt the ciphertext data to obtain the plaintext data, conduct a compliance review on the plaintext data. If the review passes, calculate the first key -ed hash function H for the ciphertext.
[0075] The compliance review module is a data review device arranged by the regulatory party at the data sender, isolated from the regulatory party and unable to communicate with the regulatory party.
[0076] This ensures that the data sent by the data sender is only disclosed to the compliance review module before being sent to the data receiver; if the data fails the compliance review, the sent data is only disclosed to the compliance review module, ensuring the confidentiality of the sent data and reducing the chance of sensitive data leakage.
[0077] Step S21: Decrypt the ciphertext data pct sent in step S1 using the supervisor's private key sk2.
[0078] Execute PE.Dec sk2 (pct)→msg decryption process, where sk2 is the private key of the regulator, and sk2 is used to decrypt the ciphertext data pct to obtain the plaintext data msg.
[0079] The specific decryption process of the compliance review module for the ciphertext data pct is as follows:
[0080] PE.Dec ski (pct)→msg, where i is 1 or 2, ski is sk1 or sk2, sk2 is the private key of the regulator, here is PE.Dec sk2 (pct)→msg.
[0081] 1)(c 0 ,c1,c2,c3)←pct, for simplicity, pct is used to represent the ciphertext data (c0,c1,c2,c3);
[0082] 2) k = c i / c0 ski , where i is equal to 1 or 2, here i = 2, that is, k = c2 / c0 sk2 ;
[0083] 3)sek=KDF k (c0,c1);
[0084] 4)msg=sek⊕c3, obtain the plaintext data msg.
[0085] The ciphertext data pct is decrypted to obtain the plaintext data msg.
[0086] Step S22: Perform compliance review based on the plaintext data msg obtained in step S21.
[0087] Compliance review of the data compliance of plain text data msg. An exemplary data compliance review process may be: extracting key data features in the plain text data msg to be reviewed, matching them with preset sensitive words in the compliance review module, generating matching result information, and then generating a review report.
[0088] During the data transmission process, the regulator uses the compliance review module to screen the sent data and conduct compliance review.
[0089] If the review is in compliance, calculate H = H sk2 (c0, c1, c2, c3), H is the first hash function with a key, H and the review report are sent to the data sender; otherwise, the review is not compliant, the review report is sent to the data sender, and this step terminates.
[0090] Regardless of whether the data review is compliant, the review report needs to be sent to the data sender.
[0091] The compliance check module reviews the plain text data of the data sender, archives the review data, records the review log, outputs the review compliance result and H for those who pass the review, and outputs the non-compliance result for those who fail the review.
[0092] For data that passes the compliance review, the calculated H, defined here as the first keyed hash function, is sent back to the data sender.
[0093] Step S3: The data sender signs the ciphertext data based on the first keyed hash function H to generate signature information.
[0094] The data sender receives the compliance review result and obtains the first keyed hash function H output by the compliance review module, H = H sk2 (c0, c1, c2, c3), use the data sender's private key sk3 to sign the ciphertext data pct, that is, (c0, c1, c2, c3), and generate sig signature information;
[0095] Send sig,(c0,c1,c2,c3),H, i.e., the ciphertext data with signature information and the first keyed hash function, to the supervisor.
[0096] Step S4: The supervisor determines whether the ciphertext data has passed the compliance review by verifying the first keyed hash function H. If so, the supervisor sends the ciphertext data with signature information to the data recipient.
[0097] The supervisor receives sig,(c0,c1,c2,c3,),H, and uses the supervisor's private key sk2 to calculate H sk2 (c0, c1, c2, c3), here defined as the second keyed hash function, verifies whether the second keyed hash function and the first keyed hash function are equal. If they are equal, it means that the ciphertext data has indeed passed the compliance review, and sig (c0, c1, c2, c3) is sent to the data recipient, otherwise the operation is terminated.
[0098] By judging H, the regulator can determine whether the sent data has passed the compliance review without involving the plaintext data of the data sender.
[0099] Step S5: The data recipient verifies the signature information, and after the signature is verified, decrypts it to obtain the plaintext data.
[0100] Step S51: Verify the signature information of the data sender.
[0101] The data receiver receives sig,(c0,c1,c2,c3) sent by the supervisor, and verifies the signature using the data receiver's public key pk1, verifies the authenticity of the data sender, and determines whether it is the signature information of the data sender. If so, it proceeds to step S51, otherwise the step terminates. Verify the data signature to ensure the authenticity of the obtained data.
[0102] Step S52: Decrypt the ciphertext data (c0, c1, c2, c3) to obtain the plaintext data.
[0103] The data receiver uses the data receiver's private key sk1 to perform decryption PE.Dec sk1 (pct)→msg, and obtain the plaintext data msg, where pct is the ciphertext data (c0, c1, c2, c3).
[0104] Execute PE.Dec sk1 (pct)→msg decryption process, where sk1 is the private key of the data receiver, the ciphertext data pct is (c0, c1, c2, c3), and sk1 is used to decrypt the ciphertext data pct to obtain the plaintext data msg.
[0105] The specific decryption process of the data recipient is as follows:
[0106] PE.Dec ski (pct)→msg, where i is 1 or 2, ski is sk1 or sk2, sk1 is the private key of the data receiver, here is PE.Dec sk1 (pct)→msg.
[0107] 5)(c0,c1,c2,c3)←pct;
[0108] 6) k = c i / c0 ski , where i is equal to 1 or 2, here i is 1, use sk1, here is
[0109] k=c1 / c0 sk1 ;
[0110] 7)sek=KDF k (c0,c1);
[0111] 8)msg=sek⊕c3, obtain plaintext msg.
[0112] At this point, the data recipient has received the compliance-checked data sent by the data sender. The signature information ensures the authenticity of the data, and the ciphertext data ensures the security of the data.
[0113] Embodiment 2
[0114] like Figure 2 As shown, a data privacy protection transmission device based on compliance review includes:
[0115] Data sending module 201: set at the data sender, used to perform data encryption on the plaintext data to be sent, and send the ciphertext data to the compliance review module 202; used to send the generated ciphertext data with signature information and the corresponding first keyed hash function to the supervisor after the data signature module signs the ciphertext data;
[0116] Compliance review module 202: deployed by the supervisor at the data sender, used to decrypt and review the obtained ciphertext data in turn, and generate a first keyed hash function if the review is passed;
[0117] Data signature module 203: set at the data sender, used to sign the ciphertext data that has passed the review after the compliance review module returns the result of passing the review;
[0118] Supervision verification module 204: set at the data supervisor, used to generate a second keyed hash function using the monitoring party's private key, compare the second keyed hash function with the first keyed hash function, if they are equal, it is judged that the sent data has passed the compliance review, and the encrypted data with signature is sent to the data recipient, otherwise it is terminated; in this way, the supervisor can make a compliance judgment on the data sent by the data sending module without obtaining the plaintext data of the sender;
[0119] Data receiving module 205: is set at the data receiving party, and is used to first use the data receiving party's public key to verify the signature after receiving the ciphertext data with signature information sent by the supervisor. If the signature verification passes, the data is decrypted using the data receiving party's private key, otherwise it is terminated; the plaintext data is obtained by decrypting the data.
[0120] Embodiment 3
[0121] A data privacy protection transmission method, comprising the data privacy protection transmission method according to any one of claims 1 to 8, and after the data receiving party obtains the plaintext data, further comprising the following steps:
[0122] The supervisor analyzes the data to be sent and obtains the analysis result of the sent data;
[0123] Analyze the compliance review log to obtain the review log analysis result;
[0124] Analyze the compliance review pass / fail results of the sent data to obtain the compliance review result;
[0125] Based on the sending data analysis results, the review log analysis results and the compliance review results, the preset sensitive words of the compliance review module are improved.
[0126] The regulator analyzes the data sending situation, compliance review logs, and compliance review pass status, and further improves the preset sensitive words of the compliance review module to lay the foundation for subsequent data compliance reviews.
[0127] The contents not described in detail in the specification of the present invention belong to the well-known technologies of professionals in the field.
[0128] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0129] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A data privacy protection transmission method based on compliance review, characterized in that: include: Step S1: The data sender encrypts the plaintext data to be sent to obtain ciphertext data; Step S2: using the compliance review module to sequentially decrypt and conduct compliance review on the ciphertext data; if the review is passed, calculating a first keyed hash function on the ciphertext data; Step S3: The data sender signs the ciphertext data, and sends the generated ciphertext data with signature information and the first keyed hash function to the supervisor; Step S4: The supervisor verifies the first keyed hash function to determine whether the ciphertext data has passed the compliance review; If yes, the ciphertext data with signature information is sent to the data recipient; Step S5: After verifying the signature information, the data recipient decrypts the ciphertext data to obtain the plaintext data.
2. The data privacy protection transmission method according to claim 1, characterized in that: The step S1 comprises: Generate public and private key pairs for the data sender, regulator, and data receiver based on the ElGamal encryption method; The plaintext data is encrypted using the supervisor's public key and the data recipient's public key to obtain the ciphertext data.
3. The data privacy protection transmission method according to claim 2, characterized in that: The step S2 comprises: The compliance review module uses the supervisor's private key to decrypt the ciphertext data to obtain the plaintext data; Perform a compliance review on the plaintext data to determine whether the plaintext data is compliant. If the review is passed, use the supervisor's private key to calculate a first keyed hash function of the ciphertext data.
4. The data privacy protection transmission method according to claim 3 is characterized in that: The step S3 comprises: The data sender signs the ciphertext data using the data sender's private key to obtain signature information; The ciphertext data with signature information and the first keyed hash function are sent to the supervisor.
5. The data privacy protection transmission method according to claim 4, characterized in that: The step S4 comprises: Based on the ciphertext data, the supervisor uses the supervisor private key to calculate a second keyed hash function; The second keyed hash function is compared with the first keyed hash function. If the two are equal, it is determined that the ciphertext data has passed the compliance review, and the ciphertext data with signature information is sent to the data recipient.
6. The data privacy protection transmission method according to claim 5, characterized in that: Based on the ciphertext data with signature information, the data recipient verifies the signature information using the data recipient's public key; After the signature is verified, the data recipient's private key is used to decrypt the data to obtain the plaintext data.
7. A data privacy protection transmission device based on compliance review, characterized in that: include: Data sending module: It is set at the data sender to encrypt the plaintext data to be sent and send the ciphertext data to the compliance review module; Used to send the generated ciphertext data with signature information and the corresponding first keyed hash function to the supervisor after the data signature module signs the ciphertext data; Compliance review module: set by the regulator at the data sender, used to decrypt and review the obtained ciphertext data in turn, and generate a first keyed hash function if the review is passed; Data signature module: set at the data sender, used to sign the ciphertext data that has passed the review after the compliance review module returns the result of passing the review, and send the generated ciphertext data with signature information and the first keyed hash function to the regulator; Supervision verification module: set at the supervisor, used to generate a second keyed hash function using the supervisor's private key, compare the second keyed hash function with the first keyed hash function, and if they are equal, it is determined that the sent data has passed the compliance review, and the ciphertext data with signature information is sent to the data recipient; Data receiving module: It is set at the data receiving party and is used to receive the ciphertext data with signature information sent by the supervisor and decrypt it to obtain the plaintext data.
8. The data privacy protection transmission device according to claim 7, characterized in that: The compliance review module decrypts the ciphertext data using the supervisor's private key to obtain the plaintext data; Perform a compliance review on the plaintext data to determine whether the plaintext data is compliant. If the review is passed, use the supervisor's private key to calculate a first keyed hash function of the ciphertext data.
9. The data privacy protection transmission device according to claim 7, characterized in that: The data receiving module verifies the signature using the public key of the data receiving party based on the ciphertext data with signature information. If the signature verification passes, the data receiving party's private key is used to decrypt the data to obtain the plaintext data.
10. A data privacy protection transmission method, characterized in that: The data privacy protection transmission method according to any one of claims 1 to 6 further comprises the following steps after the data receiving party obtains the plaintext data: The supervisor analyzes the data to be sent and obtains a result of the data analysis; Analyze the compliance review log to obtain the review log analysis result; Analyze the compliance review pass / fail results of the sent data to obtain the compliance review result; Based on the sending data analysis results, the review log analysis results and the compliance review results, the preset sensitive words of the compliance review module are improved.
