Data sharing method, computing device, storage medium and computer program product
By using ciphertext data aggregation and encryption technology in the data sharing method, the problem of privacy data leakage during data sharing is solved, ensuring that the data remains ciphertext in the cloud computing device, and avoiding privacy data leakage and data source speculation.
Patent Information
- Application Number
- CN202410834785.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-25
AI Technical Summary
In data sharing scenarios, the lack of a trusted third party leads to the risk of private data leakage, and the resultant party infers the source of private data through multiple queries, making it easy to leak private data during data sharing.
A data sharing method is adopted, in which each data party device sends the ciphertext data set to the cloud computing device. The cloud computing device aggregates the ciphertext data and generates data sharing results based on the target ciphertext data to ensure that all data is processed in ciphertext. , to avoid inferring the private data in the data party's device through the cloud computing device, and at the same time, the source of the second ciphertext data received by the result party cannot be determined.
It effectively avoids the leakage of private data during data sharing, ensures that the private data in the data party's device is not transmitted through the cloud computing device, and prevents the result party from determining the ciphertext data set of the data source through the received second ciphertext data.
Smart Images

Figure CN118839367A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a data sharing method, a computing device, a storage medium and a computer program product. Background Art
[0002] With the rapid development of Internet technology, data sharing technology is widely used in various data processing scenarios. Usually, the data party refers to the participant who holds private data in the data sharing process, and the result party refers to the party that needs to obtain the private data of the data party. Usually, all data parties will send private data to a trusted third party in advance, and the third party will aggregate the received data to obtain the data aggregation result. The result party queries the data aggregation result provided by the third party to protect the private data and the source of the private data.
[0003] However, in actual data sharing scenarios, truly trustworthy third parties do not exist. Therefore, there is a risk that a third party can use the received data to infer the private data held by the data party. At the same time, there are usually multiple data parties in a data sharing scenario, and there is a risk that a third party will collude with any data party to obtain the private data of other data parties, which makes it easy to leak private data when sharing data. In addition, after the result party makes multiple query requests, the source of the private data can be determined by calculation, which makes it easy to leak private data when sharing data. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a data sharing method, a computing device, a storage medium and a computer program product, which are used to solve the problem that private data is easily leaked during data sharing.
[0005] In order to achieve the above-mentioned purpose, in a first aspect, the present application provides a data sharing method, which is applied to a cluster device, wherein the cluster device includes a cloud computing device and at least one data party device, and the data sharing method includes:
[0006] Each data party device sends the ciphertext data set to the cloud computing device respectively, wherein the ciphertext data set includes at least one identification ciphertext, and each identification ciphertext corresponds to one first ciphertext data;
[0007] The cloud computing device aggregates all the ciphertext data sets to obtain a shared data set, wherein the shared data set includes the identification ciphertexts in all the ciphertext data sets, and each identification ciphertext corresponds to a second ciphertext data, and the second ciphertext data is obtained according to the first ciphertext data in at least one ciphertext data set;
[0008] The cloud computing device responds to the data sharing request sent by the result party device, determines the target identification ciphertext requested to be shared, and determines the target second ciphertext data corresponding to the target identification ciphertext;
[0009] The cloud computing device generates a data sharing result based on the target second ciphertext data, and sends the data sharing result to the result-generating device.
[0010] In an embodiment of the present application, each data-side device sends a ciphertext data set to a cloud computing device, including:
[0011] Each data party device obtains at least one identification ciphertext, wherein each identification ciphertext corresponds to at least one plaintext data;
[0012] Each data party device aggregates all target plaintext data to obtain plaintext aggregate data, wherein the identification ciphertext corresponding to each target plaintext data is the same;
[0013] Each data party device encrypts the plaintext aggregate data to obtain first ciphertext data corresponding to the identification ciphertext;
[0014] Each data-party device constructs a ciphertext data set based on the first ciphertext data and the identification ciphertext, and sends the ciphertext data set to the cloud computing device.
[0015] In an embodiment of the present application, each data party device encrypts the plaintext aggregate data to obtain first ciphertext data corresponding to the identification ciphertext, including:
[0016] All data party devices negotiate to obtain common coefficients among all data party devices;
[0017] Each data party device encrypts the plaintext aggregate data using a public coefficient and a random number to obtain first ciphertext data corresponding to the identification ciphertext, wherein each ciphertext data set corresponds to a random number.
[0018] In an embodiment of the present application, the cloud computing device aggregates all ciphertext data sets to obtain a shared data set, including:
[0019] For any identification ciphertext, the cloud computing device aggregates the random numbers corresponding to the target ciphertext data set to obtain an aggregated random number corresponding to the identification ciphertext, wherein the target ciphertext data set is a ciphertext data set including the identification ciphertext;
[0020] The cloud computing device aggregates all target first ciphertext data to obtain second ciphertext data, wherein the identification ciphertext corresponding to each target first ciphertext data is the same;
[0021] The cloud computing device obtains a shared data set according to the identification ciphertext, the aggregate random number and the second ciphertext data;
[0022] The cloud computing device generates a data sharing result based on the target second ciphertext data, and sends the data sharing result to the result-side device, including:
[0023] The cloud computing device determines a target aggregate random number corresponding to the target identification ciphertext;
[0024] The cloud computing device generates a data sharing result based on the target second ciphertext data and the target aggregate random number, and sends the data sharing result to the result-generating device.
[0025] In the embodiment of the present application, all data party devices negotiate to obtain common coefficients between all data party devices, including:
[0026] Each data-party device determines the public value based on the acquired prime numbers, primitive roots, and random numbers;
[0027] All data party devices negotiate based on the public value to obtain the common coefficients among all data party devices.
[0028] In an embodiment of the present application, each data party device obtains at least one identification ciphertext, including:
[0029] All data party devices negotiate to obtain a hash function;
[0030] Each data party device obtains at least one piece of identification data;
[0031] Each data party device processes each piece of identification data using a hash function to obtain an identification ciphertext.
[0032] In an embodiment of the present application, the cloud computing device aggregates all ciphertext data sets to obtain a shared data set, including:
[0033] The cloud computing device obtains the initial data set;
[0034] The cloud computing device sequentially determines each identification ciphertext in the ciphertext data set as a first identification ciphertext, and determines whether there is a second identification ciphertext identical to the first identification ciphertext in the initial data set, wherein each second identification ciphertext corresponds to a second ciphertext data;
[0035] When there is a second identification ciphertext identical to the first identification ciphertext in the initial data set, the cloud computing device aggregates first ciphertext data corresponding to the first identification ciphertext and second ciphertext data corresponding to the second identification ciphertext to update the second ciphertext data;
[0036] When there is no second identification ciphertext identical to the first identification ciphertext in the initial data set, the cloud computing device determines the first identification ciphertext as the second identification ciphertext, and determines the first ciphertext data corresponding to the first identification ciphertext as the second ciphertext data;
[0037] The cloud computing device obtains a shared data set based on the second identification ciphertext and the second ciphertext data.
[0038] In a second aspect, the present application provides a computing device, including:
[0039] a memory configured to store instructions; and
[0040] The processor is configured to call instructions from the memory and implement the above data sharing method when executing the instructions.
[0041] In a third aspect, the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to execute the above-mentioned data sharing method.
[0042] In a fourth aspect, the present application provides a computer program product, including a computer program, which implements the above-mentioned data sharing method when executed by a processor.
[0043] The present application provides a data sharing method, which is applied to cluster devices. The cluster devices include cloud computing devices and at least one data party device. The data sharing method includes: each data party device sends a ciphertext data set to the cloud computing device respectively; the cloud computing device aggregates all ciphertext data sets to obtain a shared data set; the cloud computing device responds to the data sharing request sent by the result party device, determines the target identification ciphertext requested to be shared, and determines the target second ciphertext data corresponding to the target identification ciphertext; the cloud computing device generates a data sharing result based on the target second ciphertext data, and sends the data sharing result to the result party device. All data received by the cloud computing device are ciphertext data, and the private data in the data party device is not transmitted locally, which avoids the speculation of the private data in the data party device through the cloud computing device. At the same time, the second ciphertext data received by the result party device is obtained by the cloud computing device by merging the first ciphertext data. Even if the result party device can obtain the second ciphertext data corresponding to each identification ciphertext respectively, it is impossible to determine the ciphertext data set from which each identification ciphertext and the second ciphertext data are derived, which avoids the leakage of private data during data sharing. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0045] Figure 1 A first flow chart of the data sharing method provided in an embodiment of the present application is shown;
[0046] Figure 2 A schematic diagram of the structure of a cluster device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0047] The specific implementation of the embodiment of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiment of the present invention. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0048] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0049] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0050] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0051] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. Terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.
[0052] See also Figure 1 , Figure 1 A first flow chart of the data sharing method provided in an embodiment of the present application is shown. Figure 1 The data sharing method in the invention is applied to a cluster device, wherein the cluster device includes a cloud computing device and at least one data party device. Figure 1 Data sharing methods in include:
[0053] S110, each data party device sends a ciphertext data set to a cloud computing device respectively, wherein the ciphertext data set includes at least one identification ciphertext, and each identification ciphertext corresponds to a first ciphertext data.
[0054] In a data sharing scenario, there is usually one result party device and at least two data party devices. The data party device refers to the participant who holds private data, and the result party device refers to the demander who needs to share private data. In this embodiment, each data party device provides a ciphertext data set:
[0055]
[0056] Among them, H(ID N ) is the Nth identification ciphertext, M N It is the Nth first ciphertext data, and each identification ciphertext corresponds to one first ciphertext data.
[0057] Each data party device pre-processes the private data to obtain a ciphertext data set, and then sends the ciphertext data set to the cloud computing device. Since the data in each ciphertext data set is ciphertext data, it prevents the third-party cloud computing device from inferring the private data held by each data party device through the received data. It should be understood that the type of identification ciphertext is set according to actual needs, and can be an encrypted ID (Identifier), etc., which is not limited here.
[0058] S120, the cloud computing device aggregates all the ciphertext data sets to obtain a shared data set, wherein the shared data set includes identification ciphertexts in all the ciphertext data sets, and each identification ciphertext corresponds to a second ciphertext data, and the second ciphertext data is obtained based on the first ciphertext data in at least one ciphertext data set.
[0059] There may be the same identification ciphertext or different identification ciphertexts among all ciphertext data sets. The cloud computing device aggregates all ciphertext data sets to obtain a shared data set. Specifically, when there is the same identification ciphertext among the ciphertext data sets, the first ciphertext data corresponding to the same identification ciphertext are merged to obtain the second ciphertext data. The obtained shared data set includes the identification ciphertexts in all ciphertext data sets, and each identification ciphertext corresponds to one second ciphertext data.
[0060] In an embodiment of the present application, the cloud computing device aggregates all ciphertext data sets to obtain a shared data set, including:
[0061] The cloud computing device obtains the initial data set;
[0062] The cloud computing device sequentially determines each identification ciphertext in the ciphertext data set as a first identification ciphertext, and determines whether there is a second identification ciphertext identical to the first identification ciphertext in the initial data set, wherein each second identification ciphertext corresponds to a second ciphertext data;
[0063] When there is a second identification ciphertext identical to the first identification ciphertext in the initial data set, the cloud computing device aggregates first ciphertext data corresponding to the first identification ciphertext and second ciphertext data corresponding to the second identification ciphertext to update the second ciphertext data;
[0064] When there is no second identification ciphertext identical to the first identification ciphertext in the initial data set, the cloud computing device determines the first identification ciphertext as the second identification ciphertext, and determines the first ciphertext data corresponding to the first identification ciphertext as the second ciphertext data;
[0065] The cloud computing device obtains a shared data set based on the second identification ciphertext and the second ciphertext data.
[0066] For ease of understanding, in the embodiments of the present application, multiple data party devices collaborate to design a function function, and the designed function function implements at least two functions. The first function is to aggregate all ciphertext data sets to obtain a shared data set, and the second function is to directly send the data sharing result to the result party device, or respond to the data sharing request sent by the result party device, and then send the shared result to the result party device. In this embodiment, the function function is deployed on a cloud computing device to run as part of serverless computing. Serverless computing is a cloud computing service model in which a cloud service provider dynamically allocates and manages the computing resources required to execute specific code without the need for users to manually configure and manage servers. It should be understood that in the embodiments of the present application, the cloud computing device uses a pre-defined function function to aggregate the data in the ciphertext data set. The logic of the function function for data aggregation can be changed according to actual needs to implement different computing functions, thereby avoiding the computing process from relying on auxiliary computing nodes.
[0067] After the function function is deployed on the cloud computing device, the function makes the cloud computing device perform data aggregation logic as follows: the cloud computing device obtains the initial data set. The cloud computing device sequentially determines each identification ciphertext in the ciphertext data set as the first identification ciphertext. The cloud computing device traverses all the second identification ciphertexts in the initial data set to determine whether there is a second identification ciphertext identical to the first identification ciphertext in the initial data set, wherein each second identification ciphertext corresponds to a second ciphertext data. When there is a second identification ciphertext identical to the first identification ciphertext in the initial data set, the cloud computing device aggregates the first ciphertext data corresponding to the first identification ciphertext with the second ciphertext data corresponding to the second identification ciphertext. The first ciphertext data and random number corresponding to the first identification ciphertext are added to the second ciphertext data and random number corresponding to the second identification ciphertext to update the second ciphertext data and random number corresponding to the second identification ciphertext. When there is no second identification ciphertext identical to the first identification ciphertext in the initial data set, the cloud computing device determines the first identification ciphertext as the second identification ciphertext, determines the first ciphertext data corresponding to the first identification ciphertext as the second ciphertext data, and determines the random number corresponding to the first identification ciphertext as the random number corresponding to the second identification ciphertext. The cloud computing device obtains the shared data set based on the second identification ciphertext and the second ciphertext data.
[0068] S130, the cloud computing device responds to the data sharing request sent by the result party device, determines the target identification ciphertext requested to be shared, and determines the target second ciphertext data corresponding to the target identification ciphertext.
[0069] When the result-party device needs to share the private data corresponding to the target identification ciphertext, a data sharing request is generated according to the target identification ciphertext, and the data sharing request is sent to the cloud computing device. The cloud computing device responds to the data sharing request sent by the result-party device, determines the target identification ciphertext requested to be shared, and determines the target second ciphertext data corresponding to the target identification ciphertext.
[0070] S140, the cloud computing device generates a data sharing result based on the target second ciphertext data, and sends the data sharing result to the result-generating device.
[0071] After the cloud computing device determines the target second ciphertext data requested to be shared by the result party device, it generates a data sharing result based on the target second ciphertext data and sends the data sharing result to the result party device. All data received by the cloud computing device are ciphertext data, which avoids inferring the privacy data in the data party device through the cloud computing device. At the same time, the second ciphertext data received by the result party device is obtained by the cloud computing device by merging the first ciphertext data. Even if the result party device can obtain the second ciphertext data corresponding to each identification ciphertext respectively, it is impossible to determine the ciphertext data set from which each identification ciphertext and the second ciphertext data come, which avoids the leakage of privacy data when sharing data.
[0072] In an embodiment of the present application, each data-side device sends a ciphertext data set to a cloud computing device, including:
[0073] Each data party device obtains at least one identification ciphertext, wherein each identification ciphertext corresponds to at least one plaintext data;
[0074] Each data party device aggregates all target plaintext data to obtain plaintext aggregate data, wherein the identification ciphertext corresponding to each target plaintext data is the same;
[0075] Each data party device encrypts the plaintext aggregate data to obtain first ciphertext data corresponding to the identification ciphertext;
[0076] Each data-party device constructs a ciphertext data set based on the first ciphertext data and the identification ciphertext, and sends the ciphertext data set to the cloud computing device.
[0077] Usually, the data party device includes at least one identification data, and each identification data is encrypted into an identification ciphertext, so that the data party device obtains at least one identification ciphertext. Each identification ciphertext corresponds to at least one plaintext data, and the plaintext data can be queried through the identification ciphertext. For any identical identification ciphertext, each data party device determines the target plaintext data corresponding to the same identification ciphertext, and aggregates all the target plaintext data to obtain the plaintext aggregate data corresponding to the identification ciphertext.
[0078] After obtaining the plaintext aggregate data corresponding to all identification ciphertexts, each data party device encrypts the plaintext aggregate data to obtain the first ciphertext data corresponding to the identification ciphertext. Based on the first ciphertext data and the identification ciphertext, each data party device constructs data in the form of key-value pairs, and then constructs a ciphertext data set, and sends the ciphertext data set to the cloud computing device, and then aggregates all the ciphertext data sets through the cloud computing device.
[0079] In an embodiment of the present application, each data party device encrypts the plaintext aggregate data to obtain first ciphertext data corresponding to the identification ciphertext, including:
[0080] All data party devices negotiate to obtain common coefficients among all data party devices;
[0081] Each data party device encrypts the plaintext aggregate data using a public coefficient and a random number to obtain first ciphertext data corresponding to the identification ciphertext, wherein each ciphertext data set corresponds to a random number.
[0082] All data party devices negotiate to obtain common coefficients between all data party devices. Specifically, all data party devices can use group keys to negotiate a common coefficient. For ease of understanding, in the embodiment of the present application, all data party devices use the Burmester-Desmedt protocol to negotiate to obtain common coefficients, wherein the Burmester-Desmedt protocol is a group key negotiation protocol based on the Diffie-Hellman key negotiation algorithm, which is used to securely generate a shared key or coefficient in a communication group.
[0083] Each data-party device selects a random number so that each ciphertext data set corresponds to a random number. Each data-party device encrypts the plaintext aggregate data using the public coefficient and the random number to obtain the first ciphertext data corresponding to the identification ciphertext:
[0084] M j =a*m j +b i (j∈[N]) Formula (2)
[0085] Among them, the i-th ciphertext data set includes N identification ciphertexts, M j is the first ciphertext data corresponding to the jth identification ciphertext, m j is the plaintext aggregate data corresponding to the jth ciphertext, a is the public coefficient, b i is a random number corresponding to the i-th ciphertext data set.
[0086] In an embodiment of the present application, each data party device obtains at least one identification ciphertext, including:
[0087] All data party devices negotiate to obtain a hash function;
[0088] Each data party device obtains at least one piece of identification data;
[0089] Each data party device processes each piece of identification data using a hash function to obtain an identification ciphertext.
[0090] All data party devices negotiate to obtain an ideal hash function to hide the true value of the identification data through the hash function. Each data party device obtains at least one piece of identification data to build the initial data set of the data party device:
[0091]
[0092] Among them, ID N is the Nth identification data, m N It is the Nth plaintext data, and each identification data corresponds to a plaintext data.
[0093] Each data party device processes each identification data using a hash function to obtain an identification ciphertext. It should be understood that all data party devices can also perform key negotiation and encrypt the identification data with the negotiated password to obtain the identification ciphertext, which will not be described in detail here.
[0094] In the embodiment of the present application, all data party devices negotiate to obtain common coefficients between all data party devices, including:
[0095] Each data-party device determines the public value based on the acquired prime numbers, primitive roots, and random numbers;
[0096] All data party devices negotiate based on the public value to obtain the common coefficients among all data party devices.
[0097] All data-stakeholder devices jointly select a prime number and a primitive root, where both the prime number and the primitive root are publicly available data. At the same time, each data-stakeholder device obtains a random number, where the random number is non-public data. Each data-stakeholder device determines the public value based on the prime number, primitive root, and random number obtained:
[0098]
[0099] Among them, B i is the public value corresponding to the i-th data party device, p is the prime number selected by all data party devices, g is the primitive root selected by all data party devices, b i is the random number corresponding to the i-th data party device.
[0100] Any data party device in the cluster is determined as the target data party device. After the target data party device determines the public value, the public value is sent to all data party devices in the cluster except the target data party device. When all data party devices have sent the public value, all data party devices negotiate based on the public value to obtain the common coefficients among all data party devices.
[0101] In an embodiment of the present application, the cloud computing device aggregates all ciphertext data sets to obtain a shared data set, including:
[0102] For any identification ciphertext, the cloud computing device aggregates the random numbers corresponding to the target ciphertext data set to obtain an aggregated random number corresponding to the identification ciphertext, wherein the target ciphertext data set is a ciphertext data set including the identification ciphertext;
[0103] The cloud computing device aggregates all target first ciphertext data to obtain second ciphertext data, wherein the identification ciphertext corresponding to each target first ciphertext data is the same;
[0104] The cloud computing device obtains a shared data set according to the identification ciphertext, the aggregate random number and the second ciphertext data;
[0105] The cloud computing device generates a data sharing result based on the target second ciphertext data, and sends the data sharing result to the result-side device, including:
[0106] The cloud computing device determines a target aggregate random number corresponding to the target identification ciphertext;
[0107] The cloud computing device generates a data sharing result based on the target second ciphertext data and the target aggregate random number, and sends the data sharing result to the result-generating device.
[0108] For any identification ciphertext, if the current ciphertext data set includes the identification ciphertext, the current ciphertext data set is determined as the target ciphertext data set. The cloud computing device aggregates the random numbers corresponding to the target ciphertext data set to obtain an aggregated random number corresponding to the identification ciphertext.
[0109] The first ciphertext data with the same corresponding identification ciphertext is determined as the target first ciphertext data, and the cloud computing device aggregates all the target first ciphertext data to obtain the second ciphertext data. The cloud computing device obtains the shared data set based on the identification ciphertext, the aggregated random number and the second ciphertext data:
[0110]
[0111] Among them, H(ID N ) is the Nth identification ciphertext, ∑M N is the Nth second ciphertext data, ∑b N is the Nth aggregate random number, and each identification ciphertext corresponds to a second ciphertext data and an aggregate random number.
[0112] After obtaining the shared data set, the cloud computing device responds to the data sharing request sent by the result party device. The cloud computing device determines the target aggregate random number and the target second ciphertext data corresponding to the target identification ciphertext, generates a data sharing result based on the target second ciphertext data and the target aggregate random number, and sends the data sharing result to the result party device. The result party device determines the plaintext aggregate data corresponding to the target identification ciphertext based on the target second ciphertext data and the target aggregate random number, that is, obtains the sum result of all plaintext data corresponding to the target identification ciphertext.
[0113] See also Figure 2 , Figure 2 A schematic diagram of the structure of a cluster device provided in an embodiment of the present application is shown.
[0114] The embodiment of the present application further provides a cluster device 200 , which includes a cloud computing device 210 and at least one data cube device 220 .
[0115] Usually, the cluster device 200 includes at least one data party device 220, and each data party device 220 refers to a participant holding private data. At the same time, the cluster device 200 in this embodiment also includes a cloud computing device 210. In an actual data sharing scenario, the second ciphertext data received by the result party device 300 is obtained by the cloud computing device 210 by merging the first ciphertext data. Even if the result party device 300 can obtain the second ciphertext data corresponding to each identification ciphertext respectively, it is impossible to determine the ciphertext data set from which each identification ciphertext and the second ciphertext data come, thereby avoiding the leakage of private data during data sharing.
[0116] For ease of understanding, the cluster device 200 in the figure shows three data party devices 220, that is, the cluster device 200 includes a first data party device, a second data party device, and a third data party device. Each data party device 220 includes an original data set, which is in the form of a key-value pair. Each key-value pair includes an identification data and a plaintext data corresponding to the identification data. Assume that the original data set included in the first data party device is The original data set included in the second data party device is The original data set included in the third-party data device is Among them, A, B, C and D are all identification data, and 100, 200, 30, 400, 500, 60, 700 and 80 are all plain text data corresponding to the identification data.
[0117] All data party devices 220 negotiate to obtain a hash function, and each data party device 220 processes each identification data using the hash function to obtain an identification ciphertext. At the same time, all data party devices 220 negotiate to obtain a common coefficient between all data party devices 220. Each data party device 220 aggregates all target plaintext data to obtain plaintext aggregate data, and each data party device 220 encrypts the plaintext aggregate data using the common coefficient and a random number to obtain the first ciphertext data corresponding to the identification ciphertext.
[0118] It should be understood that the public coefficient and the random number are usually very large values. For ease of understanding, in the embodiment of the present application, the public coefficient is 100, the random number corresponding to the ciphertext data set in the first data party device is 20, the random number corresponding to the ciphertext data set in the second data party device is 30, and the random number corresponding to the ciphertext data set in the third data party device is 50. The ciphertext data set obtained by the first data party device is The ciphertext data set obtained by the second data party device is: The ciphertext data set obtained by the third data party device is:
[0119] Multiple data party devices 220 collaborate to design a function and deploy the function on the cloud computing device 210. Each data party device 220 sends the ciphertext data set and the random number to the cloud computing device 210 to use the ciphertext data set and the random number as inputs of the function. It should be understood that the cloud computing device 210 can also deploy other strategies, which are set according to actual needs and are not limited here. For ease of understanding, other strategies in the embodiments of the present application are user authentication and access control strategies to ensure data security.
[0120] In the case where the same identification ciphertext exists between ciphertext data sets, the cloud computing device 210 aggregates the random numbers corresponding to the target ciphertext data set to obtain the aggregated random numbers corresponding to the identification ciphertext, wherein the target ciphertext data set is the ciphertext data set including the identification ciphertext. The cloud computing device 210 aggregates all target first ciphertext data to obtain second ciphertext data, wherein the identification ciphertext corresponding to each target first ciphertext data is the same. The cloud computing device 210 obtains the shared data set based on the identification ciphertext, the aggregated random number and the second ciphertext data:
[0121]
[0122] Among them, H(A), H(B), H(C) and H(D) are all identification ciphertexts, 83070, 60050, 56030 and 8050 are all second ciphertext data, and 70, 50 and 30 are all aggregated random numbers.
[0123] After the cloud computing device 210 obtains the shared data set, it obtains the data sharing result according to the actual shared data set. The cloud computing device 210 can directly send the data sharing result to the result party device 300, or it can respond to the data sharing request sent by the result party device 300, and then send the data sharing result to the result party device 300. Assuming that the target identification ciphertext requested to be shared by the result party device 300 is H(C), the cloud computing device 210 generates the data sharing result based on the target second ciphertext data and the target aggregate random number, and sends the data sharing result to the result party device 300, wherein the target second ciphertext data is 56030 and the target aggregate random number is 30. The result party device 300 responds to the received sharing result, and determines that the sum of all plaintext data corresponding to the target identification ciphertext is 560 according to the target second ciphertext data and the target aggregate random number.
[0124] The present application provides a data sharing method, which is applied to cluster devices. The cluster devices include cloud computing devices and at least one data party device. The data sharing method includes: each data party device sends a ciphertext data set to the cloud computing device respectively; the cloud computing device aggregates all ciphertext data sets to obtain a shared data set; the cloud computing device responds to the data sharing request sent by the result party device, determines the target identification ciphertext requested to be shared, and determines the target second ciphertext data corresponding to the target identification ciphertext; the cloud computing device generates a data sharing result based on the target second ciphertext data, and sends the data sharing result to the result party device. All data received by the cloud computing device are ciphertext data, and the private data in the data party device is not transmitted locally, which avoids the speculation of the private data in the data party device through the cloud computing device. At the same time, the second ciphertext data received by the result party device is obtained by the cloud computing device by merging the first ciphertext data. Even if the result party device can obtain the second ciphertext data corresponding to each identification ciphertext respectively, it is impossible to determine the ciphertext data set from which each identification ciphertext and the second ciphertext data are derived, which avoids the leakage of private data during data sharing.
[0125] The present application also provides a computing device, including:
[0126] a memory configured to store instructions; and
[0127] The processor is configured to call instructions from the memory and implement the above data sharing method when executing the instructions.
[0128] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the problem of easy leakage of private data during data sharing can be solved by adjusting kernel parameters.
[0129] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0130] An embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute the above-mentioned data sharing method.
[0131] An embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned data sharing method when executed by a processor.
[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0133] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0136] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0137] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0138] Machine-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0139] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0140] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A data sharing method, characterized in that: Applied to a cluster device, the cluster device includes a cloud computing device and at least one data party device, the data sharing method includes: Each of the data party devices sends a ciphertext data set to a cloud computing device, wherein the ciphertext data set includes at least one identification ciphertext, and each identification ciphertext corresponds to a first ciphertext data; The cloud computing device aggregates all the ciphertext data sets to obtain a shared data set, wherein the shared data set includes the identification ciphertexts in all the ciphertext data sets, and each identification ciphertext corresponds to a second ciphertext data, and the second ciphertext data is obtained based on the first ciphertext data in at least one of the ciphertext data sets; The cloud computing device responds to the data sharing request sent by the result party device, determines the target identification ciphertext requested to be shared, and determines the target second ciphertext data corresponding to the target identification ciphertext; The cloud computing device generates a data sharing result based on the target second ciphertext data, and sends the data sharing result to the result-generating device.
2. The data sharing method according to claim 1, characterized in that: Each of the data party devices sends the ciphertext data set to the cloud computing device, including: Each of the data party devices obtains at least one identification ciphertext, wherein each of the identification ciphertext corresponds to at least one of the plaintext data; Each of the data party devices aggregates all target plaintext data to obtain plaintext aggregate data, wherein the identification ciphertext corresponding to each piece of the target plaintext data is the same; Each of the data party devices encrypts the plaintext aggregate data to obtain first ciphertext data corresponding to the identification ciphertext; Each of the data party devices constructs a ciphertext data set based on the first ciphertext data and the identification ciphertext, and sends the ciphertext data set to a cloud computing device.
3. The data sharing method according to claim 2, characterized in that: Each of the data party devices encrypts the plaintext aggregate data to obtain first ciphertext data corresponding to the identification ciphertext, including: All the data party devices negotiate to obtain common coefficients among all the data party devices; Each of the data party devices encrypts the plaintext aggregate data using the public coefficient and the random number to obtain first ciphertext data corresponding to the identification ciphertext, wherein each ciphertext data set corresponds to a random number.
4. The data sharing method according to claim 3, characterized in that: The cloud computing device aggregates all the ciphertext data sets to obtain a shared data set, including: For any one of the identification ciphertexts, the cloud computing device aggregates the random numbers corresponding to the target ciphertext data set to obtain an aggregated random number corresponding to the identification ciphertext, wherein the target ciphertext data set is a ciphertext data set including the identification ciphertext; The cloud computing device aggregates all target first ciphertext data to obtain second ciphertext data, wherein the identification ciphertext corresponding to each of the target first ciphertext data is the same; The cloud computing device obtains a shared data set according to the identification ciphertext, the aggregate random number and the second ciphertext data; The cloud computing device generates a data sharing result based on the target second ciphertext data, and sends the data sharing result to the result-generating device, including: The cloud computing device determines a target aggregate random number corresponding to the target identification ciphertext; The cloud computing device generates a data sharing result based on the target second ciphertext data and the target aggregate random number, and sends the data sharing result to the result-generating device.
5. The data sharing method according to claim 3, characterized in that: All the data party devices negotiate to obtain common coefficients between all the data party devices, including: Each of the data party devices determines a public value according to the acquired prime number, primitive root and the random number; All the data party devices negotiate based on the public value to obtain common coefficients among all the data party devices.
6. The data sharing method according to claim 2, characterized in that: Each of the data party devices obtains at least one identification ciphertext, including: All the data party devices negotiate to obtain a hash function; Each of the data party devices obtains at least one piece of identification data; Each of the data party devices processes each piece of identification data using the hash function to obtain an identification ciphertext.
7. The data sharing method according to claim 1, characterized in that: The cloud computing device aggregates all the ciphertext data sets to obtain a shared data set, including: The cloud computing device acquires an initial data set; The cloud computing device sequentially determines each of the identification ciphertexts in the ciphertext data set as a first identification ciphertext, and determines whether there is a second identification ciphertext identical to the first identification ciphertext in the initial data set, wherein each second identification ciphertext corresponds to one piece of the second ciphertext data; When there is a second identification ciphertext identical to the first identification ciphertext in the initial data set, the cloud computing device aggregates first ciphertext data corresponding to the first identification ciphertext with second ciphertext data corresponding to the second identification ciphertext to update the second ciphertext data; When there is no second identification ciphertext identical to the first identification ciphertext in the initial data set, the cloud computing device determines the first identification ciphertext as the second identification ciphertext, and determines the first ciphertext data corresponding to the first identification ciphertext as the second ciphertext data; The cloud computing device obtains the shared data set based on the second identification ciphertext and the second ciphertext data.
8. A computing device, characterized in that include: a memory configured to store instructions; as well as A processor is configured to call the instruction from the memory and implement the data sharing method according to any one of claims 1 to 7 when executing the instruction.
9. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to perform the data sharing method according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the data sharing method according to any one of claims 1 to 7.
