Data storage security method based on encryption algorithm

By dividing the text data into character groups and using dependency syntax and word vector models to calculate the data's ease of cracking and inference dependency, and determining the encryption key value based on the Logistic function, the security problem of the ECC encryption algorithm under the influence of the private key value is solved. , improving the encryption efficiency and security of data storage.

CN118260814BActive Publication Date: 2024-08-30JIANGSU QIYI DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410677830.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-08-30
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

The existing asymmetric encryption algorithm ECC encryption algorithm takes a long time to run when the private key value is too large. If the private key value is too small, the security of the ciphertext is low and there is a possibility of being cracked, resulting in poor data encryption effect in the data storage.

Method used

By dividing the text data in the storage folder into fixed-length character groups, the dependency syntax and word vector model are used to obtain the positioning sequence and relationship label sequence of each character group, and the data easiness and inference dependency are calculated based on the Logistic function Determine the encryption key value and use the ECC encryption algorithm to encrypt.

Benefits of technology

It improves the security of data in the data storage, avoids the possibility of behavioral habits affecting the order of data, enhances encryption efficiency and key randomness, and improves the confidence of data interval stability assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118260814B
    Figure CN118260814B
Patent Text Reader

Abstract

This application relates to the field of data processing technology and proposes a secure storage method for a data storage device based on an encryption algorithm. The method includes: dividing text data into fixed-length character groups; obtaining relation label sequences and location sequences using dependency syntax and word vector models; determining the data's vulnerability to being cracked based on the overlap between the decimal number variation range and the data range, the relation label sequences, and the location sequences; determining the data inference dependency based on the probability that the data content of a string can be inferred from the data content of other strings and the data's vulnerability to being cracked; determining the parameters in the Logistic function based on the data's vulnerability to being cracked and the data inference dependency; using the Logistic function to obtain the key value when encrypting the character groups; and using the ECC encryption algorithm to obtain ciphertext data based on the key value, storing the ciphertext data in the data storage device. This application improves the security of data in the data storage device by optimizing the ECC encryption algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data storage device security storage method based on an encryption algorithm. Background Art

[0002] Data storage is a hardware device used to store data in a computer system. Data storage can be temporary or permanent, depending on the storage requirements and access methods of the data. The main function of data storage is to save programs, operating systems, user data and other information so that they can be accessed during computer operation or between multiple boots. Common data storage includes main memory, auxiliary memory, cache memory, etc.

[0003] Whether it is to protect sensitive information in data storage, such as personal information, financial records, etc.; or to prevent network attacks such as viruses and hacker software from destroying data in data storage; or to avoid the risk of data loss or damage, the data in the data storage is usually encrypted to ensure data integrity and improve data security. At present, commonly used data encryption algorithms include symmetric encryption algorithms, asymmetric encryption algorithms, hash algorithms, etc. Among them, asymmetric encryption algorithms have small computational complexity and high encryption efficiency. They are one of the commonly used encryption algorithms in computer systems. However, the security of the ECC (Elliptic Curve Cryptography) encryption algorithm in the asymmetric encryption algorithm is greatly affected by the private key. If the private key value is too large, it will increase the running time of the algorithm. If the private key value is too small, it will reduce the security of the ciphertext and there is a possibility of being cracked. Summary of the invention

[0004] The present application provides a data storage security storage method based on an encryption algorithm to solve the problem that poor data encryption effect affects the data storage security in the data storage. The technical solution adopted is as follows:

[0005] An embodiment of the present application is a data storage method for secure storage based on an encryption algorithm, the method comprising the following steps:

[0006] Divide the text data in the storage folder into character groups of fixed length;

[0007] Use dependency syntax and word vector models to obtain the location sequence and relationship label sequence of each word corresponding to each string in each character group;

[0008] Determine the data decipherability of each character group based on the overlap between the change interval of the decimal number corresponding to each character string in each character group and the data interval of each character group, the relationship label sequence of the words corresponding to each character string, and the positioning sequence;

[0009] Determine the data inference dependency of each character string in each character group based on the probability that the data content of each character string in each character group is inferred from the data content of the other character strings and the data decipherability of each character group;

[0010] The parameters in the Logistic function are determined based on the data decryptability of each character group and the data reasoning dependency of each string in each character group, and the value of the key when each character group is encrypted is obtained by using the Logistic function; the ciphertext data of each character group is obtained based on the value of the key when each character group is encrypted by using the ECC encryption algorithm, and the ciphertext data of each character group is stored in a data storage device.

