A data security protection method for a digital commodity operation platform
By performing discrimination screening, encoding quantification and decomposition processing on the process data, the optimal unit vector is determined, and the component matrix is hashed and encrypted, which solves the problem of low complexity data being easily cracked and improves the security and reliability of the data. .
Patent Information
- Application Number
- CN202410931239.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-12
AI Technical Summary
In the existing technology, dimensional process data with small complexity and change degree has a small number of encrypted values after encryption, and the complexity is low. It is easy to be cracked by the rainbow table, and it is difficult to effectively protect data security.
By obtaining process data of different dimensions, determine the degree of distinction, filter low-discrimination data for data coding, quantification and whitening processing, perform data decomposition, determine the optimal preset unit vector, and hash the component matrix to encrypt the component matrix to improve data complexity and retain Statistical properties.
It improves the efficiency and security of data encryption, avoids easy cracking, and ensures the analyzability and reliability of data.
Smart Images

Figure CN118468323B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data security protection, and in particular to a data security protection method for a digital commodity operation platform. Background Art
[0002] With the acceleration of digital transformation, product operation platforms have become the core tools for enterprises to connect with users, analyze market trends, and optimize product strategies. Product operation platforms collect and analyze a large amount of process data on user behavior, such as click streams, browsing history, purchase records, etc., to provide personalized recommendations, optimize user experience, and formulate more accurate market strategies. Therefore, it is necessary to protect the click process data of relevant users.
[0003] In the related technology, data encryption is implemented by using hash encryption, which can retain the statistical characteristics of the process data itself and protect the process data from being restored. However, since the process data contains various information, the complexity and degree of change of information in different dimensions are different. This leads to the process data corresponding to the dimensions with small complexity and change being easy to be cracked by rainbow tables due to the small number of encrypted values and low complexity after encryption, making it difficult to protect the security of the data. Summary of the invention
[0004] In order to solve the technical problem that the process data corresponding to the dimension with small complexity and change degree in the related technology is easy to be cracked by rainbow table due to the small number of encrypted values and low complexity after encryption, and it is difficult to protect the security of data, the present invention provides a data security protection method for a digital commodity operation platform, and the technical scheme adopted is as follows:
[0005] The present invention proposes a data security protection method for a digital commodity operation platform, the method comprising:
[0006] Obtain process data of different dimensions for different users in a single click behavior; determine the discrimination of each dimension based on the character distribution and data length of the process data of all users in the same dimension;
[0007] According to the discrimination degree, low-discrimination data is obtained by screening from the process data; data encoding, quantization and whitening are performed on the low-discrimination data to obtain a low-discrimination whitened matrix; according to the statistical analysis of the elements under the same dimension in the low-discrimination whitened matrix, the original statistical sequence of the corresponding dimension is determined;
[0008] Determine any preset unit vector, perform data decomposition on the data of the same dimension in the low-resolution whitening matrix based on the preset unit vector to obtain decomposed data, perform statistical analysis on the decomposed data, and determine a decomposition statistical sequence;
[0009] Perform numerical difference analysis and vector similarity analysis on the original statistical sequence and the decomposed statistical sequence of each dimension to determine the preset unit vector that best retains the statistical analysis characteristics;
[0010] The decomposed data of all dimensions corresponding to the optimal preset unit vector are formed into a component matrix, and the component matrix is encrypted to obtain encrypted data.
[0011] Furthermore, the method for obtaining the discrimination degree of each dimension includes:
[0012] Determine the average length and length variance of all data in each dimension, and determine a length distinguishing factor according to the average length and length variance, wherein both the average length and the length variance are positively correlated with the length distinguishing factor;
[0013] Determine the character distinguishing factor based on the character distribution of all data under the same dimension;
[0014] The discrimination degree is determined by combining the length discrimination factor and the character discrimination factor, wherein the length discrimination factor and the character discrimination factor are positively correlated with the discrimination degree, and the value of the discrimination degree is a normalized value.
[0015] Furthermore, determining the character distinguishing factor according to the character distribution of all data under the same dimension includes:
[0016] Taking the process data as a character sequence, using a null character to complete a character sequence of a shorter length, and calculating a value of the character type at each index position in the sequence;
[0017] The numerical values of the character types at all index positions are averaged to obtain the character distinguishing factor.
[0018] Furthermore, filtering the process data to obtain low-discrimination data according to the discrimination degree includes:
[0019] The process data whose dimension discrimination is less than the preset discrimination threshold is regarded as low discrimination data.
[0020] Furthermore, the statistical analysis includes at least data mean, root mean square, character type variance, and the method for obtaining the original statistical sequence includes:
[0021] Obtain statistical data values of elements in the same dimension in the low-resolution whitening matrix after different statistical analyses;
[0022] The statistical data values under different statistical analyses are sorted based on a preset order to obtain the original statistical sequence.
[0023] Furthermore, the numerical difference analysis and vector similarity analysis are performed on the original statistical sequence and the decomposed statistical sequence of each dimension to determine the preset unit vector that best retains the statistical analysis characteristics, including:
[0024] Determine the retention rate of the statistical characteristics of the preset unit vector based on the difference analysis between the original statistical sequence and the decomposed statistical sequence in each dimension;
[0025] Determining the offset of the preset unit vector according to the similarity between the preset unit vector and the unit vector of each dimension corresponding to the low-resolution whitening matrix;
[0026] Calculating the product of the statistical characteristic retention rate and the deviation degree to obtain a decomposition characteristic index;
[0027] The preset unit vector with the largest decomposition characteristic index value is used as the optimal preset unit vector.
[0028] Furthermore, the method for obtaining the statistical characteristic retention rate of the preset unit vector includes:
[0029] Determine the absolute value of the difference between the original statistical sequence and the decomposed statistical sequence representing the same statistical analysis result, and perform maximum and minimum value normalization on the absolute value of the difference to obtain a statistical difference index of the corresponding statistical analysis under the corresponding dimension;
[0030] The mean of the statistical difference indicators of all statistical analyses under all dimensions is taken as the statistical characteristic retention rate of the corresponding preset unit vector.
[0031] Furthermore, the method for obtaining the offset of the preset unit vector includes:
[0032] Get the unit vector of all data in each dimension as the dimension unit vector;
[0033] Determine the cosine similarity between the dimension unit vector of each dimension and the preset unit vector as the dimension similarity index of the corresponding dimension;
[0034] The mean values of the dimension similarity indicators of all dimensions are negatively correlated to obtain the deviation degree.
[0035] Furthermore, the step of performing data decomposition on the data of the same dimension in the low-resolution whitening matrix based on the preset unit vector to obtain decomposed data includes:
[0036] Based on the preset unit vector, matrix orthogonal decomposition is performed on the data of the same dimension in the low-resolution whitening matrix to obtain decomposed data.
[0037] Furthermore, encrypting the component matrix to obtain encrypted data includes:
[0038] A hash encryption algorithm is used to perform hash encryption on the component matrix to obtain encrypted data.
[0039] The present invention has the following beneficial effects:
[0040] The embodiment of the present invention obtains process data of different dimensions under a single click behavior of different users; determines the discrimination of each dimension according to the character distribution and data length of the process data of all users in the same dimension. The acquisition of discrimination can be used to effectively distinguish low-discrimination data that is easy to be cracked, thereby realizing preliminary screening of data, directly encrypting high-discrimination data, and further transforming low-discrimination data to improve the encryption efficiency of overall data encryption. Through various statistical analyses, the original statistical sequence and the decomposed statistical sequence after data decomposition are determined, and then numerical difference analysis and vector similarity analysis are performed on the original statistical sequence and the decomposed statistical sequence to determine the optimal preset unit vector. The numerical difference analysis and vector similarity analysis can determine the similarity characteristics of the original statistical sequence and the decomposed statistical sequence, thereby increasing the complexity of the data while retaining as many statistical characteristics as possible to obtain a component matrix, encrypting the component matrix to obtain encrypted data. The encrypted data is encrypted data that retains statistical characteristics, and statistical analysis can be performed directly based on the encrypted data to avoid being easily cracked, thereby improving the security and reliability of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 A flow chart of a data security protection method for a digital commodity operation platform provided by an embodiment of the present invention;
[0043] Figure 2 A flow chart of a method for obtaining discrimination provided by an embodiment of the present invention;
[0044] Figure 3 A flow chart of a method for obtaining an optimal preset unit vector provided by one embodiment of the present invention;
[0045] Figure 4 A structural diagram of a data security protection system for a digital commodity operation platform provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the data security protection method of a digital commodity operation platform proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0047] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0048] The following is a detailed description of a method for protecting data security on a digital commodity operation platform provided by the present invention with reference to the accompanying drawings.
[0049] See also Figure 1 , which shows a flow chart of a data security protection method for a digital commodity operation platform provided by an embodiment of the present invention, the method comprising:
[0050] S101: Obtaining process data of different dimensions for different users in a single click behavior; determining the discrimination of each dimension according to the character distribution and data length of the process data of all users in the same dimension.
[0051] One implementation scenario of an embodiment of the present invention is that on a digital commodity operation platform, a user browses by clicking, and it is necessary to record the user's single click to facilitate subsequent data analysis of the digital commodity operation platform. For security reasons, the record needs to be encrypted.
[0052] In the related technology, the process of implementing data analysis can directly analyze the encrypted data. At this time, it is necessary to ensure that the encrypted data itself has statistical characteristics, that is, the statistical characteristics of the encrypted data are the same or similar to those of the original data. Therefore, hash encryption can be used to achieve this. Hash encryption can ensure the statistical characteristics of the analysis results while protecting the process data from being restored. In this way, since the user behavior numbers contain various information, the distinction and degree of change of information in different dimensions are different. This leads to the fact that the dimensional data with small distinction is too small after encryption, and it is easy to be cracked by rainbow tables, making it difficult to protect the security of the data. Therefore, the embodiment of the present invention increases the amount of data of the dimension with small distinction by data transformation, while ensuring that the impact on the original statistical characteristics is low, thereby ensuring statistical analysis while improving the security of the data. For details, please refer to the subsequent embodiments.
[0053] In the embodiment of the present invention, the user's click behavior data (Click Stream Data) is first collected through the website or client of the digital commodity operation platform and counted as process data, which represents the entire process of the user browsing the website or client of the operation platform.
[0054] The process data of the user in the embodiment of the present invention may specifically be, for example:
[0055] "f5dd685d-6b83-4e7d-8c37-df8797812075 222.68.172.190 2024-01-01 14:34:57 "GET / images / my.jpg HTTP / 1.1" 200 19939 "http: / / www. . " "Mozilla / 5.0 (Windows NT 6.1) WebKit / 537.36 (KHTML, like ) / 29.0.1547.66 / 537.36"".
[0056] Data analysis:
[0057] 1. User ID information-uid: f5dd685d-6b83-4e7d-8c37-df8797812075;
[0058] 2. Visitor IP address: 222.68.172.190;
[0059] 3. Request time: 2024-01-01 14:34:57;
[0060] 4. Request method: GET;
[0061] 5. Requested URL: / images / my.jpg;
[0062] 6. Request protocol: HTTP / 1.1;
[0063] 7. Response code: 200;
[0064] 8. Returned data traffic: 19939;
[0065] 9. Visitor's source URL: http: / / www. . ;
[0066] 10. Browser used by visitors: Mozilla / 5.0 (Windows NT 6.1) WebKit / 537.36(KHTML, like ) / 29.0.1547.66 / 537.36.
[0067] Therefore, the process data of the user is composed of a plurality of the above data packets connected in sequence. It should be noted that the process data of the user obtained in the embodiment of the present invention are all authorized by the relevant user.
[0068] When encrypting user process data in a traditional way, each dimension in the user process data is usually encrypted to protect the data, such as using hash operations to encrypt data. However, there are also simple dimensions such as "request method" and "response code". When encrypting data, the corresponding data has low discrimination, which leads to poor encryption effect and is easily cracked by rainbow tables. This makes the data security low. Therefore, it is necessary to combine the character distribution and data length of the process data of the same dimension to perform discrimination analysis of the data dimension.
[0069] Furthermore, combined with Figure 2 Conduct a specific analysis. Figure 2 A flow chart of a method for obtaining a discrimination degree provided in one embodiment of the present invention includes:
[0070] S201: Determine the average length and length variance of all data in each dimension, and determine a length discrimination factor according to the average length and the length variance, wherein both the average length and the length variance are positively correlated with the length discrimination factor.
[0071] The average length is the average length of the data characters. For example, if the response codes of multiple users' multiple clicks are "200, 3001, 3005, 400", the corresponding average length is 3.5, that is, the average length corresponding to the four response codes is 3.5 characters. The analysis of length variance is similar.
[0072] From this, it can be understood that the larger the average length, the more complex the corresponding data, that is, the higher the length discrimination factor, and the larger the length variance, the more discrete the data length distribution, that is, the more complex the data, the higher the length discrimination factor. Therefore, the average length and length variance are positively correlated with the length discrimination factor.
[0073] It should be noted that, in some embodiments of the present invention, a positive correlation relationship indicates that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship may be a multiplication relationship, an addition relationship, or the power of an exponential function, which is determined by actual application; a negative correlation relationship indicates that the dependent variable will decrease as the independent variable increases, and the dependent variable will increase as the independent variable decreases. It may be a subtraction relationship, a division relationship, etc., which is determined by actual application.
[0074] Therefore, the present invention can directly calculate the product of the average length and the length variance as the length distinguishing factor, or can also calculate the sum of the average length and the length variance as the length distinguishing factor, and there is no limitation on this.
[0075] S202: Determine a character distinguishing factor according to the character distribution of all data in the same dimension.
[0076] In the embodiment of the present invention, the change of characters is also an important indicator for differentiation, and thus, the embodiment of the present invention specifically analyzes the change of characters.
[0077] Furthermore, in some embodiments of the present invention, a character distinguishing factor is determined based on the character distribution of all data in the same dimension, including: taking the process data as a character sequence, using empty characters to complete character sequences of shorter lengths, and calculating the value of the character type at each index position in the sequence; and averaging the values of the character types at all index positions to obtain the character distinguishing factor.
[0078] Taking the response code of "200,3001,3005,400" as an example, the character sequence is
[200] ,
[3001] ,
[3005] and
[400] . It can be understood that due to the different character lengths, in order to perform specific analysis, the empty character "NULL" is used to padded them to the same length. The corresponding padded character sequence is: [200NULL],
[3001] ,
[3005] and [400NULL].
[0079] The index position is the position corresponding to the same index value in the character sequence. For example, when the index value is 1, the corresponding characters are "2, 3, 3, 4"; when the index value is 4, the corresponding characters are "NULL, 1, 5, NULL". The value of the character type corresponding to the index value 1 is 3, the value of the character type corresponding to the index value 4 is also 3, and the value of the character type corresponding to the index values 2 and 3 is 1. Then the values of the character types of all index positions are averaged, and the character distinction factor is 2.
[0080] It can be understood that the larger the value of the character differentiation factor is, the more complex the character distribution is at the same index position, that is, the more obvious the differentiation of the process data in the entire dimension is.
[0081] S203: Determine the discrimination degree by combining the length discrimination factor and the character discrimination factor, wherein the length discrimination factor and the character discrimination factor are positively correlated with the discrimination degree, and the value of the discrimination degree is a normalized value.
[0082] In the embodiment of the present invention, since the larger the value of the length distinction factor is, the more complex the corresponding dimension is from the analysis perspective of the character length, and the larger the value of the character distinction factor is, the more complex the corresponding dimension is from the perspective of the character type and distribution, the product of the length distinction factor and the character distinction factor can be calculated, and the product can be normalized to the maximum and minimum values to obtain the discrimination degree. The larger the discrimination degree is, the more complex the data changes of the overall dimension are. Therefore, the complexity of each dimension can be effectively analyzed.
[0083] S102: Filtering low-discrimination data from process data according to discrimination; performing data encoding quantization and whitening processing on the low-discrimination data to obtain a low-discrimination whitened matrix; determining an original statistical sequence of a corresponding dimension according to a statistical analysis of elements under the same dimension in the low-discrimination whitened matrix.
[0084] Among them, the process data corresponding to the dimension with low discrimination can be obtained according to the discrimination, and it can be used as the low discrimination data. Therefore, the embodiment of the present invention can set a preset discrimination threshold, and the process data with the discrimination of the dimension less than the preset discrimination threshold can be used as the low discrimination data. The preset discrimination threshold can be specifically, for example, 0.5. When the discrimination of the dimension is higher than this value, it is considered that the security of hashing and encrypting this dimension alone is better, and data security can be better protected. When it is lower than the preset discrimination threshold, it can be indicated that the security of the process data of this dimension when hashing and encrypting is poor, that is, when the dimension corresponding to the response code is 0.3, the process data corresponding to the response code can be used as the low discrimination data.
[0085] Among them, data coding and quantization can be specifically one-hot coding, and low-resolution data is quantized by one-hot coding, each data is converted into a vector value, and a matrix is arranged according to the dimension, and the matrix is whitened to obtain a low-resolution whitened matrix. It can be understood that data coding and quantization and whitening are both technologies well known to those skilled in the art, and will not be described in detail. It should be noted that data coding and quantization can also be a variety of other possible coding and quantization methods. The embodiment of the present invention only uses one-hot coding for specific exemplary analysis.
[0086] After obtaining the low-sensitivity whitening matrix, statistical analysis is performed on the elements under the same dimension in the low-sensitivity whitening matrix. In some embodiments of the present invention, the statistical analysis may at least include data mean, root mean square, character type variance, etc., to obtain statistical data values of the elements under the same dimension in the low-sensitivity whitening matrix after different statistical analyses; the statistical data values under different statistical analyses are sorted based on a preset order to obtain the original statistical sequence.
[0087] For each dimension corresponding to the low-discrimination whitening matrix, the statistical values of each dimension are calculated, where the statistical values include data mean, root mean square, variance of the number of elements of different types, and other statistical characteristics. The preset order can be, for example, a fixed order of data mean, root mean square, and variance of character types, and there is no restriction on this. Therefore, it can be recorded as .
[0088] in, Represents the data mean of all elements in the same dimension, represents the root mean square of all elements in the same dimension, Indicates that all elements in the same dimension are The values under statistical analysis.
[0089] It is understandable that when conducting data analysis on a digital commodity operation platform, it mainly analyzes various statistical characteristics between data. Therefore, while retaining the statistical characteristics, data changes and data encryption are performed on low-profile data, thereby facilitating subsequent data analysis and improving data security.
[0090] Therefore, the present invention performs statistical analysis on the elements in the same dimension in the low-resolution whitening matrix to obtain the original statistical sequence of the corresponding dimension.
[0091] S103: Determine any preset unit vector, perform data decomposition on the data of the same dimension in the low-resolution whitening matrix based on the preset unit vector to obtain decomposed data, perform statistical analysis on the decomposed data, and determine a decomposition statistical sequence.
[0092] Among them, the preset unit vector, that is, the unit vector whose length in the overall dimensional space is 1 and whose direction is the positive direction of different dimensions, can be used to achieve data decomposition of the low-resolution whitening matrix.
[0093] In the embodiment of the present invention, the preset unit vector can be used as the decomposition direction of the data, and the data of each dimension of the low-resolution whitening matrix can be decomposed. The data is decomposed into a matrix orthogonal decomposition, that is, the preset unit vector is used as a sub-matrix of the corresponding decomposition, so as to obtain another sub-matrix as the decomposition data. The corresponding decomposition data is expressed as a matrix whose horizontal length is the total number of all user flow data counted and the vertical length is 1, that is, its horizontal length is the same as the low-resolution whitening matrix length, and the vertical length is 1, which is expressed as In the formula, Represents the first decomposed data, Represents the second decomposed data, Represents the last decomposed data. It indicates the number of horizontal data in the low-discrimination whitening matrix, and also the total number of all user flow data counted.
[0094] Data decomposition can decompose matrices of different dimensions into different decomposed data, so that when the dimensions are relatively simple, the complexity of the relevant data can be further increased through data decomposition to ensure the security of encryption.
[0095] Since the data values in the embodiment of the present invention need to be adjusted but the data still retains the statistical characteristics, it is necessary to analyze the statistical characteristics of the corresponding decomposed data. The specific analysis process is similar to the statistical analysis process of the elements under the same dimension in the low-resolution whitening matrix, which will not be further elaborated. After the specific statistical analysis, the decomposition statistical sequence is obtained.
[0096] It should be noted that, in each dimension, each preset unit vector can obtain a corresponding decomposition data, that is, a corresponding decomposition statistical sequence.
[0097] S104: Performing numerical difference analysis and vector similarity analysis on the original statistical sequence and the decomposed statistical sequence of each dimension to determine a preset unit vector that best retains the statistical analysis characteristics.
[0098] In the embodiment of the present invention, combined with the analysis of the above steps, since each preset unit vector can obtain a corresponding decomposition data, that is, a corresponding decomposition statistical sequence, in order to select the preset unit vector with the best effect of retaining statistical characteristics, it is necessary to perform a difference analysis between the original statistical sequence and the decomposition statistical sequence.
[0099] The difference analysis specifically includes numerical difference analysis and vector similarity analysis. In some embodiments of the present invention, see Figure 3 , Figure 3 A flowchart of a method for obtaining an optimal preset unit vector provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, including:
[0100] S301: Determine the statistical characteristic retention rate of a preset unit vector based on the difference analysis between the original statistical sequence and the decomposed statistical sequence in each dimension.
[0101] Among them, the greater the difference between the original statistical sequence and the decomposed statistical sequence, the worse the corresponding statistical characteristics are retained. Therefore, the statistical characteristic retention rate is determined by difference analysis.
[0102] Furthermore, in some embodiments of the present invention, a method for obtaining the statistical characteristic retention rate of a preset unit vector includes: determining the absolute value of the difference between the original statistical sequence and the decomposed statistical sequence representing the results of the same statistical analysis, and normalizing the absolute value of the difference to the maximum and minimum values to obtain a statistical difference index of the corresponding statistical analysis under the corresponding dimension; and taking the mean of the statistical difference indexes of all statistical analyses under all dimensions as the statistical characteristic retention rate of the corresponding preset unit vector.
[0103] Among them, the same statistical analysis, that is, the difference between the data mean of the original statistical sequence and the data mean of the decomposed statistical sequence; the difference between the root mean square of the original statistical sequence and the root mean square of the decomposed statistical sequence; and the difference between the character type variance of the original statistical sequence and the character type variance of the decomposed statistical sequence, that is, the difference in the results obtained by the same type of statistical analysis, then the corresponding maximum and minimum value normalization method is used to obtain the statistical difference indicators of the corresponding statistical analysis under the corresponding dimension.
[0104] Therefore, the present invention combines the statistical difference indicators corresponding to all statistical analyses in all dimensions and calculates their mean as the statistical characteristic retention rate of the overall preset unit vector. The larger the statistical characteristic retention rate, the higher the statistical characteristic is still after the data decomposition of the corresponding preset unit vector.
[0105] S302: Determine the offset of the preset unit vector according to the similarity between the preset unit vector and the unit vector of each dimension corresponding to the low-resolution whitening matrix.
[0106] The deviation degree represents the characteristic corresponding to the similarity analysis and is used to implement the similarity analysis of data distribution.
[0107] Furthermore, in some embodiments of the present invention, a method for obtaining the offset of a preset unit vector includes: obtaining the unit vector of all data in each dimension as a dimensional unit vector; determining the cosine similarity between the dimensional unit vector of each dimension and the preset unit vector as a dimensional similarity index of the corresponding dimension; and negatively mapping the means of the dimensional similarity indexes of all dimensions to obtain the offset.
[0108] Among them, the negative correlation mapping is a mapping of negative correlation relationships. The present invention can first calculate the mean of the dimensional similarity index of all dimensions, and use the form of exp(-x) to implement the negative correlation mapping process, wherein exp represents an exponential function with a natural constant as the base, and x represents the mean of the dimensional similarity index of all dimensions.
[0109] Among them, the cosine similarity can be used to calculate the dimensional similarity index. It can be understood that the lower the cosine similarity between the dimensional unit vector and the preset unit vector, the larger the angle difference, which means that the larger the dimensional angle between the decomposed data and the original data, the greater the difference between the decomposed data and the original data, and the better the confidentiality after encryption. Therefore, it is necessary to perform negative correlation mapping on the dimensional similarity index to obtain the offset degree.
[0110] S303: Calculate the product of the statistical characteristic retention rate and the deviation degree to obtain a decomposition feature index; and use the preset unit vector with the largest value of the decomposition feature index as the optimal preset unit vector.
[0111] In the embodiment of the present invention, since the larger the statistical characteristic retention rate is, it means that after the data is decomposed by the corresponding preset unit vector, it still has higher statistical characteristics, and since the larger the offset value is, the better the confidentiality after encryption, the present invention can calculate the product of the statistical characteristic retention rate and the offset to obtain the decomposition feature index. The larger the decomposition feature index is, the better the effect of data decomposition corresponding to the preset unit vector is.
[0112] Therefore, the present invention can use the preset unit vector with the largest decomposition characteristic index value as the optimal preset unit vector, thereby obtaining the preset unit vector with the best statistical characteristic preservation and the best encryption security.
[0113] S105: The decomposed data of all dimensions corresponding to the optimal preset unit vector are formed into a component matrix, and data of the component matrix is encrypted to obtain encrypted data.
[0114] In the embodiment of the present invention, since the statistical characteristics of the decomposed data of all corresponding dimensions are retained optimally and the data complexity is high under the optimal preset unit vector, the encryption security is best. Therefore, the decomposed data of all dimensions can be combined into component matrices for specific analysis, and the component matrices can be directly hashed to obtain encrypted data. The encrypted data does not need to be restored to the original process data, and data statistical analysis can also be realized.
[0115] Of course, in other embodiments of the present invention, a variety of other possible data encryption methods may also be used. It should be noted that the encrypted data must still have the statistical characteristics of the original data.
[0116] It is understandable that the statistical characteristics of the data are still retained after hash encryption, which means that the analyzability of the data is retained. At the same time, it avoids directly leaking the original data with low discrimination, improves data security, prevents it from being easily cracked by rainbow tables, and improves the security of data with a smaller distribution range in process data.
[0117] The embodiment of the present invention obtains process data of different dimensions under a single click behavior of different users; determines the discrimination of each dimension according to the character distribution and data length of the process data of all users in the same dimension. The acquisition of discrimination can be used to effectively distinguish low-discrimination data that is easy to be cracked, thereby realizing preliminary screening of data, directly encrypting high-discrimination data, and further transforming low-discrimination data to improve the encryption efficiency of overall data encryption. Through various statistical analyses, the original statistical sequence and the decomposed statistical sequence after data decomposition are determined, and then numerical difference analysis and vector similarity analysis are performed on the original statistical sequence and the decomposed statistical sequence to determine the optimal preset unit vector. The numerical difference analysis and vector similarity analysis can determine the similarity characteristics of the original statistical sequence and the decomposed statistical sequence, thereby increasing the complexity of the data while retaining as many statistical characteristics as possible to obtain a component matrix, encrypting the component matrix to obtain encrypted data. The encrypted data is encrypted data that retains statistical characteristics, and statistical analysis can be performed directly based on the encrypted data to avoid being easily cracked, thereby improving the security and reliability of the data.
[0118] Some other embodiments of the present invention also provide a digital commodity operation platform data security protection system, see Figure 4 , Figure 4 This is a structural diagram of a data security protection system for a digital commodity operation platform provided by an embodiment of the present invention. The system 600 includes a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and executable on the processor 602. When the processor 602 executes the computer program 603, the steps of the data security protection method for a digital commodity operation platform as described above are implemented.
[0119] This embodiment also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement a data security protection method for a digital commodity operation platform provided in the above embodiment.
[0120] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement a data security protection method for a digital commodity operation platform provided in the above embodiment.
[0121] Among them, the system, computer-readable storage medium or computer program product provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0122] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0123] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A data security protection method for a digital commodity operation platform, characterized in that: The method comprises: Obtain process data of different dimensions for different users in a single click behavior; determine the discrimination of each dimension based on the character distribution and data length of the process data of all users in the same dimension; According to the discrimination degree, low-discrimination data is obtained by screening from the process data; data encoding, quantization and whitening are performed on the low-discrimination data to obtain a low-discrimination whitened matrix; according to the statistical analysis of the elements under the same dimension in the low-discrimination whitened matrix, the original statistical sequence of the corresponding dimension is determined; Determine any preset unit vector, perform data decomposition on the data of the same dimension in the low-resolution whitening matrix based on the preset unit vector to obtain decomposed data, perform statistical analysis on the decomposed data, and determine a decomposition statistical sequence; Perform numerical difference analysis and vector similarity analysis on the original statistical sequence and the decomposed statistical sequence of each dimension to determine the preset unit vector that best retains the statistical analysis characteristics; The decomposed data of all dimensions corresponding to the optimal preset unit vector are formed into a component matrix, and the component matrix is encrypted to obtain encrypted data; The method for obtaining the discrimination degree of each dimension includes: Determine the average length and length variance of all data in each dimension, and determine a length distinguishing factor according to the average length and length variance, wherein both the average length and the length variance are positively correlated with the length distinguishing factor; Determine the character distinguishing factor based on the character distribution of all data under the same dimension; Determine the discrimination degree by combining the length discrimination factor and the character discrimination factor, wherein the length discrimination factor and the character discrimination factor are positively correlated with the discrimination degree, and the value of the discrimination degree is a normalized value; The determining of the character distinguishing factor according to the character distribution of all data under the same dimension includes: Taking the process data as a character sequence, using a null character to complete the short-length character sequence, and calculating the value of the character type at each index position in the sequence; The numerical values of the character types at all index positions are averaged to obtain the character distinguishing factor; The performing of numerical difference analysis and vector similarity analysis on the original statistical sequence and the decomposed statistical sequence of each dimension to determine the preset unit vector that best retains the statistical analysis characteristics includes: Determine the retention rate of the statistical characteristics of the preset unit vector based on the difference analysis between the original statistical sequence and the decomposed statistical sequence in each dimension; Determining the offset of the preset unit vector according to the similarity between the preset unit vector and the unit vector of each dimension corresponding to the low-resolution whitening matrix; Calculating the product of the statistical characteristic retention rate and the deviation degree to obtain a decomposition characteristic index; The preset unit vector with the largest decomposition characteristic index value is used as the optimal preset unit vector.
2. A digital commodity operation platform data security protection method as claimed in claim 1, characterized in that: The low-discrimination data is obtained by screening the process data according to the discrimination degree, including: The process data whose dimension discrimination is less than the preset discrimination threshold is regarded as low discrimination data.
3. A digital commodity operation platform data security protection method as claimed in claim 1, characterized in that: The statistical analysis includes at least the data mean, root mean square, and character type variance, and the method for obtaining the original statistical sequence includes: Obtain statistical data values of elements in the same dimension in the low-resolution whitening matrix after different statistical analyses; The statistical data values under different statistical analyses are sorted based on a preset order to obtain the original statistical sequence.
4. A digital commodity operation platform data security protection method as claimed in claim 1, characterized in that: The method for obtaining the statistical characteristic retention rate of the preset unit vector includes: Determine the absolute value of the difference between the original statistical sequence and the decomposed statistical sequence representing the same statistical analysis result, and perform maximum and minimum value normalization on the absolute value of the difference to obtain a statistical difference index of the corresponding statistical analysis under the corresponding dimension; The mean of the statistical difference indicators of all statistical analyses under all dimensions is taken as the statistical characteristic retention rate of the corresponding preset unit vector.
5. A digital commodity operation platform data security protection method as claimed in claim 1, characterized in that: The method for obtaining the offset of the preset unit vector includes: Get the unit vector of all data in each dimension as the dimension unit vector; Determine the cosine similarity between the dimension unit vector of each dimension and the preset unit vector as the dimension similarity index of the corresponding dimension; The mean values of the dimension similarity indicators of all dimensions are negatively correlated to obtain the deviation degree.
6. A digital commodity operation platform data security protection method as claimed in claim 1, characterized in that: The step of performing data decomposition on the data of the same dimension in the low-resolution whitening matrix based on the preset unit vector to obtain decomposed data includes: Based on the preset unit vector, matrix orthogonal decomposition is performed on the data of the same dimension in the low-resolution whitening matrix to obtain decomposed data.
7. A digital commodity operation platform data security protection method as claimed in claim 1, characterized in that: Encrypting the component matrix to obtain encrypted data includes: A hash encryption algorithm is used to perform hash encryption on the component matrix to obtain encrypted data.
