Data sharing method, system, device and computer readable storage medium

Using elliptic curve encryption technology to transmit encrypted data between data query parties and data contributors solves the problem of data fragmentation and islanding, and achieves efficient data utilization and privacy protection.

CN113569259BActive Publication Date: 2024-10-01SHENZHEN SECURITIES INFORMATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110866272.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-29
Publication Date
2024-10-01
Estimated Expiration
2041-07-29

AI Technical Summary

Technical Problem

The problems of data fragmentation and data islands make it difficult to effectively utilize data. Data owners are unwilling to interact with data, which affects data utilization.

Method used

By using elliptic curve encryption technology between the data query party and the data contributor, encrypted query requests and data sets are generated and transmitted, ensuring that the data query party can only decrypt the target data it requires, protecting the data privacy of the data contributor, and improving Privacy of data sharing.

Benefits of technology

It achieves privacy protection between data query parties and data contributors, ensures the data security of data contributors, and improves data utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113569259B_ABST
    Figure CN113569259B_ABST
Patent Text Reader

Abstract

The present application discloses a data sharing method, system, device and computer-readable storage medium, which are applied to a data query party, obtain a target query request for each target data; generate a first random number corresponding to each target query request; encrypt the corresponding target query request based on the first random number and a predetermined target elliptic curve generator to obtain each encrypted query request; transmit all encrypted query requests to a data contributor; obtain an encrypted data set sent by a data contributor; obtain private key encrypted information sent by a data contributor; decrypt the private key encrypted information based on the first random number to obtain a target private key for the target data; decrypt the encrypted data set based on the target private key to obtain the target data. The present application protects the query privacy of the data query party through encrypted query requests; ensures the data privacy of the data contributor through encrypted data sets and private key encrypted information, and can improve the utilization rate of data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information transmission technology, and more specifically, to a data sharing method, system, device and computer-readable storage medium. Background Art

[0002] With the advent of the digital economy, the value of data is increasing. However, in the process of data application, data is scattered, and data owners may be unwilling to interact with data, which makes the problem of "data fragmentation and data islands" serious and makes it difficult to effectively use data.

[0003] In summary, how to improve the utilization of data is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0004] The purpose of this application is to provide a data sharing method, which can solve the technical problem of how to improve the utilization rate of data to a certain extent. This application also provides a data sharing system, device and computer-readable storage medium.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A data sharing method, applied to a data query party, comprising:

[0007] Obtaining target query requests for each target data;

[0008] Generate a first random number corresponding to each of the target query requests;

[0009] Based on the first random number and a predetermined target elliptic curve generator, encrypt the corresponding target query request to obtain each encrypted query request;

[0010] Transmitting all the encrypted query requests to the data contributor;

[0011] Acquire an encrypted data set sent by the data contributor, wherein the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data based on the public and private keys of the own data and the target elliptic curve generator, and the own data includes the target data;

[0012] Acquire the private key encryption information sent by the data contributor, where the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the own data based on each of the encrypted query requests and the target elliptic curve generator;

[0013] Decrypting the private key encrypted information based on the first random number to obtain a target private key corresponding to the target data;

[0014] The encrypted data set is decrypted based on the target private key to obtain the target data.

[0015] Preferably, encrypting the corresponding target query request based on the first random number and a predetermined target elliptic curve generator to obtain each encrypted query request includes:

[0016] Acquire a first value corresponding to the predetermined identification information of the target data;

[0017] Based on the first random number, the first numerical value and the target elliptic curve generator, encrypt the corresponding target query request to obtain each encrypted query request;

[0018] The obtaining of the encrypted data set sent by the data contributor, wherein the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data based on the public and private keys of the own data and the target elliptic curve generator, including:

[0019] Acquire the encrypted data set sent by the data contributor, where the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data based on the public and private keys of the own data, the second random number corresponding to the own data, and the target elliptic curve generator;

[0020] The obtaining of the private key encryption information sent by the data contributor, wherein the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the own data based on each of the encrypted query requests and the target elliptic curve generator, including:

[0021] Acquire private key encryption information sent by the data contributor, wherein the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the own data based on each of the encrypted query requests, the second numerical value corresponding to the identification information of the own data, the own data and the target elliptic curve generator.

[0022] Preferably, the target elliptic curve generator includes a first elliptic curve generator and a second elliptic curve generator;

[0023] The step of encrypting the corresponding target query request based on the first random number, the first numerical value, and the target elliptic curve generator to obtain each encrypted query request includes:

[0024] Encrypting the corresponding target query request based on the first random number, the first numerical value and the target elliptic curve generator through a query request encryption formula to obtain each encrypted query request;

[0025] The query request encryption formula includes:

[0026] Y i =r i G+a i H, i = 1, 2, ..., k;

[0027] Wherein, i represents the number of the target query request, k represents the total number of the target query requests; Y i represents the encrypted query request corresponding to the target query request labeled i; r i represents the first random number corresponding to the target query request numbered i; i represents the first value labeled i; G represents the first elliptic curve generator; H represents the second elliptic curve generator.

[0028] Preferably, the obtaining of the encrypted data set sent by the data contributor, the encrypted data set including encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data based on the public and private keys of the own data, the second random number corresponding to the own data, and the target elliptic curve generator, including:

[0029] Acquire the encrypted data set sent by the data contributor, where the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data through a data encryption formula, a public and private key based on the own data, a second random number corresponding to the own data, and the target elliptic curve generator;

[0030] The data encryption formula includes:

[0031] em j =<U j ,V j >, U j =r j G, P j =s j G, j = 1, 2, ..., n;

