CN109474616B - Multi-platform data sharing method and device and computer readable storage medium - Google Patents

Multi-platform data sharing method and device and computer readable storage medium Download PDF

Info

Publication number
CN109474616B
CN109474616B CN201811540459.5A CN201811540459A CN109474616B CN 109474616 B CN109474616 B CN 109474616B CN 201811540459 A CN201811540459 A CN 201811540459A CN 109474616 B CN109474616 B CN 109474616B
Authority
CN
China
Prior art keywords
data
encrypted
shared
multiple platforms
platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811540459.5A
Other languages
Chinese (zh)
Other versions
CN109474616A (en
Inventor
王双
丁若谷
吴明辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Miaozhen Information Technology Co Ltd
Original Assignee
Miaozhen Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Miaozhen Information Technology Co Ltd filed Critical Miaozhen Information Technology Co Ltd
Priority to CN201811540459.5A priority Critical patent/CN109474616B/en
Publication of CN109474616A publication Critical patent/CN109474616A/en
Application granted granted Critical
Publication of CN109474616B publication Critical patent/CN109474616B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0478Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload applying multiple layers of encryption, e.g. nested tunnels or encrypting the content with a first key and then with at least a second key
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0471Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload applying encryption by an intermediary, e.g. receiving clear information at the intermediary and encrypting the received information at the intermediary before forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Abstract

The invention relates to a multi-platform data sharing method and device and a computer readable storage medium. The method comprises the following steps: unifying the lengths of key fields of shared data, wherein the shared data is data expected to be shared among multiple platforms; encrypting key fields of shared data provided by each platform in the multiple platforms to obtain encrypted data, and sending the encrypted data to a data sharing pool; respectively re-encrypting the encrypted data provided by other platforms in the multiple platforms in the data sharing pool to obtain re-encrypted data; and sending the re-encrypted data to a data sharing pool so that the data sharing pool can connect the shared data with the same encryption field, thereby realizing data sharing among multiple platforms. According to the method and the device, the key fields of the shared data are encrypted in an exchangeable manner, so that each platform can acquire more comprehensive data information, the utilization rate and the integrity of the shared data are improved, and the key field information of the shared data is guaranteed not to be disclosed.

Description

Multi-platform data sharing method and device and computer readable storage medium
Technical Field
The present invention relates to the field of computer information encryption, and in particular, to a method and an apparatus for sharing multi-platform data and a computer-readable storage medium.
Background
With the development of internet technology and the continuous popularization of online applications, people increasingly use various online applications in life. Further, the same user may use multiple online applications simultaneously, such that each online application is able to obtain data information for the user in different dimensions. In addition, the key fields used by the platforms for distinguishing the user identities are often the same, and if the obtained data information can be connected according to the key fields thereof to realize data sharing, the platforms can obtain more comprehensive user data information, thereby being beneficial to further data mining and analysis.
However, in reality, the key fields available for data connection often contain important information about the user, and therefore, each platform needs to keep the important information of the user secret, i.e., cannot reveal it to other platforms. Because the requirement of data sharing in practical application often involves multiple parties, how to implement data sharing under the condition of ensuring that the key field information of shared data is not leaked is a problem to be solved urgently in the prior art.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method and an apparatus for sharing data among multiple platforms, and a computer-readable storage medium.
One aspect of the present invention provides a method for multi-platform data sharing, including: unifying the lengths of key fields of shared data, wherein the shared data is data expected to be shared among multiple platforms; encrypting key fields of shared data provided by each platform in the multiple platforms to obtain encrypted data, and sending the encrypted data to a data sharing pool; respectively re-encrypting the encrypted data provided by other platforms in the multiple platforms in the data sharing pool to obtain re-encrypted data; and sending the re-encrypted data to a data sharing pool so that the data sharing pool can connect the shared data with the same encryption field, thereby realizing data sharing among multiple platforms.
In one embodiment of the present invention, unifying the lengths of the key fields of the shared data comprises: encrypting key fields of the shared data by using a message digest algorithm fifth version MD5 to obtain MD5 values with the same length; and replacing the original value of the key field of the shared data with the MD5 value.
In one embodiment of the present invention, encrypting the key field of the shared data provided by each of the multiple platforms to obtain the encrypted data comprises: the MD5 value of the key field of the shared data is encrypted using an exchangeable encryption algorithm to obtain encrypted data.
In one embodiment of the invention, encryption algorithms may be swapped to satisfy a condition
Figure BDA0001907948070000021
Of (a) an encryption algorithm fθ(x) Wherein x represents a key field to be encrypted, n represents the number of platforms participating in data sharing, theta represents a parameter of an encryption algorithm, and theta representsjAnd (j is more than or equal to 1 and less than or equal to n) represents the parameter value set when the j-th platform encrypts the key field, wherein n is a positive integer.
Another aspect of the present invention provides a method for multi-platform data sharing, including: receiving encrypted shared data sent by each platform in the multiple platforms, wherein the shared data is data expected to be shared among the multiple platforms; and connecting the shared data with the same encryption field in the encrypted shared data, thereby realizing data sharing among multiple platforms.
In an embodiment of the present invention, receiving encrypted shared data sent by each platform of the multiple platforms includes: receiving encrypted data obtained after each platform in the multiple platforms encrypts key fields of shared data provided by each platform; and receiving the re-encrypted data obtained after the platform re-encrypts the encrypted data provided by other platforms in the multiple platforms.
Yet another aspect of the present invention provides a multi-platform data sharing apparatus, including: the system comprises a unification module, a data sharing module and a data sharing module, wherein the unification module is configured to unify the lengths of key fields of shared data, and the shared data is data expected to be shared among multiple platforms; the encryption module is configured to encrypt key fields of shared data provided by each platform in the multiple platforms to obtain encrypted data, send the encrypted data to the data sharing pool, and re-encrypt the encrypted data provided by other platforms in the multiple platforms in the data sharing pool to obtain re-encrypted data; and the sending module is configured to send the re-encrypted data to the data sharing pool so that the data sharing pool can connect the shared data with the same encryption field, thereby realizing data sharing among the multiple platforms.
In one embodiment of the invention, the unification module encrypts the key fields of the shared data using a message digest algorithm version five MD5 to get MD5 values of the same length and replaces the original values of the key fields of the shared data with MD5 values.
In one embodiment of the invention, the encryption module encrypts the MD5 value of the key field of the shared data using an exchangeable encryption algorithm to obtain encrypted data.
In one embodiment of the invention, encryption algorithms may be swapped to satisfy a condition
Figure BDA0001907948070000031
Of (a) an encryption algorithm fθ(x) Wherein x represents a key field to be encrypted, n represents the number of platforms participating in data sharing, theta represents a parameter of an encryption algorithm, and theta representsjAnd (j is more than or equal to 1 and less than or equal to n) represents the parameter value set when the j-th platform encrypts the key field, wherein n is a positive integer.
Yet another aspect of the present invention provides a multi-platform data sharing apparatus, including: the receiving module is configured to receive encrypted shared data sent by each platform in the multiple platforms, and the shared data is data expected to be shared among the multiple platforms; and the connection module is configured to connect the shared data with the same encryption field in the encrypted shared data, so that data sharing among multiple platforms is realized.
In an embodiment of the present invention, the receiving module receives encrypted data obtained by encrypting the key field of the shared data provided by each platform in the multiple platforms, and receives re-encrypted data obtained by re-encrypting the encrypted data provided by other platforms in the multiple platforms by each platform in the multiple platforms.
Yet another aspect of the invention provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement any of the methods described above.
According to the technical scheme provided by the embodiment of the invention, the key fields of the shared data provided by each platform in the multiple platforms are encrypted to obtain encrypted data by unifying the lengths of the key fields of the shared data, the encrypted data are sent to the data sharing pool, the encrypted data provided by other platforms in the multiple platforms in the data sharing pool are re-encrypted to obtain re-encrypted data, and the re-encrypted data are sent to the data sharing pool, so that the data sharing pool connects the shared data with the same encrypted fields, and the data sharing among the multiple platforms is realized, and each platform can simultaneously obtain more comprehensive shared data from the multiple platforms, therefore, the utilization rate and the integrity of the shared data are improved, and the key field information of the shared data is ensured not to be disclosed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention.
Fig. 1 is a flowchart illustrating a multi-platform data sharing method according to an exemplary embodiment of the present invention.
Fig. 2 is a flowchart illustrating a multi-platform data sharing method according to another exemplary embodiment of the present invention.
Fig. 3 is a block diagram illustrating a multi-platform data sharing apparatus according to an exemplary embodiment of the present invention.
Fig. 4 is a block diagram illustrating a multi-platform data sharing apparatus according to another exemplary embodiment of the present invention.
Fig. 5 is a block diagram illustrating an apparatus 500 for multi-platform data sharing according to an exemplary embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart illustrating a multi-platform data sharing method according to an exemplary embodiment of the present invention. As shown in fig. 1, the method includes:
110: and unifying the lengths of key fields of shared data, wherein the shared data is data expected to be shared among multiple platforms.
In the embodiment of the present invention, each of the multiple platforms may use a Message Digest Algorithm (Message-Digest Algorithm) to unify the lengths of the key fields of the shared data. Here, the shared data is data that is desired to be shared among multiple platforms.
Specifically, in practice, there may be a large difference in the lengths of the key fields of the shared data, and therefore, in order to facilitate subsequent encryption operations, the lengths of the key fields of the shared data need to be unified. Here, the shared data may be user data, server data, or the like, and the present invention is not limited thereto.
The message digest algorithm is the core algorithm of digital signatures, which has irreversibility. Common message digest algorithms include: cyclic Redundancy Check (CRC), Message Digest (MD), Secure Hash (SHA), and Message Authentication Code (MAC).
CRC is mainly used in the field of communications, and the most widely used at present is the CRC32 algorithm, which generates a 4-byte (32-bit) check value, typically represented by an 8-bit hexadecimal number. MD is widely used for data integrity verification, data (message) summarization, data encryption, etc.; MD2, MD4, and MD5 all generate 16-byte (128-bit) check values, typically represented by 32-bit hexadecimal numbers. The abstract length of the SHA series algorithm is 20 bytes (160 bits) for SHA, 32 bytes (256 bits) for SHA256, 48 bytes (384 bits) for SHA384, and 64 bytes (512 bits) for SHA 512; SHA1 is currently in widespread use, primarily in CA and digital certificates.
120: and encrypting key fields of shared data provided by each platform in the multiple platforms to obtain encrypted data, and sending the encrypted data to the data sharing pool.
In the embodiment of the invention, each platform in the multiple platforms encrypts the key field of the shared data provided by each platform to obtain encrypted data; further, each platform sends the encrypted data to a data sharing pool, and the data sharing pool stores the encrypted data after receiving the encrypted shared data sent by each platform. Here, the data sharing pool is used to collectively store encrypted data that is desired to be shared among multiple platforms.
130: and respectively re-encrypting the encrypted data provided by other platforms in the multiple platforms in the data sharing pool to obtain re-encrypted data.
In the embodiment of the invention, each platform in the multiple platforms respectively re-encrypts the encrypted data provided by other platforms in the multiple platforms in the data sharing pool to obtain re-encrypted data.
Specifically, shared data encrypted by each platform is already stored in the data sharing pool, and further, each platform needs to re-encrypt encrypted data provided by other platforms to obtain re-encrypted data. It should be noted that, in the above re-encryption process, shared data from the same platform may go through multiple re-encryption of other platforms.
140: and sending the re-encrypted data to a data sharing pool so that the data sharing pool can connect the shared data with the same encryption field, thereby realizing data sharing among multiple platforms.
In the embodiment of the invention, each platform in the multiple platforms sends the re-encrypted data to the data sharing pool; further, the data sharing pool stores the re-encrypted data after receiving the re-encrypted data sent by each platform, and searches the shared data with the same encryption field in the re-encrypted data to connect the shared data, so that each platform can obtain more comprehensive shared data, and data sharing among multiple platforms is realized.
According to the technical scheme provided by the embodiment of the invention, the key fields of the shared data provided by each platform in the multiple platforms are encrypted to obtain encrypted data by unifying the lengths of the key fields of the shared data, the encrypted data are sent to the data sharing pool, the encrypted data provided by other platforms in the multiple platforms in the data sharing pool are re-encrypted to obtain re-encrypted data, and the re-encrypted data are sent to the data sharing pool, so that the data sharing pool connects the shared data with the same encrypted fields, and the data sharing among the multiple platforms is realized, and each platform can simultaneously obtain more comprehensive shared data from the multiple platforms, therefore, the utilization rate and the integrity of the shared data are improved, and the key field information of the shared data is ensured not to be disclosed.
In another embodiment of the present invention, unifying the lengths of the key fields of the shared data comprises: encrypting key fields of the shared data by using a message digest algorithm fifth version MD5 to obtain MD5 values with the same length; and replacing the original value of the key field of the shared data with the MD5 value.
Specifically, a Message-Digest Algorithm fifth version (Message-Digest Algorithm 5, MD5) of 16-system is used to encrypt key fields of shared data into integers of 16-system, so as to obtain MD5 values with the same length; further, the original values of the key fields of the shared data are replaced with MD5 values, so that each platform cannot directly acquire the original key fields of the shared data of other platforms.
In another embodiment of the present invention, encrypting the key field of the shared data provided by each of the multiple platforms to obtain the encrypted data comprises: the MD5 value of the key field of the shared data is encrypted using an exchangeable encryption algorithm to obtain encrypted data.
Specifically, the cryptographic function is determined to be fθ(x) X θ mod (m), where m may take a very large integer, e.g., 64 bits 16, and θ may take an integer less than m. Since the cryptographic functions satisfy interchangeability, i.e.
Figure BDA0001907948070000083
Therefore, the encryption result is independent of the encryption order; further, the MD5 values of the key fields of the resulting shared data are encrypted using a commutative encryption algorithm to disable other platformsAnd directly obtaining key field information of the part of the shared data, and storing the encrypted shared data in a data sharing pool.
Further, encryption algorithms may be exchanged to satisfy conditions
Figure BDA0001907948070000081
Of (a) an encryption algorithm fθ(x) Wherein x represents a key field to be encrypted, n represents the number of platforms participating in data sharing, theta represents a parameter of an encryption algorithm, and theta representsjAnd (j is more than or equal to 1 and less than or equal to n) represents the parameter value set when the j-th platform encrypts the key field, wherein n is a positive integer.
It should be noted that the encryption function of the exchangeable encryption algorithm of the present application is not limited to f as described aboveθ(x) X θ mod (m), but as an exchangeable encryption algorithm, an encryption function that can satisfy the conditions of the exchangeable encryption algorithm can be used for the data sharing method.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Hereinafter, the data sharing method will be described in detail by taking A, B, C and D four platforms as examples.
Specifically, assume that the shared data provided by the four platforms A, B, C and D are denoted as S, respectivelyA、SB、SCAnd SDThe key field of the shared data is denoted as k (S)A)、k(SB)、k(SC) And k (S)D) The cryptographic function is denoted as fθ(x) X ^ theta mod (m), and share data SA、SB、SCAnd SDHaving the same key field, i.e. k (S)A)=k(SB)=k(SC)=k(SD). Unifying the length of the key word of the shared data by using a 16-system MD5 algorithm, namely encrypting the key field of the shared data into a 16-system integer to obtain kMD5(SA)、kMD5(SB)、kMD5(SC) And kMD5(SD)。
Next, platform A, B, C and D provide k to itselfMD5(SA)、kMD5(SB)、kMD5(SC) And kMD5(SD) Encrypting to obtain encrypted data
Figure BDA0001907948070000082
And
Figure BDA0001907948070000091
and storing the encrypted data in a data sharing pool.
Further, platforms A, B, C and D re-encrypt the encrypted data provided by other platforms in the data sharing pool, respectively, to obtain re-encrypted data. For example, encrypted data for platform A
Figure BDA0001907948070000092
Platform B, C and D re-encrypt it to obtain re-encrypted data as
Figure BDA0001907948070000093
Figure BDA0001907948070000094
And
Figure BDA0001907948070000095
and these re-encrypted data are all equal. It can be seen that the data sharing pool at least comprises
Figure BDA0001907948070000096
And
Figure BDA0001907948070000097
and these re-encrypted data are all equal. Thus, the data sharing pool may share data SA、SB、SCAnd SDMaking a connection, i.e. SA∪SB∪SC∪SD
As can be seen, platforms A, B, C and D participating in data sharing may both have access to a key field of k (S)A)(k(SB)、k(SC) Or k (S)D) The user' S more comprehensive data information, but the platforms can not obtain the real key field k (S) about the userA)(k(SB)、k(SC) Or k (S)D) Thereby not only realizing data sharing, but also realizing the protection of key information of users.
Fig. 2 is a flowchart illustrating a multi-platform data sharing method according to another exemplary embodiment of the present invention. As shown in fig. 2, the method includes:
210: and receiving encrypted shared data sent by each platform in the multiple platforms, wherein the shared data is data expected to be shared among the multiple platforms.
In the embodiment of the invention, the data sharing pool receives the encrypted shared data sent by each platform in the multiple platforms and stores the received encrypted data. Here, the shared data is encrypted data that is desired to be shared among multiple platforms.
220: and connecting the shared data with the same encryption field in the encrypted shared data, thereby realizing data sharing among multiple platforms.
In the embodiment of the invention, the data sharing pool searches the shared data with the same encryption field in the encrypted shared data and connects the shared data, so that each platform can obtain more comprehensive shared data, and the data sharing among multiple platforms is realized.
According to the technical scheme provided by the embodiment of the invention, the encrypted shared data sent by each platform in the multiple platforms is received, the shared data is data expected to be shared among the multiple platforms, and the shared data with the same encryption field in the encrypted shared data is connected, so that the data sharing among the multiple platforms is realized, and each platform can acquire more comprehensive data information, therefore, the utilization rate and the integrity of the shared data are improved, and the key field information of the shared data is ensured not to be disclosed.
In another embodiment of the present invention, receiving encrypted shared data sent by each platform of the multiple platforms includes: receiving encrypted data obtained after each platform in the multiple platforms encrypts key fields of shared data provided by each platform; and receiving the re-encrypted data obtained after the platform re-encrypts the encrypted data provided by other platforms in the multiple platforms.
Specifically, each platform in the multiple platforms encrypts a key field of shared data provided by each platform, and sends the encrypted shared data to a data sharing pool; further, each platform re-encrypts the encrypted data provided by other platforms and stored in the data sharing pool, and sends the re-encrypted shared data to the data sharing pool. Here, the data sharing pool is used to collectively store encrypted data that is desired to be shared among multiple platforms.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Fig. 3 is a block diagram illustrating a multi-platform data sharing apparatus according to an exemplary embodiment of the present invention. As shown in fig. 3, the apparatus includes:
the unifying module 310 is configured to unify lengths of key fields of shared data, where the shared data is data expected to be shared among multiple platforms;
the encryption module 320 is configured to encrypt key fields of shared data provided by each platform of the multiple platforms to obtain encrypted data, send the encrypted data to the data sharing pool, and re-encrypt the encrypted data provided by other platforms of the multiple platforms in the data sharing pool to obtain re-encrypted data; and
the sending module 330 is configured to send the re-encrypted data to the data sharing pool, so that the data sharing pool connects the shared data with the same encryption field, thereby implementing data sharing among multiple platforms.
According to the technical scheme provided by the embodiment of the invention, the key fields of the shared data provided by each platform in the multiple platforms are encrypted to obtain encrypted data by unifying the lengths of the key fields of the shared data, the encrypted data are sent to the data sharing pool, the encrypted data provided by other platforms in the multiple platforms in the data sharing pool are re-encrypted to obtain re-encrypted data, and the re-encrypted data are sent to the data sharing pool, so that the data sharing pool connects the shared data with the same encrypted fields, and the data sharing among the multiple platforms is realized, and each platform can simultaneously obtain more comprehensive shared data from the multiple platforms, therefore, the utilization rate and the integrity of the shared data are improved, and the key field information of the shared data is ensured not to be disclosed.
In another embodiment of the present invention, the unified module 310 encrypts the key fields of the shared data using a message digest algorithm version five MD5 to obtain MD5 values of the same length and replaces the original values of the key fields of the shared data with MD5 values.
In another embodiment of the present invention, encryption module 320 encrypts the MD5 value of the key field of the shared data using an exchangeable encryption algorithm to obtain encrypted data.
In another embodiment of the invention, encryption algorithms may be swapped to satisfy a condition
Figure BDA0001907948070000111
Of (a) an encryption algorithm fθ(x) Wherein x represents a key field to be encrypted, n represents the number of platforms participating in data sharing, theta represents a parameter of an encryption algorithm, and theta representsjAnd (j is more than or equal to 1 and less than or equal to n) represents the parameter value set when the j-th platform encrypts the key field, wherein n is a positive integer.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
Fig. 4 is a block diagram illustrating a multi-platform data sharing apparatus according to another exemplary embodiment of the present invention. As shown in fig. 4, the apparatus includes:
a receiving module 410, configured to receive encrypted shared data sent by each platform of the multiple platforms, where the shared data is data that is expected to be shared among the multiple platforms; and
the connection module 420 is configured to connect shared data with the same encryption field in the encrypted shared data, so as to implement data sharing among multiple platforms.
According to the technical scheme provided by the embodiment of the invention, the encrypted shared data sent by each platform in the multiple platforms is received, the shared data is data expected to be shared among the multiple platforms, and the shared data with the same encryption field in the encrypted shared data is connected, so that the data sharing among the multiple platforms is realized, and each platform can acquire more comprehensive data information, therefore, the utilization rate and the integrity of the shared data are improved, and the key field information of the shared data is ensured not to be disclosed.
In another embodiment of the present invention, the receiving module 410 receives encrypted data obtained by encrypting the key field of the shared data provided by each of the multiple platforms, and receives re-encrypted data obtained by re-encrypting the encrypted data provided by the other platforms in the multiple platforms by each of the multiple platforms.
Fig. 5 is a block diagram illustrating an apparatus 500 for multi-platform data sharing according to an exemplary embodiment of the present invention.
Referring to fig. 5, the apparatus 500 includes a processing component 510 that further includes one or more processors and memory resources, represented by memory 520, for storing instructions, such as applications, that are executable by the processing component 510. The application programs stored in memory 520 may include one or more modules that each correspond to a set of instructions. Further, the processing component 510 is configured to execute instructions to perform the multi-platform data sharing methods described above.
The apparatus 500 may also include a power component 530 configured to perform power management of the apparatus 500, a wired or wireless network interface 540 configured to connect the apparatus 500 to a network, and an input/output (I/O) interface 550. The apparatus 500 may operate based on an operating system stored in the memory 520, such as Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTMOr classAnd (6) like.
A non-transitory computer readable storage medium having instructions stored thereon that, when executed by a processor of the apparatus 500, enable the apparatus 500 to perform a multi-platform data sharing method, comprising: unifying the lengths of key fields of shared data, wherein the shared data is data expected to be shared among multiple platforms; encrypting key fields of shared data provided by each platform in the multiple platforms to obtain encrypted data, and sending the encrypted data to a data sharing pool; respectively re-encrypting the encrypted data provided by other platforms in the multiple platforms in the data sharing pool to obtain re-encrypted data; and sending the re-encrypted data to a data sharing pool so that the data sharing pool can connect the shared data with the same encryption field, thereby realizing data sharing among multiple platforms.
The invention at least comprises the following beneficial effects: firstly, in consideration of actual industrial requirements, encryption algorithm which can be exchanged is used for encrypting key field information of users under each platform, so that protection of the user information is realized; secondly, from the perspective of whether the data owner is available, the encryption process of multiple platforms is divided into encryption and re-encryption, shared data information is guaranteed not to be leaked through encryption, and the same user key field is guaranteed through re-encryption; thirdly, the exchangeable encryption algorithm is applied to the multi-party data sharing platform, and on the basis of protecting key information of users, multi-platform data sharing is achieved.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
Although the present invention has been described in detail, it is not limited thereto but is only a preferred embodiment of the present invention, and those skilled in the art can make various modifications and changes. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A multi-platform data sharing method is characterized by comprising the following steps:
unifying the lengths of key fields of shared data, wherein the shared data is data expected to be shared among the multiple platforms;
each platform in the multiple platforms encrypts key fields of the provided shared data by using an exchangeable encryption algorithm to obtain encrypted data, and sends the encrypted data to a data sharing pool;
re-encrypting the encrypted data provided by other platforms in the multiple platforms in the data sharing pool to obtain re-encrypted data; and
and sending the re-encrypted data to the data sharing pool so that the data sharing pool can connect the shared data with the same encryption field, thereby realizing the data sharing among the multiple platforms.
2. The method of claim 1, wherein unifying lengths of key fields of shared data comprises:
encrypting the key fields of the shared data by using a message digest algorithm fifth version MD5 to obtain MD5 values with the same length; and
replacing an original value of a key field of the shared data with the MD5 value.
3. The method of claim 2, wherein encrypting the key field of the shared data provided by each of the multiple platforms to obtain encrypted data comprises:
encrypting the MD5 value of the key field of the shared data using an exchangeable encryption algorithm to obtain the encrypted data.
4. The method of claim 3, wherein the exchangeable encryption algorithm is conditional
Figure FDA0002995053520000011
Of (a) an encryption algorithm fθ(x) Wherein x represents a key field to be encrypted, n represents the number of platforms participating in data sharing, theta represents a parameter of an encryption algorithm, and theta representsjAnd (j is more than or equal to 1 and less than or equal to n) represents the parameter value set when the j-th platform encrypts the key field, wherein n is a positive integer.
5. A multi-platform data sharing method is characterized by comprising the following steps:
receiving encrypted shared data sent by each platform in the multiple platforms, wherein the shared data is data expected to be shared among the multiple platforms; and
connecting the shared data with the same encryption field in the encrypted shared data, thereby realizing the data sharing among the multiple platforms;
the receiving the encrypted shared data sent by each platform of the multiple platforms includes:
receiving key fields of shared data provided by each platform in the multiple platforms, encrypting the key fields by using an exchangeable encryption algorithm to obtain encrypted data; and
and receiving the re-encrypted data obtained after the platforms respectively re-encrypt the encrypted data provided by other platforms in the multiple platforms by using an exchangeable encryption algorithm.
6. A multi-platform data sharing apparatus, comprising:
the system comprises a unification module and a sharing module, wherein the unification module is configured to unify the lengths of key fields of shared data, and the shared data is data expected to be shared among the multiple platforms;
the encryption module is configured to encrypt key fields of the provided shared data by each platform in the multiple platforms by using an exchangeable encryption algorithm to obtain encrypted data, send the encrypted data to a data sharing pool, and re-encrypt the encrypted data provided by other platforms in the multiple platforms in the data sharing pool to obtain re-encrypted data; and
and the sending module is configured to send the re-encrypted data to the data sharing pool so that the data sharing pool can connect the shared data with the same encryption field, thereby realizing the data sharing among the multiple platforms.
7. The apparatus of claim 6, wherein the unified module encrypts the key field of the shared data using a message digest algorithm version five, MD5, to obtain MD5 values of the same length, and replaces the original value of the key field of the shared data with the MD5 value.
8. The apparatus of claim 7, wherein the encryption module encrypts the MD5 value of the key field of the shared data using a commutative encryption algorithm to obtain the encrypted data.
9. The apparatus of claim 8, wherein the exchangeable encryption algorithm is conditional
Figure FDA0002995053520000031
Of (a) an encryption algorithm fθ(x) Wherein x represents a key field to be encrypted, n represents the number of platforms participating in data sharing, theta represents a parameter of an encryption algorithm, and theta representsjAnd (j is more than or equal to 1 and less than or equal to n) represents the parameter value set when the j-th platform encrypts the key field, wherein n is a positive integer.
10. A multi-platform data sharing apparatus, comprising:
a receiving module configured to receive encrypted shared data sent by each of the multiple platforms, where the shared data is data that is expected to be shared among the multiple platforms; and
the connection module is configured to connect shared data with the same encryption field in the encrypted shared data, so that data sharing among the multiple platforms is realized;
the receiving module receives encrypted data obtained after key fields of shared data provided by each platform in the multiple platforms are encrypted by using an exchangeable encryption algorithm, and receives re-encrypted data obtained after each platform in the multiple platforms re-encrypts the encrypted data provided by other platforms in the multiple platforms by using the exchangeable encryption algorithm.
11. A computer-readable storage medium having stored thereon computer-executable instructions, which when executed by a processor implement the method of any one of claims 1 to 5.
CN201811540459.5A 2018-12-17 2018-12-17 Multi-platform data sharing method and device and computer readable storage medium Active CN109474616B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811540459.5A CN109474616B (en) 2018-12-17 2018-12-17 Multi-platform data sharing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811540459.5A CN109474616B (en) 2018-12-17 2018-12-17 Multi-platform data sharing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109474616A CN109474616A (en) 2019-03-15
CN109474616B true CN109474616B (en) 2021-06-25

