Data sharing method and system

By using cloud storage agents to perform multi-authorization center attribute-based agent re-encryption during the data sharing process, the problem of distributed authorization and large computational load of attribute-based encryption technology in data sharing is solved, and the expansion of data authorization methods and privacy data are realized. efficient sharing.

CN113901512BActive Publication Date: 2024-09-27BEIJING UNIV OF POSTS & TELECOMM
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111138594.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-27
Publication Date
2024-09-27
Estimated Expiration
2041-09-27

Smart Images

  • Figure CN113901512B
    Figure CN113901512B
Patent Text Reader

Abstract

The present invention provides a data sharing method and system, the method comprising: submitting a data access application form to a first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process; if it is determined that the first user terminal agrees to share the target data, providing data index information and the first self-identity information and a re-encryption key of a new access policy to a cloud storage agent to obtain a re-encrypted ciphertext; decrypting the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data. The system is used to execute the above method. In the process of data sharing, the present invention uses a cloud storage agent to re-encrypt data in a multi-authorization center attribute-based agent re-encryption manner, which expands the data authorization method, and at the same time stores the re-encrypted ciphertext in the cloud storage agent, without the need to store the original data locally, reducing the local computing burden, and increasing the ability to share data such as private data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data sharing method and system. Background Art

[0002] Attribute-based encryption is a type of public key encryption in which both the user's private key and the ciphertext are based on "attributes" (for example, place of residence, occupation, education, etc.). In an attribute-based encryption system, decryption can be successful only when the attribute set required by the ciphertext matches the attribute set provided by the user. Attributes come from attribute authorization agencies. Each attribute includes a public key and a private key. The authorization agency publishes attributes and gives attribute meaning by issuing public keys and issuing unique corresponding attribute private keys to each authorized user. Attributes can correspond to real-world attributes, or they can indicate attributes in the digital world, such as subscription identities, purchase vouchers, etc.

[0003] Authorized agencies are divided into credible institutions in reality, such as universities, enterprises, and government agencies, which issue strong trust attributes; and any subject or individual, which issues weak trust attributes.

[0004] When encrypting data, attribute-based encryption is usually combined with an existing mature symmetric encryption algorithm. After symmetric encryption of the original data, attribute-based encryption is performed on the symmetric key. The encrypted data type can be in any format, and it is essentially a computer binary code string.

[0005] Attribute-based proxy re-encryption means that user 1, who has a set of legal decryption attributes for a certain encrypted data, can generate a re-encryption key containing a new access policy based on the existing attribute key. The re-encryption key does not expose the original data content and attribute key information, and can be used to convert (re-encrypt) the original ciphertext to obtain the re-encrypted ciphertext. If user 2 has the attribute set corresponding to the new access policy specified by user 1, he can use the corresponding attribute key to decrypt the re-encrypted ciphertext without satisfying the attribute set required by the original ciphertext.

[0006] First, attribute-based encryption requires proxy re-encryption to expand data access rights. However, since attribute authorization agencies are difficult to distribute, the application of proxy re-encryption is not yet mature, which limits large-scale cross-domain deployment and is limited to local use.

[0007] Secondly, there is no optimal model for data sharing based on attribute-based proxy re-encryption, and the business model is still in the exploratory stage. More often, attribute-based encryption is used as an extension of one-to-many encryption to replace the existing encryption algorithm. Users still need to perform encryption operations and share data locally, which requires a large amount of calculations and does not effectively utilize the ability of proxy re-encryption to save local calculations. Summary of the invention

[0008] The data sharing method and system provided by the present invention are used to solve the above-mentioned problems existing in the prior art. During the data sharing process, the data can be re-encrypted by adopting a cloud storage agent in a multi-authorization center attribute-based agent re-encryption manner, thereby expanding the data authorization method. At the same time, the re-encrypted ciphertext is stored in the cloud storage agent, and there is no need to store the original data locally, thereby reducing the local computing burden and increasing the ability to share data such as private data.

[0009] The present invention provides a data sharing method, comprising:

[0010] Submitting a data access application form to a first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process;

[0011] If it is determined that the first user terminal agrees to share the target data, providing the data index information and the first self identity information to the cloud storage agent to obtain a re-encrypted ciphertext;

[0012] Decrypting the re-encrypted ciphertext according to the new access policy and the first attribute key included in the re-encrypted ciphertext to obtain the target data;

[0013] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information, the second self-identity information and the re-encryption key provided by the first user terminal.

[0014] According to a data sharing method provided by the present invention, decrypting the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data includes:

[0015] Matching the new access policy with the first attribute key, and determining whether the attribute set included in the first attribute key is a subset of the legal decryption attribute set corresponding to the second attribute key of the new access policy;

[0016] If so, the re-encrypted ciphertext is decrypted to obtain the target data.

[0017] According to a data sharing method provided by the present invention, the first attribute key is determined in the following manner:

[0018] Sending a request to multiple attribute authorization nodes to obtain a third attribute key of a subset corresponding to a set of all attributes published by each of the attribute authorization nodes;

[0019] Sending a request to the first user terminal to obtain a fourth attribute key issued by the first user terminal;

[0020] The first attribute key is determined according to any combination of the third attribute key and the fourth attribute key.

[0021] The present invention also provides a data sharing method, comprising:

[0022] Receive a data access application form submitted by the second user terminal, and decide whether to agree to share the target data according to a pre-set approval process;

[0023] If it is determined that the target data is agreed to be shared, the re-encrypted ciphertext is sent to the second user terminal through the cloud storage proxy according to the data index information and the first self identity information provided by the second user terminal received by the cloud storage proxy, so that the second user terminal decrypts the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0024] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information, the second self-identity information and the re-encryption key provided by the first user terminal.

[0025] According to a data sharing method provided by the present invention, the ciphertext data is determined in the following manner:

[0026] Sending requests to multiple attribute authorization nodes to obtain a set of attribute public keys corresponding to the target data;

[0027] Determining an access policy based on the attribute public key set;

[0028] An encryption operation is performed on the target data according to the access policy to determine the ciphertext data.

[0029] According to a data sharing method provided by the present invention, the first attribute key is determined in the following manner:

[0030] Sending the fourth attribute key to the second user terminal according to the received request sent by the second user terminal, so that the second user terminal can determine the first attribute key according to the third attribute key and the fourth attribute key;

[0031] The third attribute key is an attribute key of a subset corresponding to a set of all attributes issued by each attribute authorization node, which is obtained by the second user terminal after sending requests to the multiple attribute authorization nodes.

[0032] The present invention also provides a data sharing system, comprising: a first user terminal and a first cloud storage agent;

[0033] The first user terminal is used to receive the data access application form submitted by the second user terminal, and decide whether to agree to share the target data according to a pre-set approval process;

[0034] If it is determined that the target data is agreed to be shared, then according to the data index information and the first self identity information provided by the second user terminal and received by the first cloud storage agent, the re-encrypted ciphertext is sent to the second user terminal through the first cloud storage agent, so that the second user terminal decrypts the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0035] The first cloud storage agent is used to store the ciphertext data and the re-encrypted ciphertext;

[0036] Among them, the first cloud storage agent is also used to perform a re-encryption operation on the ciphertext data according to the data index information, the second self-identity information and the re-encryption key provided by the first user terminal to generate the re-encrypted ciphertext.

[0037] The present invention also provides a data sharing system, comprising: a second user terminal and a second cloud storage agent;

[0038] The second user terminal is used to submit a data access application form to the first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process;

[0039] If it is determined that the first user terminal agrees to share the target data, providing the data index information and the first self identity information to the second cloud storage agent to obtain a re-encrypted ciphertext;

[0040] Decrypting the re-encrypted ciphertext according to the new access policy and the first attribute key included in the re-encrypted ciphertext to obtain the target data;

[0041] The second cloud storage agent is used to store the ciphertext data and the re-encrypted ciphertext;

[0042] Among them, the second cloud storage agent is also used to perform a re-encryption operation on the ciphertext data according to the data index information, the second self-identity information and the re-encryption key provided by the first user terminal to generate the re-encrypted ciphertext.

[0043] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned data sharing methods are implemented.

[0044] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned data sharing methods are implemented.

[0045] The data sharing method and system provided by the present invention, during the data sharing process, use a cloud storage agent to re-encrypt data in a multi-authorization center attribute-based agent re-encryption manner, thereby expanding the data authorization method. At the same time, the re-encrypted ciphertext is stored in the cloud storage agent, and there is no need to store the original data locally, thereby reducing the local computing burden and increasing the ability to share data such as private data. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the present invention or 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 This is one of the flow charts of the data sharing method provided by the present invention;

[0048] Figure 2 This is one of the application scenario schematic diagrams of the data sharing method provided by the present invention;

[0049] Figure 3 It is a flow chart of a data encryption algorithm of a data sharing method provided by the present invention;

[0050] Figure 4 This is the second schematic diagram of the application scenario of the data sharing method provided by the present invention;

[0051] Figure 5 This is the second flow chart of the data sharing method provided by the present invention;

[0052] Figure 6 It is one of the structural schematic diagrams of the data sharing system provided by the present invention;

[0053] Figure 7 This is the second structural diagram of the data sharing system provided by the present invention;

[0054] Figure 8 It is one of the physical structure diagrams of the electronic device provided by the present invention;

[0055] Fig. 9 This is the second schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] Attribute-based encryption with multiple authorization centers refers to an encryption system in which attribute authorization agencies are in a distributed architecture and can operate independently without interaction. They each generate attribute key pairs and issue attribute keys to different users. This architecture decentralizes the generation of attributes and can effectively avoid the problem of global data encryption failure caused by single point failures.

[0058] In actual application scenarios, attribute-based encryption has a wide range of research hotspots, including but not limited to industry, medicine, military, multimedia, etc. Among them, attribute-based encryption mainly provides a variety of application methods and application scenarios as an access control method.

[0059] Currently, there is no algorithm in the existing technology and research that successfully implements a distributed multi-authorization center architecture when building a proxy re-encryption system. This situation is caused by the conflict between the two types of schemes in the scheme construction itself. Based on this, the present invention provides a data sharing method, which is specifically implemented as follows:

[0060] Figure 1 It is one of the flow charts of the data sharing method provided by the present invention, such as Figure 1 As shown, the method includes:

[0061] S1. Submitting a data access application form to a first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process;

[0062] S2. If it is determined that the first user terminal agrees to share the target data, provide the cloud storage agent with the data index information and the first user terminal's own identity information to obtain the re-encrypted ciphertext;

[0063] S3, decrypting the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0064] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information provided by the first user terminal, the second own identity information and the re-encryption key.

[0065] It should be noted that the execution subject of the above method can be a computer device and a mobile terminal. The data sharing method provided by the present invention is described in detail below by taking the second user terminal executing the above method as an example:

[0066] Optionally, the second user terminal corresponding to user 2 submits a data access application form to the first user terminal corresponding to user 1 to apply for data access. User 1 decides whether to allow access based on a pre-set approval process. If the application is approved, that is, the target data is agreed to be shared with user 2, user 2 provides the data index information and the second user terminal's own identity information (i.e., the first own identity information) to the cloud storage proxy node of the cloud storage proxy to request the download of the re-encrypted ciphertext data. The cloud storage proxy retrieves the re-encrypted ciphertext based on the conditions and transmits it to the second user terminal at user 2 through the network channel.

