Data processing method for 3C product rental platform based on data compression and encryption
By classifying, encrypting and compressing the data of the 3C product rental platform, the problems of weak data security and low transmission efficiency are solved, the efficient and safe transmission and storage of data are realized, and the sensitivity and transmission cost of user information are reduced. .
Patent Information
- Application Number
- CN202311646127.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-04
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-12-04
AI Technical Summary
The existing 3C product rental platform is weak in data security protection, and there is a risk of data being accessed and stolen without authorization. At the same time, the data transmission efficiency is low, especially when the amount of data is large, the transmission speed is slow, resulting in long waiting times for users.
Using a processing method based on data compression and encryption, by classifying data, identifying private and non-private data, using data desensitization and encryption methods to process private data, using random mapping to generate dynamic keys for encryption, and non-private data. Compression ensures the security and efficiency of data during transmission and storage.
Effectively protect the security of users' personal information and payment information, reduce the risk of data leakage, reduce storage space and transmission bandwidth, improve data processing efficiency, and ensure data integrity and accessibility.
Smart Images

Figure CN117708847B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to a 3C product leasing platform data processing method based on data compression and encryption. Background Art
[0002] With the continuous advancement of technology and the upgrading of 3C products, consumers' demand for high-performance and high-quality electronic products continues to grow. However, purchasing these products often requires a high investment, and the product life is relatively short. Therefore, more and more consumers tend to choose to rent 3C products to meet their needs. At the same time, the traditional consumption model emphasizes the purchase and ownership of products, while the leasing model emphasizes the right to use and flexibility. The 3C product leasing platform provides a more flexible and economical consumption option, allowing consumers to rent the required equipment according to actual needs without having to purchase and own it for a long time.
[0003] With the development of 3C product leasing platforms in data processing, data security and privacy protection have become increasingly important. The platform needs to take measures to protect users' personal information and transaction data, such as data encryption, secure transmission protocols, etc., to build user trust and ensure the reliability of the platform. However, from the current market situation, in some leasing platforms, the security protection of user data is not strict enough, and there is a risk of data being accessed and stolen by unauthorized personnel, resulting in increased possibility of user privacy exposure and data leakage. In addition, some leasing platforms have inefficiencies in the data transmission process. When the amount of data is large, the transmission speed is slow, and users need to spend a long time waiting for data upload and download operations. Summary of the invention
[0004] The purpose of the present invention is to provide a 3C product rental platform data processing method based on data compression and encryption, which is used to solve the technical problems of weak user data security protection and low data storage efficiency in the prior art.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] The data processing method of the 3C product rental platform based on data compression and encryption includes the following steps:
[0007] Step S1: Collect uncompressed encrypted data generated by users on the platform;
[0008] Step S2: classifying and identifying the collected uncompressed encrypted data;
[0009] The collected uncompressed encrypted data is divided into two categories: private data and non-private data. Private data includes personal information and payment information, and non-private data includes rental records, equipment information, and usage logs. Private data is marked as private, and non-private data is marked as non-private.
[0010] Step S3: Determine whether the mark is non-privacy, if so, jump to step S6; if the mark is privacy, jump to the next step;
[0011] Step S4: Desensitize the data marked as private using a data desensitization method;
[0012] Step S5: Encrypt the desensitized data marked as private;
[0013] Step S6: compressing the data marked as non-privacy;
[0014] Step S7: If decompression and decryption are required, inverse operations are performed on different compressed and encrypted data.
[0015] Preferably, the uncompressed encrypted data includes user personal information, rental records, payment information, device information, and usage logs;
[0016] Preferably, the data desensitization method in step S4 specifically includes:
[0017] Step S4-1: Encode the data for structured storage;
[0018] In the present invention, the unencrypted data identified as private includes personal information and payment information, specifically, for example:
[0019] Personal information includes name and gender, and payment information includes payment time and payment amount;
[0020] The payment time and payment amount are encoded using integer types. User 1’s payment time is A. 1,1 , the payment amount is A 1,2 , user 2 pays at time A 2,1 , the payment amount is A 2,2 ;
[0021] For example, for A 1,2 Encode. In this example, the payment amount is 150. First, express 150 in binary form as 10010110.
[0022] Then, divide the eight-bit binary number into seven segments, that is, 10010110 has two segments. Starting from the right, take the seven-bit binary number, which is 0010110. If this segment is the last segment, add 1 at the end. If this segment is not the last segment, add 0 at the end. Therefore, the first segment of the seven-bit binary number is 00101100, and the second segment is 11.
[0023] Combining all the segments, we get the final codeword, which is 0010110011. 1,2 express;
[0024] By this method, user 1 pays time A 1,1 After encoding, it is B 1,1 , the payment amount is A 1,2 After encoding, it is B 1,2 , user 2 pays at time A 2,1 After encoding, it is B 2,1 , the payment amount is A 2,2 After encoding, it is B 2,2 ;
[0025] Step S4-2: Setting data desensitization rules;
[0026] In the present invention, the desensitization method used is as described in step S4-3, wherein the desensitization factor is a key parameter of the desensitization rule. In this method, the desensitization factor refers to the number of bytes that need to be replaced by the data to be desensitized. For example, when the data is 8 bytes, if the desensitization factor is set to 3, it means that the three bytes starting from the high bit need to be processed separately according to a certain mapping rule;
[0027] Step S4-3: perform data desensitization;
[0028] First, read the settings in the desensitization rule. For example, the desensitization factor T set in the desensitization rule is 1, where the desensitization factor T is the number of bytes replaced in the binary data, which is 1 in this example;
[0029] Desensitize the encoded data X, for example, X = (X0, X1) = (156, 127);
[0030] In this data encoding, X has two bytes. Before the Tth byte, the corresponding codeword X after desensitization ’ The corresponding byte mapping rules to X are as follows:
[0031] X ’0=(X0&B128)+B64, that is, the binary number of the X0 byte is bitwise ANDed with the binary number of 128, and then the result is bitwise ANDed with the binary number of 64. For example, the binary number of X0=156 is 10011100, and the binary number of 128 is 10000000. After bitwise ANDing the two, 10000000 is obtained. Then, the result is bitwise ANDed with 01000000 to obtain 11000000, that is, 192.
[0032] After T bytes, the corresponding codeword bytes after desensitization remain unchanged. Therefore, the desensitized codeword X ’ =(X ’ 0,X ’ 1)=(192,127).
[0033] Preferably, in step S5, the desensitized data encryption method specifically includes:
[0034] Step S5-1: Generate a dynamic key using random mapping;
[0035] In the field of data processing, generally speaking, data encryption methods have keys for encrypting and decrypting sensitive data. When encrypting, the key is used to convert the original data into unreadable ciphertext to protect the confidentiality of the data; when decrypting, the same key is used to restore the ciphertext to readable original data.
[0036] The keys are divided into static keys and dynamic keys. Static keys are pre-configured according to a certain algorithm. During the encryption and decryption process, static fixed keys are used for encryption and decryption. Key negotiation and exchange are not required, but the security is relatively low.
[0037] The present invention adopts dynamic keys to perform encryption and decryption verification, wherein a random mapping method is used as a method for generating dynamic keys;
[0038] First, the user inputs two random numbers X0 and Y0, and the input X0 and Y0 are stored in the first position of the XArray and YArray arrays respectively, with index 0;
[0039] Then, iterate from 1 to n through a loop;
[0040] In each iteration, the values of XArray[i] and YArray[i] are calculated by using the modulo operation modulo 1 to calculate the values of XArray and YArray at the previous position (index i-1);
[0041] Next, iterate from 0 to 2*n through another loop;
[0042] In each iteration, calculate the value of the KEY array, multiply XArray[i] by 255 and round it to get an integer value, store it in the even index position of the KEY array (2i), multiply YArray[i] by 255 and round it to get another integer value, store it in the odd index position of the KEY array (2i-1).
[0043] Finally, the generated key KEY is returned.
[0044] Step S5-2: Perform bitwise XOR on the data plaintext and the dynamic key to generate an intermediate value;
[0045] For example, in step S4, the desensitized data is obtained, that is, the code word X ’ =(192,127), expressed in binary as 1100000001111111;
[0046] If the dynamic key is also 2 bytes, the binary value is 1001010011110111, and the intermediate value after bitwise XOR is 0101010010001000, that is, (170,136);
[0047] Step S5-3: Perform byte substitution on the intermediate value;
[0048] Generate an empty matrix. On the other hand, fill each element of the matrix through mathematical operations on a finite field. The matrix is constructed through factors related to the dynamic key. Existing cryptographic algorithms such as the Rijndael algorithm are usually used. The empty matrix is named M-box;
[0049] For each byte in the intermediate value, search the M-box as the byte replacement table to find the replacement value corresponding to the current byte, and use the replacement value in the M-box to replace each byte in the intermediate value. The replaced intermediate value becomes the output of the byte substitution step and is used for the operation of the next step.
[0050] Step S5-4: cyclically shift the byte-substituted output to the left;
[0051] When rotating left, the leftmost bit is moved to the rightmost position and the remaining bits are shifted one position to the left.
[0052] Preferably, the data compression method in step S6 specifically includes:
[0053] S6-1: Text preprocessing: segment the plain text marked as non-privacy, identify individual words, and standardize them to unify uppercase and lowercase letters;
[0054] S6-2: Word frequency statistics, traverse the word list after word segmentation, record the number of occurrences of each word, which can count single words or phrases or phrases composed of multiple words, and use hash tables to achieve word-to-count mapping;
[0055] First, create an empty hash table (or dictionary) to store words and their corresponding counts; then traverse the word list after word segmentation, and for each word, check whether the word already exists in the hash table; if it exists, increase the count of the word by one; if it does not exist, add the word to the hash table and set the count to one; after traversing all the words, each word and its corresponding count information is stored in the hash table;
[0056] S6-3: Word frequency sorting, sort the words from high to low according to word frequency to obtain a word frequency list;
[0057] First, the result of word frequency statistics is expressed in the form of key-value pairs, where the key represents the word and the value represents the word frequency; the key-value pairs are sorted according to the word frequency, and the order of word frequency is from high to low; finally, the sorted word frequency list can be obtained.
[0058] S6-4: Code mapping, sequence and number the word frequency list, and build a mapping relationship between words and codes;
[0059] First, traverse the word frequency list in descending order, assign a unique code to each word, use integers or other symbols as codes, establish a mapping relationship between each word and its corresponding code, and use a hash table or dictionary to store this mapping relationship;
[0060] S6-5: Compression coding, using the prepared code table to replace the words in the original text with the corresponding codes;
[0061] Decoding requires using the corresponding word frequency table to restore the code to words;
[0062] S6-6: Trailing information. The compressed data contains the encoded text and word frequency code table information for easy use during decoding.
[0063] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0064] 1. The present invention can effectively protect the security of users' privacy data such as personal information and payment information by encrypting the data generated by users on the 3C product rental platform. The encrypted data is more difficult to be illegally obtained and decrypted during transmission and storage, thereby improving data security.
[0065] 2. The present invention can reduce the sensitivity of user personal information and payment information and reduce the risks caused by data leakage by desensitizing the privacy data. After the data is desensitized, even if the data is illegally obtained, it is difficult to restore the user's true identity and sensitive information.
[0066] 3. The present invention compresses non-privacy data to reduce data storage space and transmission bandwidth, improve data processing efficiency, and the compressed data occupies less storage space, which can save costs and increase data transmission speed.
[0067] 4. The present invention can decompress and decrypt data when necessary by performing inverse operations on compressed and encrypted data, restore the format and content of the original data, provide a convenient way to use and manage data, and ensure the integrity and accessibility of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0069] Figure 1 The present invention shows a flow chart of the steps of the 3C product rental platform data processing method based on data compression and encryption. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0071] Example 1
[0072] See also Figure 1 As shown, this embodiment provides a 3C product rental platform data processing method based on data compression and encryption, comprising the following steps:
[0073] Step S1: Collect uncompressed encrypted data generated by users on the platform;
[0074] Uncompressed encrypted data includes user personal information, rental records, payment information, device information, and usage logs;
[0075] Step S2: classifying and identifying the collected uncompressed encrypted data;
[0076] The collected uncompressed encrypted data is divided into two categories: private data and non-private data. Private data includes personal information and payment information, and non-private data includes rental records, equipment information, and usage logs. Private data is marked as private, and non-private data is marked as non-private.
[0077] Step S3: Determine whether the mark is non-privacy, if so, jump to step S6; if the mark is privacy, jump to the next step;
[0078] Step S4: Desensitize the data marked as private using a data desensitization method;
[0079] Step S5: Encrypt the desensitized data marked as private;
[0080] Step S6: compressing the data marked as non-privacy;
[0081] Step S7: If decompression and decryption are required, inverse operations are performed on different compressed and encrypted data.
[0082] The data desensitization method in step S4 specifically includes:
[0083] Step S4-1: Encode the data for structured storage;
[0084] In this embodiment, the unencrypted data identified as private includes personal information and payment information, specifically, for example:
[0085] Personal information includes name and gender, and payment information includes payment time and payment amount;
[0086] The payment time and payment amount are encoded using integer types. User 1’s payment time is A. 1,1 , the payment amount is A 1,2 , user 2 pays at time A 2,1 , the payment amount is A 2,2 ;
[0087] For example, for A 1,2 Encode. In this example, the payment amount is 150. First, express 150 in binary form as 10010110.
[0088] Then, divide the eight-bit binary number into seven segments, that is, 10010110 has two segments. Starting from the right, take the seven-bit binary number, which is 0010110. If this segment is the last segment, add 1 at the end. If this segment is not the last segment, add 0 at the end. Therefore, the first segment of the seven-bit binary number is 00101100, and the second segment is 11.
[0089] Combining all the segments, we get the final codeword, which is 0010110011. 1,2 express;
[0090] By this method, user 1 pays time A 1,1 After encoding, it is B 1,1 , the payment amount is A 1,2 After encoding, it is B 1,2 , user 2 pays at time A 2,1 After encoding, it is B 2,1 , the payment amount is A 2,2 After encoding, it is B 2,2 ;
[0091] Step S4-2: Setting data desensitization rules;
[0092] In this embodiment, the desensitization method used is as described in step S4-3, wherein the desensitization factor is a key parameter of the desensitization rule. In this method, the desensitization factor refers to the number of bytes that need to be replaced for the data to be desensitized. For example, when the data is 8 bytes, if the desensitization factor is set to 3, it means that the three bytes starting from the high bit need to be processed separately according to a certain mapping rule;
[0093] Step S4-3: perform data desensitization;
[0094] First, read the settings in the desensitization rule. For example, the desensitization factor T set in the desensitization rule is 1, where the desensitization factor T is the number of bytes replaced in the binary data, which is 1 in this example;
[0095] Desensitize the encoded data X, for example, X = (X0, X1) = (156, 127);
[0096] In this data encoding, X has two bytes. Before the Tth byte, the corresponding codeword X after desensitization ’ The corresponding byte mapping rules to X are as follows:
[0097] X ’ 0=(X0&B128)+B64, that is, the binary number of the X0 byte is bitwise ANDed with the binary number of 128, and then the result is bitwise ANDed with the binary number of 64. For example, the binary number of X0=156 is 10011100, and the binary number of 128 is 10000000. After bitwise ANDing the two, 10000000 is obtained. Then, the result is bitwise ANDed with 01000000 to obtain 11000000, that is, 192.
[0098] After T bytes, the corresponding codeword bytes after desensitization remain unchanged. Therefore, the desensitized codeword X ’ =(X’ 0,X ’ 1)=(192,127).
[0099] In step S5, the desensitized data encryption method specifically includes:
[0100] Step S5-1: Generate a dynamic key using random mapping;
[0101] In the field of data processing, generally speaking, data encryption methods have keys for encrypting and decrypting sensitive data. When encrypting, the key is used to convert the original data into unreadable ciphertext to protect the confidentiality of the data; when decrypting, the same key is used to restore the ciphertext to readable original data.
[0102] The keys are divided into static keys and dynamic keys. Static keys are pre-configured according to a certain algorithm. During the encryption and decryption process, static fixed keys are used for encryption and decryption. Key negotiation and exchange are not required, but the security is relatively low.
[0103] This embodiment uses a dynamic key to perform encryption and decryption verification, wherein a random mapping method is used as a method for generating a dynamic key;
[0104] First, the user inputs two random numbers X0 and Y0, and the input X0 and Y0 are stored in the first position of the XArray and YArray arrays respectively, with index 0;
[0105] Then, iterate from 1 to n through a loop;
[0106] In each iteration, the values of XArray[i] and YArray[i] are calculated by using the modulo operation modulo 1 to calculate the values of XArray and YArray at the previous position (index i-1);
[0107] Next, iterate from 0 to 2*n through another loop;
[0108] In each iteration, calculate the value of the KEY array, multiply XArray[i] by 255 and round it to get an integer value, store it in the even index position of the KEY array (2i), multiply YArray[i] by 255 and round it to get another integer value, store it in the odd index position of the KEY array (2i-1).
[0109] Finally, the generated key KEY is returned.
[0110] Step S5-2: Perform bitwise XOR on the data plaintext and the dynamic key to generate an intermediate value;
[0111] For example, in step S4, the desensitized data is obtained, that is, the code word X’ =(192,127), expressed in binary as 1100000001111111;
[0112] If the dynamic key is also 2 bytes, the binary value is 1001010011110111, and the intermediate value after bitwise XOR is 0101010010001000, that is, (170,136);
[0113] Step S5-3: Perform byte substitution on the intermediate value;
[0114] In this embodiment, an empty matrix is generated. On the other hand, each element of the matrix is filled by mathematical operations on a finite field. The matrix is constructed by factors related to the dynamic key. An existing cryptographic algorithm such as the Rijndael algorithm is usually used. The empty matrix is named an M-box;
[0115] For each byte in the intermediate value, search the M-box as the byte replacement table to find the replacement value corresponding to the current byte, and use the replacement value in the M-box to replace each byte in the intermediate value. The replaced intermediate value becomes the output of the byte substitution step and is used for the operation of the next step.
[0116] Step S5-4: cyclically shift the byte-substituted output to the left;
[0117] When rotating left, the leftmost bit is moved to the rightmost position and the remaining bits are shifted one position to the left.
[0118] The data compression method in step S6 specifically includes:
[0119] S6-1: Text preprocessing: segment the plain text marked as non-privacy, identify individual words, and standardize them to unify uppercase and lowercase letters;
[0120] S6-2: Word frequency statistics, traverse the word list after word segmentation, record the number of occurrences of each word, which can count single words or phrases or phrases composed of multiple words, and use hash tables to achieve word-to-count mapping;
[0121] First, create an empty hash table (or dictionary) to store words and their corresponding counts; then traverse the word list after word segmentation, and for each word, check whether the word already exists in the hash table; if it exists, increase the count of the word by one; if it does not exist, add the word to the hash table and set the count to one; after traversing all the words, each word and its corresponding count information is stored in the hash table;
[0122] S6-3: Word frequency sorting, sort the words from high to low according to word frequency to obtain a word frequency list;
[0123] First, the result of word frequency statistics is expressed in the form of key-value pairs, where the key represents the word and the value represents the word frequency; the key-value pairs are sorted according to the word frequency, and the order of word frequency is from high to low; finally, the sorted word frequency list can be obtained.
[0124] S6-4: Code mapping, sequence and number the word frequency list, and build a mapping relationship between words and codes;
[0125] First, traverse the word frequency list in descending order, assign a unique code to each word, use integers or other symbols as codes, establish a mapping relationship between each word and its corresponding code, and use a hash table or dictionary to store this mapping relationship;
[0126] S6-5: Compression coding, using the prepared code table to replace the words in the original text with the corresponding codes;
[0127] Decoding requires using the corresponding word frequency table to restore the code to words;
[0128] S6-6: Trailing information. The compressed data contains the encoded text and word frequency code table information for easy use during decoding.
[0129] The beneficial effects of this embodiment are:
[0130] By encrypting and desensitizing users' private data, users' personal information and payment information can be effectively protected from unauthorized access and use; by classifying and identifying the collected data, different types of data can be better managed and processed; by desensitizing data identified as private, the risk of data leakage can be reduced; desensitizing can make sensitive data unable to directly identify personal identity or sensitive information, thereby reducing the possibility of data abuse; by compressing non-private data, the cost of data storage and transmission can be reduced.
[0131] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
[0132] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A 3C product leasing platform data processing method based on data compression and encryption, characterized in that: The following steps are involved: Step S1: Collecting uncompressed encrypted data generated by users on the 3C product rental platform; Step S2: classifying and identifying the collected uncompressed encrypted data; Step S3: Determine whether the identification of the uncompressed encrypted data is non-privacy, if so, jump to step S6; if the identification is privacy, jump to the next step; Step S4: Desensitize the data marked as private using a data desensitization method; Step S5: encrypting the desensitized data marked as private; Step S6: compressing the data marked as non-privacy; Step S7: If decompression and decryption are required, inverse operations are performed on different compressed and encrypted data; In step S7, a dynamic key is used to perform encryption and decryption verification, and a random mapping method is used as a method for generating a dynamic key; the key generation method is: First, the user inputs two random numbers X0 and Y0, and the input X0 and Y0 are stored in the first position of the XArray and YArray arrays respectively, with index 0; Then, iterate from 1 to n through a loop; In each iteration, the values of XArray[i] and YArray[i] are calculated by using the modulo operation modulo 1 to calculate the values of XArray and YArray at the previous position; Next, iterate from 0 to n through another loop; In each iteration, calculate the value of the KEY array, multiply XArray[i] by 255 and round it to get an integer value, store it in the even index position of the KEY array, multiply YArray[i] by 255 and round it to get another integer value, store it in the odd index position of the KEY array; Finally, the generated key KEY is returned.
2. The 3C product rental platform data processing method based on data compression and encryption according to claim 1 is characterized in that: The uncompressed encrypted data includes user personal information, rental records, payment information, device information and usage logs; the uncompressed encrypted data is divided into two categories, one is privacy data and the other is non-privacy data; the privacy data includes personal information and payment information, and the non-privacy data includes rental records, device information and usage logs; privacy data is marked as privacy, and non-privacy data is marked as non-privacy.
3. The 3C product rental platform data processing method based on data compression and encryption according to claim 1 is characterized in that: The data desensitization method in step S4 specifically includes the following steps: Step S4-1: Encode the data for structured storage; Step S4-2: Setting data desensitization rules; Step S4-3: Perform data desensitization.
4. The 3C product rental platform data processing method based on data compression and encryption according to claim 1 is characterized in that: The desensitized data encryption method in step S5 specifically includes the following steps: Step S5-1: Generate a dynamic key using random mapping; Step S5-2: Perform bitwise XOR on the data plaintext and the dynamic key to generate an intermediate value; Step S5-3: Perform byte substitution on the intermediate value; Step S5-4: Perform a left circular shift on the output of the byte substitution.
5. The 3C product rental platform data processing method based on data compression and encryption according to claim 1 is characterized in that: The data compression method in step S6 specifically comprises the following steps: S6-1: Text preprocessing: segment the plain text marked as non-privacy, identify individual words, and standardize them to unify uppercase and lowercase letters; S6-2: Word frequency statistics, traverse the word list after word segmentation, record the number of occurrences of each word, count single words or phrases or phrases composed of multiple words, and use hash tables to map words to counts; S6-3: Word frequency sorting, sort the words from high to low according to word frequency to obtain a word frequency list; S6-4: Code mapping, sequence and number the word frequency list and build a mapping relationship between words and codes; S6-5: Compression coding, using the prepared code table to replace the words in the original text with the corresponding codes; S6-6: Trailing information. The compressed data contains the encoded text and word frequency code table information for easy use during decoding.
Citation Information
Patent Citations
Remote task scheduling method based on privacy data protection
CN113660276A
Text compression method, module, chip, electronic equipment and storage medium
CN114492322A
Computer system
US20190095651A1
