Internet e-commerce platform marketing data encryption method and system, and storage medium
By using the combination of dual encryption algorithms and hashing algorithms and blockchain on the Internet e-commerce platform, the problem of difficult to balance data encryption efficiency and security in the existing technology is solved, and efficient and secure data storage and management are achieved.
Patent Information
- Application Number
- CN202411094215.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2025-03-18
AI Technical Summary
The encryption technology of existing Internet e-commerce platforms cannot meet the dual requirements of data encryption efficiency and security at the same time, resulting in a large consumption of computing resources.
The dual encryption algorithm is adopted, combining the high efficiency of AES and the high security of RSA, and the marketing data is encrypted, and the hashing algorithm and blockchain access control policy are stored and managed to ensure the security and reliability of the data.
On the premise of ensuring data security, encryption efficiency is improved, computing resources consumption is reduced, and data is highly secure, transparent and efficient storage is achieved.
Smart Images

Figure CN119646889A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data encryption technology, and in particular to an Internet e-commerce platform marketing data encryption method, system and storage medium. Background Art
[0002] In existing Internet e-commerce platforms, existing encryption technologies often cannot meet the dual requirements of e-commerce platforms for marketing data encryption efficiency and security. How to improve encryption efficiency while ensuring data security has become an urgent problem to be solved.
[0003] In view of the problems existing in the prior art, the present invention proposes an Internet e-commerce platform marketing data encryption method, system and storage medium; the method adopts an advanced double encryption algorithm, aiming to utilize the high efficiency of AES and the high security of RSA to ensure that the encryption efficiency is improved and the consumption of computing resources is reduced under the premise of data security; in addition, the present invention also relates to a storage medium for storing encrypted marketing data, which utilizes a hash algorithm and a blockchain-based access control strategy to achieve highly secure, transparent and efficient data storage, thereby ensuring the security and reliability of encrypted data. Summary of the invention
[0004] The purpose of the present invention is to provide an Internet e-commerce platform marketing data encryption method, system and storage medium to address the deficiencies in the background technology.
[0005] The object of the present invention can be achieved by the following technical solutions: A method for encrypting marketing data of an Internet e-commerce platform, comprising receiving marketing data from an Internet e-commerce platform;
[0006] Preprocessing the received marketing data to obtain marketing processing data;
[0007] Encrypting the marketing processing data using a preset encryption algorithm to obtain marketing encrypted data;
[0008] The marketing encrypted data is stored, and the hash value corresponding to the marketing encrypted data is calculated using a hash algorithm, and the hash value is used as the storage address; the access control policy is automatically executed by deploying smart contracts on the blockchain, authenticating the users who apply to access the marketing encrypted data and verifying whether the marketing encrypted data has been tampered with during transmission;
[0009] Regularly evaluate the performance of the encryption system, obtain performance metrics of the encryption system, calculate the performance score of the encryption system and compare it with the standard score, and adjust the encryption system based on the evaluation results.
[0010] Preferably, the marketing data includes but is not limited to user data, transaction data, consumer behavior data and market data.
[0011] Preferably, preprocessing the received marketing data specifically includes: removing duplicate data, processing missing values by filling, deleting or interpolating, correcting spelling errors and typing errors, normalizing the marketing data, and converting it into a standard format to obtain marketing processing data, the standard format includes but is not limited to csv format and json format.
[0012] Preferably, the preset encryption algorithm includes a symmetric encryption algorithm and an asymmetric encryption algorithm, specifically including:
[0013] The marketing processing data is preliminarily encrypted using a symmetric encryption algorithm based on the Advanced Encryption Standard AES-128 to obtain marketing encrypted data;
[0014] Initial transformation: Split the plaintext, i.e., marketing processing data, into independent plaintext blocks. Each plaintext block is 128 bits long, i.e., 16 bytes. If the last plaintext block is less than 16 bytes, it is padded with the Padding attribute.
[0015] Organize all plaintext blocks into a 4x4 matrix, labeled as the state matrix;
[0016] Perform a round key addition operation on the state matrix, perform an XOR operation on each byte in the state matrix and the randomly generated initial key to obtain a first key addition matrix;
[0017] n rounds of cyclic encryption: perform byte substitution, row shift, column confusion and round key addition operations on the target matrix;
[0018] Among them, in the first round of cyclic encryption, the target matrix is the first key addition matrix obtained by the initial transformation; in the subsequent n-1 rounds of cyclic encryption, the target matrix is the second key addition matrix obtained by the previous round of cyclic encryption;
[0019] Perform byte substitution operation on the target matrix, use each byte in the target matrix as an index, find its corresponding value from a substitution table with 256 values, and replace the value of the byte with its corresponding value to obtain a byte substitution output matrix;
[0020] Perform row shift operation on the rows of the byte substitution output matrix. The first row is not shifted, the second row is shifted left by 1 byte, the third row is shifted left by 2 bytes, and the fourth row is shifted left by 3 bytes to obtain a row shift output matrix.
[0021] Performing a column obfuscation operation on the columns of the row shift output matrix, and performing a multiplication operation using a fixed matrix to obtain a column obfuscated output matrix; wherein the fixed matrix is given according to an actual encryption algorithm;
[0022] Performing a round key addition operation on the column obfuscation output matrix, performing an XOR operation on the column obfuscation output matrix and the round key, and obtaining a second key addition matrix; wherein the round key is obtained by performing key expansion on the initial key through a key scheduling algorithm to generate multiple round keys, and the length of the round key is equal to the group length;
[0023] The last round of encryption: obtain the second key addition matrix after n rounds of encryption, perform only byte substitution, row shift and round key addition operations on the second key addition matrix, and output the encrypted matrix as ciphertext, i.e., marketing encrypted data;
[0024] The encryption process is:
[0025] C=E(K,P);
[0026] In the formula, C is the encrypted ciphertext, K is the key, P is the plaintext, and E is the encryption function.
[0027] Preferably, the AES key is encrypted based on an asymmetric encryption algorithm based on RSA;
[0028] First, you need to generate a pair of asymmetric keys, namely a public key and a private key; the public key will be used for encryption, while the private key is used for decryption;
[0029] Randomly select a pair of different prime numbers p and q, and calculate the product n of p and q:
[0030] n = pq;
[0031] Where n is the key length;
[0032] The larger the p and q are, the larger their product n is, and the more secure the corresponding private key and public key are;
[0033] Compute the Euler function for n:
[0034] f(n)=(p-1)(q-1);
[0035] Where f(n) is the Euler function;
[0036] Choose an integer e that is relatively prime to f(n), and 1 <e<f(n);
[0037] Calculate the modular inverse element d of e with respect to f(n); where the modular inverse element refers to an integer d such that the remainder when ed is divided by f(n) is 1;
[0038] The calculation formula is:
[0039] d=e -1 mod(p-1)(q-1);
[0040] In the formula, d and e are the relationship between modular multiplication inverse elements. The modular multiplication inverse element is calculated using the Euclidean algorithm;
[0041] Let (e,n) be the public key KU, (d,n) be the private key KR and keep them invisible, expressed as: KU = (e,n), KR = (d,n);
[0042] The AES key K is converted into a format suitable for RSA encryption through encoding, and the AES key is encrypted using the obtained public key KU=(e,n). The encryption process is:
[0043] G=K e modn;
[0044] In the formula, K is the AES key, and G is the encrypted AES key;
[0045] Use the private key KR = (d, n) to decrypt the encrypted AES key G to obtain the AES key K. The decryption process is:
[0046] K=G d modn;
[0047] According to the obtained AES key K, the marketing encrypted data is decrypted to obtain the marketing processed data. The decryption process is:
[0048] P = D(K,C);
[0049] In the formula, D is the decryption function, P is the plaintext, i.e., marketing processed data, and C is the ciphertext, i.e., marketing encrypted data.
[0050] Preferably, the implementation method for storing and managing marketing encrypted data is as follows:
[0051] The marketing encrypted data is stored, the marketing encrypted data is calculated using a hash algorithm, the marketing encrypted data is used as an independent variable, and the calculated hash value is the storage address of the marketing encrypted data; the marketing encrypted data and its corresponding hash value are obtained, the marketing encrypted data is stored under the blockchain, and the hash value of the marketing encrypted data is stored on the blockchain;
[0052] By deploying smart contracts on the blockchain, access control policies are automatically executed in the form of code; smart contracts follow the principle of least privilege and only authorize users with the permissions necessary to complete their work, and only users who have passed identity authentication will be authorized.
[0053] Preferably, whenever a user applies to access marketing encrypted data, the user applying for access is authenticated and his / her authority is confirmed; data encrypted by a public key can only be decrypted using the corresponding unique private key, and if the decryption fails, the user's identity verification fails; if the decryption succeeds, the user's identity verification is confirmed to be successful, and the user who successfully authenticates the data is granted corresponding access rights to the data;
[0054] After successful user identity authentication, the marketing encrypted data requested for access is obtained, the hash value of the obtained marketing encrypted data is recalculated, and compared with the stored hash value; if the two hash values are the same, it means that the marketing encrypted data transmission is correct; otherwise, it is confirmed that the marketing encrypted data has been tampered with during the transmission process, and the use of the marketing encrypted data is immediately stopped, an alarm is issued, and the reason for the tampering of the marketing encrypted data is investigated, and the marketing encrypted data is re-encrypted and transmitted.
[0055] Preferably, the implementation method for evaluating the encryption system is as follows:
[0056] Perform encryption and decryption operations, record the duration of the entire encryption and decryption process, and obtain the latency and throughput of the encryption system;
[0057] Normalize the obtained latency and throughput to calculate the performance score of the encryption system;
[0058] The calculation formula is:
[0059] F=w S ·S+w T T;
[0060] Among them, F is the performance score of the encryption system, S is the delay of the encryption system, and T represents the throughput; w S 、w T are the weight coefficients corresponding to delay and throughput respectively, and w S +w T =1;
[0061] The obtained performance score is compared with the standard score. If the performance score is ≥ the standard score, the performance of the encryption system is good and there is no need to improve the encryption system for the time being. If the performance score is < the standard score, it is necessary to update the system configuration and improve the encryption algorithm in the encryption system to increase the encryption processing speed. Among them, based on many encryption systems in actual applications, the average value of their system performance scores is calculated as the standard score.
[0062] In order to solve the problem, the present invention also discloses an Internet e-commerce platform marketing data encryption system, comprising:
[0063] A data collection module, used to receive marketing data from Internet e-commerce platforms;
[0064] Data preprocessing module, used for preprocessing marketing data;
[0065] An encryption module, used to encrypt the marketing processing data using a preset encryption algorithm to obtain marketing encrypted data;
[0066] The storage management module is used to store the marketing encrypted data, calculate the hash value corresponding to the marketing encrypted data using the hash algorithm, and use the hash value as the storage address; automatically execute the access control policy by deploying smart contracts on the blockchain, authenticate the users who apply to access the marketing encrypted data, and verify whether the marketing encrypted data has been tampered with during transmission;
[0067] The system evaluation module is used to regularly evaluate the performance of the encryption system, obtain performance metrics of the encryption system, calculate the performance score of the encryption system, and adjust the encryption system according to the evaluation results.
[0068] Compared with the existing solutions, the present invention achieves the following beneficial effects:
[0069] The present invention receives marketing data from an Internet e-commerce platform, pre-processes the received marketing data, obtains marketing processing data, ensures the accuracy and consistency of the data, and thus improves the overall quality of the data. The pre-processed marketing processing data is also easier to protect by applying encryption algorithms, thereby preventing unauthorized access and data leakage.
[0070] The present invention uses a preset encryption algorithm to encrypt the marketing processing data to obtain marketing encrypted data, specifically including using an AES key to encrypt the marketing processing data to obtain marketing encrypted data, and then using an RSA public key to encrypt the AES key; ensuring that even if the AES key is intercepted during transmission, the original AES key cannot be decrypted without the corresponding RSA private key, thereby ensuring the security of the marketing encrypted data;
[0071] The present invention manages the marketing encrypted data by storing it, including calculating its hash value using a hash algorithm and using the hash value as a storage address, which not only reduces the storage space occupied but also improves the efficiency of data retrieval; uses blockchain to store the marketing encrypted data to ensure the security and transparency of the data; implements strict identity authentication and marketing encrypted data transmission verification, which is conducive to ensuring the originality and integrity of the data and preventing the data from being illegally accessed or tampered with;
[0072] Through regular performance evaluation, the present invention can discover efficiency problems in encryption algorithms, such as too slow encryption and decryption speed or too high resource consumption; based on this, targeted optimization and improvement can be carried out to improve the performance and response speed of the system and ensure that the encryption system meets regulatory standards. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] The present invention will be further described below in conjunction with the accompanying drawings.
[0074] Figure 1 The present invention is a flow chart of a method for encrypting marketing data on an Internet e-commerce platform.
[0075] Figure 2 This is a module block diagram of an Internet e-commerce platform marketing data encryption system of the present invention. DETAILED DESCRIPTION
[0076] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0077] Embodiment 1, as Figure 1 As shown, a method for encrypting marketing data on an Internet e-commerce platform includes:
[0078] Receive marketing data from Internet e-commerce platforms;
[0079] Preprocessing the received marketing data to obtain marketing processing data;
[0080] Encrypting the marketing processing data using a preset encryption algorithm to obtain marketing encrypted data;
[0081] The marketing encrypted data is stored, and the hash value corresponding to the marketing encrypted data is calculated using a hash algorithm, and the hash value is used as the storage address; the access control policy is automatically executed by deploying smart contracts on the blockchain, authenticating the users who apply to access the marketing encrypted data and verifying whether the marketing encrypted data has been tampered with during transmission;
[0082] Regularly evaluate the performance of the encryption system, obtain performance metrics of the encryption system, calculate the performance score of the encryption system and compare it with the standard score, and adjust the encryption system based on the evaluation results.
[0083] In some preferred embodiments, marketing data includes, but is not limited to, user data, transaction data, consumer behavior data, and market data;
[0084] User data includes the user’s name, address, telephone number, and email address;
[0085] Transaction data includes the user’s purchase history, shopping cart contents, payment method and amount;
[0086] Consumer behavior data includes users’ browsing history, search history, click behavior, and page dwell time;
[0087] Market data includes industry growth rate, market share distribution, and market demand for industry products.
[0088] The preprocessing of the received marketing data specifically includes: removing duplicate data, processing missing values by filling, deleting or interpolating, correcting spelling errors and typing errors, normalizing the marketing data, and converting it into a standard format to obtain marketing processing data. The standard format includes but is not limited to csv format and json format.
[0089] In this solution, the received marketing data is preprocessed to improve the availability and value of the marketing data, lay a solid foundation for subsequent encryption processing and analysis applications, and improve the encryption processing rate.
[0090] In some preferred embodiments, the preset encryption algorithm includes a symmetric encryption algorithm and an asymmetric encryption algorithm, specifically including:
[0091] The marketing processing data is preliminarily encrypted using a symmetric encryption algorithm based on the Advanced Encryption Standard AES-128 to obtain marketing encrypted data;
[0092] Initial transformation: Split the plaintext, i.e., marketing processing data, into independent plaintext blocks. Each plaintext block is 128 bits long, i.e., 16 bytes. If the last plaintext block is less than 16 bytes, it is padded with the Padding attribute.
[0093] Organize all plaintext blocks into a 4x4 matrix, labeled as the state matrix;
[0094] Perform a round key addition operation on the state matrix, perform an XOR operation on each byte in the state matrix and the randomly generated initial key to obtain a first key addition matrix;
[0095] n rounds of cyclic encryption: perform byte substitution, row shift, column confusion and round key addition operations on the target matrix;
[0096] Among them, in the first round of cyclic encryption, the target matrix is the first key addition matrix obtained by the initial transformation; in the subsequent n-1 rounds of cyclic encryption, the target matrix is the second key addition matrix obtained by the previous round of cyclic encryption;
[0097] Perform byte substitution operation on the target matrix, use each byte in the target matrix as an index, find its corresponding value from a substitution table with 256 values, and replace the value of the byte with its corresponding value to obtain a byte substitution output matrix;
[0098] Perform row shift operation on the rows of the byte substitution output matrix. The first row is not shifted, the second row is shifted left by 1 byte, the third row is shifted left by 2 bytes, and the fourth row is shifted left by 3 bytes to obtain a row shift output matrix.
[0099] Performing a column obfuscation operation on the columns of the row shift output matrix, and performing a multiplication operation using a fixed matrix to obtain a column obfuscated output matrix; wherein the fixed matrix is given according to an actual encryption algorithm;
[0100] Performing a round key addition operation on the column obfuscation output matrix, performing an XOR operation on the column obfuscation output matrix and the round key, and obtaining a second key addition matrix; wherein the round key is obtained by performing key expansion on the initial key through a key scheduling algorithm to generate multiple round keys, and the length of the round key is equal to the group length;
[0101] The last round of encryption: obtain the second key addition matrix after n rounds of encryption, perform only byte substitution, row shift and round key addition operations on the second key addition matrix, and output the encrypted matrix as ciphertext, i.e., marketing encrypted data;
[0102] The encryption process is:
[0103] C=E(K,P);
[0104] In the formula, C is the encrypted ciphertext, K is the key, P is the plaintext, and E is the encryption function;
[0105] In this solution, AES supports key lengths of 128 bits, 192 bits, and 256 bits, and adopts a fixed and complex algorithm structure, such as byte replacement, row shift, column confusion and other multiple operations, which increases the difficulty of cracking the encryption algorithm, makes it easy to implement efficient encryption on different hardware and software platforms, and has good compatibility.
[0106] In some preferred embodiments, the AES key is encrypted based on an asymmetric encryption algorithm based on RSA;
[0107] First, you need to generate a pair of asymmetric keys, namely a public key and a private key; the public key will be used for encryption, while the private key is used for decryption;
[0108] Randomly select a pair of different prime numbers p and q, and calculate the product n of p and q:
[0109] n = pq;
[0110] Where n is the key length;
[0111] The larger the p and q are, the larger their product n is, and the more secure the corresponding private key and public key are;
[0112] Compute the Euler function for n:
[0113] f(n)=(p-1)(q-1);
[0114] Where f(n) is the Euler function;
[0115] Choose an integer e that is relatively prime to f(n), and 1 <e<f(n);
[0116] Calculate the modular inverse element d of e with respect to f(n); where the modular inverse element refers to an integer d such that the remainder when ed is divided by f(n) is 1;
[0117] The calculation formula is:
[0118] d=e -1 mod(p-1)(q-1);
[0119] In the formula, d and e are the relationship between modular multiplication inverse elements. The modular multiplication inverse element is calculated using the Euclidean algorithm;
[0120] Let (e,n) be the public key KU, (d,n) be the private key KR and keep them invisible, expressed as: KU = (e,n), KR = (d,n);
[0121] The AES key K is converted into a format suitable for RSA encryption through encoding, and the AES key is encrypted using the obtained public key KU=(e,n). The encryption process is:
[0122] G=K e modn;
[0123] In the formula, K is the AES key, and G is the encrypted AES key;
[0124] Use the private key KR = (d, n) to decrypt the encrypted AES key G to obtain the AES key K. The decryption process is:
[0125] K=G d modn;
[0126] According to the obtained AES key K, the marketing encrypted data is decrypted to obtain the marketing processed data. The decryption process is:
[0127] P = D(K,C);
[0128] In the formula, D is the decryption function, P is the plaintext, i.e., the marketing processed data, and C is the ciphertext, i.e., the marketing encrypted data;
[0129] In this solution, the RSA asymmetric encryption algorithm is used to encrypt the AES key, which not only improves the security of data transmission, but also solves the key distribution problem of AES, providing powerful encryption capabilities and a wide range of application scenarios.
[0130] In some preferred embodiments, the marketing encrypted data is stored, the marketing encrypted data is calculated using a hash algorithm, the marketing encrypted data is used as an independent variable, and the calculated hash value is the storage address of the marketing encrypted data; the marketing encrypted data and its corresponding hash value are obtained, the marketing encrypted data is stored under the blockchain, and the hash value of the marketing encrypted data is stored on the blockchain;
[0131] By deploying smart contracts on the blockchain, access control policies are automatically executed in the form of code; smart contracts follow the principle of least privilege, authorizing users only to the permissions necessary to complete their work, and only users who have passed identity verification will be authorized;
[0132] Whenever a user applies to access marketing encrypted data, the user applying for access is authenticated and his / her authority is confirmed; data encrypted by the public key can only be decrypted using the corresponding unique private key. If the decryption fails, the user's identity verification fails; if the decryption succeeds, the user's identity verification is confirmed to be successful, and the user who successfully authenticated is granted the corresponding data access authority;
[0133] After the user's identity authentication is successful, the marketing encrypted data requested for access is obtained, the hash value of the obtained marketing encrypted data is recalculated, and compared with the stored hash value; if the two hash values are the same, it means that the marketing encrypted data has been transmitted correctly; otherwise, it is confirmed that the marketing encrypted data has been tampered with during the transmission process, and the use of the marketing encrypted data is immediately stopped, an alarm is issued, and the reason for the tampering of the marketing encrypted data is investigated, and the marketing encrypted data is re-encrypted and transmitted;
[0134] In this solution, the marketing encrypted data is stored and managed, including using a hash algorithm to calculate its hash value and using the hash value as the storage address. This not only reduces the storage space occupied, but also improves the efficiency of data retrieval; the marketing encrypted data is stored in the blockchain to ensure the security and transparency of the data; and strict identity authentication and marketing encrypted data transmission verification are implemented to ensure the security and accuracy of the marketing data and prevent the data from being illegally accessed or tampered with.
[0135] In some preferred implementations, the performance of the encryption system is evaluated regularly, performance metrics of the encryption system are obtained, the performance score of the encryption system is calculated and compared with the standard score, and the encryption system is adjusted according to the evaluation results; wherein the performance metrics include latency and throughput;
[0136] Perform encryption and decryption operations, record the duration of the entire encryption and decryption process, and obtain the latency and throughput of the encryption system;
[0137] Normalize the obtained latency and throughput to calculate the performance score of the encryption system;
[0138] The calculation formula is:
[0139] F=w S ·S+w T T;
[0140] Among them, F is the performance score of the encryption system, S is the delay of the encryption system, and T represents the throughput; w S 、w T are the weight coefficients corresponding to delay and throughput respectively, and w S +w T =1;
[0141] The obtained performance score is compared with the standard score. If the performance score is ≥ the standard score, the performance of the encryption system is good and there is no need to improve the encryption system for the time being. If the performance score is < the standard score, it is necessary to update the system configuration and improve the encryption algorithm in the encryption system to increase the encryption processing speed. Among them, according to many encryption systems in actual applications, the average value of their system performance scores is calculated as the standard score.
[0142] In this solution, through regular performance evaluation, efficiency problems in the encryption algorithm can be discovered, such as too slow encryption and decryption speed or too high resource consumption; timely identification and resolution of these problems can effectively improve the overall performance and response speed of the system.
[0143] Embodiment 2, as Figure 2 As shown, a marketing data encryption system for an Internet e-commerce platform includes:
[0144] A data collection module, used to receive marketing data from Internet e-commerce platforms;
[0145] Data preprocessing module, used for preprocessing marketing data;
[0146] An encryption module, used to encrypt the marketing processing data using a preset encryption algorithm to obtain marketing encrypted data;
[0147] The storage management module is used to store the marketing encrypted data, calculate the hash value corresponding to the marketing encrypted data using the hash algorithm, and use the hash value as the storage address; automatically execute the access control policy by deploying smart contracts on the blockchain, authenticate the users who apply to access the marketing encrypted data, and verify whether the marketing encrypted data has been tampered with during transmission;
[0148] The system evaluation module is used to regularly evaluate the performance of the encryption system, obtain the performance measurement indicators of the encryption system, calculate the performance score of the encryption system and compare it with the standard score, and adjust the encryption system according to the evaluation results.
[0149] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0150] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for encrypting marketing data on an Internet e-commerce platform, characterized in that: include Receive marketing data from Internet e-commerce platforms; Preprocessing the received marketing data to obtain marketing processing data; Encrypting the marketing processing data using a preset encryption algorithm to obtain marketing encrypted data; The marketing encrypted data is stored, and a hash value corresponding to the marketing encrypted data is calculated using a hash algorithm, and the hash value is used as a storage address; By deploying smart contracts on the blockchain to automatically execute access control policies, users who apply to access marketing encrypted data can be authenticated and the marketing encrypted data can be verified whether it has been tampered with during transmission; Regularly evaluate the performance of the encryption system, obtain performance metrics of the encryption system, calculate the performance score of the encryption system and compare it with the standard score, and adjust the encryption system based on the evaluation results.
2. The method for encrypting marketing data of an Internet e-commerce platform according to claim 1, characterized in that: Marketing data includes, but is not limited to, user data, transaction data, consumer behavior data, and market data.
3. The method for encrypting marketing data of an Internet e-commerce platform according to claim 1, characterized in that: The preprocessing of the received marketing data specifically includes: removing duplicate data, processing missing values by filling, deleting or interpolating, correcting spelling errors and typing errors, normalizing the marketing data, and converting it into a standard format to obtain marketing processing data. The standard format includes but is not limited to csv format and json format.
4. The method for encrypting marketing data of an Internet e-commerce platform according to claim 1, characterized in that: The preset encryption algorithms include symmetric encryption algorithms and asymmetric encryption algorithms, including: The marketing processing data is preliminarily encrypted using a symmetric encryption algorithm based on the Advanced Encryption Standard AES-128 to obtain marketing encrypted data; Initial transformation: Split the plaintext, i.e., marketing processing data, into independent plaintext blocks. Each plaintext block is 128 bits long, i.e., 16 bytes. If the last plaintext block is less than 16 bytes, it is padded with the Padding attribute. Organize all plaintext blocks into a 4x4 matrix, labeled as the state matrix; Perform a round key addition operation on the state matrix, perform an XOR operation on each byte in the state matrix and the randomly generated initial key to obtain a first key addition matrix; n rounds of cyclic encryption: perform byte substitution, row shift, column confusion and round key addition operations on the target matrix; Among them, in the first round of cyclic encryption, the target matrix is the first key addition matrix obtained by the initial transformation; in the subsequent n-1 rounds of cyclic encryption, the target matrix is the second key addition matrix obtained by the previous round of cyclic encryption; Perform byte substitution operation on the target matrix, use each byte in the target matrix as an index, find its corresponding value from a substitution table with 256 values, and replace the value of the byte with its corresponding value to obtain a byte substitution output matrix; Perform row shift operation on the rows of the byte substitution output matrix. The first row is not shifted, the second row is shifted left by 1 byte, the third row is shifted left by 2 bytes, and the fourth row is shifted left by 3 bytes to obtain a row shift output matrix. Performing a column obfuscation operation on the columns of the row shift output matrix, and performing a multiplication operation using a fixed matrix to obtain a column obfuscated output matrix; wherein the fixed matrix is given according to an actual encryption algorithm; Performing a round key addition operation on the column obfuscation output matrix, performing an XOR operation on the column obfuscation output matrix and the round key, and obtaining a second key addition matrix; wherein the round key is obtained by performing key expansion on the initial key through a key scheduling algorithm to generate multiple round keys, and the length of the round key is equal to the group length; The last round of encryption: obtain the second key addition matrix after n rounds of encryption, perform only byte substitution, row shift and round key addition operations on the second key addition matrix, and output the encrypted matrix as ciphertext, i.e., marketing encrypted data; The encryption process is: C=E(K,P); In the formula, C is the encrypted ciphertext, K is the key, P is the plaintext, and E is the encryption function.
5. The method for encrypting marketing data of an Internet e-commerce platform according to claim 4, characterized in that: Encrypt the AES key based on the RSA asymmetric encryption algorithm; First, you need to generate a pair of asymmetric keys, namely a public key and a private key; the public key will be used for encryption, while the private key is used for decryption; Randomly select a pair of different prime numbers p and q, and calculate the product n of p and q: n = pq; Where n is the key length; The larger the p and q are, the larger their product n is, and the more secure the corresponding private key and public key are; Compute the Euler function for n: f(n)=(p-1)(q-1); Where f(n) is the Euler function; Choose an integer e that is relatively prime to f(n), and 1 <e<f(n); Calculate the modular inverse element d of e with respect to f(n); where the modular inverse element refers to an integer d such that the remainder when ed is divided by f(n) is 1; The calculation formula is: d=e -1 mod(p-1)(q-1); In the formula, d and e are the relationship between modular multiplication inverse elements. The modular multiplication inverse element is calculated using the Euclidean algorithm; Let (e,n) be the public key KU, (d,n) be the private key KR and keep them invisible, expressed as: KU = (e,n), KR = (d,n); The AES key K is converted into a format suitable for RSA encryption through encoding, and the AES key is encrypted using the obtained public key KU=(e,n). The encryption process is: G=K e modern; In the formula, K is the AES key, and G is the encrypted AES key; Use the private key KR = (d, n) to decrypt the encrypted AES key G to obtain the AES key K. The decryption process is: K=G d modern; According to the obtained AES key K, the marketing encrypted data is decrypted to obtain the marketing processed data. The decryption process is: P = D(K,C); In the formula, D is the decryption function, P is the plaintext, i.e., marketing processed data, and C is the ciphertext, i.e., marketing encrypted data.
6. The method for encrypting marketing data of an Internet e-commerce platform according to claim 5, characterized in that: The implementation method for storage management of marketing encrypted data is as follows: The marketing encrypted data is stored, and the marketing encrypted data is calculated using a hash algorithm, the marketing encrypted data is used as an independent variable, and the calculated hash value is the storage address of the marketing encrypted data; Obtaining marketing encrypted data and its corresponding hash value, storing the marketing encrypted data under the blockchain, and storing the hash value of the marketing encrypted data on the blockchain; By deploying smart contracts on the blockchain, access control policies are automatically executed in the form of code; smart contracts follow the principle of least privilege and only authorize users with the permissions necessary to complete their work, and only users who have passed identity authentication will be authorized.
7. The method for encrypting marketing data of an Internet e-commerce platform according to claim 6, characterized in that: Whenever a user applies to access marketing encrypted data, the user applying for access is authenticated and their permissions are confirmed; Data encrypted with a public key can only be decrypted using the corresponding unique private key. If the decryption fails, the user identity verification fails. If the decryption is successful, the user identity verification is confirmed to be successful, and the user who has successfully authenticated is authorized to have the corresponding data access rights; After the user's identity verification is successful, the marketing encrypted data requested for access is obtained, the hash value of the obtained marketing encrypted data is recalculated, and compared with the stored hash value; if the two hash values are the same, it means that the marketing encrypted data transmission is correct; Otherwise, it is confirmed that the marketing encrypted data has been tampered with during the transmission process, and the use of the marketing encrypted data is stopped immediately. An alarm is issued and the reason why the marketing encrypted data has been tampered with is investigated. The marketing encrypted data is re-encrypted and transmitted.
8. The method for encrypting marketing data of an Internet e-commerce platform according to claim 7, characterized in that: The implementation method for evaluating encryption systems is as follows: Perform encryption and decryption operations, record the duration of the entire encryption and decryption process, and obtain the latency and throughput of the encryption system; Normalize the obtained latency and throughput to calculate the performance score of the encryption system; The calculation formula is: F=w S ·S+w T ·T; Among them, F is the performance score of the encryption system, S is the delay of the encryption system, and T represents the throughput; w S 、w T are the weight coefficients corresponding to delay and throughput respectively, and w S +w T =1; The obtained performance score is compared with the standard score. If the performance score is ≥ the standard score, the performance of the encryption system is good and there is no need to improve the encryption system for the time being. If the performance score is < the standard score, it is necessary to update the system configuration and improve the encryption algorithm in the encryption system to increase the encryption processing speed. Among them, based on many encryption systems in actual applications, the average value of their system performance scores is calculated as the standard score.
9. An Internet e-commerce platform marketing data encryption system, characterized in that: include: A data collection module, used to receive marketing data from Internet e-commerce platforms; Data preprocessing module, used for preprocessing marketing data; An encryption module, used to encrypt the marketing processing data using a preset encryption algorithm to obtain marketing encrypted data; A storage management module is used to store the marketing encrypted data, calculate the hash value corresponding to the marketing encrypted data using a hash algorithm, and use the hash value as a storage address; By deploying smart contracts on the blockchain to automatically execute access control policies, users who apply to access marketing encrypted data can be authenticated and the marketing encrypted data can be verified whether it has been tampered with during transmission; The system evaluation module is used to regularly evaluate the performance of the encryption system, obtain the performance measurement indicators of the encryption system, calculate the performance score of the encryption system and compare it with the standard score, and adjust the encryption system according to the evaluation results.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.