Family

ID=65675353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811540459.5A Active CN109474616B (en) 2018-12-17 2018-12-17 Multi-platform data sharing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109474616B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866274A (en) * 2019-11-12 2020-03-06 支付宝(杭州)信息技术有限公司 Data fusion method, data fusion platform, data fusion system and data processing platform
CN111061720B (en) * 2020-03-12 2021-05-07 支付宝(杭州)信息技术有限公司 Data screening method and device and electronic equipment
CN111600944B (en) * 2020-05-12 2023-02-28 北京锐安科技有限公司 Data processing method, device, equipment and storage medium
CN113726773B (en) * 2021-08-30 2023-04-07 深圳平安医疗健康科技服务有限公司 Medical data sharing method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122935A (en) * 2006-08-11 2008-02-13 Id-卡奇股份有限公司 Devices and methods for safe biology statistics application
EP2500832A1 (en) * 2011-03-15 2012-09-19 Amadeus S.A.S. Method and system for synchronization mechanism on multi-server reservation system
CN102999529A (en) * 2011-09-16 2013-03-27 腾讯科技(深圳)有限公司 Information sharing system and method between platforms
CN104202317A (en) * 2014-08-26 2014-12-10 四川九成信息技术有限公司 Cloud platform data management method and system
CN105704085A (en) * 2014-11-24 2016-06-22 国际商业机器公司 Method and apparatus for information sharing
CN107547525A (en) * 2017-08-14 2018-01-05 复旦大学 A kind of method for secret protection of big data query processing
CN108880812A (en) * 2017-05-09 2018-11-23 北京京东尚科信息技术有限公司 The method and system of data encryption
CN108900533A (en) * 2018-08-01 2018-11-27 南京荣链科技有限公司 A kind of shared data method for secret protection, system, terminal and medium
CN108924247A (en) * 2018-07-25 2018-11-30 人民健康网络有限公司 A kind of multi-platform data sharing method, apparatus and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122935A (en) * 2006-08-11 2008-02-13 Id-卡奇股份有限公司 Devices and methods for safe biology statistics application
EP2500832A1 (en) * 2011-03-15 2012-09-19 Amadeus S.A.S. Method and system for synchronization mechanism on multi-server reservation system
CN102999529A (en) * 2011-09-16 2013-03-27 腾讯科技(深圳)有限公司 Information sharing system and method between platforms
CN104202317A (en) * 2014-08-26 2014-12-10 四川九成信息技术有限公司 Cloud platform data management method and system
CN105704085A (en) * 2014-11-24 2016-06-22 国际商业机器公司 Method and apparatus for information sharing
CN108880812A (en) * 2017-05-09 2018-11-23 北京京东尚科信息技术有限公司 The method and system of data encryption
CN107547525A (en) * 2017-08-14 2018-01-05 复旦大学 A kind of method for secret protection of big data query processing
CN108924247A (en) * 2018-07-25 2018-11-30 人民健康网络有限公司 A kind of multi-platform data sharing method, apparatus and system
CN108900533A (en) * 2018-08-01 2018-11-27 南京荣链科技有限公司 A kind of shared data method for secret protection, system, terminal and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于可交换加密函数的秘密共享方案;贺军;李丽娟;李喜梅;《计算机工程》;20100505;159-160 *
跨关系云数据库属性名与密文等值连接共享协议研究;谭戈旭;《西北农林科技大学》;20170501;全文 *