[0032] Wherein, j represents the number of the own data, and n represents the total number of the own data; jThe encrypted data information of the self data marked with j; j represents the second random number corresponding to the self data labeled j; m j Pk represents the self data with label j; j represents the public key of the self data labeled j; s j The private key of the self data labeled j; Represents the exclusive-or operation.

[0033] Preferably, the obtaining of the private key encrypted information sent by the data contributor, the private key encrypted information being obtained by the data contributor encrypting the private key corresponding to the own data based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data and the target elliptic curve generator, comprises:

[0034] Acquire the private key encryption information sent by the data contributor, where the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the own data through a private key encryption formula based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data, and the target elliptic curve generator;

[0035] The private key encryption formula includes:

[0036] D j = hash(m j )G; i=1,2,…,k; j=1,2,…,n;

[0037] Among them, (D j ,T j ) represents the private key encryption information of the self data labeled j; hash represents hash operation; a j Represents the second value labeled j.

[0038] Preferably, decrypting the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data includes:

[0039] Decrypting the private key encrypted information based on the first random number using a private key decryption formula to obtain a target private key corresponding to the target data;

[0040] The private key decryption formula includes:

[0041]

[0042] Among them, s i Indicates the target private key corresponding to the target data labeled i;

[0043] The decrypting the encrypted data set based on the target private key to obtain the target data includes:

[0044] Decrypting the encrypted data set based on the target private key through a data decryption formula to obtain the target data;

[0045] The data decryption formula includes:

[0046]

[0047] Among them, m i Represents the target data labeled i.

[0048] Preferably, obtaining a target query request for each target data includes:

[0049] Obtaining an initial query request for each of the target data;

[0050] Performing hash desensitization processing on each of the initial query requests to obtain the target query request;

[0051] After transmitting all the encrypted query requests to the data contributors and before obtaining the encrypted data set sent by the data contributors, the method further includes:

[0052] The preset partial information of the target query request is sent to the data contributor, so that the data contributor selects the own data containing the preset partial information for transmission.

[0053] Preferably, the data query party and the data contributor are blockchain nodes on the blockchain.

[0054] A data sharing method, applied to data contributors, comprising:

[0055] Obtaining an encrypted query request sent by a data query party, wherein the encrypted query request is obtained by the data sender after encrypting each target query request based on a first random number corresponding to the target query request and a predetermined target elliptic curve generator;

[0056] Encrypting the own data based on the public and private keys of the own data and the target elliptic curve generator to obtain encrypted data information, wherein the own data includes the target data corresponding to the target query request;

[0057] Sending all the encrypted data information as an encrypted data set to the data query party;

[0058] Encrypting the private key corresponding to the own data based on each of the encrypted query requests and the target elliptic curve generator to obtain private key encrypted information;

[0059] The private key encrypted information is transmitted to the data querying party, so that the data querying party decrypts the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data, and then decrypts the encrypted data set based on the target private key to obtain the target data.

[0060] A data sharing system, applied to a data query party, comprising:

[0061] A first acquisition module is used to acquire a target query request for each target data;

[0062] A first generating module, used to generate a first random number corresponding to each of the target query requests;

[0063] A first encryption module, configured to encrypt the corresponding target query request based on the first random number and a predetermined target elliptic curve generator to obtain each encrypted query request;

[0064] A first transmission module, used for transmitting all the encrypted query requests to the data contributor;

[0065] A second acquisition module is used to acquire an encrypted data set sent by the data contributor, wherein the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data based on the public and private keys of the own data and the target elliptic curve generator, and the own data includes the target data;

[0066] A third acquisition module is used to obtain the private key encryption information sent by the data contributor, where the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the own data based on each of the encrypted query requests and the target elliptic curve generator;

[0067] A first decryption module, used to decrypt the private key encrypted information based on the first random number to obtain a target private key corresponding to the target data;

[0068] The second decryption module is used to decrypt the encrypted data set based on the target private key to obtain the target data.

[0069] A data sharing device, comprising:

[0070] Memory for storing computer programs;

[0071] A processor is used to implement the steps of any of the above data sharing methods when executing the computer program.

[0072] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the above-mentioned data sharing methods.

[0073] A data sharing method provided by the present application is applied to a data query party, and is used to obtain a target query request for each target data; generate a first random number corresponding to each target query request; encrypt the corresponding target query request based on the first random number and a predetermined target elliptic curve generator to obtain each encrypted query request; transmit all encrypted query requests to a data contributor; obtain an encrypted data set sent by the data contributor, the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the data based on the public and private keys of the data and the target elliptic curve generator; obtain private key encryption information sent by the data contributor, the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the data based on each encrypted query request and the target elliptic curve generator; decrypt the private key encryption information based on the first random number to obtain a target private key of the target data; decrypt the encrypted data set based on the target private key to obtain the target data. In this application, the data query party sends an encrypted query request to the data contributor, so that the data contributor cannot learn the data information that the data query party wants to query, thus protecting the query privacy of the data query party; and the data query party obtains the encrypted data set and the private key encryption information, so that the data query party cannot use the private key to encrypt all encrypted data sets to obtain all the data sent by the data contributor. It can only decrypt the target data corresponding to the target private key through its own first random number, and then can only decrypt the target data through the target private key, but cannot learn other data, thus ensuring the data privacy of the data contributor, that is, improving the privacy of data sharing, and thus improving the utilization rate of data. The data sharing system, device and computer-readable storage medium provided by this application also solve the corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0075] Figure 1 A first flow chart of a data sharing method provided in an embodiment of the present application;

