A method for encryption algorithm of distributed storage of massive data

By using RSA key pairs and P2P transmission in massive data distributed storage, combined with blockchain verification, the challenge of security protection of massive data storage is solved, and high security and private storage of data transmission are achieved.

CN115134111BActive Publication Date: 2024-09-06NANJING KUNJUE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210509167.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-11
Publication Date
2024-09-06
Estimated Expiration
2042-05-11

AI Technical Summary

Technical Problem

In the context of the Internet of Everything, enterprises are faced with the challenges of massive data storage and data security protection, especially how to ensure the confidentiality, integrity and availability of data in the face of huge data volumes and uncertain network attacks.

Method used

An encryption algorithm for distributed storage of massive data is proposed. By generating RSA key pairs and using random numbers for encryption, combined with P2P data transmission, a mapping relationship between storage addresses and group data is established to ensure data security during transmission. security, and utilize blockchain systems to verify the accuracy of data storage.

Benefits of technology

It achieves high security during data transmission, saves bandwidth, and solves data privacy storage and trustworthiness issues through distributed storage and blockchain verification, ensuring data integrity and confidentiality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115134111B
    Figure CN115134111B
Patent Text Reader

Abstract

The present invention relates to the field of data security technology, and discloses a method for an encryption algorithm for distributed storage of massive data, comprising the following steps: S1: acquiring and processing massive data distribution; S1.1: acquiring group data and a tag list; S1.2: dividing a plurality of storage spaces according to the tags in the tag list; S1.3: copying the tags in the tag list; S1.4: dividing the storage space into three storage bins, namely a first storage bin, a second storage bin and a third storage bin; S1.5: storing the copied tags in the first storage bin; S1.6: searching for group data with the same tags from the temporary storage space according to the tags in the first storage bin, and storing the found group data in the second storage bin; the present invention realizes the secure transmission of keys, so that the data is securely guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data security, and in particular to an encryption algorithm method for distributed storage of massive data. Background Art

[0002] In the context of the Internet of Everything, with the development of business and the continuous expansion of data, many companies are facing the challenge of large-scale data storage and data security issues. Data is the core subject of security protection. Whether it is the construction of the defense system or the formation of other intelligent security forms, the core purpose is to protect data, including data confidentiality, integrity, and availability. In the face of huge amounts of data and uncertain network attacks, encryption processing for the entire life cycle of data can ensure true data security. Summary of the invention

[0003] The purpose of the present invention is to provide an encryption algorithm method for distributed storage of massive data, so as to achieve the purpose of secure transmission of keys and ensure the security of data.

[0004] To achieve the above object, the present invention provides the following technical solution: a method for an encryption algorithm for distributed storage of massive data, comprising the following steps:

[0005] S1: Distributed acquisition and processing of massive data;

[0006] S1.1: Get group data and tag list;

[0007] S1.2: dividing a number of storage spaces according to the markers in the marker list;

[0008] S1.3: copy the markers in the marker list;

[0009] S1.4: The storage space is divided into three storage bins, namely a first storage bin, a second storage bin and a third storage bin;

[0010] S1.5: storing the copied marker in the first storage bin;

[0011] S1.6: According to the identifier in the first storage bin, searching for group data with the same identifier from the temporary storage space, and storing the found group data in the second storage bin;

[0012] S1.7: Establish a mapping relationship between a storage address and a group data number, and make the mapping relationship into a mapping table and store it in a third storage bin;

[0013] S2: Encrypt and transmit the data;

[0014] S2.1: The server on the server side generates an RSA key pair (N, e, d) and sends N in plain text to the client terminal;

[0015] S2.2: The client generates two random numbers, which are kept confidential and not disclosed.

[0016] S2.3; The root key of the client is encrypted by one of the random numbers, and the encrypted data is transmitted to the server;

[0017] S2.4: After receiving the encrypted data, the server encrypts it and sends it to the client;

[0018] S2.5: The client's re-encrypted data is decrypted by another random number and sent to the server, which then decrypts the data to obtain the root secret.

[0019] S2.6: Instead of using the centralized HTTP server to upload and download files, use P2P to save nearly 60% of bandwidth.

[0020] Preferably, the storage space includes a database.

[0021] Preferably, the server at the service end generates an RSA key pair, the key pair includes (N, e, d), wherein N is plain text, and the plain text N is sent to the terminal of the client, that is, N is made public, and the key parameters e and d are kept confidential and not made public.

[0022] Preferably, the two random numbers are defined as Rn1 and Rn2 respectively; the root key of the terminal is recorded as Rk, and Rk is required to be less than N. The terminal performs calculation encryption, that is, Rk^Rn1mod N=Rk1; (Rk+Rk^(Rn1*Rn2))mod N=P; the terminal transmits Rk1 and P to the server.

[0023] Preferably, the RSA public key dynamically generated from the client is encrypted with a DES key to generate an RSA encrypted ciphertext.

[0024] Preferably, the client decrypts the received RSA encrypted ciphertext to obtain the DES key.