[0067] The re-encrypted ciphertext is requested by user 1 to re-encrypt the ciphertext data on the cloud storage by providing data index information, self-identity information (i.e., second self-identity information) and re-encryption key to the cloud storage proxy node of the cloud storage proxy. The cloud storage proxy retrieves the data and executes the re-encryption algorithm according to the correct re-encryption key to obtain the re-encrypted ciphertext containing the new access policy specified by user 1. The re-encryption key is another type of attribute key containing the new access policy generated by user 1 according to the attribute key corresponding to the attribute set encrypted for the first time.

[0068] User 2 uses the access policy information (i.e., new access policy) contained in the re-encrypted ciphertext of the acquired attribute base data (target data) and the attribute key (i.e., first attribute key) held by itself to decrypt the re-encrypted ciphertext and obtain the plaintext of the target data, thereby realizing data sharing from user 1 to user 2.

[0069] It should be noted that the cloud storage proxy node of the cloud storage proxy is used to store encrypted data (including ciphertext data and re-encrypted ciphertext). This type of node charges a certain service fee, stores the data uploaded by the client node (including the first user terminal and the second user terminal), and provides data query services based on data indexes. At the same time, the cloud storage proxy node will also undertake the re-encryption task of the proxy re-encryption, and process the access strategy of the data conversion ciphertext according to the re-encryption key uploaded by the client node.

[0070] It should be pointed out that the specific implementation of the cloud storage proxy node only needs to meet the above functions, and no specific requirements are made for the specific implementation, in order to achieve flexibility under the distributed architecture. The cloud storage proxy node can be selected by the user and built under the existing centralized cloud service (such as Alibaba Cloud, Tencent Cloud, etc.), or it can be implemented based on distributed data storage (such as distributed storage IPFS, etc.).

[0071] The client node is the user of data encryption and data sharing functions. There are three usage modes according to the different functional parts: the first is the data owner, who obtains the ciphertext data after the initial encryption and uploads it to the cloud storage proxy node; the second is the data accessor, and the user who meets the ciphertext access policy attribute set can decrypt the ciphertext; the third is the re-encryption data accessor, who applies to the data owner for permission to access the data through the proxy re-encryption. Among them, the first user terminal acts as the data owner and data accessor, and the second user terminal acts as the re-encryption data accessor.

[0072] The data sharing method provided by the present invention, during the data sharing process, uses a cloud storage agent to re-encrypt data in a multi-authorization center attribute-based agent re-encryption manner, thereby expanding the data authorization method. At the same time, the re-encrypted ciphertext is stored in the cloud storage agent, and there is no need to store the original data locally, thereby reducing the local computing burden and increasing the ability to share data such as private data.

[0073] Furthermore, in one embodiment, step S3 may specifically include:

[0074] S31, matching the new access policy with the first attribute key, and determining whether the attribute set included in the first attribute key is a subset of the legal decryption attribute set corresponding to the second attribute key of the new access policy;

[0075] S32: If yes, decrypt the re-encrypted ciphertext to obtain the target data.

[0076] Optionally, user 2 matches the access policy information contained in the re-encrypted ciphertext of the acquired target data with the first attribute key it holds to determine whether the attribute set possessed by the first attribute key meets the decryption requirements. If the attribute set is an authorized set that meets the requirements of the corresponding access policy (i.e., a subset of the legal decryption attribute set corresponding to the second attribute key of the new access policy), user 2 uses the attribute key set locally to execute the attribute-based re-encrypted ciphertext decryption algorithm, and completes the acquisition of the initial target data plaintext, thereby realizing data sharing from user 1 to user 2. Attribute sets that do not meet the access policy cannot be used for decryption.

[0077] Among them, the sharing methods provided by user 1 include one-to-one sharing and collective sharing: collective sharing uses a general access policy without private attributes; the access policy in one-to-one sharing is the AND operation of the general access policy and the private attribute key of user 1. If the sharing method selected by user 1 is one-to-one sharing, at this time, only the user who holds the private attribute key released by user 1 can decrypt the data.

[0078] The data sharing method provided by the present invention does not need to store the original data locally after uploading the data to the cloud storage agent during the data sharing process. It is only necessary to generate different re-encryption keys locally each time data is shared with different types of users. The re-encryption work is handed over to the cloud storage agent node to complete, reducing the local computing burden.

[0079] Further, in one embodiment, the first attribute key is determined in the following manner:

[0080] Sending requests to multiple attribute authorization nodes to obtain the third attribute key of the subset corresponding to the set of all attributes published by each attribute authorization node;

[0081] Sending a request to the first user terminal to obtain a fourth attribute key of the first user terminal;

[0082] The first attribute key is determined according to any combination of the third attribute key and the fourth attribute key.

[0083] Alternatively, if Figure 2 As shown, it is one of the application scenario schematic diagrams of the data sharing method provided by the present invention, and a computer application is provided for realizing a data sharing function mode based on the multi-authorization center attribute-based proxy re-encryption algorithm scheme provided by the present invention. In this computer application, except for user 1, the other four devices only contain one type of node, wherein center 1 and center 2 devices contain attribute authorization nodes; user 1 and user 2 contain client nodes, wherein user 1 plays the role of data owner and data accessor, user 2 plays the role of re-encryption data accessor, and user 1 independently publishes the attribute key corresponding to its private attribute as an attribute authorization node; cloud storage agent contains cloud storage agent node. Five devices are in a network environment and a physical environment that can communicate with each other. After entering the network, user 1 identifies itself as a client node and an attribute authorization node of private attributes, user 2 identifies itself as a client node, center 1 and 2 devices identify themselves as attribute authorization nodes, and cloud storage agent identifies itself as a cloud storage agent node.