[0076] Figure 2 A second flow chart of a data sharing method provided in an embodiment of the present application;

[0077] Figure 3 A third flow chart of a data sharing method provided in an embodiment of the present application;

[0078] Figure 4 A first structural diagram of a data sharing system provided in an embodiment of the present application;

[0079] Figure 5 A second structural diagram of a data sharing system provided in an embodiment of the present application;

[0080] Figure 6 A schematic diagram of the structure of a data sharing device provided in an embodiment of the present application;

[0081] Figure 7 Another structural schematic diagram of a data sharing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0082] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0083] See also Figure 1 , Figure 1 A first flow chart of a data sharing method provided in an embodiment of the present application.

[0084] A data sharing method provided in an embodiment of the present application, applied to a data query party, may include the following steps:

[0085] Step S101: Obtain a target query request for each target data.

[0086] In actual applications, the data query party can first obtain a target query request for each target data. The target data refers to the data that the data query party wants to obtain. The target query request refers to a request to query the target data. The type and content of the target query request can be determined according to actual needs. The type of target data can also be determined according to actual needs. For example, the type of target data can be object type, file type, code type, etc.

[0087] It should be noted that in specific application scenarios, the target data cannot be directly obtained by the data query party, but the identification information of the target data can be set so that the data query party and the data contributor can locate the corresponding target data through the identification information. The identification information can be the target data number, keyword, identity information of the data owner, mobile phone number, etc. Correspondingly, the target query request can be a corresponding query request generated based on the identification information, such as directly using the keyword as the target query request, etc. This application does not make specific limitations here.

[0088] Step S102: Generate a first random number corresponding to each target query request.

[0089] Step S103: Based on the first random number and the predetermined target elliptic curve generator, encrypt the corresponding target query request to obtain each encrypted query request.

[0090] In actual applications, the data query party can encrypt the target query request to protect the privacy of the target query request, so that the data contributor cannot determine the target data that the data query party wants to query through the target query request, thereby achieving query privacy protection for the data query party.

[0091] In a specific application scenario, in the process of encrypting a target query request, the data query party can first generate a first random number corresponding to each target query request, and then encrypt the corresponding target query request based on the first random number and a predetermined target elliptic curve generator to obtain each encrypted query request. The corresponding information of the elliptic curve generator can be referred to the prior art, and this application will not repeat it here. The random number generation method can be selected according to actual needs, and this application does not make specific limitations here.

[0092] Step S104: Transmit all encrypted query requests to data contributors.

[0093] In actual applications, after generating an encrypted query request, the data query party can send the encrypted query request to the data contributor, so that the data contributor can privately transmit the target data to the data query party based on the encrypted query request.

[0094] Step S105: Obtain the encrypted data set sent by the data contributor, the encrypted data set includes the encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting its own data based on the public and private keys of its own data and the target elliptic curve generator, and the own data includes the target data.

[0095] In actual applications, after receiving an encrypted query request, the data contributor can first select its own data containing the target data in its own database, such as taking all data as its own data, and encrypt its own data with the public and private keys corresponding to each data and the target elliptic curve generator to obtain encrypted data information, so as to ensure the security of its own data, and then transmit all the encrypted data information as an encrypted data set to the data query party. Correspondingly, the data query party needs to obtain the encrypted data set sent by the data contributor.

[0096] It should be noted that the public and private keys refer to the public key and the private key. The generation method of the public and private keys can be determined according to actual needs, and this application does not make any specific limitations here.

[0097] Step S106: Acquire the private key encryption information sent by the data contributor, where the private key encryption information is obtained by the data contributor encrypting the private key corresponding to its own data based on each encryption query request and the target elliptic curve generator.

[0098] In actual applications, because the data contributor has encrypted its own data, if the data query party wants to decrypt the target data from the encrypted data set, it needs to obtain the required private key from the data query party for decryption. In this process, the data contributor can encrypt the private key corresponding to its own data based on the encrypted query request and the target elliptic curve generator to obtain the private key encrypted information and transmit it to the data query party. Because the encrypted query request uses the first random number, the first random number is in the data query party, so only the data query party can use the first random number to obtain the private key through the private key encrypted information, and other parties cannot know the private key, which ensures the security of the private key.

[0099] Step S107: decrypt the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data.

[0100] Step S108: decrypt the encrypted data set based on the target private key to obtain the target data.

[0101] In actual applications, because the first random number corresponds to the target query request of the target data, the first random number corresponds to the encrypted query request one-to-one, and the encrypted query request is used to generate the private key encrypted information. Therefore, after obtaining the private key encrypted information, the data query party can decrypt the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data; and then can decrypt the encrypted data set based on the target private key to obtain the target data.

[0102] It should be noted that because the data query party cannot use the first random number to decrypt the private key of other data other than the target data from the private key encrypted information, the data query party cannot obtain other data other than the target data, which protects the privacy of data sharing and promotes the use of data.