[0011] Preferably, the method of using dependency syntax and word vector model to obtain the positioning sequence and relationship label sequence of each word corresponding to each character string in each character group is:

[0012] Taking each text sentence in the text data corresponding to each character group as input, using dependency syntax to obtain a dependency syntax tree for each text sentence, and taking a sequence composed of all dependency relations of the same word on all dependency syntax trees as a positioning sequence for each word in each text sentence;

[0013] All words in the text data corresponding to each character group are taken as input, and the word vector model is used to obtain the word vector of each word. The word vector of each word and any positioning sequence of each word in the order of word vector first and positioning sequence later are taken as a relationship label sequence for each word.

[0014] Preferably, the method for determining the data decipherability of each character group based on the overlap between the variation interval of the decimal number corresponding to each character string in each character group and the data interval of each character group, the relationship tag sequence of the words corresponding to each character string, and the positioning sequence is:

[0015] Using the word segmentation results of the text data in each storage folder as input, using Unicode encoding technology to convert each word into a corresponding encoding value, and converting the encoding value of each word in the text data into a decimal number;

[0016] Taking the decimal numbers corresponding to all character strings in each character group as input, using the DPC clustering algorithm to obtain the clustering results of the decimal numbers; determining the change interval of each decimal number and the data interval of each character group based on the cluster cluster where each decimal number in the clustering results belongs;

[0017] Determine the data distribution regularity of each character group based on the local density of decimal numbers corresponding to all character strings in each character group and the aspect ratio of the variation interval of each decimal number;

[0018] Determine the data information overlap rate of each character group corresponding to each cluster based on the difference between the relationship label sequence of each decimal number corresponding to the word in each cluster corresponding to each character group and the label histogram of the cluster;

[0019] Calculate the ratio of the cumulative sum of the change interval areas of all decimal numbers in each character group to the data interval area of ​​each character group, take the sum of the ratio and the data distribution regularity of each character group as the first eigenvalue, and take the natural constant as the base and the logarithm of the first eigenvalue as the true number as the numerator;

[0020] The denominator is the sum of the data information overlap rates of all clusters corresponding to each character group and 0.01;

[0021] The ratio of the numerator to the denominator is used as the data decipherability of each character group.

[0022] Preferably, the method for determining the variation interval of each decimal number and the data interval of each character group based on the cluster to which each decimal number in the clustering result belongs is:

[0023] The minimum enclosing rectangle containing all decimal numbers in each cluster is used as the variation range of each decimal number in each cluster;

[0024] The minimum enclosing rectangle containing the variation interval of the decimal numbers corresponding to all character strings in each character group is taken as the data interval of each character group.

[0025] Preferably, the method for determining the data distribution regularity of each character group based on the local density of decimal numbers corresponding to all character strings in each character group and the aspect ratio of the variation interval of each decimal number is:

[0026] The numerator is calculated by taking the natural constant as the base and the absolute value of the difference between 1 and the length-width ratio of the change interval of the decimal number corresponding to each string as the exponent;

[0027] The sum of the minimum value of the difference between the local density of the decimal number corresponding to each string in each character group and the local density of all decimal numbers in the cluster where each string is located and 0.01 is used as the denominator;

[0028] The cumulative result of the ratio of the numerator to the denominator on the decimal numbers corresponding to all character strings in each character group is taken as the data distribution regularity of each character group.

[0029] Preferably, the method for determining the data information overlap rate of each character group corresponding to each cluster based on the difference between the relationship label sequence of each decimal number corresponding to the word in each character group corresponding to the cluster and the label histogram of the cluster is:

[0030] The set of text sentences corresponding to the words of all character strings in each character group is taken as the text data set of each character group;

[0031] The ED edit distance between the relationship label sequences of each decimal number in two text sentences containing the words corresponding to each decimal number in the clustering result corresponding to each character group in the text data set of each character group is accumulated on all text sentences containing the words corresponding to each decimal number as the first distance of each decimal number, and the accumulation result of the first distance of all decimal numbers in each clustering cluster corresponding to each character group is taken as the first accumulated value;

[0032] Count the positioning sequences of all decimal numbers corresponding to words in each cluster, and calculate the probability of each positioning sequence appearing, and use the histogram determined by all positioning sequences and their corresponding probabilities as the label histogram of each cluster;

[0033] The cumulative sum of the Bhattacharyya distances between the label histogram of each cluster and the label histograms of all other clusters is taken as the second cumulative value;

[0034] The sum of the first accumulated value and the second accumulated value is used as the data information overlap rate of each character group corresponding to each cluster.

[0035] Preferably, the method for determining the data inference dependency of each character string in each character group based on the probability that the data content of each character string in each character group is inferred from the data content of other character strings and the data decipherability of each character group is:

[0036] Determine the interdependence degree between two strings in each character group based on the number of relationship groups in the dependency relationship sequence of the decimal number corresponding to the string in the cluster where the decimal number corresponding to each string in each character group is located and the positioning sequence of the word corresponding to each string;

[0037] The cumulative sum of the mutual dependence degree between each character string in each character group and all other character strings is calculated, and the product of the data decipherability of each character group and the cumulative sum is used as the data reasoning dependency of each character string in each character group.

[0038] Preferably, the method for determining the degree of mutual dependence between two strings in each character group based on the number of relationship groups in the dependency relationship sequence of the decimal number corresponding to the string in the cluster where the decimal number corresponding to each string in each character group is located and the positioning sequence of the word corresponding to each string is:

[0039] For any string of each character group, count the positioning sequences of the string in all text sentences containing the words corresponding to each string, and calculate the edit distance between the positioning sequences of any two strings; take edit distances of equal size as one edit distance, take an array consisting of each edit distance and the probability of each edit distance as a relationship group, and take a sequence consisting of the relationship groups determined by all kinds of edit distances in ascending order of edit distance as the dependency relationship sequence of each string;

[0040] The ratio of the number of relationship groups in the dependency sequence of each string to the number of relationship groups that do not exist in the dependency sequence of each string contained in the dependency sequence of the strings corresponding to the decimal numbers of the clusters where the decimal numbers corresponding to each string are located is taken as the proportional coefficient of each string;

[0041] The product of the Pearson correlation coefficient between the positioning sequence of each string and each other string in each text sentence where each string corresponds to the word is accumulated over all text sentences where each string corresponds to the word and the proportional coefficient is taken as the degree of interdependence between each string and each other string.

[0042] Preferably, the method of determining the parameters in the Logistic function based on the data decryption degree of each character group and the data reasoning dependency of each string in each character group, and obtaining the value of the key when each character group is encrypted by using the Logistic function is:

[0043] Performing maximum value normalization processing on the data inference dependencies of all strings in each character group, calculating the third quartile in the normalization result as the encryption adjustment coefficient of each character group, and taking the product of the mapping parameter and the encryption adjustment coefficient of each character group as the inference coefficient of each character group;

[0044] The difference between 1 and the data decipherability of the previous character group of each character group is calculated, and the product of the inference coefficient of the previous character group of each character group, the data decipherability of the previous character group and the difference is used as the value of the key when encrypting each character group.

[0045] Preferably, the method of obtaining the ciphertext data of each character group based on the value of the key when encrypting each character group using the ECC encryption algorithm is:

[0046] Each character group is used as encrypted plaintext, and the ECC encryption algorithm is used to encrypt the plaintext based on the key value when each character group is encrypted to obtain the ciphertext data of the plaintext.

[0047] The beneficial effects of the present application are as follows: the present application determines the data interval of each character group through the analysis results of the data in each character group, and determines the data decryption degree of the character group based on the data interval of each character group. The data decryption degree takes into account the influence of editing habits when text data is generated in the application software with dialogue function in the data storage device on the data reasonability. The beneficial effect is to avoid reflecting the text data information only through word vectors and ignoring the possibility that the data in the data storage device may be affected by behavioral habits and have different position orders when it is generated, thereby improving the confidence of the evaluation results of the stability of the data interval of each character group; secondly, based on the reasonability of the data content between the strings in each character group, the data reasoning dependency of each string is determined, and the Logistic chaotic mapping function is optimized based on the data decryption degree of the character group and the data reasoning dependency of the string, thereby increasing the randomness of the key value during ECC algorithm encryption while improving the encryption efficiency, thereby improving the security of the data in the data storage device. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0049] Figure 1 A flowchart of a data storage method for secure storage based on an encryption algorithm provided in one embodiment of the present application.

[0050] Figure 2 A schematic diagram of a data interval provided for an embodiment of the present application.

[0051] Figure 3 The present invention is a flowchart of an implementation of a data storage method for secure storage based on an encryption algorithm provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. 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 creative work are within the scope of protection of this application.

[0053] See also Figure 1 , which shows a flow chart of a data storage method for secure storage based on an encryption algorithm provided by an embodiment of the present application, the method comprising the following steps:

[0054] Step S001, obtain the encryption object in the data storage device and divide the obtained data.

[0055] There are a large number of contents in different formats in the data storage device. In this application, text data with greater encryption requirements are taken as encryption objects, and application software with conversation functions is taken as an example. The application software includes but is not limited to WeChat, financial software, etc., and the text data in all the application software is obtained from the data storage device on the computer.

[0056] Furthermore, for the text data in the storage folder corresponding to any application software with a dialogue function, first use the Jieba word segmentation tool to perform word segmentation on the text data in each storage folder, and then use the word segmentation result as input, use the utf-8 encoding technology to convert the input text data into a string, and pad the end of the obtained string with zeros until the length of the string is divisible by 128. The reason for this processing is that the string length can be divided into an integer array. Secondly, divide the text data in each storage file into character groups with a length of 128 bits, and take the set of text sentences corresponding to the words in all the strings in each character group as the text data set of each character group, record the number of obtained character groups as K, and number the character groups from 1 to K in sequence. UTF-8 encoding is a well-known technology, and the specific process will not be repeated.

[0057] At this point, the result of the data grouping in the data storage device is obtained as the plaintext data for the subsequent encryption algorithm.

[0058] Step S002, determining the data decryptability of each character group based on the overlap between the change interval of the decimal number corresponding to each character string in each character group and the data interval of each character group, the relationship tag sequence of the words corresponding to each character string, and the positioning sequence.

[0059] In the data storage, data with high security requirements may be financial information, personal information, such as payment passwords or ID numbers, contact information, etc. The text content containing these data is usually relatively fixed. Taking the payment password as an example, the text content containing the payment password is usually a sentence composed of fixed words such as "the payment password of the card is 123456" or "123456 is the payment password of the card"; and the dependency relationship between the payment password and the specific number in the sentence is also relatively fixed; data with low security requirements may be common words or sentences in the conversation text, such as notification, received, etc., which not only appear in the data with a high frequency, but also are not closely related to the context data. That is, the data with encryption requirements in the text data often has relatively fixed types of dependencies and content of context information in the text data.

[0060] Based on the above analysis, for any character group, taking the Kth character group as an example, each text sentence contained in the Kth character group is taken as input, and the dependency syntax tree of the text sentence is obtained using the dependency syntax tree. The dependency relationship in the dependency syntax tree includes subject-predicate relationship, preposition-object relationship, etc.; secondly, all words in the text data corresponding to the Kth character group are taken as input, and the word vector of each word is obtained using the Word2Vec model, and the word vector of each word in each text sentence and the sequence composed of all dependency relationships of each word are used as a relationship label sequence for each word, and the sequence composed of all dependency relationships of each word on each dependency syntax tree is used as the positioning sequence of each word in each text sentence. For example, in the sentence "Xiao Ming eats", there is a subject-predicate relationship between Xiao Ming and eat, and a verb-object relationship between eat and meal. Then the relationship label sequence of the word eat is (word vector, subject-predicate, verb-object), and the positioning sequence is (subject-predicate, verb-object). The dependency syntax and Word2Vec model are well-known technologies, and the specific process is not repeated.

[0061] Furthermore, in order to be able to convert text data into a computable numerical form, the word segmentation result of the text data in each storage folder is used as input, and the Unicode encoding technology is used to convert the text data into corresponding encoding values, and the encoding value of each word in the text data is converted into a corresponding decimal number. Data encoding and base conversion are well-known technologies, and the specific process is not repeated. Secondly, the decimal numbers of all words corresponding to the Kth character group are used as input, and the DPC (Density Peak Clustering) algorithm is used for clustering, and the difference between two decimal numbers is used as the metric distance. The application sets the truncation distance as follows: the value that makes the average number of words around each decimal number account for 2% of the total number is used as the truncation distance, and all decimal numbers are divided into A clusters, and the minimum circumscribed rectangle containing all decimal numbers in each cluster is used as the variation interval of each decimal number in each cluster. The DPC algorithm is a well-known technology, and the specific process is not repeated. Secondly, for each cluster, taking the i-th cluster as an example, the positioning sequences corresponding to all decimal numbers in the i-th cluster are counted, and the probability of occurrence of each positioning sequence is calculated, and each positioning sequence and its corresponding probability are used as a bar graph in the histogram, and the histogram determined by all positioning sequences and their corresponding probabilities is used as the label histogram of the i-th cluster.

[0062] Furthermore, the data interval of the Kth character group is determined by using the variation interval of the decimal numbers corresponding to all words in the Kth character group and the dependency relationship, so as to prevent similar or identical random numbers from being generated for different character groups in the subsequent encryption process. The specific process is as follows: the variation interval of the decimal numbers corresponding to all words in the Kth character group is determined respectively, and the minimum circumscribed rectangle containing all the variation intervals is used as the data interval of the Kth character group, such as Figure 2 As shown in the figure, the gray origin is a decimal number, the small rectangle is the change interval of each decimal number in the i-th cluster, and the large rectangle is the data interval of the K-th character group.

[0063] Based on the above analysis, the data decipherability is constructed here to characterize the degree of variability of the data interval of each character group. Calculate the data decipherability of the Kth character group:

[0064]

[0065]

[0066]

[0067] In the formula, is the data distribution regularity of the Kth character group, N is the number of decimal numbers corresponding to the Kth character group, c is the cth decimal number, is the ratio of the length to width of the change interval of the cth decimal number, is an exponential function with a natural constant as base, is the minimum value function, is the set of differences between the local density of the cth decimal number and all the decimal numbers in its cluster. Is a collection The minimum value within is a parameter adjustment factor used to prevent the denominator from being 0. The empirical value of is 0.01;

[0068] is the data information overlap rate of the ith cluster of the Kth character group, m is the number of decimal numbers in the ith cluster, n is the number of text sentences containing the words corresponding to the cth decimal number in the text data set corresponding to the Kth character group, The Kth character group corresponds to the text data set containing the word corresponding to the cth decimal number. text sentences, , The cth decimal number corresponds to the word in text sentences, The sequence of relation labels in a text sentence, Is a sequence , ED edit distance between them, M is the number of clusters corresponding to the Kth character group, , are the label histograms of the i-th cluster and the p-th cluster respectively. Is a histogram , The Bhattacharyya distance between , ED edit distance and Bhattacharyya distance are all well-known technologies, and the specific calculation process will not be repeated;

[0069] is the data decipherability of the Kth character group, is a logarithmic function with a natural constant as base, It is the cumulative sum of the areas of all decimal numbers in the Kth character group. It is the area of ​​the data interval of the Kth character group.

[0070] The more evenly the data in the cluster corresponding to each decimal number in the Kth character group is distributed, the more similar the data features between the decimal numbers are, the more regular the shape of the change interval is, and the closer the aspect ratio of the minimum circumscribed rectangle of the change interval is to 1, The closer the value is to 0, The smaller the value of is, the closer the local density of the cth decimal number is to the decimal numbers distributed around it, and the stronger the correlation between it and the remaining decimal numbers is. The smaller the value of The larger the value of , the more similar the contextual semantic information of the words corresponding to the cth decimal number in different sentences is, and the more stable the dependency relationship is. , The higher the similarity between The smaller the value of The smaller the value is, the more similar the data structures corresponding to the decimal numbers in the ith cluster and the pth cluster are, and the more similar the types and occurrence probabilities of the positioning sequences in the ith cluster and the pth cluster are. The smaller the value, the smaller the second accumulated value The smaller the value of The smaller the value is, the richer the context information of the word is and the greater the change in the positioning sequence is, the lower the probability of the word being inferred is, and the more the minimum enclosing rectangle of the change interval of all decimal numbers exceeds the data interval of the Kth character group, The larger the value of The larger the value of The larger the value, the easier it is for the character string in the Kth character group to be deciphered through the content of the remaining character strings, and the more secure encryption methods should be used. The data decipherability takes into account the impact of editing habits when text data is generated in application software with dialogue functions in the data storage on the data reasonability. Its beneficial effect is to avoid reflecting text data information only through word vectors and ignoring the possibility that the data in the data storage will be affected by behavioral habits when it is generated and have different position orders, thereby improving the confidence of the evaluation results of the stability of the data interval of each character group.

[0071] At this point, the data decryption degree of each character group is obtained, which is used to generate a random number for subsequent encryption of each character group.

[0072] Step S003, determining the data inference dependency of each character string in each character group based on the probability that the data content of each character string in each character group is inferred from the data content of other character strings and the data decipherability of each character group.

[0073] According to the above steps, the data decipherability of each character group is obtained respectively. The greater the data decipherability of the character group, the stronger the reasonability of the character string in the character group, and the more complex the encryption method is needed to enhance security. In addition, for each character group, the density of decimal numbers in the cluster space is high, so it is necessary to use more complex keys or more random numbers when encrypting the character group. Conversely, if the density of data in the space after clustering is low, it is necessary to appropriately reduce the complexity of the key or the randomness of the random number at the corresponding node. That is, the data content in each character group will be affected not only by the data content in the other character groups, but also by the relationship label sequence of the words corresponding to the decimal numbers in the cluster cluster.

[0074] Further, taking the Kth character group as an example, if the dependency relationship between the words corresponding to the decimal numbers in the ith cluster is relatively clear and the types are fixed, then if the network attack ciphertext obtains some words in the ith cluster, then the reasoning and cracking ability of the words corresponding to the remaining decimal numbers in the ith cluster will be stronger. Therefore, for each decimal number in the ith cluster, the application performs chaotic mapping by utilizing the number of words that do not have a dependency relationship between the words corresponding to each decimal number, thereby enhancing the security of the encrypted ciphertext.

[0075] Specifically, for any string of the Kth character group, taking the ath string as an example, count the location sequences of the ath string in all sentences containing the words corresponding to the ath string, calculate the edit distance between any two location sequences of the ath string, and count the probability of each edit distance, take the array consisting of each edit distance and its probability as a relationship group, and take the sequence consisting of all relationship groups determined by the edit distance in ascending order of the edit distance as the dependency relationship sequence of the ath string .

[0076] Based on the above analysis, data inference dependency is constructed here to characterize the probability that the string in each character group is inferred by the other strings. Calculate the data inference dependency of the ath string in the Kth character group:

[0077]

[0078]

[0079] In the formula, is the degree of interdependence between the a-th string and the y-th string in the K-th character group, yes The number of relationship groups in It is the dependency sequence of the strings corresponding to the decimal numbers in the cluster where the a-th string corresponds to the decimal number. The number of relation groups that do not exist in , is the number of text sentences containing the words corresponding to the a-th string, , They are the words corresponding to the a-th string in the The positioning sequence of the a-th string and the y-th string in the text sentence, Is a sequence , The Pearson correlation coefficient between them is a well-known technology, and the specific calculation process will not be repeated here;

[0080] is the data inference dependency of the a-th string in the K-th character group, is the decipherability of the data in the Kth character group, is the number of strings in the Kth character group.

[0081] The greater the difference between the positioning sequences of the a-th string in the K-th character group, the more types of dependencies the a-th string has. The larger the value of The smaller the value of The larger the value of , the more likely it is that the a-th string has a contextual relationship with the rest of the strings, and the higher the similarity between the positioning sequences of the a-th string and the y-th string in the same sentence. The larger the value of , the stronger the data reasoning between the a-th string and the y-th string. The larger the value of is, the easier it is for the string in the Kth character group to be deciphered through the string contents in the remaining character groups. The larger the value of The larger the value of .

[0082] At this point, the data inference dependency of each character string in each character group is obtained, which is used to subsequently determine the parameter value in the Logistic function.

[0083] Step S004, determining the value of the key for encrypting each character group based on the data decryptability of each character group and the data inference dependency of each string in each character group; using the ECC encryption algorithm to obtain the ciphertext data of each character group, and storing the ciphertext data of each character group in a data storage device.

[0084] According to the above process, the data reasoning dependency of each string in each character group is obtained respectively, and the Logistic function is determined based on the data crackability of each character group and the data reasoning dependency of each string in each character group. The value of the key when each character group is encrypted is obtained according to the output of the Logistic function, and then the data encryption storage is completed. The implementation process of the whole scheme is as follows: Figure 3 shown.

[0085] Furthermore, taking the Kth character group as an example, the data inference dependencies of all strings in the Kth character group are normalized by the maximum value, and the third quartile in the normalized result is calculated as the encryption adjustment coefficient of the Kth character group. Maximum value normalization and quartile are well-known technologies, and the specific process will not be repeated here.

[0086] Calculate the value of the key when encrypting the Kth character group:

[0087]

[0088]

[0089] In the formula, is the inference coefficient of the Kth character group, is the mapping parameter, The size of takes the empirical value of 4, is the encryption adjustment coefficient of the Kth character group. It should be noted that The reason for taking 4 is that when the Logistic function is used for chaotic mapping, the function coefficient value is 4, which is in a completely chaotic state, which will cause a large amount of calculation of the computer system when all plaintexts are subsequently encrypted, affecting the encryption rate.

[0090] is the value of the key when the Kth character group is encrypted, is the inference coefficient of the K-1th character group, It is the data decipherability of the K-1th character group.

[0091] Based on the above steps, the value of the key for each character group encryption is calculated respectively, each character group is used as the encrypted plaintext, the value of the key for ECC encryption is determined based on the data decryption degree of each character group and the data reasoning dependency of each string in each character group, and the plaintext is encrypted using the ECC encryption algorithm to obtain the ciphertext data of the plaintext. Among them, the two coefficients of the elliptic curve in the ECC encryption algorithm are taken as empirical values ​​of 3 and 5 respectively, the base point is taken as empirical values ​​of (13, 23), and the order of the finite field is taken as empirical values ​​of 17. The ECC encryption algorithm is a well-known technology, and the specific process is not repeated here.

[0092] Furthermore, the above encryption step is performed on each character group to obtain the corresponding ciphertext data. After obtaining the ciphertext data corresponding to the text data in the storage folder corresponding to the application software, an empty folder is generated in the data storage device using the NonCompressibleFiles software, and the ciphertext data corresponding to the text data in each storage folder is stored in an empty folder.

[0093] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. Data storage security method based on encryption algorithm, It is characterized in that The method comprises the following steps: Divide the text data in the storage folder into character groups of fixed length; Use dependency syntax and word vector models to obtain the location sequence and relationship label sequence of each word corresponding to each string in each character group; Determine the data decipherability of each character group based on the overlap between the change interval of the decimal number corresponding to each character string in each character group and the data interval of each character group, the relationship label sequence of the words corresponding to each character string, and the positioning sequence; Determine the data inference dependency of each character string in each character group based on the probability that the data content of each character string in each character group is inferred from the data content of the other character strings and the data decipherability of each character group; Determine the parameters in the Logistic function based on the data decryption degree of each character group and the data reasoning dependency of each string in each character group, and use the Logistic function to obtain the value of the key when each character group is encrypted; use the ECC encryption algorithm to obtain the ciphertext data of each character group based on the value of the key when each character group is encrypted, and store the ciphertext data of each character group in a data storage device; The method for determining the data decipherability of each character group based on the overlap between the change interval of the decimal number corresponding to each character string in each character group and the data interval of each character group, the relationship tag sequence of the words corresponding to each character string, and the positioning sequence is: Using the word segmentation results of the text data in each storage folder as input, using Unicode encoding technology to convert each word into a corresponding encoding value, and converting the encoding value of each word in the text data into a decimal number; Taking the decimal numbers corresponding to all character strings in each character group as input, using the DPC clustering algorithm to obtain the clustering results of the decimal numbers; determining the change interval of each decimal number and the data interval of each character group based on the cluster cluster where each decimal number in the clustering results belongs; Determine the data distribution regularity of each character group based on the local density of decimal numbers corresponding to all character strings in each character group and the aspect ratio of the variation interval of each decimal number; Determine the data information overlap rate of each character group corresponding to each cluster based on the difference between the relationship label sequence of each decimal number corresponding to the word in each cluster corresponding to each character group and the label histogram of the cluster; Calculate the ratio of the cumulative sum of the change interval areas of all decimal numbers in each character group to the data interval area of ​​each character group, take the sum of the ratio and the data distribution regularity of each character group as the first eigenvalue, and take the natural constant as the base and the logarithm of the first eigenvalue as the true number as the numerator; The denominator is the sum of the data information overlap rates of all clusters corresponding to each character group and 0.01; The ratio of the numerator to the denominator is used as the data decipherability of each character group; The method for determining the data inference dependency of each character string in each character group based on the probability that the data content of each character string in each character group is inferred from the data content of other character strings and the data decipherability of each character group is as follows: Determine the interdependence degree between two strings in each character group based on the number of relationship groups in the dependency relationship sequence of the decimal number corresponding to the string in the cluster where the decimal number corresponding to each string in each character group is located and the positioning sequence of the word corresponding to each string; The cumulative sum of the mutual dependence degree between each character string in each character group and all other character strings is calculated, and the product of the data decipherability of each character group and the cumulative sum is used as the data reasoning dependency of each character string in each character group.

2. The data storage device secure storage method based on encryption algorithm according to claim 1, It is characterized in that The method of using dependency syntax and word vector model to obtain the positioning sequence and relationship label sequence of each word corresponding to each character string in each character group is as follows: Taking each text sentence in the text data corresponding to each character group as input, using dependency syntax to obtain a dependency syntax tree for each text sentence, and taking a sequence composed of all dependency relations of the same word on all dependency syntax trees as a positioning sequence for each word in each text sentence; All words in the text data corresponding to each character group are taken as input, and the word vector model is used to obtain the word vector of each word. The word vector of each word and any positioning sequence of each word in the order of word vector first and positioning sequence later are taken as a relationship label sequence for each word.

3. The data storage secure storage method based on encryption algorithm according to claim 1, It is characterized in that The method for determining the variation interval of each decimal number and the data interval of each character group based on the clustering cluster where each decimal number in the clustering result belongs is: The minimum enclosing rectangle containing all decimal numbers in each cluster is used as the variation range of each decimal number in each cluster; The minimum enclosing rectangle containing the variation interval of the decimal numbers corresponding to all character strings in each character group is taken as the data interval of each character group.

4. The data storage secure storage method based on encryption algorithm according to claim 1, It is characterized in that The method for determining the data distribution regularity of each character group based on the local density of decimal numbers corresponding to all character strings in each character group and the aspect ratio of the variation interval of each decimal number is: The numerator is calculated by taking the natural constant as the base and the absolute value of the difference between 1 and the length-width ratio of the change interval of the decimal number corresponding to each string as the exponent; The sum of the minimum value of the difference between the local density of the decimal number corresponding to each string in each character group and the local density of all decimal numbers in the cluster where each string is located and 0.01 is used as the denominator; The cumulative result of the ratio of the numerator to the denominator on the decimal numbers corresponding to all character strings in each character group is taken as the data distribution regularity of each character group.

5. The data storage secure storage method based on encryption algorithm according to claim 1, It is characterized in that The method for determining the data information overlap rate of each character group corresponding to each cluster based on the difference between the relationship label sequence of each decimal number corresponding to the word in each character group corresponding to the cluster and the label histogram of the cluster is: The set of text sentences corresponding to the words of all character strings in each character group is taken as the text data set of each character group; The ED edit distance between the relationship label sequences of each decimal number in two text sentences containing the words corresponding to each decimal number in the clustering result corresponding to each character group in the text data set of each character group is accumulated on all text sentences containing the words corresponding to each decimal number as the first distance of each decimal number, and the accumulation result of the first distance of all decimal numbers in each clustering cluster corresponding to each character group is taken as the first accumulated value; Count the positioning sequences of all decimal numbers corresponding to words in each cluster, and calculate the probability of each positioning sequence appearing, and use the histogram determined by all positioning sequences and their corresponding probabilities as the label histogram of each cluster; The cumulative sum of the Bhattacharyya distances between the label histogram of each cluster and the label histograms of all other clusters is taken as the second cumulative value; The sum of the first accumulated value and the second accumulated value is used as the data information overlap rate of each character group corresponding to each cluster.

6. The data storage secure storage method based on encryption algorithm according to claim 1, It is characterized in that The method for determining the degree of mutual dependence between two strings in each character group based on the number of relationship groups in the dependency relationship sequence of the decimal number corresponding to the string in the cluster where the decimal number corresponding to each string in each character group is located and the positioning sequence of the word corresponding to each string is: For any string of each character group, count the positioning sequences of the string in all text sentences containing the words corresponding to each string, and calculate the edit distance between the positioning sequences of any two strings; take edit distances of equal size as one edit distance, take an array consisting of each edit distance and the probability of each edit distance as a relationship group, and take a sequence consisting of the relationship groups determined by all kinds of edit distances in ascending order of edit distance as the dependency relationship sequence of each string; The ratio of the number of relationship groups in the dependency sequence of each string to the number of relationship groups that do not exist in the dependency sequence of each string contained in the dependency sequence of the strings corresponding to the decimal numbers of the clusters where the decimal numbers corresponding to each string are located is taken as the proportional coefficient of each string; The product of the Pearson correlation coefficient between the positioning sequence of each string and each other string in each text sentence where each string corresponds to the word is accumulated over all text sentences where each string corresponds to the word and the proportional coefficient is taken as the degree of interdependence between each string and each other string.

7. The data storage secure storage method based on encryption algorithm according to claim 1, It is characterized in that The method of determining the parameters in the Logistic function based on the data decryption degree of each character group and the data reasoning dependency of each string in each character group, and obtaining the value of the key when each character group is encrypted by using the Logistic function is: Performing maximum value normalization processing on the data inference dependencies of all strings in each character group, calculating the third quartile in the normalization result as the encryption adjustment coefficient of each character group, and taking the product of the mapping parameter and the encryption adjustment coefficient of each character group as the inference coefficient of each character group; The difference between 1 and the data decipherability of the previous character group of each character group is calculated, and the product of the inference coefficient of the previous character group of each character group, the data decipherability of the previous character group and the difference is used as the value of the key when encrypting each character group.

8. The data storage secure storage method based on encryption algorithm according to claim 1, It is characterized in that The method of using the ECC encryption algorithm to obtain the ciphertext data of each character group based on the value of the key when encrypting each character group is as follows: Each character group is used as encrypted plaintext, and the ECC encryption algorithm is used to encrypt the plaintext data based on the key value when each character group is encrypted.

Citation Information

Patent Citations

  • Combined secret key dynamic security management system

    CN102170357A

  • Data calling method and device and computer readable storage medium

    CN110781503A