[0084] User 1 sends a request to the attribute authorization nodes in Center 1 and Center 2 in the network to obtain the public key sets corresponding to the attributes published by Center 1 and Center 2 respectively. Center 1 and Center 2 nodes return all attribute description information and corresponding public keys.

[0085] Based on the acquired attribute public key set, user 1 generates a logical operation expression composed of different attributes, which represents the attribute-based access policy, and executes the multi-authorization center attribute-based encryption algorithm on the local device to encrypt the target data, and obtains the ciphertext data containing the attribute-based access policy. At this time, user 1 holds the attribute key required for decryption, so it also serves as a data accessor. Based on the public attribute public key set, the data owner can build an access policy encrypted data based on each attribute. The access policy is composed of the logical operation expression of the attribute, which can always be converted into a tree structure mathematically, representing the attribute set required to decrypt the data.

[0086] User 1 packages the encrypted data ciphertext and sends it to the cloud storage proxy node at the cloud storage proxy through the network channel to request data storage service. The specific service agreement, such as the data storage time limit and the cloud computing service price, is negotiated between user 1 and the cloud storage proxy. After the proxy completes the storage, it returns a success flag and the data index information of the ciphertext data on its storage node.

[0087] After entering the current environment, user 2 identifies itself as a client node. When the private attribute key of the data encryptor (user 1) is needed for one-to-one sharing, user 2 makes a request to center 1, center 2, and the attribute authorization node in user 1 to obtain the attribute key set corresponding to the attribute, where the attribute published by user 1 is the private key of user 1 used for one-to-one data sharing. The application approval process and issuance standard of the attribute key are determined by the attribute authorization node. After the interaction, user 2 obtains an attribute key (i.e., the third attribute key) corresponding to a subset (a legal attribute set in the access policy) of the set of all published attributes from center 1 and center 2. When one-to-one sharing is allowed, user 2 will also obtain the private attribute key (i.e., the fourth attribute key) from user 1. At this point, user 2 determines the first attribute key it holds based on the third attribute key and the fourth attribute key obtained.

[0088] Optionally, Figure 3 It is a flow chart of the data encryption algorithm of the data sharing method provided by the present invention, such as Figure 3 As shown, the encryption and decryption algorithm process of the data involved in the data sharing method provided by the present invention is specifically as follows:

[0089] Step 1, global initialization; Step 2, authorization center initialization; Step 3, attribute key generation; Step 4, data encryption; Step 5, data decryption; Step 6, re-encryption key generation; Step 7, auxiliary ciphertext generation; Step 8, proxy re-encryption; Step 9, re-encrypted data decryption. The algorithm involves 5 types of roles: attribute authorization center, cloud storage proxy, data owner, data accessor and re-encrypted data accessor, among which data owner, data accessor and re-encrypted data accessor are system users and run on client nodes.

[0090] The theoretical basis of this encryption and decryption algorithm is based on the bilinear pairing of Weil pairs or Tate pairs on elliptic curves. The specific algorithm implementation steps are as follows:

[0091] Step 1: When the system is established, the global initialization algorithm will be executed only once to generate some parameters that need to be globally unified for cryptographic operations, including curve parameters, the order of cyclic groups, etc. Once the parameters are determined, they will not change and will be visible to all participants.

[0092] Step 2: Anyone can execute the authorization center initialization algorithm and become an attribute authorization center in a distributed environment by generating one or more attribute key pairs. There can be any number of attribute authorization centers in the system. When each attribute is generated in the algorithm, a corresponding private key and public key are generated. The public key is visible to anyone, and the private key is used to generate the attribute key.

[0093] Step 3: When the attribute authorization center issues attributes for system users, it executes the attribute key generation algorithm based on the private key of the corresponding attribute and the user's global unified identity identifier GID to generate an attribute key I1 held by the user. The keys of the same attribute held by different users are not interchangeable to avoid collusion attacks.

[0094] Step 4: When encrypting, the data owner selects a set of attributes globally, reads the corresponding public key and constructs an access policy based on a logical expression, executes the data encryption algorithm to encrypt the data and generate the attribute base ciphertext C A (i.e. data ciphertext), data ciphertext C A Can be stored in a cloud storage agent.

[0095] Step 5: The data accessor decrypts the ciphertext data C generated by the data owner in step 4 A , it is necessary to hold the attribute keys corresponding to the legal decryption attribute set that satisfies the data access policy in the ciphertext, and execute the data decryption algorithm based on these keys to obtain the data plaintext.

[0096] Step 6: A data accessor who holds a set of legitimate decryption keys I1 can execute a re-encryption key generation algorithm based on these attribute keys to generate a re-encryption key Re-Key with the same attributes.

[0097] Step 7: After executing the re-encryption key generation algorithm, the data accessor selects a new access strategy in the same way as in step 4, and executes the auxiliary ciphertext generation algorithm to generate an auxiliary ciphertext ACT indicating the new access strategy. The re-encryption algorithm needs to be used in conjunction with the re-encryption key Re-Key and the auxiliary ciphertext ACT.

[0098] Step 8: After executing steps 6 and 7, the data accessor packages the re-encryption key Re-Key and the auxiliary ciphertext ACT and sends them to the cloud storage agent. The cloud storage agent can execute the agent re-encryption algorithm in the cloud, perform access strategy conversion on the ciphertext in step 4, i.e. re-encrypt it, and generate the re-encrypted ciphertext C. B .