[0103] A data sharing method provided by the present application is applied to a data query party, and is used to obtain a target query request for each target data; generate a first random number corresponding to each target query request; encrypt the corresponding target query request based on the first random number and a predetermined target elliptic curve generator to obtain each encrypted query request; transmit all encrypted query requests to a data contributor; obtain an encrypted data set sent by the data contributor, the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the data based on the public and private keys of the data and the target elliptic curve generator; obtain private key encryption information sent by the data contributor, the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the data based on each encrypted query request and the target elliptic curve generator; decrypt the private key encryption information based on the first random number to obtain a target private key of the target data; decrypt the encrypted data set based on the target private key to obtain the target data. In the present application, the data query party sends an encrypted query request to the data contributor, so that the data contributor cannot learn the data information that the data query party wants to query, thereby protecting the query privacy of the data query party; and the data query party obtains the encrypted data set and the private key encryption information, so that the data query party cannot use the private key to encrypt all encrypted data sets to obtain all the data sent by the data contributor. It can only decrypt the target data corresponding to the target private key through its own first random number, and then can only decrypt the target data through the target private key, but cannot learn other data, thereby ensuring the data privacy of the data contributor, that is, improving the privacy of data sharing, and then improving the utilization rate of the data.

[0104] See also Figure 2 , Figure 2 A second flow chart of a data sharing method provided in an embodiment of the present application.

[0105] A data sharing method provided in an embodiment of the present application, applied to a data query party, may include the following steps:

[0106] Step S201: Obtain a target query request for each target data.

[0107] Step S202: Generate a first random number corresponding to each target query request.

[0108] Step S203: Obtain a first numerical value corresponding to the identification information of the predetermined target data; encrypt the corresponding target query request based on the first random number, the first numerical value and the target elliptic curve generator to obtain each encrypted query request.

[0109] In actual applications, in the process of encrypting the corresponding target query request based on the first random number and the predetermined target elliptic curve generator to obtain each encrypted query request, in order to improve the security of the encrypted query request, the data query party can apply two numerical values ​​to perform the corresponding encryption operation, that is, the data query party can obtain the first numerical value corresponding to the identification information of the predetermined target data; based on the first random number, the first numerical value and the target elliptic curve generator, the corresponding target query request is encrypted to obtain each encrypted query request. The type of the first numerical value corresponding to the identification information of the target data can be determined according to actual needs, for example, it can be the first hash value corresponding to the identification information of the target data, etc.

[0110] Step S204: Transmit all encrypted query requests to data contributors.

[0111] Step S205: Obtain the encrypted data set sent by the data contributor, where the encrypted data set includes the encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting its own data based on the public and private keys of its own data, the second random number corresponding to its own data, and the target elliptic curve generator, where the data contributor's own data includes the target data.

[0112] In actual applications, when the data contributor encrypts its own data based on the public and private keys of its own data and the target elliptic curve generator to obtain encrypted data information, in order to improve the security of the encrypted data information, the data contributor can also use random numbers to encrypt its own data, that is, the data contributor can encrypt its own data based on the public and private keys of its own data, the second random number corresponding to its own data and the target elliptic curve generator to obtain the corresponding encrypted data information.

[0113] Step S206: Acquire the private key encryption information sent by the data contributor, where the private key encryption information is obtained by the data contributor encrypting the private key corresponding to its own data based on each encryption query request, the second value corresponding to the identification information of its own data, its own data and the target elliptic curve generator.

[0114] In actual applications, in the process of obtaining private key encrypted information after the data contributor encrypts the private key corresponding to its own data based on each encrypted query request and the target elliptic curve generator, in order to improve the security of the private key encrypted information, the data contributor can also use other values ​​to encrypt the private key, that is, the data contributor can encrypt the private key corresponding to its own data based on each encrypted query request, the second value corresponding to the identification information of its own data, its own data and the target elliptic curve generator to obtain the private key encrypted information. It should be pointed out that the type of the second value corresponding to the identification of the own data described here should be the same as the type of the first value. For example, when the type of the first value is a hash value, the type of the second value is also a hash value accordingly.

[0115] Step S207: decrypt the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data.

[0116] Step S208: decrypt the encrypted data set based on the target private key to obtain the target data.

[0117] In a data sharing method provided in an embodiment of the present application, the target elliptic curve generator may include a first elliptic curve generator and a second elliptic curve generator;

[0118] Accordingly, in order to facilitate calculation, the data querying party may encrypt the corresponding target query request based on the first random number, the first numerical value and the target elliptic curve generator to obtain each encrypted query request by using a query request encryption formula, based on the first random number, the first numerical value and the target elliptic curve generator, to obtain each encrypted query request;

[0119] The query request encryption formula includes:

[0120] Y i =r i G+a i H, i = 1, 2, ..., k;

[0121] Where i represents the number of the target query request, k represents the total number of target query requests; Y i represents the encrypted query request corresponding to the target query request numbered i; r i represents the first random number corresponding to the target query request numbered i; a i represents the first value corresponding to the identification information of the target data labeled i; G represents the first elliptic curve generator; H represents the second elliptic curve generator;

[0122] Correspondingly, in the process of obtaining encrypted data information by encrypting the data contributor's own data based on the public and private keys of the data contributor's own data, the second random number corresponding to the data contributor's own data, and the target elliptic curve generator, the encrypted data information can be obtained by encrypting the data contributor's own data through the data encryption formula, the public and private keys based on the data contributor's own data, the second random number corresponding to the data contributor's own data, and the target elliptic curve generator;

[0123] The data encryption formula includes:

[0124] em j =<U j ,V j >, U j =r j G, P j =s j G, j = 1, 2, ..., n;

[0125] Where j represents the number of the data itself, and n represents the total number of data itself; j Indicates the encrypted data information of the data marked as j; r j Indicates the second random number corresponding to the own data labeled j; m j Indicates the own data with label j; Pk j The public key of the data labeled j; s j The private key of the own data labeled j; Represents the exclusive OR operation;

