File storage method and device, equipment, storage medium and computer program product
By adopting encryption processing and decrypting module pool verification methods in cloud disk backup, combined with the network security monitoring model, the problem of data leakage during cloud disk backup is solved, and the security and integrity of data are significantly improved.
Patent Information
- Application Number
- CN202411037098.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The problem of data leakage during cloud disk backup process, the existing technology has failed to effectively ensure the security of data during network transmission and storage.
The pre-equipment cycle is used to determine the data to be backed up, and the data is decrypted through encryption processing and using the decryption module pool, combined with verification value verification, to ensure the security of the data in transmission and storage, and to monitor the data transmission and storage through the network security monitoring model Process.
It effectively avoids data tampering, improves the security of cloud disk backup and storage data, and ensures the integrity and security of data during transmission and storage.
Smart Images

Figure CN119071019A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of file storage technology, and in particular to a file storage method, device, equipment, storage medium and computer program product. Background Art
[0002] Cloud disk is a professional Internet storage tool and a product of Internet cloud technology. It provides information storage, reading, downloading and other services for enterprises and individuals through the Internet. At the same time, with the support of cluster systems, grid technologies, file systems and other technologies, the storage system based on cloud disk can provide massive storage services to the outside world, with the characteristics of security, stability and massive storage.
[0003] Compared with traditional physical disks, cloud disk storage is more convenient and faster. Users do not need to carry physical disks that store important information with them. Instead, they can easily read the information they store from the cloud through the Internet, solving problems related to file storage such as small storage capacity of single hard disks, low management efficiency, and poor network transmission capabilities.
[0004] However, in addition to convenience, security is also a major issue that needs to be considered for cloud disk storage. Ordinary data backup only backs up data locally, and there is no need to consider security issues. Data security can even be guaranteed by physical isolation. However, since cloud disks are set up in the cloud, backing up local data to cloud disks will inevitably involve network transmission of data, and the data transmission process is extremely vulnerable to network attacks, which can lead to the leakage of backup data and affect user data security.
[0005] It can be seen that how to ensure the data security of cloud disk backup has become an urgent problem to be solved. Summary of the invention
[0006] The embodiment of the present application provides a file storage method to solve the problem of data leakage that may exist when backing up data in the existing network disk.
[0007] The embodiment of the present application also provides a file storage device to solve the problem of data leakage that may exist when backing up data in the existing network disk.
[0008] The embodiment of the present application also provides a file storage device to solve the problem of data leakage that may exist when backing up data in the existing network disk.
[0009] The embodiment of the present application also provides a computer-readable storage medium to solve the problem of data leakage that may exist when backing up data in existing network disks.
[0010] The embodiment of the present application also provides a computer program product to solve the problem of data leakage that may exist when backing up data in the existing network disk.
[0011] The present application embodiment adopts the following technical solutions:
[0012] A file storage method comprises: determining target data to be uploaded to a cloud disk for backup storage in an application to be backed up according to a preset backup cycle; receiving encrypted target data uploaded by the application to be backed up; determining at least two decryption modules from a decryption module pool to form an execution pool, and decrypting the encrypted target data through the execution pool to obtain decrypted data; determining, according to the decrypted data, respectively the check values of the decrypted data corresponding to each decryption module in the execution pool, and determining the target data according to the check values; and updating, according to the target data, a first file in the cloud disk corresponding to the application to be backed up, to complete the data backup storage of the application to be backed up.
[0013] A file storage device comprises: a backup data determination unit, used to determine target data to be uploaded to a cloud disk for backup storage in an application to be backed up according to a preset backup cycle; a backup data receiving unit, used to receive encrypted target data uploaded by the application to be backed up; a decryption unit, used to determine at least two decryption modules from a decryption module pool to form an execution pool, and decrypt the encrypted target data through the execution pool to obtain decrypted data; a data identification unit, used to determine, according to the decrypted data, the check values of the decrypted data corresponding to each decryption module in the execution pool, and determine the target data according to the check values; a backup storage unit, used to update the first file corresponding to the application to be backed up in the cloud disk according to the target data, and complete the data backup storage of the application to be backed up.
[0014] A file storage device comprises: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor performs the following operations: determining target data to be uploaded to a cloud disk for backup storage in an application to be backed up according to a preset backup cycle; receiving encrypted target data uploaded by the application to be backed up; determining at least two decryption modules from a decryption module pool to form an execution pool, and decrypting the encrypted target data through the execution pool to obtain decrypted data; determining, according to the decrypted data, respectively a check value of the decrypted data corresponding to each decryption module in the execution pool, and determining the target data according to the check value; and updating, according to the target data, a first file corresponding to the application to be backed up in the cloud disk to complete the data backup storage of the application to be backed up.
[0015] A computer-readable storage medium stores one or more programs, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform the following operations: determine target data to be uploaded to a cloud disk for backup storage in an application to be backed up according to a preset backup cycle; receive encrypted target data uploaded by the application to be backed up; determine at least two decryption modules from a decryption module pool to form an execution pool, and decrypt the encrypted target data through the execution pool to obtain decrypted data; determine, based on the decrypted data, verification values of the decrypted data corresponding to each decryption module in the execution pool, and determine target data based on the verification values; and, based on the target data, update a first file in the cloud disk corresponding to the application to be backed up to complete data backup storage of the application to be backed up.
[0016] A computer program product comprises a computer program, which, when executed by a processor, realizes: determining target data to be uploaded to a cloud disk for backup storage in an application to be backed up according to a preset backup cycle; receiving encrypted target data uploaded by the application to be backed up; determining at least two decryption modules from a decryption module pool to form an execution pool, and decrypting the encrypted target data through the execution pool to obtain decrypted data; determining, according to the decrypted data, respectively a check value of the decrypted data corresponding to each decryption module in the execution pool, and determining the target data according to the check value; and updating, according to the target data, a first file corresponding to the application to be backed up in the cloud disk, and completing the data backup storage of the application to be backed up.
[0017] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0018] According to a file storage method provided by an embodiment of the present application, the data backup system can determine the target data to be uploaded to the cloud disk backup storage in the application to be backed up according to the preset backup cycle. After determining the target data, the data backup system can broadcast the encrypted public key to the application to be backed up, and receive the encrypted target data uploaded by the application to be backed up. The data backup system determines at least two decryption modules from the decryption module pool to form an execution pool, and decrypts the encrypted target data through the execution pool to obtain decrypted data. According to the decrypted data, the check values of the decrypted data corresponding to each decryption module in the execution pool are respectively determined, and the target data is determined according to the check value. According to the target data, the first file corresponding to the application to be backed up in the cloud disk is updated to complete the data backup storage of the application to be backed up. According to the file storage method provided by the embodiment of the present application, on the one hand, the security of the data to be backed up in the process of uploading to the cloud disk is guaranteed by encryption means; on the other hand, the security of the data in the decryption process inside the cloud disk is guaranteed by the method of jointly executing the execution pool composed of at least two decryption modules, which can effectively avoid data tampering and greatly improve the security of cloud disk backup storage data. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 A schematic diagram of a specific process of a file storage method provided in an embodiment of the present application;
[0021] Figure 2 A schematic diagram of a specific structure of a file storage device provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of the specific structure of a file storage device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0024] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0025] A file storage method provided in an embodiment of the present application is used to solve the problem of data leakage that may exist when backing up data in an existing network disk.
[0026] The execution subject of the file storage method provided in the embodiment of the present application may be, but is not limited to, at least one of a cloud disk server, a cloud disk management server, a backup server, and a data management server; in addition, the execution subject of the method may also be an application (Application, APP) running on these servers or the system itself.
[0027] For ease of description, the following takes the execution subject of the method as a data backup storage system installed on a cloud disk as an example to introduce the implementation method of the method. It can be understood that the execution subject of the method as a data backup storage system is only an exemplary description and should not be understood as a limitation of the method.
[0028] The specific implementation flow diagram of the file storage method provided in this application is as follows Figure 1 As shown, it mainly includes the following steps:
[0029] Step 11, according to the preset backup cycle, determine the target data to be uploaded to the cloud disk backup storage in the application to be backed up;
[0030] In an embodiment of the present application, the data backup storage system can determine whether the application to be backed up generates new data to be backed up within a preset backup cycle by comparing the backed-up data in the cloud disk with the data files stored in the data storage area of the application to be backed up.
[0031] It should be noted here that in order to avoid the problem that the data backup storage system needs to determine the data to be backed up by comparing the full amount of data files every time, resulting in low processing efficiency and occupying more computing resources, in the embodiment of the present application, the data backup storage system can use a preset file segmentation method to segment the backed up data files in the cloud disk to obtain multiple backed up data file slices; at the same time, the application to be backed up can also use the same file segmentation method to segment the data files stored in the data storage area to obtain multiple data file slices corresponding to the backed up data file slices. Calculate the check values of multiple backed up data file slices and multiple data file slices respectively, and then directly compare the check values of the data file slices to determine which data file slices in the data storage area of the application to be backed up have undergone data modification (data addition, deletion, reduction, modification, etc.), and then determine the data file slices that have undergone data modification as the target data to be uploaded to the cloud disk backup storage.
[0032] Specifically, in one implementation, the data backup storage system may determine the target data to be uploaded to the cloud disk backup storage according to the following sub-steps, including:
[0033] Sub-step 1101, according to a first segmentation method, segmenting the first file and the second file of the application to be backed up to obtain at least one first file segment corresponding to the first file and at least one second file segment corresponding to the second file;
[0034] It should be noted here that when the preset backup period is reached, the data backup storage system can split the backed up data file (hereinafter referred to as the first file for ease of description) to obtain at least one first file block corresponding to the first file.
[0035] At the same time, the data backup storage system can send file splitting instructions to the application to be backed up, so that the application to be backed up uses the same file splitting method to split the data file stored in the data storage area (for the sake of ease of description, referred to as the second file below) to obtain at least one second file block corresponding to the second file.
[0036] Sub-step 1102, respectively determining a first check value corresponding to each of the first file segments;
[0037] The first check value includes: a first weak check value, a first strong check value and a first hash value corresponding to each first file segment.
[0038] In one implementation, the data backup storage system may calculate a hash value of each file segment and a weak check value and a strong check value of each file segment based on a unique identifier of each first file segment (eg, a file segment sequence number).
[0039] Specifically, in the embodiment of the present application, the weak check value can be a CRC-32 value (A cyclic redundancy check 32) or an Adler-32 value, that is, a check value calculated by a CRC-32 or Adler-32 algorithm, and this weak check algorithm has the advantage of fast matching speed. The strong check value can be an MD5 value or a SHA-1 value, that is, a check value calculated by an MD5 or SHA-1 algorithm, and this strong check algorithm has the advantage of high matching accuracy. The weak check value and the strong check value of the present invention are not limited to being obtained by the above-mentioned algorithm, and the check algorithm provided by other prior arts can also be adopted, and examples are no longer given one by one. The hash value can be obtained by performing a hash calculation on the character string contained in the file block.
[0040] Sub-step 1103, respectively determining a second check value corresponding to each of the second file segments;
[0041] The second check value includes: a second weak check value, a second strong check value and a second hash value corresponding to each second file segment.
[0042] In one embodiment, the application to be backed up can use the same method as the above sub-step 1102 to calculate the hash value of each file block and the weak check value and strong check value of each file block based on the unique identifier of each second file block (for example, the file block sequence number).
[0043] Sub-step 1104, sequentially determining the second file segments corresponding to the first file segments;
[0044] In the embodiment of the present application, the data backup storage system can determine the second file blocks corresponding to each first file block according to the sequence number of the data file blocks.
[0045] Sub-step 1105, respectively comparing the first check value of each first file segment with the second check value of the corresponding second file segment to determine the second file segment to be backed up that has been modified within the backup period;
[0046] Specifically, the data backup storage system may first determine whether the first hash value of the first file block is the same as the second hash value of the corresponding second file block. If the determination result is no, the second file block is determined to be the second file block to be backed up.
[0047] When the judgment result is yes, it is further judged whether the first weak check value of the first file block is the same as the second weak check value of the corresponding second file block. When the judgment result is no, it is determined that the second file block is the second file block to be backed up.
[0048] When the judgment result is yes, it is further determined whether the first strong check value of the first file block is the same as the second strong check value of the corresponding second file block. When the judgment result is no, it is determined that the second file block is the second file block to be backed up. Otherwise, it is determined that within the backup cycle, the application to be backed up did not generate any data to be backed up.
[0049] Step 12, receiving the encrypted target data uploaded by the application to be backed up;
[0050] After the target data in the application to be backed up and to be uploaded to the cloud disk backup storage is determined through the above steps, the data backup storage system will broadcast the corresponding encryption public key and the second file segmentation identifier corresponding to the target data to the application to be backed up, so that the application to be backed up can encrypt the target data to be backed up according to the received encryption public key, obtain the encrypted target data, and upload the encrypted target data to the data backup storage system of the cloud disk.
[0051] It should also be noted that in order to ensure data security and prevent data from being tampered with during transmission, in an embodiment of the present application, the application to be backed up can calculate the target hash value of the target data according to a preset hash algorithm, and embed the target hash value into the tail of the target data, and then use the encryption public key to encrypt the target data embedded with the target hash value to obtain encrypted target data, and upload the encrypted target data to the data backup storage system of the cloud disk.
[0052] Step 13, obtaining network traffic characteristics of the cloud disk, identifying the network traffic characteristics according to a pre-trained network security monitoring model, and determining network security monitoring results;
[0053] It should be noted here that in addition to the need to provide security protection for the data transmission process, in the embodiment of the present application, it is also necessary to monitor the decryption process on the cloud disk to avoid network intrusion during the data processing process, thereby further improving the security of the data.
[0054] In one implementation, the network security monitoring model can be trained through the following sub-steps, including:
[0055] Sub-step 1301, constructing an original network security monitoring model according to a convolutional neural network;
[0056] Sub-step 1302, randomly initializing the network parameters of the original network security monitoring model to obtain a network parameter vector of the original network security monitoring model, and generating a network parameter population according to the network parameter vector;
[0057] Sub-step 1303, obtaining the fitness value of each network parameter vector in the network parameter population;
[0058] Among them, the fitness value can be set to 1 / (output error + 0.00001).
[0059] Sub-step 1304, selecting at least two network parameter vectors from the network parameter population as the optimal solution population according to the order of fitness values from large to small, and using the remaining network parameter vectors in the network parameter population as the population to be updated;
[0060] Sub-step 1305, obtaining the network parameter vector with the largest fitness value in the optimal solution population as the global optimal value;
[0061] Sub-step 1306, obtaining the historical optimal value of each network parameter vector in the population to be updated;
[0062] Sub-step 1307, based on the global optimal value and the historical optimal value, each network parameter vector in the to-be-updated population is updated by adopting a nonlinear optimization method to obtain a trained network security monitoring model.
[0063] In one implementation, the network parameter vector may be updated according to the following formulas [1] to [4]:
[0064]
[0065] in, represents the j-th dimension parameter of the i-th network parameter vector in the population to be updated at the t-th update, i = 1, 2, ..., A1; A1 represents the total number of network parameter vectors in the population to be updated, j = 1, 2, ..., A2; A2 represents the total number of network parameter vector dimensions, represents the j-th dimension parameter of the i-th network parameter vector in the population to be updated at the t+1th update, represents the increment at the t-1th update, represents the increment at the tth update, ω represents the inertia weight, represents the first learning factor at the tth update, r1 represents the first random number between (0,1), represents the global optimal value, represents the second learning factor at the tth update, r2 represents the second random number between (0,1), represents the historical optimal value of the i-th network parameter vector at the t-th update, represents the first learning factor at the t-1th update, η represents the adjustment coefficient, T represents the maximum number of updates, σ represents the variance of the learning factor, r3 represents the third random number between (0,1), and γ represents the attenuation coefficient between (0,1).
[0066] By adjusting the second learning factor, the influence of the individual historical optimal position on the update can be gradually reduced, so that the influence of the better global optimal value can be greater, which can effectively improve the accuracy of the search. Secondly, in order to avoid falling into the local optimum, it is possible to jump out of the local optimum, which preliminarily guarantees the training effect.
[0067] After updating, when the fitness value of a network parameter vector in the population to be updated is greater than a certain optimal solution, the optimal solution is deleted, and the network parameter vector in the population to be updated is copied to the optimal solution population to complete the update of the optimal solution.
[0068] According to the degree of dispersion of the optimal solution population, the probability of the optimal solution in the optimal solution population being updated is determined by the following formula [5]:
[0069]
[0070] Among them, dd i' represents the Euclidean distance between the i'th optimal solution and the i'+1th optimal solution, dk represents the average value of the Euclidean distances between the i'th optimal solution and the i'+1th optimal solution and the i'-1th optimal solution, and K represents the total number of optimal solutions.
[0071] According to the probability of being updated, the roulette mechanism is used to determine whether the optimal solution needs to be updated. If so, the greedy algorithm is used to update the optimal solution, otherwise the optimal solution is not updated.
[0072] Specifically, in the embodiment of the present application, the update value of the optimal solution can be determined according to the following formula [6] and formula [7]:
[0073]
[0074] Among them, x i'j represents the j-th dimension parameter of the i'th optimal solution, Represents the updated x i'j , θ represents the intermediate parameter, represents the upper bound of the j-th dimension parameter, represents the lower bound of the j-th dimension parameter, Indicates all dd i' The mean of .
[0075] Determine whether the fitness value corresponding to the updated value is greater than the fitness value of the original optimal solution. If so, update it, otherwise do not update it.
[0076] Through the above algorithm, the model can be updated and trained with a larger step size in the early stage of the algorithm, and the effect of global optimization can be guaranteed. At the same time, only the optimal solution is updated. θ will change with the difference between the single optimal solution and the interval between the two previous and next optimal solutions and the average distance of all optimal solutions, so that the optimal solutions in the crowded interval have a larger running range to increase their ability to jump out of the crowded interval, while the optimal solutions in the discrete distribution interval enhance the ability of local precision search and speed up the local search.
[0077] Through the above algorithm, a well-trained network security monitoring model can be obtained, so as to more accurately identify whether the network is secure and ensure the security of the data backup process.
[0078] Step 14, determining at least two decryption modules from the decryption module pool to form an execution pool, and decrypting the encrypted target data through the execution pool to obtain decrypted data;
[0079] In an embodiment of the present application, the data backup storage system can obtain multiple verification results by scheduling multiple decryption modules in a decryption module pool, and performing decryption and verification operations on the encrypted target data through multiple decryption modules, and verifying the multiple verification results through a scheduling judge, and using a majority consensus decision algorithm to decide the verification results, thereby obtaining correct decrypted data.
[0080] Specifically, in one implementation, the data backup storage system may dispatch at least two decryption modules from the decryption module pool to form an execution pool according to the following sub-steps, including:
[0081] Sub-step 1401, determining the confidence level corresponding to each decryption module in the decryption module pool;
[0082] In the embodiment of the present application, an initial confidence is assigned to each decryption module at the very beginning. As the random scheduling proceeds, the confidence of each decryption module is updated in real time according to the following formula [8]:
[0083]
[0084] Among them, λ' represents the confidence after update, λ represents the confidence before update, α represents the confidence update coefficient, q represents the number of outputs corresponding to the correct target slice, Q represents the number of outputs of the selected isomer, χ' represents the judgment result, and χ represents the result output by the decryption module.
[0085] Sub-step 1402, according to the determined confidence level, determining a decryption module having a confidence level greater than a first preset threshold as a target decryption module;
[0086] Sub-step 1403, respectively determining data heterogeneity between any two target decryption modules;
[0087] A target decryption module m with a confidence greater than a first preset threshold is randomly selected and added to the execution pool. Then another target decryption module n is randomly selected, and the data heterogeneity between the target decryption module n and the target decryption module m already in the execution pool is determined according to the following formula [9]. If the heterogeneity is greater than the set threshold, the target decryption module n is added to the execution pool. The target decryption module is repeatedly selected and the above operation is performed until the number of target decryption modules in the execution pool meets the preset requirement.
[0088] dif(m,n)=γ(m,n)*ln(ξ m gξ n )[9]
[0089] Among them, dif(m,n) represents the data heterogeneity between the target decryption module m and the target decryption module n, γ(i,j) represents the difference between the target decryption module m and the target decryption module n, ξm represents the complexity of the target decryption module m, ξ n Represents the complexity of the target decryption module n.
[0090] Specifically, the data heterogeneity between the target decryption module m and the target decryption module n can be determined by the following formula
[10] :
[0091]
[0092] Among them, A m Represents the feature vector of the target decryption module m, A n The feature vector representing the target decryption module n.
[0093] In one implementation, the complexity of the target decryption module m can be determined according to the following formula
[11] :
[0094]
[0095] Among them, c mk represents the kth complexity index corresponding to the mth target decryption module, w mk represents the weight corresponding to the kth complexity index, k = 1, 2, ..., K, K represents the total number of complexity indicators.
[0096] Sub-step 1404, forming an execution pool according to the target decryption modules whose data heterogeneity is greater than a second preset threshold.
[0097] By executing each decryption module in the pool, the encrypted target data is decrypted respectively to obtain the decrypted data.
[0098] The above method can be used to decrypt data, which can effectively ensure the correctness and security of the final data processed on the cloud disk, and can prevent data tampering even if a decryption module is attacked or invaded. And by introducing confidence for each decryption module, a relatively safe decryption module can be selected for data decryption, thereby increasing the difficulty of attack and ensuring data security.
[0099] Step 15, according to the decrypted data, respectively determine the check value of each decryption module in the execution pool corresponding to the decrypted data, and determine the target data according to the check value;
[0100] Specifically, in an embodiment of the present application, after obtaining the decrypted data, the data backup storage system can verify the decrypted data according to the target hash value at the end of the decrypted data. The specific verification method is to use the same hash algorithm to perform a hash operation on the decryption to obtain a decrypted data hash value, and compare the decrypted data hash value with the target hash value at the end of the decrypted data. If they are the same, the verification value is 1, which indicates that the decrypted data has not been tampered with; if the comparison results are different, the verification value is 0, which indicates that the decrypted data has been tampered with.
[0101] In an embodiment of the present application, the data backup storage system can schedule the judge to use a majority consensus algorithm to judge the check value, take the check value with the largest number as the correct check value, and take the decrypted data corresponding to the correct check value as the target data.
[0102] In addition, it should be noted that when the value detection disk determines that there is no correct result, it is determined that an error or attack occurs during data transmission, and the data backup storage system ends the entire backup process and feeds back abnormal information to the application to be backed up.
[0103] Step 16: Update the first file corresponding to the application to be backed up in the cloud disk according to the target data, and complete the data backup storage of the application to be backed up.
[0104] In an embodiment of the present application, in order to ensure the security of data stored on the cloud disk, after completing the processing of the encrypted data uploaded by the backup application by executing the above steps 14 to 15 and obtaining the target data to be stored, before storing the target data in the cloud disk, it is necessary to determine whether the network environment of the cloud disk is safe during the processing of the encrypted data based on the network security monitoring result obtained by executing step 13. Only after determining that the network environment of the cloud disk is safe during the processing, can the data backup storage system store the acquired target data in the cloud disk.
[0105] It should be noted here that in order to further ensure the security of the data stored on the cloud disk, in an embodiment of the present application, before storing the target data on the cloud disk, the data backup storage system may use the following method to encrypt the target data, specifically including: encrypting the target data according to a secret sharing strategy to obtain encrypted target data; updating the first file in the cloud disk corresponding to the application to be backed up according to the encrypted target data.
[0106] In one embodiment, the data backup storage system can randomly generate prime numbers and determine an encryption public key based on the randomly generated prime numbers; then, the target data can be encrypted according to the encryption public key to obtain encrypted target data corresponding to the target data and at least two secret values; at the same time, the same number of physical servers can be determined based on the number of secret values, and then the secret values can be stored on the physical servers respectively to complete the encryption of the target data.
[0107] Specifically, the embodiment of the present application can encrypt the target data and store the encrypted target data in the cloud disk according to the following sub-steps, including:
[0108] Sub-step 1601, randomly generate prime numbers And based on this prime number Get the public key P = dG;
[0109] Where G represents the nth-order base point of the elliptic curve E, and the elliptic curve E is located on the finite field Fp, 1<ζ <n-1。
[0110] Sub-step 1602, constructing an n-order polynomial on a finite field, as shown in the following formula
[12] :
[0111]
[0112] Among them, p(x) represents an n-order polynomial, a0 represents the first coefficient, a1 represents the second coefficient, an represents the n-th coefficient, and x represents the variable of the polynomial.
[0113] make x0 is an element on the finite field, and then randomly select R elements x r , r=1,2,…,R; and calculate y r =p(x r ), x r is an element over a finite field;
[0114] After encrypting the data with the public key P, the R secret values (x r ,y r ) are stored on R physical servers or R user systems respectively.
[0115] Sub-step 1603, determining two mirror physical servers, and storing the encrypted data in the two mirror physical servers simultaneously to achieve data backup.
[0116] At this time, when the data is attacked or the physical server is damaged, the original data can still be restored, with stronger anti-damage ability, and even if the attacker obtains the data and obtains less than a certain number of subkey values, it cannot be restored. Thus decryption cannot be achieved.
[0117] Sub-step 1604, when decryption is required, first obtain the encrypted data and obtain n+1 secret values, n>1 / 2R, and then solve the polynomial based on the n+1 secret values Thus we get to decrypt.
[0118] By backing up data by mirroring the physical server and adding multiple storage keys, it is possible to achieve strong resistance to loss risks at a relatively low cost. Even if some secret values are lost or damaged, they can still be decrypted, and have a certain degree of fault tolerance.
[0119] According to a file storage method provided by an embodiment of the present application, the data backup system can determine the target data to be uploaded to the cloud disk backup storage in the application to be backed up according to the preset backup cycle. After determining the target data, the data backup system can broadcast the encrypted public key to the application to be backed up, and receive the encrypted target data uploaded by the application to be backed up. The data backup system determines at least two decryption modules from the decryption module pool to form an execution pool, and decrypts the encrypted target data through the execution pool to obtain decrypted data. According to the decrypted data, the check values of the decrypted data corresponding to each decryption module in the execution pool are respectively determined, and the target data is determined according to the check value. According to the target data, the first file corresponding to the application to be backed up in the cloud disk is updated to complete the data backup storage of the application to be backed up. According to the file storage method provided by the embodiment of the present application, on the one hand, the security of the data to be backed up in the process of uploading to the cloud disk is guaranteed by encryption means; on the other hand, the security of the data in the decryption process inside the cloud disk is guaranteed by the method of jointly executing the execution pool composed of at least two decryption modules, which can effectively avoid data tampering and greatly improve the security of cloud disk backup storage data.
[0120] In one implementation, the present application also provides a file storage device to solve the problem of data leakage that may exist when backing up data in existing network disks. Figure 2 As shown, the system comprises: a backup data determining unit 21 , a backup data receiving unit 22 , a decryption unit 23 , a data identifying unit 24 and a backup storage unit 25 .
[0121] The backup data determination unit 21 is used to determine the target data to be backed up in the application and to be uploaded to the cloud disk for backup storage according to the preset backup cycle;
[0122] The backup data receiving unit 22 is used to receive the encrypted target data uploaded by the application to be backed up;
[0123] A decryption unit 23, configured to determine at least two decryption modules from the decryption module pool to form an execution pool, and decrypt the encrypted target data through the execution pool to obtain decrypted data;
[0124] The data identification unit 24 is used to determine the check value of the decrypted data corresponding to each decryption module in the execution pool according to the decrypted data, and determine the target data according to the check value;
[0125] The backup storage unit 25 is used to update the first file corresponding to the application to be backed up in the cloud disk according to the target data, and complete the data backup storage of the application to be backed up.
[0126] In one embodiment, the backup data determination unit 21 is specifically used to: divide the first file and the second file of the application to be backed up according to a first segmentation method to obtain at least one first file block corresponding to the first file and at least one second file block corresponding to the second file; respectively determine the first verification value corresponding to each of the first file blocks; respectively determine the second verification value corresponding to each of the second file blocks; sequentially determine the second file blocks corresponding to each of the first file blocks; respectively compare the first verification value of each of the first file blocks with the second verification value of the corresponding second file block to determine the second file blocks to be backed up that have been modified during the backup cycle; and determine the target data based on the second file blocks to be backed up.
[0127] In one embodiment, the first check value includes: a first weak check value, a first strong check value and a first hash value; the second check value includes: a second weak check value, a second strong check value and a second hash value, then the backup data determination unit 21 is specifically used to: determine whether the first hash value of the first file block is the same as the second hash value of the corresponding second file block, when the judgment result is no, determine that the second file block is the second file block to be backed up; when the judgment result is yes, determine whether the first weak check value of the first file block is the same as the second weak check value of the corresponding second file block, when the judgment result is no, determine that the second file block is the second file block to be backed up; when the judgment result is yes, determine whether the first strong check value of the first file block is the same as the second strong check value of the corresponding second file block, when the judgment result is no, determine that the second file block is the second file block to be backed up.
[0128] In one embodiment, the decryption unit 23 is specifically used to: determine the confidence corresponding to each decryption module in the decryption module pool; determine the decryption module with a confidence greater than a first preset threshold as the target decryption module based on the determined confidence; determine the data heterogeneity between any two target decryption modules respectively; and form an execution pool based on the target decryption modules with data heterogeneity greater than a second preset threshold.
[0129] In one embodiment, it also includes a network security detection unit, which is used to: obtain network traffic characteristics of the cloud disk; identify the network traffic characteristics according to a pre-trained network security monitoring model, and determine the network security monitoring result; when the network security monitoring result obtained by the network security monitoring model is safe, according to the target data, update the first file corresponding to the application to be backed up in the cloud disk to complete the data backup storage of the application to be backed up.
[0130] In one embodiment, the network security detection unit is specifically used to: construct an original network security monitoring model based on a convolutional neural network; randomly initialize the network parameters of the original network security monitoring model to obtain the network parameter vector of the original network security monitoring model, and generate a network parameter population based on the network parameter vector; and obtain the network security monitoring model by training the network parameter population.
[0131] In one embodiment, the network security detection unit is specifically used to: obtain the fitness value of each network parameter vector in the network parameter population; select at least two network parameter vectors from the network parameter population as the optimal solution population according to the order of the fitness values from large to small, and use the remaining network parameter vectors in the network parameter population as the population to be updated; obtain the network parameter vector with the largest fitness value in the optimal solution population as the global optimal value; obtain the historical optimal value of each network parameter vector in the population to be updated; according to the global optimal value and the historical optimal value, use a nonlinear optimization method to update each network parameter vector in the population to be updated to obtain a trained network security monitoring model.
[0132] In one embodiment, the backup storage unit 25 is specifically used to: encrypt the target data according to the secret sharing strategy to obtain encrypted target data; update the first file corresponding to the application to be backed up in the cloud disk according to the encrypted target data to complete the data backup storage of the application to be backed up.
[0133] In one embodiment, the backup storage unit 25 is specifically used to: determine an encryption public key based on a randomly generated prime number; encrypt the target data based on the encryption public key to obtain encrypted target data corresponding to the target data and at least two secret values; determine the same number of physical servers based on the number of secret values, and store the secret values on the physical servers respectively.
[0134] By adopting a file storage device provided by an embodiment of the present application, the data backup system can determine the target data to be uploaded to the cloud disk backup storage in the application to be backed up according to the preset backup cycle. After determining the target data, the data backup system can broadcast the encrypted public key to the application to be backed up, and receive the encrypted target data uploaded by the application to be backed up. The data backup system determines at least two decryption modules from the decryption module pool to form an execution pool, and decrypts the encrypted target data through the execution pool to obtain decrypted data. According to the decrypted data, the check values of the decrypted data corresponding to each decryption module in the execution pool are respectively determined, and the target data is determined according to the check value. According to the target data, the first file corresponding to the application to be backed up in the cloud disk is updated to complete the data backup storage of the application to be backed up. By adopting the file storage method provided by the embodiment of the present application, on the one hand, the security of the data to be backed up in the process of uploading to the cloud disk is guaranteed by encryption means; on the other hand, the security of the data in the decryption process inside the cloud disk is guaranteed by the method of jointly executing the execution pool composed of at least two decryption modules, which can effectively avoid data tampering and greatly improve the security of cloud disk backup storage data.
[0135] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 3 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0136] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0137] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0138] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a file storage device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations: according to the preset backup cycle, determine the target data to be uploaded to the cloud disk for backup storage in the application to be backed up; receive the encrypted target data uploaded by the application to be backed up; determine at least two decryption modules from the decryption module pool to form an execution pool, and decrypt the encrypted target data through the execution pool to obtain decrypted data; according to the decrypted data, determine the check value of the decrypted data corresponding to each decryption module in the execution pool, and determine the target data according to the check value; according to the target data, update the first file corresponding to the application to be backed up in the cloud disk to complete the data backup storage of the application to be backed up.
[0139] The above application Figure 3The method performed by the file storage electronic device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0140] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0141] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 1 The method of the embodiment shown is specifically used to perform the following operations:
[0142] According to the preset backup cycle, the target data to be uploaded to the cloud disk for backup storage in the application to be backed up is determined; the encrypted target data uploaded by the application to be backed up is received; at least two decryption modules are determined from the decryption module pool to form an execution pool, and the encrypted target data is decrypted through the execution pool to obtain decrypted data; according to the decrypted data, the verification values of the decrypted data corresponding to each decryption module in the execution pool are determined respectively, and the target data is determined according to the verification values; according to the target data, the first file corresponding to the application to be backed up in the cloud disk is updated to complete the data backup storage of the application to be backed up.
[0143] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0144] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0145] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0147] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0148] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0149] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0150] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0151] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0152] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A file storage method, characterized in that: include: According to the preset backup cycle, determine the target data to be uploaded to the cloud disk backup storage in the backup application; Receiving encrypted target data uploaded by the application to be backed up; Determine at least two decryption modules from the decryption module pool to form an execution pool, and decrypt the encrypted target data through the execution pool to obtain decrypted data; According to the decrypted data, respectively determine the check value of each decryption module in the execution pool corresponding to the decrypted data, and determine the target data according to the check value; According to the target data, the first file corresponding to the application to be backed up in the cloud disk is updated to complete the data backup storage of the application to be backed up.
2. The method according to claim 1, characterized in that Determining the target data to be backed up and stored according to the preset backup cycle specifically includes: According to the first segmentation method, the first file and the second file of the application to be backed up are segmented to obtain at least one first file segment corresponding to the first file and at least one second file segment corresponding to the second file; Determine first check values corresponding to the first file blocks respectively; Determine the second check value corresponding to each of the second file blocks respectively; sequentially determining the second file segments corresponding to the first file segments; Comparing the first check value of each of the first file segments with the second check value of the corresponding second file segments, respectively, to determine the second file segments to be backed up that have been modified within the backup period; The target data is determined according to the second file to be backed up.
3. The method according to claim 2, characterized in that The first check value includes: a first weak check value, a first strong check value and a first hash value; The second check value includes: a second weak check value, a second strong check value and a second Hash value.
4. The method according to claim 3, characterized in that The comparing the first check value of each of the first file segments with the second check value of the corresponding second file segment to determine the second file segment to be backed up that has been modified within the backup period specifically includes: Determine whether the first hash value of the first file segment is the same as the second hash value of the corresponding second file segment, and when the determination result is no, determine that the second file segment is the second file segment to be backed up; When the judgment result is yes, determining whether the first weak check value of the first file segment is the same as the second weak check value of the corresponding second file segment; when the judgment result is no, determining that the second file segment is the second file segment to be backed up; When the judgment result is yes, it is determined whether the first strong check value of the first file block is the same as the second strong check value of the corresponding second file block. When the judgment result is no, it is determined that the second file block is the second file block to be backed up.
5. The method according to claim 1, characterized in that The step of determining at least two decryption modules from the decryption module pool to form an execution pool specifically includes: Determining the confidence level corresponding to each decryption module in the decryption module pool; According to the determined confidence level, determining a decryption module having a confidence level greater than a first preset threshold as a target decryption module; Determine the data heterogeneity between any two target decryption modules respectively; An execution pool is formed according to target decryption modules whose data heterogeneity is greater than a second preset threshold.
6. The method according to claim 1, characterized in that After receiving the encrypted target data uploaded by the application to be backed up, the method further includes: Obtaining network traffic characteristics of the cloud disk; Identify the network traffic characteristics according to the pre-trained network security monitoring model and determine the network security monitoring results; When the network security monitoring result obtained by the network security monitoring model is safe, the first file corresponding to the application to be backed up in the cloud disk is updated according to the target data to complete the data backup storage of the application to be backed up.
7. The method according to claim 6, characterized in that Pre-training the network security monitoring model specifically includes: Constructing an original network security monitoring model based on convolutional neural networks; Randomly initializing the network parameters of the original network security monitoring model to obtain a network parameter vector of the original network security monitoring model; Generate a network parameter population according to the network parameter vector; The network security monitoring model is obtained by training the network parameter population.
8. The method according to claim 7, characterized in that The obtaining of the network security monitoring model according to the network parameter population training specifically includes: Obtaining the fitness value of each network parameter vector in the network parameter population; According to the order of the fitness values from large to small, at least two network parameter vectors are selected from the network parameter population as the optimal solution population, and the remaining network parameter vectors in the network parameter population are used as the population to be updated; Obtaining the network parameter vector with the largest fitness value in the optimal solution population as the global optimal value; Obtaining the historical optimal value of each network parameter vector in the population to be updated; According to the global optimal value and the historical optimal value, each network parameter vector in the population to be updated is updated by adopting a nonlinear optimization method to obtain a trained network security monitoring model.
9. The method according to claim 6, characterized in that The updating, according to the target data, of the first file corresponding to the application to be backed up in the cloud disk to complete the data backup storage of the application to be backed up specifically includes: Encrypting the target data according to a secret sharing strategy to obtain encrypted target data; The first file corresponding to the application to be backed up in the cloud disk is updated according to the encrypted target data to complete the data backup storage of the application to be backed up.
10. The method according to claim 9, characterized in that The encrypting the target data according to the secret sharing strategy to obtain the encrypted target data specifically includes: Determine the encryption public key based on the randomly generated prime number; Encrypt the target data according to the encryption public key to obtain encrypted target data corresponding to the target data and at least two secret values; According to the number of the secret values, the same number of physical servers are determined, and the secret values are respectively stored on the physical servers.
Citation Information
Patent Citations
Protective method and apparatus for electronic device
CN107273769A
Encrypted data consistency checking method and device, computer equipment and storage medium
CN110069939A
File sharing method and system based on block chain, electronic equipment and storage medium
CN114650144A
Tamper-proof method for IPTV video, server and client
CN115514991A
Transaction method and related device
CN117635154A
Cited By
Cloud hard disk backup method and device, computer equipment and storage medium
CN119336548A
Identity authentication method and device of network disk system
CN121508885A