[0099] Step 9: The re-encrypted data accessor decrypts the re-encrypted ciphertext C generated in step 8 B , it is necessary to hold the attribute key I2 corresponding to the legal decryption attribute set that satisfies the new access policy specified by the data accessor, and execute the re-encrypted data decryption algorithm based on these keys to obtain the data plaintext.

[0100] Optionally, Figure 4 This is the second schematic diagram of the application scenario of the data sharing method provided by the present invention. Figure 4 As shown, the present invention also provides a computer device for realizing data sharing based on the encryption and decryption scheme of the above-mentioned algorithm. The computer device is implemented by a device having three types of functional nodes, and the three types of functional nodes are attribute authorization nodes, cloud storage proxy nodes, and client nodes. The same device may have one or more of the three types of nodes, but at least one type of node. The nodes in the same group of devices must cover all three types of nodes. Each node exists in a distributed manner in the system, and the node identity is identified based on a distributed identity identifier.

[0101] The attribute authorization node publishes attributes in a distributed manner in the system, publishes attribute public keys, and issues user-characterized attribute keys to users based on requests from client nodes. These attribute keys will be used by client nodes in the system to encrypt data based on attributes. An attribute authorization center with real authority can register with an existing public certificate authority CA to authenticate the attribute public key, thereby increasing the effectiveness of the issued attributes.

[0102] Optionally, an embodiment of the present invention further provides an interactive organization form, which is applicable to the above-mentioned computer device, including:

[0103] The number of interactive nodes is at least two, and there is no upper limit within the range that the above-mentioned computer equipment can bear;

[0104] Interactive nodes must be able to connect to each other through network communication facilities, generate data interactions, and generate meaningful responses to requests from the other party;

[0105] Interactive nodes generate spontaneous information interaction in a purely distributed scenario. Pure distribution means that when the system composed of nodes interacts, its data storage, identity recognition and authentication, and interactive evidence do not need to rely on the services provided by the centralized system. It has strong self-organization, and there is no absolutely authoritative control node in the system.

[0106] The data sharing method provided by the present invention adopts a multi-attribute authorization node structure to decentralize the generation of attributes of target data, which can effectively avoid the problem of global data encryption timeliness caused by the failure of a single attribute authorization node.

[0107] Figure 5 This is the second flow chart of the data sharing method provided by the present invention, such as Figure 5 As shown, the method includes:

[0108] S4, receiving the data access application form submitted by the second user terminal, and deciding whether to agree to share the target data according to a pre-set approval process;

[0109] S5. If it is determined that the target data is agreed to be shared, the re-encrypted ciphertext is sent to the second user terminal through the cloud storage proxy according to the data index information provided by the second user terminal and the first self identity information received by the cloud storage proxy, so that the second user terminal decrypts the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0110] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information provided by the first user terminal, the second own identity information and the re-encryption key.

[0111] It should be noted that the execution subject of the above method can be a computer device and a mobile terminal. The data sharing method provided by the present invention is described in detail below by taking the first user terminal executing the above method as an example:

[0112] Optionally, the first user terminal corresponding to user 1 receives a data access application form submitted by the second user terminal corresponding to user 2 to apply for data access. User 1 decides whether to allow access based on a pre-set approval process. If the application is approved, that is, the target data is agreed to be shared with user 2, user 2 provides the data index information and the second user terminal's own identity information (i.e., the first own identity information) to the cloud storage proxy node of the cloud storage proxy to request the download of the re-encrypted ciphertext data. The cloud storage proxy retrieves the re-encrypted ciphertext based on the conditions and transmits it to the second user terminal at user 2 through the network channel.

[0113] The re-encrypted ciphertext is obtained by user 1 providing data index information, self-identity information (i.e., second self-identity information) and re-encryption key to the cloud storage proxy node of the cloud storage proxy to request re-encryption of the ciphertext data on the cloud storage. The cloud storage proxy retrieves the data and executes the re-encryption algorithm according to the correct re-encryption key to obtain the re-encrypted ciphertext containing the new access policy specified by user 1. The re-encryption key is the attribute key containing the new access policy generated by user 1 according to the attribute key corresponding to the attribute set encrypted for the first time.

[0114] User 2 uses the access policy information (i.e., new access policy) contained in the re-encrypted ciphertext of the attribute base data (target data) obtained by user 2 and the attribute key (i.e., first attribute key) held by itself to decrypt the re-encrypted ciphertext and obtain the plaintext of the target data, thereby realizing data sharing from user 1 to user 2.

[0115] It should be noted that the cloud storage proxy node of the cloud storage proxy is used to store encrypted data (including ciphertext data and re-encrypted ciphertext). This type of node charges a certain service fee, stores the data uploaded by the client node (including the first user terminal and the second user terminal), and provides data query services based on data indexes. At the same time, the cloud storage proxy node will also undertake the re-encryption task of the proxy re-encryption, and process the access strategy of the data conversion ciphertext according to the re-encryption key uploaded by the client node.

[0116] It should be pointed out that the specific implementation of the cloud storage proxy node only needs to meet the above functions, and no specific requirements are made for the specific implementation, in order to achieve flexibility under the distributed architecture. The cloud storage proxy node can be selected by the user and built under the existing centralized cloud service (such as Alibaba Cloud, Tencent Cloud, etc.), or it can be implemented based on distributed data storage (such as distributed storage IPFS, etc.).

[0117] The client node is the user of data encryption and data sharing functions. There are three usage modes according to the different functional parts: the first is the data owner, who obtains the ciphertext data after the initial encryption and uploads it to the cloud storage proxy node; the second is the data accessor, and the user who meets the ciphertext access policy attribute set can decrypt the ciphertext; the third is the re-encryption data accessor, who applies to the data owner for permission to access the data through the proxy re-encryption. Among them, the first user terminal acts as the data owner and data accessor, and the second user terminal acts as the re-encryption data accessor.

[0118] It should be noted that the encryption and decryption algorithm process of the data involved in the data sharing method provided by the present invention is consistent with the above-mentioned encryption and decryption algorithm process.

[0119] The data sharing method provided by the present invention can, during the data sharing process, use a cloud storage agent to re-encrypt data in a multi-authorization center attribute-based agent re-encryption manner, thereby expanding the data authorization method and storing the re-encrypted ciphertext in the cloud storage agent at the same time. There is no need to store the original data locally, thereby reducing the local computing burden and increasing the ability to share data such as private data.

[0120] Furthermore, in one embodiment, the ciphertext data is determined in the following manner:

[0121] Send requests to multiple attribute authorization nodes to obtain the attribute public key set corresponding to the target data;

[0122] Determine access policy based on attribute public key set;

[0123] The target data is encrypted according to the access policy to determine the ciphertext data.

[0124] Further, in one embodiment, the first attribute key is determined in the following manner:

[0125] Sending the fourth attribute key to the second user terminal according to the received request sent by the second user terminal, so that the second user terminal can determine the first attribute key according to the third attribute key and the fourth attribute key;

[0126] The third attribute key is an attribute key of a subset corresponding to a set of all attributes issued by each attribute authorization node, which is obtained by the second user terminal after sending requests to multiple attribute authorization nodes.

[0127] Alternatively, see Figure 2 In the provided computer application, except for user 1, the other four devices only contain one type of node, among which center 1 and center 2 devices contain attribute authorization nodes; user 1 and user 2 contain client nodes, among which user 1 plays the role of data owner and data accessor, user 2 plays the role of re-encrypted data accessor, and user 1 independently publishes the attribute key corresponding to its private attribute as an attribute authorization node; cloud storage agent contains cloud storage agent node. The five devices are in a network environment and physical environment that can communicate with each other. After entering the network, user 1 identifies itself as a client node and an attribute authorization node of private attributes, user 2 identifies itself as a client node, center 1 and 2 devices identify themselves as attribute authorization nodes, and cloud storage agent identifies itself as a cloud storage agent node.

[0128] User 1 sends a request to the attribute authorization nodes in Center 1 and Center 2 in the network to obtain the public key sets corresponding to the attributes published by Center 1 and Center 2 respectively. Center 1 and Center 2 nodes return all attribute description information and corresponding public keys.

[0129] Based on the acquired attribute public key set, user 1 generates a logical operation expression composed of different attributes, which represents the attribute-based access policy, and executes the multi-authorization center attribute-based encryption algorithm on the local device to encrypt the target data, and obtains the ciphertext data containing the attribute-based access policy. At this time, user 1 holds the attribute key required for decryption, so it also serves as a data accessor. Based on the public attribute public key set, the data owner can build an access policy encrypted data based on each attribute. The access policy is composed of the logical operation expression of the attribute, which can always be converted into a tree structure mathematically, representing the attribute set required to decrypt the data.

[0130] User 1 packages the encrypted data ciphertext and sends it to the cloud storage proxy node at the cloud storage proxy through the network channel to request data storage service. The specific service agreement, such as the data storage time limit and the cloud computing service price, is negotiated between user 1 and the cloud storage proxy. After the proxy completes the storage, it returns a success flag and the data index information of the ciphertext data on its storage node.

[0131] After entering the current environment, user 2 identifies itself as a client node, and makes a request to center 1, center 2, and the attribute authorization node in user 1 to obtain the attribute key set corresponding to the attribute, where the attribute published by user 1 is the private key of user 1 used for one-to-one data sharing. The application approval process and issuance standard of the attribute key are determined by the attribute authorization node. After the interaction, user 2 obtains an attribute key (i.e., the third attribute key) corresponding to a subset of the set of all published attributes from center 1 and center 2. When one-to-one sharing is allowed, user 2 will also obtain the private attribute key (i.e., the fourth attribute key) from user 1. At this point, user 2 determines the first attribute key it holds based on the third attribute key and the fourth attribute key obtained.

[0132] The data sharing method provided by the present invention adopts a multi-attribute authorization node structure to decentralize the generation of attributes of target data, which can effectively avoid the problem of global data encryption timeliness caused by the failure of a single attribute authorization node.

[0133] The data sharing system provided by the present invention is described below. The data sharing system described below and the data sharing method described above can be referenced to each other.

[0134] Figure 6 It is a structural diagram of the data sharing system provided by the present invention. Figure 6 As shown, it includes: a first user terminal 610 and a first cloud storage agent 611;

[0135] The first user terminal 610 is used to receive the data access application form submitted by the second user terminal, and decide whether to agree to share the target data according to a pre-set approval process;

[0136] If it is determined that the target data is agreed to be shared, the re-encrypted ciphertext is sent to the second user terminal through the first cloud storage agent according to the data index information and the first self identity information provided by the second user terminal received by the first cloud storage agent 611, so that the second user terminal can decrypt the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0137] A first cloud storage agent 611, used to store ciphertext data and re-encrypted ciphertext;

[0138] The first cloud storage agent 611 is further used to perform a re-encryption operation on the ciphertext data according to the data index information provided by the first user terminal, the second self-identity information and the re-encryption key to generate a re-encrypted ciphertext.

[0139] The data sharing system provided by the present invention can, during the data sharing process, use a cloud storage agent to re-encrypt data in a multi-authorization center attribute-based agent re-encryption manner, thereby expanding the data authorization method and storing the re-encrypted ciphertext in the cloud storage agent at the same time. There is no need to store the original data locally, thereby reducing the local computing burden and increasing the ability to share data such as private data.

[0140] Figure 7 It is a structural diagram of the data sharing system provided by the present invention. Figure 7 As shown, it includes: a second user terminal 710 and a second cloud storage agent 711;

[0141] The second user terminal 710 is used to submit a data access application form to the first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process;

[0142] If it is determined that the first user terminal agrees to share the target data, providing the data index information and the first self identity information to the second cloud storage agent to obtain the re-encrypted ciphertext;

[0143] Decrypting the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0144] The second cloud storage agent 711 is used to store ciphertext data and re-encrypted ciphertext;

[0145] The second cloud storage agent 711 is further used to perform a re-encryption operation on the ciphertext data according to the data index information provided by the first user terminal, the second self-identity information and the re-encryption key to generate a re-encrypted ciphertext.

[0146] The data sharing system provided by the present invention can, during the data sharing process, use a cloud storage agent to re-encrypt data in a multi-authorization center attribute-based agent re-encryption manner, thereby expanding the data authorization method and storing the re-encrypted ciphertext in the cloud storage agent at the same time. There is no need to store the original data locally, thereby reducing the local computing burden and increasing the ability to share data such as private data.

[0147] Figure 8 is a schematic diagram of the physical structure of an electronic device provided by the present invention, such as Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 811, a memory 812 and a bus 813, wherein the processor 810, the communication interface 811 and the memory 812 communicate with each other through the bus 813. The processor 810 may call the logic instructions in the memory 812 to execute the following method:

[0148] Submitting a data access application form to the first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process;

[0149] If it is determined that the first user terminal agrees to share the target data, providing the data index information and the first self identity information to the cloud storage agent to obtain the re-encrypted ciphertext;

[0150] Decrypt the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0151] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information provided by the first user terminal, the second own identity information and the re-encryption key.

[0152] Fig. 9 is a schematic diagram of the physical structure of an electronic device provided by the present invention, such as Fig. 9 As shown, the electronic device may include: a processor 910, a communication interface 911, a memory 912 and a bus 913, wherein the processor 910, the communication interface 911 and the memory 912 communicate with each other through the bus 913. The processor 910 may call the logic instructions in the memory 912 to execute the following method:

[0153] Receive a data access application form submitted by the second user terminal, and decide whether to agree to share the target data according to a pre-set approval process;

[0154] If it is determined that the target data is agreed to be shared, the re-encrypted ciphertext is sent to the second user terminal through the cloud storage proxy according to the data index information provided by the second user terminal and the first self identity information received by the cloud storage proxy, so that the second user terminal can decrypt the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0155] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information provided by the first user terminal, the second own identity information and the re-encryption key.

[0156] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer power screen (which can be a personal computer, a server, or a network power screen, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0157] Furthermore, the present invention discloses a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer can execute the data sharing method provided by the above-mentioned method embodiments, for example, comprising:

[0158] Submitting a data access application form to the first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process;

[0159] If it is determined that the first user terminal agrees to share the target data, providing the data index information and the first self identity information to the cloud storage agent to obtain the re-encrypted ciphertext;

[0160] Decrypt the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0161] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information provided by the first user terminal, the second own identity information and the re-encryption key.

[0162] or

[0163] Receive a data access application form submitted by the second user terminal, and decide whether to agree to share the target data according to a pre-set approval process;

[0164] If it is determined that the target data is agreed to be shared, the re-encrypted ciphertext is sent to the second user terminal through the cloud storage proxy according to the data index information provided by the second user terminal and the first self identity information received by the cloud storage proxy, so that the second user terminal can decrypt the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0165] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information provided by the first user terminal, the second own identity information and the re-encryption key.

[0166] On the other hand, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the data sharing method provided in the above embodiments, for example, including:

[0167] Submitting a data access application form to the first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process;

[0168] If it is determined that the first user terminal agrees to share the target data, providing the data index information and the first self identity information to the cloud storage agent to obtain the re-encrypted ciphertext;

[0169] Decrypt the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0170] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information provided by the first user terminal, the second own identity information and the re-encryption key.

[0171] or

[0172] Receive a data access application form submitted by the second user terminal, and decide whether to agree to share the target data according to a pre-set approval process;

[0173] If it is determined that the target data is agreed to be shared, the re-encrypted ciphertext is sent to the second user terminal through the cloud storage proxy according to the data index information provided by the second user terminal and the first self identity information received by the cloud storage proxy, so that the second user terminal can decrypt the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data;

[0174] The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information provided by the first user terminal, the second own identity information and the re-encryption key.

[0175] The system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0176] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer power screen (which can be a personal computer, a server, or a network power screen, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0177] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data sharing method, characterized in that: include: Submitting a data access application form to a first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process; If it is determined that the first user terminal agrees to share the target data, providing the data index information and the first self identity information to the cloud storage agent to obtain a re-encrypted ciphertext; Decrypting the re-encrypted ciphertext according to the new access policy and the first attribute key included in the re-encrypted ciphertext to obtain the target data; The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information, the second self-identity information and the re-encryption key provided by the first user terminal; The re-encryption key is another type of attribute key containing a new access policy generated by the first user terminal according to the attribute key corresponding to the attribute set encrypted for the first time; The first attribute key is determined in the following manner: Sending a request to multiple attribute authorization nodes to obtain a third attribute key of a subset corresponding to a set of all attributes published by each of the attribute authorization nodes; Sending a request to the first user terminal to obtain a fourth attribute key issued by the first user terminal; The first attribute key is determined according to any combination of the third attribute key and the fourth attribute key.

2. The data sharing method according to claim 1, characterized in that: The decrypting the re-encrypted ciphertext according to the new access policy and the first attribute key included in the re-encrypted ciphertext to obtain the target data includes: Matching the new access policy with the first attribute key, and determining whether the attribute set included in the first attribute key is a subset of the legal decryption attribute set corresponding to the second attribute key of the new access policy; If so, the re-encrypted ciphertext is decrypted to obtain the target data.

3. A data sharing method, characterized in that: include: Receive a data access application form submitted by the second user terminal, and decide whether to agree to share the target data according to a pre-set approval process; If it is determined that the target data is agreed to be shared, the re-encrypted ciphertext is sent to the second user terminal through the cloud storage proxy according to the data index information and the first self identity information provided by the second user terminal received by the cloud storage proxy, so that the second user terminal decrypts the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data; The re-encrypted ciphertext is generated by the cloud storage agent after re-encrypting the ciphertext data stored on the cloud storage agent according to the data index information, the second self-identity information and the re-encryption key provided by the first user terminal; The re-encryption key is another type of attribute key containing a new access policy generated by the first user terminal according to the attribute key corresponding to the attribute set encrypted for the first time; The first attribute key is determined in the following manner: Sending a request to multiple attribute authorization nodes to obtain a third attribute key of a subset corresponding to a set of all attributes published by each of the attribute authorization nodes; Sending a request to the first user terminal to obtain a fourth attribute key issued by the first user terminal; The first attribute key is determined according to any combination of the third attribute key and the fourth attribute key.

4. The data sharing method according to claim 3, characterized in that: The ciphertext data is determined in the following manner: Sending requests to multiple attribute authorization nodes to obtain a set of attribute public keys corresponding to the target data; Determining an access policy based on the attribute public key set; An encryption operation is performed on the target data according to the access policy to determine the ciphertext data.

5. The data sharing method according to claim 3, characterized in that: The first attribute key is determined in the following manner: Sending the fourth attribute key to the second user terminal according to the received request sent by the second user terminal, so that the second user terminal can determine the first attribute key according to the third attribute key and the fourth attribute key; The third attribute key is an attribute key of a subset corresponding to a set of all attributes issued by each attribute authorization node, which is obtained by the second user terminal after sending requests to the multiple attribute authorization nodes.

6. A data sharing system, characterized in that: include: a first user terminal and a first cloud storage agent; The first user terminal is used to receive the data access application form submitted by the second user terminal, and decide whether to agree to share the target data according to a pre-set approval process; If it is determined that the target data is agreed to be shared, then according to the data index information and the first self identity information provided by the second user terminal and received by the first cloud storage agent, the re-encrypted ciphertext is sent to the second user terminal through the first cloud storage agent, so that the second user terminal decrypts the re-encrypted ciphertext according to the new access policy and the first attribute key contained in the re-encrypted ciphertext to obtain the target data; The first cloud storage agent is used to store the ciphertext data and the re-encrypted ciphertext; The first cloud storage agent is further configured to perform a re-encryption operation on the ciphertext data according to the data index information, the second self-identity information and the re-encryption key provided by the first user terminal to generate the re-encrypted ciphertext; The re-encryption key is another type of attribute key containing a new access policy generated by the first user terminal according to the attribute key corresponding to the attribute set encrypted for the first time; The first attribute key is determined in the following manner: Sending a request to multiple attribute authorization nodes to obtain a third attribute key of a subset corresponding to a set of all attributes published by each of the attribute authorization nodes; Sending a request to the first user terminal to obtain a fourth attribute key issued by the first user terminal; The first attribute key is determined according to any combination of the third attribute key and the fourth attribute key.

7. A data sharing system, characterized in that: include: a second user terminal and a second cloud storage agent; The second user terminal is used to submit a data access application form to the first user terminal, so that the first user terminal can decide whether to agree to share the target data according to a pre-set approval process; If it is determined that the first user terminal agrees to share the target data, providing the data index information and the first self identity information to the second cloud storage agent to obtain a re-encrypted ciphertext; Decrypting the re-encrypted ciphertext according to the new access policy and the first attribute key included in the re-encrypted ciphertext to obtain the target data; The second cloud storage agent is used to store the ciphertext data and the re-encrypted ciphertext; The second cloud storage agent is further configured to perform a re-encryption operation on the ciphertext data according to the data index information, the second self-identity information and the re-encryption key provided by the first user terminal to generate the re-encrypted ciphertext; The re-encryption key is another type of attribute key containing a new access policy generated by the first user terminal according to the attribute key corresponding to the attribute set encrypted for the first time; The first attribute key is determined in the following manner: Sending a request to multiple attribute authorization nodes to obtain a third attribute key of a subset corresponding to a set of all attributes published by each of the attribute authorization nodes; Sending a request to the first user terminal to obtain a fourth attribute key issued by the first user terminal; The first attribute key is determined according to any combination of the third attribute key and the fourth attribute key.

8. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the data sharing method described in any one of claims 1 to 2, or implements the steps of the data sharing method described in any one of claims 3 to 5.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the data sharing method according to any one of claims 1 to 2, or implements the steps of the data sharing method according to any one of claims 3 to 5.

Citation Information

Patent Citations

  • Distributed attribute-based encryption method supporting fine-grit attribute revocation on lattice

    CN108880801A

  • Partial strategy hiding access control method and system and wireless communication system

    CN111695095A

  • Method for storing and sharing data without collusion in data outsourcing environment

    KR101422759B1

  • User terminal and data sharing method of user terminal based on attributed re-encryption

    KR1020170107818A

  • Method and device for managing the distribution of access rights in a cloud computing environment

    WO2012161417A1