Mine filling data encryption method and system based on improved AES-RSA algorithm
Through the combination of the improved AES-RSA algorithm and blockchain/IPFS, the problems of inefficiency and security risks in data processing and security management of the mine filling system are solved, and efficient and secure data storage and management are achieved.
Patent Information
- Application Number
- CN202410901714.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-17
AI Technical Summary
Mine filling systems have inefficiencies and security risks in data processing and security management. In particular, they face risks of illegal theft, attacks, and data leaks during data transmission, storage, and centralized management.
The improved AES-RSA algorithm is used to encrypt the mine filling data, the monitoring data is encrypted through the AES algorithm and uploaded to IPFS, the AES key is encrypted using the RSA algorithm, and the file identifier is stored on the blockchain, combining IPFS and zone The blockchain method realizes the safe storage and management of data.
It improves the efficiency and security of data processing, ensures data integrity and reliability, reduces the security risk of key transmission, and simplifies the user retrieval process through searchable encryption algorithms.
Smart Images

Figure CN118659873A
Abstract
Description
Technical Field
[0001] The present application relates to the field of network data security, and in particular to a mine filling data encryption method and system based on an improved AES-RSA algorithm. Background Art
[0002] The use of backfill mining can avoid soil erosion and landslides during the mining process, and can also reuse waste such as coal gangue generated during the mining process as backfill materials. It is a green mining method that is beneficial to mines.
[0003] In recent years, the mine filling system has gradually developed from manual intervention control to mechanization and intelligence, and mine safety monitoring and early warning technology has also developed rapidly. Intelligent coal mine monitoring relies on emerging technologies such as the Internet of Things, cloud computing, big data, and artificial intelligence to collect, store, and mine a large amount of monitoring data generated by the mine production process, improve coal mine intelligent monitoring technology from the level of intelligent perception and real-time monitoring, and then ensure automatic monitoring and intelligent early warning under the premise of safe production. However, the natural occurrence conditions of coal seams are complex and changeable, and there are many safety hazards in the mining process. Mines need to set up a large number of sensors to monitor underground data to ensure the safety of the filling and mining process. This process will generate a large amount of monitoring data. Most of the current mine filling system data is stored in the corresponding local system. Local communication may not be possible, and monitoring data from different regions cannot be further processed and fully analyzed. Data processing is one-sided and inefficient. Centralized data management relies on central servers. Centralized storage and management of massive business data in various business areas of smart mines will face multiple security risks. For example, users transmit and store data through the network, and also download data for local use. The entire process will face problems such as illegal theft, attack, modification and destruction. In the event of a network attack, service unavailability or even data leakage may occur. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the purpose of the present application is to provide a mine filling data encryption method based on an improved AES-RSA algorithm.
[0005] To achieve the above objectives, this application adopts the following technical solutions:
[0006] The mine filling data encryption method based on the improved AES-RSA algorithm includes the following steps:
[0007] The management terminal obtains the monitoring data of the mine filling system, encrypts the monitoring data using the AES algorithm, and uploads it to IPFS (Inter Planetary File System) for storage;
[0008] The management terminal uses the public key RPK in the RSA key pair in the RSA algorithm to encrypt the AES key ASK, returns the AES-encrypted ciphertext CASK, and stores the AES-encrypted ciphertext CASK in IPFS;
[0009] IPFS receives monitoring data and AES-encrypted ciphertext CASK for storage, generates the corresponding file identifier CID, and returns it to the management terminal;
[0010] The management terminal stores the received CID on the blockchain.
[0011] In some embodiments of the present application, the AES algorithm is an improved AES algorithm, including generating a seed key by improving the sequence after generating all round keys, and using round key exchange and column key downward shifting to achieve key expansion.
[0012] In some embodiments of the present application, the improved AES algorithm includes: after generating all the round keys, the round keys are represented in the form of a 4*10 matrix. In the round key matrix, the third words of each round key are exchanged in groups of two, and then the third words of each round key after the exchange are moved down by two positions as a whole.
[0013] In some embodiments of the present application, the RSA algorithm is an improved RSA algorithm, including:
[0014] Randomly generate four different prime numbers a, b, c, d;
[0015] Calculate the modulus using four prime numbers: n = a × b × c × d;
[0016] Calculate the value of Euler's function using four prime numbers:
[0017] Choose a value e as the public key that satisfies And e and mutually prime;
[0018] Calculate the private key using e and Euler function value
[0019] The public key of the password is (e,n) and the private key is (d,n);
[0020] The encryption process is C=M e (modn), where the plaintext is M and the ciphertext is C;
[0021] The decryption process is M = C d (modn).
[0022] In some embodiments of the present application, the improved RSA algorithm also includes splitting the modulus using the Chinese remainder theorem.
[0023] In some embodiments of the present application, the management terminal packages the AES-encrypted ciphertext CASK and the AES-encrypted monitoring data together and stores them in IPFS.
[0024] The mine filling data encryption system based on the improved AES-RSA algorithm includes:
[0025] A management terminal is used to receive monitoring data of the mine filling system, encrypt the monitoring data, and upload it to IPFS;
[0026] IPFS, used to receive monitoring data for storage, generate corresponding file identifiers CID, and return them to the management terminal; and
[0027] Blockchain, used to store the CID received by the management terminal.
[0028] In some embodiments of the present application, the mine filling data encryption system based on the improved AES-RSA algorithm also includes a security monitoring module for monitoring the loyalty of the candidate management terminal. Specifically, the security monitoring module initiates a verification request to the management terminal, and the management terminal sends the original data and the encrypted hash value to the security monitoring module. The security monitoring module generates a hash value stored on IPFS through the public key and the original data, and compares it with the received encrypted hash value. If the two values are consistent, the loyalty of the candidate management terminal is monitored.
[0029] In some embodiments of the present application, the mine filling data encryption system based on the improved AES-RSA algorithm also includes a data processing module, which includes a data processing model for pre-processing the operating data in the mine filling system equipment, eliminating abnormal data, and transmitting the operating data to the management terminal.
[0030] In some embodiments of the present application, the mine filling data encryption system based on the improved AES-RSA algorithm also includes a trust center module, which is used to determine the management terminal personnel, including administrators and central controllers; the trust center module is also used to receive retrieval requests and hand over the data access credentials to the retrieval requester, and the retrieval requester hands over the data access credentials to the central controller. The central controller extracts the CID value of the data to be queried from the blockchain based on the access credentials, and then obtains the encrypted corresponding data from IPFS based on the obtained CID value, and decrypts it with the private key to obtain the original data.
[0031] Compared with the prior art, this application has the following technical effects:
[0032] This application proposes an improved AES-RSA encryption algorithm solution, which improves the algorithm structure based on the basic AES encryption algorithm and RSA encryption algorithm, uses the AES algorithm to implement encryption processing of transmitted information, generates corresponding indexes based on data content while encrypting data, and the RSA algorithm is only used to encrypt the key of the AES algorithm. This greatly improves the operating speed of the system and makes the transmission of keys not rely on additional secure channels.
[0033] In some embodiments of the present application, the algorithm structure is improved on the basic AES encryption algorithm and RSA encryption algorithm, and a searchable encryption algorithm is integrated to facilitate the user's retrieval process.
[0034] In some embodiments of the present application, a mine filling data encryption management system based on blockchain and IPFS is proposed, which realizes data storage by combining blockchain and IPFS. The operation data in the mine filling operation system is pre-processed through the data processing model and then transmitted to the management terminal. The management terminal stores the monitoring data on IPFS and stores the returned file identifier on the blockchain, thereby ensuring the security performance of data storage, and the data processing is comprehensive and more efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0036] Figure 1 This is the key expansion algorithm flow chart of the improved AES algorithm.
[0037] Figure 2 This is the round key processing flow chart of the improved AES algorithm.
[0038] Figure 3 To improve the AES-RSA algorithm flow chart.
[0039] Figure 4 This is the structural diagram of the mine filling data encryption system based on the improved AES-RSA algorithm.
[0040] Figure 5 The following is a comparison chart of the security performance of the traditional AES algorithm and the improved AES algorithm (KI-AES algorithm), where (a) is a scalability comparison and (b) is an obfuscation comparison.
[0041] Figure 6 The figure shows the performance comparison of the traditional dual-prime RSA encryption algorithm, the I-RSA encryption algorithm, and the triple-prime RSA encryption algorithm, where (a) is the time consumption for generating the key, and (b) is the time consumption for encrypting the plaintext information.
[0042] like Figure 7 This is a comparison chart of the time consumption for encrypting plaintext information using the traditional AES-RSA algorithm and the improved AES-RSA algorithm of this application. DETAILED DESCRIPTION
[0043] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0044] The present application provides a mine filling data encryption method based on an improved AES-RSA algorithm, comprising the following steps:
[0045] The management terminal obtains the monitoring data of the mine filling system (the mine filling system is an existing system that can be purchased from the market), encrypts the monitoring data using the AES algorithm, and uploads it to IPFS (Inter Planetary File System) for storage;
[0046] The management terminal uses the public key RPK in the RSA key pair in the RSA algorithm to encrypt the AES key ASK, returns the AES-encrypted ciphertext CASK, and stores the AES-encrypted ciphertext CASK in IPFS;
[0047] IPFS receives monitoring data and AES-encrypted ciphertext CASK for storage, generates the corresponding file identifier CID, and returns it to the management terminal;
[0048] The management terminal stores the received CID on the blockchain.
[0049] In some embodiments of the present application, the AES algorithm is an improved AES algorithm (named KI-AES algorithm in the present application), including generating all round keys, generating seed keys by improving the sequence, and implementing key expansion by round key exchange and column key downshifting. Figure 1 The figure shows the key expansion algorithm flow chart of the improved AES algorithm, which realizes key expansion by improving the method of sequentially generating seed keys, and adopting round key exchange and column key downward shift.
[0050] In some embodiments of the present application, the improved AES algorithm includes: after generating all the round keys, the round keys are represented in the form of a 4*10 matrix. In the round key matrix, the third words of each round key are exchanged in groups of two, and then the third words of each round key after the exchange are moved down by two positions as a whole.
[0051] In some embodiments of the present application, after all round keys are generated, the round keys are Figure 2 The third word data of every two rows are exchanged and moved down by two bits. The round key is represented as a 4*10 matrix, which can be described as that in the round key matrix, the third word of each round key is exchanged in pairs (such as W3 and W7 are exchanged, W 39 and W 43 This will reduce the correlation between the keys in each column of the AES algorithm without increasing the amount of additional calculations, thereby improving the security performance of the algorithm.
[0052] The standard AES algorithm is a single-threaded operation. All packets waiting to be encrypted are encrypted in sequence. It works well when the plaintext length is not large. When a plaintext packet of a longer length appears, in order not to affect the overall encryption speed, the data has to be split, and this step also takes extra time. In order to improve the operating efficiency of the algorithm, in some embodiments, the execution process of the AES algorithm is parallelized, that is, asynchronous operation is adopted to process multiple packets at the same time. If the number of threads processing the plaintext packets is increased to four, then compared with the original AES algorithm single-thread serial encryption mode, the encryption efficiency of the algorithm can be increased by three times in theory.
[0053] In some embodiments of the present application, the RSA algorithm is an improved RSA algorithm (named as I-RSA algorithm in the present application).
[0054] In some embodiments, four different prime numbers a, b, c, and d are randomly generated;
[0055] Calculate the modulus using four prime numbers: n = a × b × c × d;
[0056] Calculate the value of Euler's function using four prime numbers:
[0057] Choose a value e as the public key that satisfies And e and mutually prime;
[0058] Calculate the private key using e and Euler function value
[0059] The public key of the password is (e,n) and the private key is (d,n);
[0060] The encryption process is C=M e (modn), where the plaintext is M and the ciphertext is C;
[0061] The decryption process is M = C d (modn).
[0062] In some embodiments of the present application, the improved RSA algorithm further includes using the Chinese remainder theorem to split the modulus into smaller prime numbers.
[0063] The Chinese Remainder Theorem (CRT) is widely used in modern cryptography in the fields of secret sharing and digital signature. The Chinese Remainder Theorem can be used again for the RSA encryption algorithm based on four prime numbers. In the RSA algorithm, the key includes a public key and a private key, and the generation of the private key involves the product of four large prime numbers. CRT splits the modulus into smaller prime numbers, so that the operation can be performed more efficiently during decryption, reducing the amount of calculation of large number modular exponentiation operations, further optimizing the decryption process and speeding up the decryption speed. The key modulus used in the RSA algorithm usually has 1024 bits, 2048 bits or even higher bits to ensure the strength and security of encryption. The prime numbers with very high bits are called large prime numbers. For example, a 2048-bit large prime number has about 617 bits in decimal representation. Correspondingly, when using the Chinese remainder theorem, a large prime modulus can be split into smaller parts, namely smaller prime numbers, generally ranging from tens to hundreds of digits, depending on the size of the original large prime number and the need for decomposition. For example, a 2048-bit modulus can be split into multiple 1024-bit or 512-bit smaller prime numbers, each of which is approximately 308 bits or 154 bits in decimal representation.
[0064] In some embodiments of the present application, the AES encryption algorithm and the RSA encryption algorithm are combined based on the improved AES-RSA algorithm scheme, and a searchable encryption algorithm is integrated. The AES algorithm is used to implement encryption processing of transmitted information. When data is encrypted, a corresponding index is generated according to the data content, and the RSA algorithm is only used to encrypt the key of the AES algorithm. The specific algorithm flow is as follows: Figure 3 shown.
[0065] like Figure 3 As shown, the algorithm operation process is as follows:
[0066] ①Setup(1 λ )→(ASK,RPK,H). Initialize the system, input the security parameter λ, and then generate the AES key ASK and RSA public key RPK.
[0067] ②Encrypt1(ASK,MFMD,K,H)→(CMFMD,STD). The management terminal is responsible for encrypting the underground monitoring data of mine filling, inputting the system's AES key ASK, the mine filling monitoring data MFMD, the searchable keyword K and the hash function H, and then returning the ciphertext CMFMD of the underground monitoring data of mine filling and the corresponding query trap STD, and storing it in IPFS.
[0068] ③Encrypt2(ASK,PRK)→(CASK). The management terminal encrypts the AES key ASK with the public key RPK in the RSA key pair, returns the AES encrypted ciphertext CASK, and stores it together with the encrypted data in IPFS.
[0069] ④KeyGen(P,RPK)→(RSK). Execute the key generation algorithm, input the data access credential P and the system RSA public key RPK, and hand it over to the corresponding private key RSK of the management terminal.
[0070] ⑤Decrypt2(RSK,STD)→(MASK,MMFMD). The management terminal obtains the corresponding ciphertext according to the query trapdoor search, and runs the decryption algorithm after obtaining the data access credentials, inputs RSK to obtain the decrypted key MASK, and thus obtains the relevant mine filling underground monitoring data MMFMD.
[0071] like Figure 4 As shown, the present application provides a mine filling data encryption system based on an improved AES-RSA algorithm, comprising:
[0072] A management terminal is used to receive monitoring data of the mine filling system, encrypt the monitoring data, and upload it to IPFS;
[0073] IPFS, used to receive monitoring data for storage, generate corresponding file identifiers CID, and return them to the management terminal; and
[0074] Blockchain, used to store the CID received by the management terminal.
[0075] In some embodiments of the present application, the mine filling data encryption system based on the improved AES-RSA algorithm also includes a security monitoring module for monitoring the loyalty of the candidate management terminal. Specifically, the security monitoring module initiates a verification request to the management terminal, and the management terminal sends the original data and the encrypted hash value to the security monitoring module. The security monitoring module generates a hash value stored on IPFS through the public key and the original data, and compares it with the received encrypted hash value. If the two values are consistent, the loyalty of the candidate management terminal is monitored.
[0076] In some embodiments of the present application, the mine filling data encryption system based on the improved AES-RSA algorithm also includes a data processing module, which includes a data processing model for pre-processing the operating data in the mine filling system equipment, eliminating abnormal data, and transmitting the operating data to the management terminal.
[0077] In some embodiments of the present application, the mine filling data encryption system based on the improved AES-RSA algorithm also includes a trust center module, which is used to determine the management terminal personnel, including administrators and central controllers; the trust center module is also used to receive retrieval requests and hand over the data access credentials to the retrieval requester, and the retrieval requester hands over the data access credentials to the central controller. The central controller extracts the CID value of the data to be queried from the blockchain based on the access credentials, and then obtains the encrypted corresponding data from IPFS based on the obtained CID value, and decrypts it with the private key to obtain the original data.
[0078] In some embodiments of the present application, the mine filling data encryption system based on the improved AES-RSA algorithm can realize the storage and retrieval of data in the operation of the mine filling system, and ensure the security and reliability of data transmission. The system mainly includes three stages: data uploading, storage and retrieval. Figure 4 As shown:
[0079] The first part is the data upload and pre-preparation stage. The main steps are as follows: ① The trust center module determines the administrator (including the central controller and the safety monitor) and stores the name, position, responsible area and other information of the relevant candidates. The central controller is responsible for encrypting, storing and retrieving data, and the safety monitoring module (safety monitor) is responsible for detecting the loyalty of the central controller. ② The mine filling system uploads all data during operation to the data processing model in the data processing module for preprocessing. ③ The data processing model preprocesses the operating data in the mine filling system equipment, eliminates abnormal data, and uploads the operating data to the central controller for storage.
[0080] The second part is the data storage phase, and the main steps are as follows: ④ After receiving the monitoring data, the central controller encrypts the data and uploads it to IPFS for storage. ⑤ IPFS receives the monitoring data for storage, generates the corresponding file identifier CID, and returns it to the central controller. ⑥ The central controller stores the received CID on the blockchain. ⑦ The security monitor initiates a verification request to the central controller. ⑧ The original data and encrypted hash value sent by the central controller to the security monitor. ⑨ The security monitor generates a hash value stored on IPFS using the public key and the original data, and compares it with the received encrypted hash value to verify the credibility of the central controller: if the two values are consistent, the central controller is internally loyal; if the two values are inconsistent, it means that there is a rebellion within the central controller, and the trust center needs to reappoint the central controller.
[0081] The third part is the data retrieval phase, which includes administrator data query and user data query. The main steps of administrator data query are as follows: ⑩ The central controller initiates a data retrieval request to the trust center. The trust center hands over the data access credentials to the central controller. The central controller extracts the C ID value of the data to be queried from the blockchain based on the access credentials. The central controller obtains the encrypted corresponding data from IPFS with the obtained CID value, and decrypts it with the private key to obtain the original data. The main steps for users to query data are as follows: The user initiates a data retrieval request to the trust center. The trust center hands over the data access credentials to the user. The user hands over the data access credentials to the central controller. The controller extracts the CID value of the data to be queried from the blockchain based on the access credentials. The central controller obtains the encrypted corresponding data from IPFS based on the CID value obtained, and decrypts it with the private key to obtain the original data. The central controller sends the decrypted data to the user.
[0082] By exploring the computing performance of the improved AES algorithm and RSA algorithm and the traditional algorithm, and comparing the computing efficiency of the overall algorithm with the unimproved algorithm, the advantages of some embodiments of the present application are analyzed. The experimental data uses the field identification, location, temperature and CO2 flux data of the Tiptop coal mine fire diffuse emission measurement as the research object, performs encryption and decryption operations on it, and analyzes the computing performance of the algorithm.
[0083] (1) KI-AES algorithm performance
[0084] The traditional AES algorithm and the KI-AES algorithm were selected to perform encryption and decryption operations on the underground monitoring data in the mine filling system, and the time consumed for encryption and decryption was observed. In the experiment, the selected monitoring data was encrypted and decrypted ten times, and the average encryption time and decryption time were obtained. The experimental records are shown in Table 1 below. It can be seen from the experiment that in terms of the time consumption of processing data, the encryption and decryption time of the KI-AES algorithm is less than that of the traditional AES algorithm, so the encryption and decryption efficiency of the KI-AES algorithm is better than that of the traditional AES algorithm.
[0085] Table 1 Performance comparison between the traditional AES algorithm and the improved algorithm in this paper
[0086]
[0087] In order to test the security of the algorithm, this experiment uses three threads to process state groups in parallel, improves the key expansion algorithm, tests the scalability and obfuscation of the algorithm, and uses the KI-AES algorithm and the standard AES algorithm to encrypt experimental data of the same size. Scalability is also called diffusion. In the experiment, it is necessary to ensure that the secret key does not change at all, and observe the number of bits of the ciphertext data that change each time a bit of the plaintext data is changed to determine the impact on the ciphertext, that is, the diffusion of the algorithm. The obfuscation experiment requires that when the plaintext does not change at all, each time a bit of the key is changed, the number of bits of the ciphertext data that change is observed to evaluate the impact on the ciphertext result.
[0088] Depend on Figure 5 It can be seen that in the scalability experiment, the number of bits of the standard AES algorithm varies between 50 and 58, and the number of bits of the KI-AES algorithm varies between 61 and 69. In the obfuscation experiment, the number of ciphertext bits of the standard AES algorithm varies between 61 and 68, and the number of ciphertext bits of the KI-AES algorithm varies between 70 and 76. From the experimental results, the obfuscation of the KI-AES algorithm is slightly improved compared with the traditional AES algorithm, and the scalability of the KI-AES algorithm is higher than that of the standard AES algorithm, thus improving the efficiency of encryption and decryption while also improving its security performance.
[0089] (2) I-RSA algorithm performance
[0090] In order to test the performance of the I-RSA algorithm, the experiment chose to compare the key generation time with the time to encrypt plaintext information. First, the key generation time of the algorithm was analyzed. According to the RSA encryption algorithm, the Miller-Rabin algorithm was used as a control for the traditional double-prime RSA encryption algorithm, the I-RSA encryption algorithm, and the triple-prime RSA encryption algorithm to generate prime numbers. The time taken by the above-mentioned different RSA algorithms to generate keys of various lengths was recorded. Then, the above three algorithms were used to perform multiple encryption operations on plaintext messages of different lengths, and the average time taken for multiple encryption processes was recorded. The experimental results are shown in the figure. Figure 6 As shown. It can be seen that compared with the standard RSA encryption algorithm, the multi-prime RSA encryption algorithm including the I-RSA encryption algorithm takes less time to generate keys, and has a relatively obvious advantage in key generation time. Compared with the traditional RSA encryption algorithm, the multi-prime RSA encryption algorithm continuously reduces the encryption time for plaintext of the same length, so the encryption efficiency will be higher. Therefore, the I-RSA encryption algorithm used in this solution can significantly improve the encryption efficiency of the RSA algorithm compared with the general RSA encryption algorithm.
[0091] (3) Algorithm based on improved AES-RSA
[0092] This experiment mainly verifies the computing performance of the encryption algorithm. The improved AES algorithm is used to encrypt the mine monitoring data, the improved RSA algorithm is used to encrypt the AES key, and the hash function is used to encrypt the keyword set to generate the query trap. The time required for encryption and decryption of files of different sizes is compared with the AES-RSA algorithm. The AES-128 algorithm is selected for the experiment, and the key length generated by the RSA algorithm is set to 256 bits. The performance of the two algorithms for encryption and decryption of different file sizes is compared, such as Figure 7 As shown, the results show that the time for mixed encryption and decryption of the two algorithms will increase with the size of the file, and the size of the file is linearly related to its encryption and decryption time. However, the algorithm proposed in this application (improved AES-RSA algorithm) has a significant improvement in computing efficiency compared to the traditional AES-RSA algorithm.
[0093] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art may make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.
Claims
1. A mine filling data encryption method based on an improved AES-RSA algorithm, characterized in that: The following steps are involved: The management terminal obtains the monitoring data of the mine filling system, encrypts the monitoring data using the AES algorithm, and uploads it to IPFS for storage; The management terminal uses the public key RPK in the RSA key pair in the RSA algorithm to encrypt the AES key ASK, returns the AES-encrypted ciphertext CASK, and stores the AES-encrypted ciphertext CASK in IPFS; IPFS receives the monitoring data and the AES-encrypted ciphertext CASK for storage, generates the corresponding file identifier CID from the monitoring data, and returns it to the management terminal; The management terminal stores the received CID on the blockchain.
2. The mine filling data encryption method based on the improved AES-RSA algorithm according to claim 1 is characterized in that: The AES algorithm is an improved AES algorithm, including generating all round keys, generating seed keys by improving the sequence, and using round key exchange and column key downshifting to achieve key expansion.
3. The mine filling data encryption method based on the improved AES-RSA algorithm according to claim 2 is characterized in that: The improved AES algorithm includes: after all round keys are generated, the round keys are represented as a 4*10 matrix. In the round key matrix, the third word of each round key is exchanged in groups of two, and then the third word of each round key after the exchange is moved down two positions as a whole.
4. The mine filling data encryption method based on the improved AES-RSA algorithm according to claim 1 is characterized in that: The RSA algorithm is an improved RSA algorithm, including: Randomly generate four different prime numbers a, b, c, d; Calculate the modulus using four prime numbers: n = a × b × c × d; Calculate the value of Euler's function using four prime numbers: Choose a value e as the public key that satisfies And e and mutually prime; Calculate the private key using e and Euler function value The public key of the password is (e,n) and the private key is (d,n); The encryption process is C=M e (modn), where the plaintext is M and the ciphertext is C; The decryption process is M = C d (modn).
5. The mine filling data encryption method based on the improved AES-RSA algorithm according to claim 4 is characterized in that: The improved RSA algorithm also includes using the Chinese remainder theorem to split the modulus.
6. The mine filling data encryption method based on the improved AES-RSA algorithm according to claim 1 is characterized in that: The management terminal packages the AES-encrypted ciphertext CASK and the AES-encrypted monitoring data and stores them in IPFS.
7. The mine filling data encryption system based on the improved AES-RSA algorithm is characterized by: include: A management terminal is used to receive monitoring data of the mine filling system, encrypt the monitoring data, and upload it to IPFS; IPFS is used to receive monitoring data for storage, generate the corresponding file identifier CID, and return it to the management terminal; as well as Blockchain, used to store the CID received by the management terminal.
8. The mine filling data encryption system based on the improved AES-RSA algorithm according to claim 7 is characterized in that: It also includes a security monitoring module, which is used to monitor the loyalty of the candidate for management terminal. Specifically, the security monitoring module initiates a verification request to the management terminal, and the management terminal sends the original data and encrypted hash value to the security monitoring module. The security monitoring module generates a hash value stored on IPFS through the public key and the original data, and compares it with the received encrypted hash value. If the two values are consistent, the loyalty of the candidate for management terminal is monitored.
9. The mine filling data encryption system based on the improved AES-RSA algorithm according to claim 7 is characterized in that: It also includes a data processing module, which includes a data processing model for pre-processing the operating data in the mine filling system equipment, eliminating abnormal data, and transmitting the operating data to the management terminal.
10. The mine filling data encryption system based on the improved AES-RSA algorithm according to claim 7 is characterized in that: It also includes a trust center module, which is used to determine the candidates for management terminals, including administrators and central controllers. The trust center module is also used to receive retrieval requests and hand over data access credentials to the retrieval requester. The retrieval requester hands over the data access credentials to the central controller. The central controller extracts the CID value of the data to be queried from the blockchain based on the access credentials, and then obtains the encrypted corresponding data from IPFS based on the obtained CID value, and decrypts it with the private key to obtain the original data.
Citation Information
Cited By
Three-dimensional model fusion encryption method, system, medium and equipment
CN119483911A