[0126] Correspondingly, in the process of obtaining private key encrypted information by encrypting the private key corresponding to its own data based on each encrypted query request, the second value corresponding to the identification information of its own data, its own data and the target elliptic curve generator, the data contributor can obtain the private key encrypted information by encrypting the private key corresponding to its own data based on each encrypted query request, the second value corresponding to the identification information of its own data, its own data and the target elliptic curve generator through the private key encryption formula;

[0127] The private key encryption formula includes:

[0128] D j = hash(m j )G; i=1,2,…,k; j=1,2,…,n;

[0129] Among them, (D j ,T j ) represents the private key encryption information of the data marked as j; hash represents the hash operation; a j A second value corresponding to the identification information of the own data labeled j;

[0130] Correspondingly, in the process of decrypting the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data, the data querying party can use the private key decryption formula to decrypt the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data;

[0131] The private key decryption formula includes:

[0132]

[0133] Among them, s i Indicates the target private key corresponding to the target data labeled i;

[0134] It should be noted that the numerical value corresponding to the identification information of the target data and the first random number both serve the target data, so the numerical value corresponding to the identification information of the target data and the first random number are associated, that is, the corresponding target private key of the target data can be identified by the first random number, and the private key encryption formula, private key decryption formula and query request encryption formula are studied, and it can be known that they all apply the numerical value corresponding to the identification information of the data, and the numerical value corresponding to the identification information of the same data is the same, so when the identification information of the target data is consistent with the identification information of its own data, the other parameters in the private key decryption formula will be eliminated, and only the corresponding s j , and the s j For the data query party, it will become i The corresponding target private key s i , and when the identification information of the target data is inconsistent with the identification information of the own data, the other parameters in the private key decryption formula will not be eliminated. At this time, the private key decryption formula cannot decrypt successfully, and the corresponding r i The corresponding target private key s i In addition, in this process, because the data querying party does not know the encryption result of the target private key corresponding to the target data in the private key encrypted information, the data querying party can only apply the first random number to decrypt the private key encrypted information multiple times, such as fixing the value of i, changing the value of j, and applying the private key decryption formula multiple times to decrypt, and obtain the same value as r i The corresponding target private key s i For example, when the value of i is 1, it may be possible to decrypt using the private key decryption formula, and then find that the decryption is successful when the value of j is 3. At this time, the private key of the own data labeled 3 may become the target private key of the target data labeled 1.

[0135] Finally, the data query party can decrypt the encrypted data set based on the target private key to obtain the target data through the data decryption formula, and then decrypt the encrypted data set based on the target private key to obtain the target data;

[0136] The data decryption formula includes:

[0137]

[0138] Among them, m i Indicates the target data labeled i.

[0139] It should be noted that after the data query party obtains the target private key of the target data, because the data contributor can encrypt the corresponding data private keys in the order of the encrypted data information in the encrypted data set when encrypting the data private key, that is, the arrangement order of the private key encrypted information and the encrypted data information is one-to-one corresponding, so the data query party can determine the position of the target private key in all private key encrypted information when decrypting the encrypted data set based on the target private key through the data decryption formula to obtain the target data, and then use the target private key to decrypt the encrypted data information at the same position in the encrypted data set to obtain the corresponding target data.

[0140] In a data sharing method provided by an embodiment of the present application, in the process of obtaining a target query request for each target data, if the data query party does not disclose part of the information of the target query request, the data contributor can only use all the data in its own database as its own data to be transmitted to the data query party, resulting in poor data sharing efficiency. In order to improve the data sharing efficiency, the data query party can send part of the information of the target query request to the data contributor. In this way, the data contributor only needs to use the data carrying the part of the information as its own data to be transmitted to the data query party, thereby improving the data sharing efficiency by streamlining the data volume; and in this process, in order to protect the information in the target query request, the data in the query request can also be hashed, that is, the data query party can first obtain the initial query request for each target data, and hashed each initial query request to obtain the target query request;

[0141] After transmitting all encrypted query requests to the data contributors and before obtaining the encrypted data set sent by the data contributors, the data query party can also send preset partial information of the target query request to the data contributors, so that the data contributors can select their own data containing the preset partial information for transmission.

[0142] It should be noted that the type of hash desensitization processing and the preset partial information can be determined according to actual needs. For example, the type of hash desensitization processing can be a 64-byte hash value. At this time, all target query requests are 64-byte hash values. Assuming that the preset partial information is a 3-byte plaintext hash value at the end, the data query party can send the 3-byte plaintext hash value at the end of each target query request to the data contributor. In this way, the data contributor can only use the data corresponding to the 3-byte plaintext hash value at the end of each target query request as its own data to be transmitted to the data query party. Compared with the solution of using all data as its own data to be transmitted to the data query party, the data clipping effect can be reduced by 4096 times, thereby improving data sharing efficiency. In addition, because the target query request sent by the data query party is the corresponding hash value obtained by hash desensitization processing of the initial query request, and mainly hash desensitization processing is performed on the identification information of the data, the data contributor also needs to perform hash desensitization processing on the identification information of its own data and retain the corresponding hash value. At this time, the data contributor only needs to save the hash value without saving the identification information of the data, which can avoid leaking sensitive information in the identification information.

[0143] In a data sharing method provided in an embodiment of the present application, in order to further improve the efficiency of data sharing and facilitate the subsequent tracing of the data sharing process, the data query party and the data contributor can be blockchain nodes on the blockchain, that is, the data sharing method provided in the present application can be run in conjunction with the blockchain.

[0144] In order to facilitate the understanding of the operation of the data sharing method of this application on the blockchain, the corresponding process is described by taking the sharing process of user blacklist data as an example:

[0145] The data contributor saves the user blacklist data in a local sharing system;

[0146] The data query party selects the user information and business type to be queried through the browser to generate a target query request;

[0147] The data querying party encrypts each target query request based on the first random number corresponding to the target query request and a predetermined target elliptic curve generator to obtain an encrypted query request;

[0148] The data query party broadcasts the encrypted query request in the blockchain through the AMOP chain messenger protocol (Advanced Messages Onchain Protocol);

[0149] After receiving the encrypted query request, the data contributor determines the blacklist data of its own user to be transmitted according to the encrypted query request, encrypts the blacklist data of its own user based on the public and private keys of the blacklist data of its own user and the target elliptic curve generator to obtain encrypted data information, and sends all the encrypted data information as an encrypted data set to the data query party through the blockchain peer-to-peer network;

[0150] The data contributor encrypts the private key corresponding to its own user blacklist data based on each encrypted query request and the target elliptic curve generator to obtain private key encrypted information, and transmits the private key encrypted information to the data query party through the blockchain peer-to-peer network;

[0151] The data querying party decrypts the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data, and decrypts the encrypted data set based on the target private key to obtain the required user blacklist data.

[0152] See also Figure 3 , Figure 3 A third flow chart of a data sharing method provided in an embodiment of the present application.

[0153] A data sharing method provided in an embodiment of the present application, applied to a data contributor, may include the following steps:

[0154] Step S301: Obtain an encrypted query request sent by a data query party, where the encrypted query request is obtained by the data sender after encrypting each target query request based on a first random number corresponding to the target query request and a predetermined target elliptic curve generator.

[0155] Step S302: Encrypt the own data based on the public and private keys of the own data and the target elliptic curve generator to obtain encrypted data information, where the own data includes the target data corresponding to the target query request.

[0156] Step S303: Send all encrypted data information as an encrypted data set to the data query party.

[0157] Step S304: Based on each encrypted query request and the target elliptic curve generator, the private key corresponding to the own data is encrypted to obtain private key encrypted information.

[0158] Step S305: Transmit the private key encrypted information to the data query party, so that the data query party decrypts the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data, and then decrypts the encrypted data set based on the target private key to obtain the target data.

[0159] In a data sharing method provided in an embodiment of the present application, a detailed description of each step performed by the data contributor can be found in the above embodiment and will not be repeated here.

[0160] See also Figure 4 , Figure 4 A first structural diagram of a data sharing system provided in an embodiment of the present application.

[0161] A data sharing system provided in an embodiment of the present application is applied to a data query party and may include:

[0162] A first acquisition module 11 is used to acquire a target query request for each target data;

[0163] A first generating module 12, configured to generate a first random number corresponding to each target query request;

[0164] A first encryption module 13 is used to encrypt the corresponding target query request based on the first random number and a predetermined target elliptic curve generator to obtain each encrypted query request;

[0165] A first transmission module 14, used to transmit all encrypted query requests to data contributors;

[0166] The second acquisition module 15 is used to acquire the encrypted data set sent by the data contributor, the encrypted data set includes the encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data based on the public and private keys of the own data and the target elliptic curve generator, and the own data includes the target data corresponding to the target query request;

[0167] The third acquisition module 16 is used to obtain the private key encryption information sent by the data contributor, which is obtained by the data contributor encrypting the private key corresponding to its own data based on each encryption query request and the target elliptic curve generator;

[0168] A first decryption module 17, used to decrypt the private key encrypted information based on the first random number to obtain a target private key corresponding to the target data;

[0169] The second decryption module 18 is used to decrypt the encrypted data set based on the target private key to obtain target data.

[0170] The detailed description of each module in a data sharing system provided in an embodiment of the present application can be found in the above embodiment and will not be repeated here.

[0171] See also Figure 5 , Figure 5 A second structural diagram of a data sharing system provided in an embodiment of the present application.

[0172] A data sharing system provided in an embodiment of the present application is applied to a data contributor and may include:

[0173] The fourth acquisition module 21 is used to acquire the encrypted query request sent by the data query party, where the encrypted query request is obtained by the data sender after encrypting each target query request based on the first random number corresponding to the target query request and a predetermined target elliptic curve generator;

[0174] The second encryption module 22 is used to encrypt the own data based on the public and private keys of the own data and the target elliptic curve generator to obtain encrypted data information, where the own data includes the target data corresponding to the target query request;

[0175] The second transmission module 23 is used to send all the encrypted data information as an encrypted data set to the data query party;

[0176] The third encryption module 24 is used to encrypt the private key corresponding to its own data based on each encryption query request and the target elliptic curve generator to obtain private key encryption information;

[0177] The third transmission module 25 is used to transmit the private key encrypted information to the data query party, so that the data query party decrypts the private key encrypted information based on the first random number, obtains the target private key corresponding to the target data, and then decrypts the encrypted data set based on the target private key to obtain the target data.

[0178] The detailed description of each module in a data sharing system provided in an embodiment of the present application can be found in the above embodiment and will not be repeated here.

[0179] The present application also provides a data sharing device and a computer-readable storage medium, both of which have the corresponding effects of a data sharing method provided in an embodiment of the present application. Figure 6 , Figure 6 A structural diagram of a data sharing device provided in an embodiment of the present application.

[0180] A data sharing device provided in an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program, the steps of the data sharing method described in any of the above embodiments are implemented.

[0181] See also Figure 6, another data sharing device provided in the embodiment of the present application may also include: an input port 203 connected to the processor 202, used to transmit commands input from the outside to the processor 202; a display unit 204 connected to the processor 202, used to display the processing results of the processor 202 to the outside; a communication module 205 connected to the processor 202, used to realize the communication between the data sharing device and the outside. The display unit 204 can be a display panel, a laser scanning display, etc.; the communication mode adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.

[0182] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the data sharing method described in any of the above embodiments are implemented.

[0183] The computer-readable storage medium involved in the present application includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field.

[0184] For the description of the relevant parts of a data sharing system, device, and computer-readable storage medium provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in a data sharing method provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.

[0185] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants 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, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0186] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data sharing method, characterized in that: Applicable to data query parties, including: Obtaining target query requests for each target data; Generate a first random number corresponding to each of the target query requests; Acquire a first value corresponding to the predetermined identification information of the target data; encrypting the corresponding target query request based on the first random number, the first numerical value and a predetermined target elliptic curve generator through a query request encryption formula to obtain each encrypted query request, wherein the target elliptic curve generator includes a first elliptic curve generator and a second elliptic curve generator; Transmitting all the encrypted query requests to the data contributor; Acquire an encrypted data set sent by the data contributor, wherein the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data based on the public and private keys of the own data, the second random number corresponding to the own data, and the target elliptic curve generator, and the own data includes the target data; Acquire the private key encryption information sent by the data contributor, where the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the own data based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data, and the target elliptic curve generator; Decrypting the private key encrypted information based on the first random number to obtain a target private key corresponding to the target data; Decrypting the encrypted data set based on the target private key to obtain the target data; The query request encryption formula includes: Y i =r i G+a i H,i=1,2,…,k; Wherein, i represents the number of the target query request, k represents the total number of the target query requests; Y i represents the encrypted query request corresponding to the target query request labeled i; r i represents the first random number corresponding to the target query request numbered i; i represents the first value labeled i; G represents the first elliptic curve generator; H represents the second elliptic curve generator; The obtaining of the encrypted data set sent by the data contributor, wherein the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data based on the public and private keys of the own data, the second random number corresponding to the own data, and the target elliptic curve generator, including: Acquire the encrypted data set sent by the data contributor, where the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data through a data encryption formula, a public and private key based on the own data, a second random number corresponding to the own data, and the target elliptic curve generator; The data encryption formula includes: em j =<U j ,V j >,U j =r j G, Pk j =s j G,j=1,2,…,n; Wherein, j represents the number of the own data, and n represents the total number of the own data; j The encrypted data information of the self data marked with j; j represents the second random number corresponding to the self data labeled j; m j Pk represents the self data with label j; j represents the public key of the self data labeled j; s j The private key of the self data labeled j; Represents the exclusive OR operation; The obtaining of the private key encrypted information sent by the data contributor, wherein the private key encrypted information is obtained by the data contributor encrypting the private key corresponding to the own data based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data and the target elliptic curve generator, and includes: Acquire the private key encryption information sent by the data contributor, where the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the own data through a private key encryption formula based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data, and the target elliptic curve generator; The private key encryption formula includes: D j =hash(m j )G; i=1,2,…,k;j=1,2,…,n; Among them, (D j ,T j ) represents the private key encryption information of the self data labeled j; hash represents hash operation; a j represents the second value labeled j; The decrypting the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data includes: Decrypting the private key encrypted information based on the first random number using a private key decryption formula to obtain a target private key corresponding to the target data; The private key decryption formula includes: i=1,2,…,k,j=1,2,…,n; Among them, s i Indicates the target private key corresponding to the target data labeled i; The decrypting the encrypted data set based on the target private key to obtain the target data includes: Decrypting the encrypted data set based on the target private key through a data decryption formula to obtain the target data; The data decryption formula includes: Among them, m i Represents the target data labeled i.

2. The method according to claim 1, characterized in that The step of obtaining a target query request for each target data includes: Obtaining an initial query request for each of the target data; Performing hash desensitization processing on each of the initial query requests to obtain the target query request; After transmitting all the encrypted query requests to the data contributors and before obtaining the encrypted data set sent by the data contributors, the method further includes: The preset partial information of the target query request is sent to the data contributor, so that the data contributor selects the own data containing the preset partial information for transmission.

3. The method according to claim 2, characterized in that The data query party and the data contributor are blockchain nodes on the blockchain.

4. A data sharing method, characterized in that: Applicable to data contributors, including: Obtaining an encrypted query request sent by a data query party, wherein the encrypted query request is obtained by the data sender after encrypting each target query request through a query request encryption formula based on a first random number corresponding to the target query request, a first numerical value corresponding to identification information of the target data, and a predetermined target elliptic curve generator, wherein the target elliptic curve generator includes a first elliptic curve generator and a second elliptic curve generator; Encrypting the own data based on the public and private keys of the own data, the second random number corresponding to the own data, and the target elliptic curve generator to obtain encrypted data information, wherein the own data includes the target data corresponding to the target query request; Sending all the encrypted data information as an encrypted data set to the data query party; Based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data, and the target elliptic curve generator, the private key corresponding to the own data is encrypted to obtain private key encrypted information; Transmitting the private key encrypted information to the data query party, so that the data query party decrypts the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data, and then decrypts the encrypted data set based on the target private key to obtain the target data; The query request encryption formula includes: Y i =r i G+a i H,i=1,2,…,k; Wherein, i represents the number of the target query request, k represents the total number of the target query requests; Y i represents the encrypted query request corresponding to the target query request labeled i; r i represents the first random number corresponding to the target query request numbered i; i represents the first value labeled i; G represents the first elliptic curve generator; H represents the second elliptic curve generator The data querying party obtains the encrypted data set sent by the data contributing party, the encrypted data set includes the encrypted data information of the data contributing party's own data, and the encrypted data information is obtained by the data contributing party encrypting the data based on the public and private keys of the data, the second random number corresponding to the data, and the target elliptic curve generator, including: obtaining the encrypted data set sent by the data contributing party, the encrypted data set includes the encrypted data information of the data contributing party's own data, and the encrypted data information is obtained by the data contributing party encrypting the data based on the public and private keys of the data, the second random number corresponding to the data, and the target elliptic curve generator; The data encryption formula includes: em j =<U j ,V j >,U j =r j G, Pk j =s j G,j=1,2,…,n; Wherein, j represents the number of the own data, and n represents the total number of the own data; j The encrypted data information of the self data marked with j; j represents the second random number corresponding to the self data labeled j; m j Pk represents the self data with label j; j represents the public key of the self data labeled j; s j The private key of the self data labeled j; Represents the exclusive OR operation; The data querying party obtains the private key encrypted information sent by the data contributing party, and the private key encrypted information is obtained by the data contributing party after encrypting the private key corresponding to the own data based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data and the target elliptic curve generator, including: obtaining the private key encrypted information sent by the data contributing party, and the private key encrypted information is obtained by the data contributing party after encrypting the private key corresponding to the own data through a private key encryption formula, based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data and the target elliptic curve generator; The private key encryption formula includes: D j =hash(m j )G; i=1,2,…,k;j=1,2,…,n; Among them, (D j ,T j ) represents the private key encryption information of the self data labeled j; hash represents hash operation; a j represents the second value labeled j; The data querying party decrypts the private key encrypted information based on the first random number to obtain the target private key corresponding to the target data, including: decrypting the private key encrypted information based on the first random number using a private key decryption formula to obtain the target private key corresponding to the target data; The private key decryption formula includes: i=1,2,…,k,j=1,2,…,n; Among them, s i Indicates the target private key corresponding to the target data labeled i; The data querying party decrypts the encrypted data set based on the target private key to obtain the target data, including: decrypting the encrypted data set based on the target private key through a data decryption formula to obtain the target data; The data decryption formula includes: Among them, m i Represents the target data labeled i.

5. A data sharing system, characterized in that: Applicable to data query parties, including: A first acquisition module is used to acquire a target query request for each target data; A first generating module, used to generate a first random number corresponding to each of the target query requests; The first encryption module is used to obtain a first value corresponding to the predetermined identification information of the target data; encrypt the corresponding target query request based on the first random number, the first value and the predetermined target elliptic curve generator through a query request encryption formula to obtain For each encrypted query request, the target elliptic curve generator includes a first elliptic curve generator and a second elliptic curve generator; A first transmission module, used for transmitting all the encrypted query requests to the data contributor; A second acquisition module is used to acquire an encrypted data set sent by the data contributor, wherein the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the own data based on the public and private keys of the own data, the second random number corresponding to the own data, and the target elliptic curve generator, and the own data includes the target data; A third acquisition module is used to obtain the private key encryption information sent by the data contributor, where the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the own data based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data and the target elliptic curve generator; A first decryption module, used to decrypt the private key encrypted information based on the first random number to obtain a target private key corresponding to the target data; A second decryption module, used to decrypt the encrypted data set based on the target private key to obtain the target data; The query request encryption formula includes: Y i =r i G+a i H,i=1,2,…,k; Wherein, i represents the number of the target query request, k represents the total number of the target query requests; Y i represents the encrypted query request corresponding to the target query request labeled i; r i represents the first random number corresponding to the target query request numbered i; i represents the first value labeled i; G represents the first elliptic curve generator; H represents the second elliptic curve generator; The second acquisition module is used to: acquire the encrypted data set sent by the data contributor, wherein the encrypted data set includes encrypted data information of the data contributor's own data, and the encrypted data information is obtained by the data contributor encrypting the data through a data encryption formula, a public and private key based on the data, a second random number corresponding to the data, and the target elliptic curve generator; The data encryption formula includes: em j =<U j ,V j >,U j =r j G, Pk j =s j G,j=1,2,…,n; Wherein, j represents the number of the own data, and n represents the total number of the own data; j The encrypted data information of the self data marked with j; j represents the second random number corresponding to the self data labeled j; m j Pk represents the self data with label j; j represents the public key of the self data labeled j; s j The private key of the self data labeled j; Represents the exclusive OR operation; The third acquisition module is used to: acquire the private key encryption information sent by the data contributor, wherein the private key encryption information is obtained by the data contributor encrypting the private key corresponding to the own data through a private key encryption formula based on each of the encrypted query requests, the second value corresponding to the identification information of the own data, the own data and the target elliptic curve generator; The private key encryption formula includes: D j =hash(m j )G; i=1,2,…,k;j=1,2,…,n; Among them, (D j ,T j ) represents the private key encryption information of the self data labeled j; hash represents hash operation; a j represents the second value labeled j; The first decryption module is used to: decrypt the private key encrypted information based on the first random number using a private key decryption formula to obtain a target private key corresponding to the target data; The private key decryption formula includes: i=1,2,…,k,j=1,2,…,n; Among them, s i Indicates the target private key corresponding to the target data labeled i; The second decryption module is used to: decrypt the encrypted data set based on the target private key through a data decryption formula to obtain the target data; The data decryption formula includes: Among them, m i Represents the target data labeled i.

6. A data sharing device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the data sharing method according to any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data sharing method according to any one of claims 1 to 4 are implemented.