[0025] Preferably, the public key encryption for digital signatures uses the RSA algorithm. In this method, the sender uses the private key to encrypt the entire data file (expensive), or the signature of the file, through a digest function. The main advantage of private key matching is that there is no key distribution problem. This method assumes that you trust the source that publishes the public key. The recipient can then use the public key to decrypt the signature or file and verify its source and / or content. Due to the complexity of public key cryptography, only the correct public key can decrypt the message or digest. Finally, if you are sending a message to a user with a known public key, then you can use the recipient's public key to encrypt the message or digest, so that only the recipient can verify the content through their own private key.

[0026] Preferably, the authentication method includes one-way authentication, two-way authentication, and three-way authentication. One-way authentication: only protects the integrity and originality of the message. When someone signs the timestamp, current value, and target identity using a user signature (private key), one-way authentication is implemented. The receiver can verify the authenticity of the information by "reverse signing" the information using the sender's public key, and the sender's public key can be obtained from the certificate list. Since only the target is authenticated.

[0027] Two-way authentication: allows the sender or sender to authenticate the receiver or target. In addition to one-way authentication, the target sends a reply to the sender. The reply includes the new timestamp, the original nonce, and the new nonce. The reply is signed using the sender's public key. Recall that in public key cryptography, only the corresponding private key or the sender's private key can decrypt the reply. And the nonce must be the original nonce, otherwise the message cannot be trusted.

[0028] Three-way authentication: When the target and sender do not have synchronized clocks or do not want to trust the clock, three-way authentication is used. In addition to two-way authentication, the sender sends a reply to the target's reply, including the new nonce in the original reply, as shown in the figure. Here, only the matching nonce value needs to be verified, and the timestamp is no longer required.

[0029] The present invention provides a method for an encryption algorithm for distributed storage of massive data. The method for an encryption algorithm for distributed storage of massive data has the following beneficial effects:

[0030] The transmission process only discloses the plaintext part of RSA. The server's d, e and the client's keys are all in the same place. Even if they are decomposed by N, attackers cannot know the server and client keys. All access connections verify REFER to prevent hotlinking and configure relevant permissions to further ensure file security. Through distributed storage, content is dispersed to network nodes. Even if a node fails or is blocked, another node can easily replace it. Only those who run IPFS nodes can download reviewed information from other nodes.

[0031] At the same time, it also has the concept of blockchain system, which can easily and continuously prove that nodes are storing the accurate data they promised. This data is verifiable, and there is no problem of distrust of miners (nodes) providing data storage. Data producers can quickly maintain the data they produce. It solves the problem of data lack of rights and data privacy storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a diagram of the steps for obtaining and processing massive data in a distributed manner according to the present invention;

[0033] Figure 2 This is a diagram of the steps for encrypting and transmitting the data according to the present invention. DETAILED DESCRIPTION

[0034] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0035] Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0036] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0037] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0038] like Figure 1-2 As shown, the present invention provides a technical solution: a method for an encryption algorithm for distributed storage of massive data, comprising the following steps:

[0039] S1: Distributed acquisition and processing of massive data;

[0040] S1.1: Get group data and tag list;

[0041] S1.2: dividing a number of storage spaces according to the markers in the marker list;

[0042] S1.3: Copy markers in the marker list

[0043] S1.4: The storage space is divided into three storage bins, namely the first storage bin, the second storage bin and the third storage bin;

[0044] S1.5: storing the copied marker in the first storage bin;

[0045] S1.6: According to the identifier in the first storage bin, search for group data with the same identifier from the temporary storage space, and store the found group data in the second storage bin;

[0046] S1.7: Establish a mapping relationship between the storage address and the group data number, and make the mapping relationship into a mapping table and store it in the third storage bin;

[0047] S2: Encrypt and transmit the data;

[0048] S2.1: The server on the server side generates an RSA key pair (N, e, d) and sends N in plain text to the client terminal;

[0049] S2.2: The client generates two random numbers, which are kept confidential and not disclosed.

[0050] S2.3; The root key of the client is encrypted by one of the random numbers, and the encrypted data is transmitted to the server;

[0051] S2.4: After receiving the encrypted data, the server encrypts it and sends it to the client;

[0052] S2.5: The client's re-encrypted data is decrypted by another random number and sent to the server, which then decrypts the data to obtain the root secret.

[0053] S2.6: Instead of using the centralized HTTP server to upload and download files, use P2P to save nearly 60% of bandwidth.

[0054] The storage space includes the database.

[0055] The server on the server side generates an RSA key pair, which includes (N, e, d), where N is plain text. The plain text N is sent to the client terminal, that is, N is made public, and the key parameters e and d are kept confidential and not made public.

[0056] Define two random numbers as Rn1 and Rn2; record the root key of the terminal as Rk, require Rk to be less than N, and the terminal performs calculation encryption, that is, Rk^Rn1mod N=Rk1; (Rk+Rk^(Rn1*Rn2))mod N=P; the terminal transmits Rk1 and P to the server.

[0057] The RSA public key dynamically generated from the client is used to encrypt the DES key and generate RSA encrypted ciphertext.

[0058] The client decrypts the received RSA encrypted ciphertext and obtains the DES key.

[0059] Public key cryptography for digital signatures uses the RSA algorithm. In this method, the sender uses the private key to encrypt the entire data file (expensive), or the signature of the file, using a digest function. The main advantage of private key matching is that there is no key distribution problem. This method assumes that you trust the source of the published public key. The recipient can then use the public key to decrypt the signature or file and verify its origin and / or content. Due to the complexity of public key cryptography, only the correct public key can decrypt the message or digest. Finally, if you are sending a message to a user with a known public key, you can use the recipient's public key to encrypt the message or digest, so that only the recipient can verify the content with their own private key.

[0060] This authentication method includes one-way authentication, two-way authentication, and three-way authentication. One-way authentication: only protects the integrity and originality of the message. One-way authentication is implemented when someone signs the timestamp, current value, and target identity using a user signature (private key). The receiver can verify the authenticity of the message by "reverse signing" the message using the sender's public key, and the sender's public key can be obtained from the certificate list. Since only the target is authenticated.

[0061] Two-way authentication: allows the sender or sender to authenticate the receiver or target. In addition to one-way authentication, the target sends a reply to the sender. The reply includes the new timestamp, the original nonce, and the new nonce. The reply is signed using the sender's public key. Recall that in public key cryptography, only the corresponding private key or the sender's private key can decrypt the reply. And the nonce must be the original nonce, otherwise the message cannot be trusted.

[0062] Three-way authentication: When the target and sender do not have synchronized clocks or do not want to trust the clock, three-way authentication is used. In addition to two-way authentication, the sender sends a reply to the target's reply, including the new nonce in the original reply, as shown in the figure. Here, only the matching nonce value needs to be verified, and the timestamp is no longer required.

[0063] The transmission process only discloses the plaintext part of RSA. The server's d, e and the client's keys are all in the same place. Even if they are decomposed by N, attackers cannot know the server and client keys. All access connections verify REFER to prevent hotlinking and configure relevant permissions to further ensure file security. Through distributed storage, content is dispersed to network nodes. Even if a node fails or is blocked, another node can easily replace it. Only those who run IPFS nodes can download reviewed information from other nodes.

[0064] At the same time, it also has the concept of blockchain system, which can easily and continuously prove that nodes are storing the accurate data they promised. This data is verifiable, and there is no problem of distrust of miners (nodes) providing data storage. Data producers can quickly maintain the data they produce. It solves the problem of data lack of rights and data privacy storage.

[0065] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprising a reference structure" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A method for an encryption algorithm for distributed storage of massive data, comprising the following steps: S1: Distributed acquisition and processing of massive data; S1.1: Get group data and tag list; S1.2: dividing a number of storage spaces according to the markers in the marker list; S1.3: Copy markers in the marker list S1.4: The storage space is divided into three storage bins, namely a first storage bin, a second storage bin and a third storage bin; S1.5: storing the copied marker in the first storage bin; S1.6: According to the identifier in the first storage bin, search for group data with the same identifier from the temporary storage space, and store the found group data in the second storage bin; S1.7: Establish a mapping relationship between the storage address and the group data number, and make the mapping relationship into a mapping table and store it in the third storage bin; S2: Encrypt and transmit the data; S2.1: The server on the server side generates an RSA key pair (N, e, d) and sends N in plain text to the client terminal; S2.2: The client generates two random numbers, which are kept confidential and not disclosed. S2.3; The root key of the client is encrypted by one of the random numbers, and the encrypted data is transmitted to the server; S2.4: After receiving the encrypted data, the server encrypts it and sends it to the client; S2.5: The client's re-encrypted data is decrypted by another random number and sent to the server, which then decrypts the data to obtain the root key. S2.6: Instead of using the centralized HTTP server to upload and download files, use P2P to save nearly 60% of bandwidth.

2. The method of an encryption algorithm for distributed storage of massive data according to claim 1, characterized in that: The storage space includes a database.

3. The method of an encryption algorithm for distributed storage of massive data according to claim 1, characterized in that: The server on the server side generates an RSA key pair, which includes (N, e, d), where N is plain text. The plain text N is sent to the client terminal, that is, N is made public, and the key parameters e and d are kept confidential and not made public.

4. The method of an encryption algorithm for distributed storage of massive data according to claim 1, characterized in that: Define two random numbers as Rn1 and Rn2; record the root key of the terminal as Rk, require Rk to be less than N, and the terminal performs calculation encryption, that is, Rk^Rn1mod N=Rk1; (Rk+Rk^(Rn1*Rn2))mod N=P; the terminal transmits Rk1 and P to the server.

5. The method of an encryption algorithm for distributed storage of massive data according to claim 1, characterized in that: The RSA public key dynamically generated from the client is used to encrypt the DES key and generate RSA encrypted ciphertext.

6. The method of an encryption algorithm for distributed storage of massive data according to claim 1, characterized in that: The client decrypts the received RSA encrypted ciphertext and obtains the DES key.

7. The method of an encryption algorithm for distributed storage of massive data according to claim 1, characterized in that: Public key encryption for digital signatures uses the RSA algorithm.

8. The method of an encryption algorithm for distributed storage of massive data according to claim 1, characterized in that: Authentication methods include one-way authentication, two-way authentication, and three-way authentication.