Also Published As

Publication number Publication date
CN109474616A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN109474616B (en) Multi-platform data sharing method and device and computer readable storage medium
CN106664202B (en) Method, system and computer readable medium for providing encryption on multiple devices
CN109150499B (en) Method and device for dynamically encrypting data, computer equipment and storage medium
Yang et al. Provable data possession of resource-constrained mobile devices in cloud computing
US10880100B2 (en) Apparatus and method for certificate enrollment
CN111131278B (en) Data processing method and device, computer storage medium and electronic equipment
RU2638639C1 (en) Encoder, decoder and method for encoding and encrypting input data
US10608813B1 (en) Layered encryption for long-lived data
US10263785B1 (en) Cryptography method and system for securing data via electronic transmission
CN111294203B (en) Information transmission method
US10476663B1 (en) Layered encryption of short-lived data
US10963593B1 (en) Secure data storage using multiple factors
US20210367772A1 (en) Computer implemented system and method for sharing a common secret
US8751819B1 (en) Systems and methods for encoding data
US11356254B1 (en) Encryption using indexed data from large data pads
US20170302444A1 (en) System and methods for keyed communications channel encryption and decryption
US20130283363A1 (en) Secure data transfer over an arbitrary public or private transport
CN115828300A (en) Block chain-based government affair information processing method and system with privacy protection function
CN115766244A (en) Internet of vehicles information encryption method and device, computer equipment and storage medium
CN115085983A (en) Data processing method and device, computer readable storage medium and electronic equipment
US9178855B1 (en) Systems and methods for multi-function and multi-purpose cryptography
CN111949996A (en) Generation method, encryption method, system, device and medium of security private key
CN115460020B (en) Data sharing method, device, equipment and storage medium
CA3034028C (en) Cryptography method and system for securing data via electronic transmission
US9189638B1 (en) Systems and methods for multi-function and multi-purpose cryptography

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant