Terminal equipment information storage management system for smart retail
By employing multi-level encryption and dynamic key generation in smart retail terminal devices and cloud service devices, the problem of key leakage is solved, and data security is improved.
Patent Information
- Application Number
- CN202411287113.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-01-14
AI Technical Summary
In existing technologies, the key generation and storage process of smart retail terminal devices is prone to key leakage, which affects data security.
After initial encryption using smart retail terminal equipment, the primary encrypted information is divided into multiple target data blocks, and each data block is encrypted and stored in the cloud service device through multi-level encryption and dynamic key generation.
It improves the security of encrypted data, ensuring that even if a key is cracked, only the data encrypted with that key will be affected, without affecting the security of other data.
Smart Images

Figure CN119312359A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a terminal device information storage management system for smart retail. Background Art
[0002] With the rapid development of smart retail, a large amount of data information generated by terminal devices needs to be stored and managed in the cloud. Traditional data storage methods often have security risks. Once the data is illegally obtained, it will seriously affect the interests of enterprises and consumers. Cloud devices need to encrypt the stored data when storing the acquired data. Storing the encrypted data can ensure the security of information storage.
[0003] In the prior art, after obtaining the information of the smart retail terminal device, in order to ensure the security of the information during storage, the information needs to be encrypted before storage. The smart retail terminal device obtains transaction data. However, each time encryption is performed and a key is dynamically generated, the generated key needs to be stored, that is, each time a key is generated, it needs to be stored once, and multiple times of key generation require multiple storage. Therefore, in the process of multiple key storage, it is easy to cause key leakage, which in turn affects data security. Summary of the invention
[0004] In order to solve the technical problem of data leakage caused by key cracking, the purpose of the present invention is to provide a terminal device information storage and management system for smart retail, increase the randomness of data blocks, and perform multi-level encryption, which can effectively improve the security of encrypted data.
[0005] The technical solution adopted is as follows: a terminal device information storage and management system for smart retail is provided, including: a smart retail terminal device, used to obtain transaction information, and perform a first encryption on the transaction information to obtain primary encrypted information; a cloud service device, which receives the primary encrypted information and divides the primary encrypted information into multiple target data blocks, obtains the key corresponding to each target data block respectively, and then uses the key to perform multi-level secondary encryption on the corresponding target data blocks respectively, and stores the obtained target encrypted information in the cloud service device.
[0006] In one embodiment of the present invention, the smart retail terminal device includes: an information acquisition module for acquiring transaction information, wherein the transaction information includes transaction data and verification data; a primary encryption module for performing a first encryption on the verification data in the transaction data to obtain primary encrypted data, and then transmitting the primary encrypted data and the transaction data as primary encrypted information to the cloud service device.
[0007] In one embodiment of the present invention, the cloud service device includes: a division module, which receives the primary encrypted information and divides the primary encrypted information into multiple target data blocks according to the encryption status of the primary encrypted information; a dynamic encryption module, which obtains the key corresponding to each of the target data blocks respectively, and then uses the key to perform multi-level secondary encryption on the corresponding target data blocks to determine the target encrypted information; a storage module, which is used to store the target encrypted information.
[0008] In one embodiment of the present invention, the division module divides the primary encrypted information into target data blocks, specifically as follows: converting the acquired primary encrypted information to determine target conversion data; dividing the target conversion data to determine multiple initial data blocks, and using the initial data blocks and the primary encrypted data to determine target data blocks of target size.
[0009] In one embodiment of the present invention, the conversion of the acquired primary encrypted information to determine the conversion data includes: performing a first conversion on the acquired transaction data in the primary encrypted information to obtain first conversion data, wherein the first conversion converts the transaction data in the primary encrypted information into corresponding relationship characters; performing a second conversion on the first conversion data to obtain target conversion data, wherein the second conversion converts the corresponding relationship characters into binary characters.
[0010] In one embodiment of the present invention, the target conversion data is divided to determine a plurality of initial data blocks, including: obtaining a first similarity between a binary sequence corresponding to each binary character in the same target data block and a binary sequence corresponding to another binary character; obtaining a second similarity between different target data blocks; determining a division situation using the first similarity and the second similarity, and then dividing the target conversion data according to the division situation to determine a plurality of initial data blocks.
[0011] In one embodiment of the present invention, the determining of a target data block of a target size using the initial data block and the initial encrypted data includes: completing the initial data block using the primary encrypted data to obtain the target data block of the target size.
[0012] In one embodiment of the present invention, it also includes: obtaining a third similarity corresponding to the current target data block in the same primary encryption information, and obtaining a fourth similarity corresponding to the adjacent target data block; adjusting the target data block using the third similarity and the fourth similarity to determine the adjusted target data block.
[0013] In one embodiment of the present invention, the dynamic encryption module performs multi-level secondary encryption on the target data block to determine the target encryption information, specifically as follows: using a random number to generate a dynamic encryption key; using the dynamic encryption key to perform multi-level encryption on the target data block corresponding to the primary encryption information to determine the target encryption information.
[0014] In one embodiment of the present invention, it also includes: obtaining the number information of target data blocks; using a random number to generate a first dynamic encryption key, and encrypting the first target data block with the first dynamic encryption key to obtain a first dynamic ciphertext; extracting the first dynamic ciphertext to obtain a second dynamic encryption key, and encrypting the second target data block with the second dynamic encryption key to obtain a second dynamic ciphertext, and then performing multi-level encryption of multiple target data blocks based on the number information, so as to obtain multiple dynamic ciphertexts as the target encryption information.
[0015] The beneficial effects of the present invention are as follows: the terminal device information storage and management system of smart retail in the present invention includes: a smart retail terminal device and a cloud service device, wherein the smart retail terminal device is used to obtain transaction information and encrypt the transaction information for the first time to obtain primary encrypted information; the cloud service device is used to receive the primary encrypted information, and divide the primary encrypted information into a plurality of target data blocks, respectively obtain the key corresponding to each target data block, and then use the key to perform multi-level secondary encryption on the corresponding target data block respectively, and store the obtained target encrypted information in the cloud service device; that is, when the data block composed of ciphertext data and plaintext data is encrypted, the ciphertext data itself will reduce the repeatability of the obtained data block and increase the randomness of the obtained data block, and the corresponding key can be calculated and screened according to the previously encrypted ciphertext data obtained, and the key situation of different encrypted data blocks can be obtained by only obtaining the rules for generating each key. The same data can be encrypted in different ciphertexts due to the different ciphertexts, which improves the security of the encrypted data. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] 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.
[0017] Figure 1 A schematic diagram of the structure of a terminal device information storage management system for smart retail provided by the first embodiment of the present invention.
[0018] Figure 2 A schematic diagram of the structure of a terminal device information storage and management system for smart retail provided by the second embodiment of the present invention.
[0019] Figure 3 A flowchart of a method for storing and managing terminal device information for smart retail provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] 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 terminal device information storage management method for smart retail proposed by the present invention, its specific implementation method, structure, features 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.
[0021] 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.
[0022] The following is a detailed description of a specific solution of a terminal device information storage management system for smart retail provided by the present invention in conjunction with the accompanying drawings.
[0023] See also Figure 1 , which shows a schematic diagram of the structure of a terminal device information storage management system for smart retail provided by an embodiment of the present invention.
[0024] like Figure 1 As shown, a smart retail terminal device information storage management system 10 includes a smart retail terminal device 100 and a cloud service device 200.
[0025] The smart retail terminal device 100 is used to obtain transaction information and perform a first encryption on the transaction information to obtain primary encrypted information; the cloud service device 200 receives the primary encrypted information and divides the primary encrypted information into multiple target data blocks, obtains the key corresponding to each target data block, and then uses the key to perform multi-level secondary encryption on the corresponding target data blocks, and stores the obtained target encrypted information in the cloud service device.
[0026] Among them, smart retail terminal devices can be terminal devices that can perform smart retail, such as vending machines on the streets of shopping malls; transaction information includes transaction data and verification data. Transaction data can be information about the goods traded, such as: product name, product quantity, product category, product amount, retail terminal information, transaction time, transaction location, etc.; verification data is more sensitive data in the transaction information, such as: transaction identity information, transaction account information, transaction method, etc.
[0027] The working principle of the terminal equipment information storage management system of smart retail is as follows:
[0028] After the smart retail terminal device obtains the current transaction information, it needs to encrypt the current transaction information for the first time to determine the primary encrypted information corresponding to the current transaction information, and then transmit the primary encrypted information to the cloud service device; after the cloud service device receives the primary encrypted information, it first divides the primary encrypted information into multiple different target data blocks, and then generates a key corresponding to each target data block, and then uses different keys to encrypt different target data blocks, so that after the primary encrypted information obtained is encrypted with different encryption keys, even if the price ratios corresponding to the two pieces of transaction information obtained are similar, there will be large differences after encryption, which greatly ensures the security of the transaction information after encryption.
[0029] In this embodiment, the smart retail terminal device is used to obtain transaction information and perform a first encryption on the transaction information to obtain primary encrypted information; the cloud service device receives the primary encrypted information, divides the primary encrypted information into multiple target data blocks, obtains the key corresponding to each target data block, and then uses the key to perform multi-level secondary encryption on the corresponding target data blocks, and stores the obtained target encrypted information in the cloud service device; that is, when the acquired transaction information is encrypted in the present invention, since the confidentiality level corresponding to the acquired transaction information is different, and the acquired transaction information is uploaded one by one, when it is necessary to encrypt the target data blocks corresponding to the acquired information one by one, different keys are used for encryption, that is, each target data block will dynamically generate a new encryption key to achieve multiple dynamic encryption, so that even if a key is cracked, only the part of the data encrypted using the key will be leaked, and the security of other data will not be affected, thereby increasing the security of the encrypted data.
[0030] In some embodiments, the smart retail terminal device 100 in the smart retail terminal device information storage management system 10 may include an information acquisition module 110 and a primary encryption module 120 .
[0031] See also Figure 2 , Figure 2It is a structural diagram of the second embodiment of the terminal device information storage management system for smart retail in this application.
[0032] like Figure 2 As shown, the smart retail terminal device 100 includes an information acquisition module 110 and a primary encryption module 120; wherein, the information acquisition module 110 is used to obtain transaction information, and the transaction information includes transaction data and verification data; the primary encryption module is used to perform a first encryption on the verification data in the transaction information to obtain primary encrypted data, and then transmit the primary encrypted data and the transaction data as primary encrypted information to the cloud service device.
[0033] Among them, the information acquisition module refers to a functional module that can obtain transaction information; the primary encryption module refers to a functional module that can encrypt data. For example, the primary encryption module can use a hash function to encrypt the verification data for the first time.
[0034] In addition, there is some highly sensitive data in the acquired transaction information, which belongs to verification data, for example, user information with a high confidentiality level, namely transaction identity information, transaction account information, transaction method, etc., which may be illegal if leaked, and user information does not play an obvious role in analyzing retail planning. It is used to verify transaction data. Therefore, user information is used as verification data and can be encrypted for the first time through the primary encryption module to improve data security.
[0035] Specifically, the smart retail terminal device 100 obtains transaction information generated during the working process through the information acquisition module 110, and the transaction information includes transaction data and verification data; the smart retail terminal device 100 encrypts the verification data therein for the first time through the primary encryption module 120 to obtain primary encrypted data; and then packages the primary encrypted data and transaction data into primary encrypted information, and the smart retail terminal device 100 transmits the primary encrypted information to the cloud service device 200.
[0036] In some embodiments, the cloud service device 200 may include a partitioning module, a dynamic encryption module, and a storage module.
[0037] Continue reading Figure 2 The cloud service device 200 includes: a division module 210, a dynamic encryption module 220 and a storage module 230; the division module 210 is used to receive primary encryption information, and divide the primary encryption information into target data blocks according to the encryption status of the primary encryption information; the dynamic encryption module 220 performs a second encryption on the target data block to determine the target encryption information; the storage module 230 is used to store the target encryption information.
[0038] Among them, the cloud service device 200 refers to a service device that can perform data processing on the server; the division module 210 refers to a functional module that can divide data according to corresponding rules, and is used to obtain target data blocks; the dynamic encryption module 220 refers to a module that can obtain the corresponding key of each target data block respectively, and then use the key to perform multi-level secondary encryption on the corresponding target data block to obtain the target encrypted information corresponding to the transaction information; the storage module refers to a functional module that can perform data storage, and is used to store target encrypted information.
[0039] Specifically, the cloud service device 200 divides the received primary encrypted information according to the encryption status of the primary encrypted information through the division module 210 to obtain multiple target data blocks; the cloud service device 200 obtains the key corresponding to each target data block through the dynamic encryption module 220, and then uses the key to perform a second encryption on the corresponding target data block to achieve multi-level second encryption, and then uses the ciphertext obtained by the second encryption as the target encrypted information corresponding to the transaction information, and stores the obtained target encrypted information in the storage module 230 of the cloud service device 200.
[0040] Furthermore, the division module 210 divides the primary encrypted information into target data blocks, as follows:
[0041] First, the verification data in the obtained primary encrypted information is converted to determine the target conversion data.
[0042] Converting the verification data refers to converting characters in the verification data into target conversion data. To facilitate subsequent processing, in some embodiments, the characters in the verification data may be converted into binary characters.
[0043] Because the transaction data in the transaction information may contain multiple types of data, the multiple types of transaction data can be converted into characters of the same type and then converted into binary characters.
[0044] The acquired transaction data is converted for the first time to obtain first converted data, wherein the first conversion converts the transaction data into corresponding relationship characters.
[0045] For example, the first conversion can be an ASCII code conversion, that is, the transaction data is converted through the ASCII code to obtain the first conversion data corresponding to the ASCII code. Among the tables corresponding to the ASCII code, there are corresponding relationships for characters, symbols, numbers, and letters. Therefore, the corresponding relationship characters in the transaction data can be obtained. Specifically, the obtained transaction data is converted using the ASCII code to obtain the first conversion data corresponding to the ASCII code. That is, after the first conversion, the transaction data is converted into the first conversion data in the same format.
[0046] The second conversion is performed on the first conversion data to obtain the target conversion data. Among them, the second conversion converts the corresponding relationship characters into binary characters.
[0047] The second conversion can be a binary conversion, that is, the first conversion data is converted through binary to obtain the second conversion data corresponding to the binary. Among them, each character corresponds to an eight-bit binary character. For example, the ASCII code of "可" is 21491, and the ASCII code of "乐" is 20048. Then there are:
[0048] ASCII - 21491: The binary representation of 21491 is 01010011 - 10010011.
[0049] ASCII - 20048: The binary representation of 20048 is 01001101 - 00110000.
[0050] Then the binary sequence of the text "可乐" is: 01010011 - 10010011 - 01001101 - 00110000.
[0051] Then, the target conversion data is divided into the target size to determine multiple initial data blocks, and the target data block is determined using the initial data block and the primary encrypted data.
[0052] Among them, the target size can be set according to the actual situation, used to divide the target conversion data to obtain multiple initial data blocks, reduce the data volume of each initial data block, and provide a basis for subsequent convenient processing and storage.
[0053] Specifically, after obtaining the target conversion data corresponding to the transaction information, according to the preset target size, the target conversion data is divided to divide out multiple initial data blocks, and then the initial data block and the primary encrypted data are combined to determine the target data block of the same size.
[0054] Furthermore, in order to avoid the influence of the encryption effect due to the possible existence of the same or similar ciphertexts for similar data, similarity calculation is required, that is, it also includes:
[0055] A first similarity between a binary sequence corresponding to each binary character in the same target data block and a binary sequence corresponding to another binary character is obtained.
[0056] Each target data block may contain multiple characters, where the characters are binary characters. Each binary character may have one or more corresponding binary sequences. Therefore, the first similarity between binary sequences corresponding to different binary characters in the same target data block may be calculated.
[0057] The first similarity is calculated as follows:
[0058]
[0059] Wherein, D(a, b) represents the difference between the a-th binary sequence and the b-th binary sequence, that is, the first similarity; N represents the number of characters in the obtained binary sequence; Δf abz represents the variation function, Z represents the independent variable in the variation function, that is, the distance between the a-th binary sequence and the b-th binary sequence; Δf abz The value is 0 or 1. When the two characters obtained are the same, the value is 0, and when the two characters are different, the value is 1.
[0060] A second similarity between different target data blocks is obtained.
[0061] The calculation process of the second similarity is similar to the calculation process of the first similarity, which will not be described in detail here.
[0062] The first similarity and the second similarity are used to determine the division situation, and then the target conversion data is divided according to the division situation to determine a plurality of initial data blocks.
[0063] Among them, because the division situation does not specify a fixed length, but stipulates a length threshold, that is, the maximum length of the initial data block is the length threshold, therefore, the obtained initial data blocks may have different sizes, that is, different lengths.
[0064] Specifically, after obtaining the first similarity and the second similarity, the division situation with the least influence of the first similarity and the second similarity is determined, that is, the division situation of the target conversion data is determined, and then the target conversion data is divided according to the division situation to obtain multiple initial data blocks.
[0065] Calculate the division corresponding to each position. The calculation process is as follows:
[0066] P a =exp(-(D1+D2))
[0067] Among them, P a represents the division of the ath position obtained, D1 represents the first similarity of the internal data in the obtained data block, D2 represents the second similarity of the external data corresponding to the adjacent data block obtained, and exp represents an exponential function, that is, an exponential function with the natural constant e as the base.
[0068] Among them, simply calculating the similarity of the acquired data in a transaction information itself and dividing the acquired data may cause the acquired data blocks to appear repeatedly in different transaction information. The repeated appearance may cause the acquired keys to be the same and the final ciphertexts to be consistent, making the acquired ciphertexts show local similarity. Therefore, when calculating the similarity, it is necessary to determine the similarity of each acquired divided interval in different transaction records.
[0069] In some embodiments, the initial data block and the primary encrypted data are complemented to obtain a target data block of a target size.
[0070] Among them, because the lengths of the initial data blocks obtained are different, in order to facilitate subsequent data processing, the initial data blocks need to be supplemented to reach the target size.
[0071] Specifically, after obtaining a plurality of initial data blocks, a corresponding primary encrypted data is matched according to the length of the initial data block to be spliced into a target data block of a target size.
[0072] In some embodiments, the target size can be 128 bits. When the initial data block is less than 128 bits, the primary encrypted data is used to supplement the initial data block to form a 128-bit target data block; for example, if the initial data block is 100 bits, 28 bits of primary encrypted data are required to supplement it.
[0073] In some embodiments, the maximum partition situation is obtained in an iterative manner as the partition data point, and the data block is partitioned according to the maximum value. However, the partitioned data block may have data in two adjacent blocks that are the same in other transaction data. Therefore, the partition of the obtained data block is fine-tuned according to the partition situation in the adjacent blocks, that is, the target data block can also be adjusted, and then:
[0074] A third similarity corresponding to the current target data block in the same primary encrypted information is obtained, and a fourth similarity corresponding to an adjacent target data block is obtained.
[0075] The calculation of the third similarity and the fourth similarity is similar to the calculation of the first similarity, and will not be described in detail here.
[0076] The target data block is adjusted using the third similarity and the fourth similarity to determine an adjusted target data block.
[0077] Specifically, the third similarity and the fourth similarity are used to obtain the adjustment degree, and then the target data block is adjusted using the adjustment degree to determine the adjusted target data block.
[0078] The modulation index is calculated as follows:
[0079] W e =Max(D e ×D e-1 )
[0080] Among them, W e Indicates the degree to which the acquired data block needs to be fine-tuned; D e Indicates the third similarity; D e-1 The fourth similarity is represented by setting a threshold to adjust the obtained data fine-tuning degree exceeding 0.8. The obtained data block can be fine-tuned by adding one character or reducing one character.
[0081] In some embodiments, the dynamic encryption module performs a multi-level secondary encryption on the target data block to determine the target encryption information, as follows:
[0082] Generate dynamic encryption keys using random numbers.
[0083] Among them, it is necessary to set a key when encrypting, and then encrypt the target data block by means of the key.
[0084] Specifically, a random number is obtained, and then an initial dynamic encryption key is generated using the random number.
[0085] Then, the target data block corresponding to the primary encrypted information is encrypted at multiple levels using the dynamic encryption key to determine the target encrypted information.
[0086] Furthermore, the specific process also includes:
[0087] Get the number of target data blocks.
[0088] The number information refers to the number of target databases corresponding to the target data blocks divided by the primary encryption information.
[0089] A first dynamic encryption key is generated using a random number, and the first target data block is encrypted using the first dynamic encryption key to obtain a first dynamic ciphertext.
[0090] Specifically, a random number is obtained, and then an initial first dynamic encryption key is generated using the random number, and then the first target data block is encrypted using the first dynamic encryption key to obtain a first dynamic ciphertext.
[0091] The first dynamic ciphertext is extracted to obtain the second dynamic encryption key, and the second target data block is encrypted with the second dynamic encryption key to obtain the second dynamic ciphertext, and then multiple target data blocks are multi-level encrypted according to the number information, so as to obtain multiple dynamic ciphertexts as target encryption information.
[0092] Specifically, the first dynamic ciphertext is extracted through a Hash algorithm to obtain a second dynamic encryption key, and then the second target data block is encrypted using the second dynamic encryption key to obtain a second dynamic ciphertext; the second dynamic ciphertext is extracted through a Hash algorithm to obtain a third dynamic encryption key, and then the third target data block is encrypted using the third dynamic encryption key to obtain a third dynamic ciphertext, and based on the number information of the target data blocks, multiple corresponding dynamic ciphertexts are obtained, and then the corresponding multiple dynamic ciphertexts are used to form target encrypted information, and then the target encrypted information is stored in a storage module of the cloud service device.
[0093] In some embodiments, the target encrypted information may be reversely decrypted based on the corresponding encryption key to obtain the corresponding primary encrypted information, and then obtain the initial transaction data and verification data.
[0094] In this embodiment, a terminal device information storage management system for smart retail is provided, including: a smart retail terminal device and a cloud service device, wherein the smart retail terminal device is used to obtain transaction information and encrypt the transaction information for the first time to obtain primary encrypted information; the cloud service device is used to receive the primary encrypted information, and divide the primary encrypted information into a plurality of target data blocks, respectively obtain the key corresponding to each target data block, and then use the key to perform multi-level secondary encryption on the corresponding target data block respectively, and store the obtained target encrypted information in the cloud service device; that is, when the data block composed of ciphertext data and plaintext data is encrypted in this application, the ciphertext data itself will reduce the repeatability of the obtained data block and increase the randomness of the obtained data block, and the corresponding key can be calculated and selected according to the previously encrypted ciphertext data obtained, and the key situation of different encrypted data blocks can be obtained by only obtaining the rules for generating each key. The same data can be encrypted differently due to the different ciphertexts, which improves the security of the encrypted data.
[0095] In some embodiments, see Figure 3 , Figure 3 A flowchart of a method for storing and managing terminal device information of a smart retail provided by an embodiment of the present invention is provided. A method for storing and managing terminal device information of a smart retail is also provided, comprising the following steps:
[0096] S10. Acquire transaction information, and perform a first encryption on the transaction information to obtain primary encrypted information.
[0097] S20, receiving primary encrypted information, and dividing the primary encrypted information into multiple target data blocks.
[0098] S30, respectively obtain the key corresponding to each target data block, and then use the key to perform multi-level secondary encryption on the corresponding target data block, and store the obtained target encrypted information in the cloud service device.
[0099] Please refer to the above content for the detailed steps, which will not be repeated here.
[0100] In the present invention, when encrypting the acquired transaction information, since the confidentiality levels corresponding to the acquired transaction information are different, and the acquired transaction information is uploaded one by one, when it is necessary to encrypt the target data blocks corresponding to the acquired information one by one, different keys are used for encryption, that is, each target data block will dynamically generate a new encryption key to achieve multiple dynamic encryption, so that even if a key is cracked, only the part of the data encrypted using the key will be leaked, and the security of other data will not be affected, thereby increasing the security of the encrypted data.
[0101] 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.
[0102] 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 terminal device information storage management system for smart retail, characterized in that: The terminal device information storage management system of the smart retail includes: A smart retail terminal device, used to obtain transaction information and encrypt the transaction information for the first time to obtain primary encrypted information; The cloud service device receives the primary encrypted information and divides the primary encrypted information into multiple target data blocks, obtains the key corresponding to each target data block, and then uses the key to perform multi-level secondary encryption on the corresponding target data blocks, and stores the obtained target encrypted information in the cloud service device.
2. The terminal device information storage management system for smart retail according to claim 1, characterized in that: The smart retail terminal device includes: An information acquisition module, used to acquire transaction information, wherein the transaction information includes transaction data and verification data; The primary encryption module is used to perform a first encryption on the verification data in the transaction information to obtain primary encrypted data, and then transmit the primary encrypted data and the transaction data as primary encrypted information to the cloud service device.
3. The terminal device information storage management system for smart retail according to claim 1, characterized in that: The cloud service device includes: a division module, receiving the primary encrypted information, and dividing the primary encrypted information into a plurality of target data blocks according to the encryption status of the primary encrypted information; The dynamic encryption module obtains the key corresponding to each target data block, and then uses the key to perform multi-level secondary encryption on the corresponding target data block to determine the target encryption information; A storage module is used to store the target encrypted information.
4. The terminal device information storage management system for smart retail according to claim 3, characterized in that: The division module divides the primary encrypted information into target data blocks, specifically as follows: Convert the obtained primary encrypted information to determine target conversion data; The target conversion data is divided to determine a plurality of initial data blocks, and a target data block of a target size is determined using the initial data blocks and the primary encrypted data.
5. The terminal device information storage management system for smart retail according to claim 4, characterized in that: The step of converting the acquired primary encrypted information to determine target conversion data includes: Performing a first conversion on the acquired transaction data in the primary encrypted information to obtain first conversion data, wherein the first conversion converts the transaction data in the primary encrypted information into corresponding characters; The first conversion data is converted for the second time to obtain target conversion data, wherein the second conversion converts the corresponding relationship characters into binary characters.
6. The terminal device information storage management system for smart retail according to claim 5, characterized in that: The step of dividing the target conversion data to determine a plurality of initial data blocks includes: Obtaining a first similarity between a binary sequence corresponding to each binary character in the same target data block and a binary sequence corresponding to another binary character; Acquire a second similarity between different target data blocks; The first similarity and the second similarity are used to determine a division situation, and then the target conversion data is divided according to the division situation to determine a plurality of the initial data blocks.
7. The terminal device information storage management system for smart retail according to claim 6, characterized in that: The step of determining a target data block of a target size by using the initial data block and the primary encrypted data comprises: The initial data block is complemented by using the primary encrypted data to obtain the target data block of the target size.
8. The terminal device information storage management system for smart retail according to claim 7, characterized in that: Also includes: Obtaining a third similarity corresponding to a current target data block in the same primary encrypted information, and obtaining a fourth similarity corresponding to an adjacent target data block; The target data block is adjusted using the third similarity and the fourth similarity to determine an adjusted target data block.
9. The terminal device information storage management system for smart retail according to claim 3, characterized in that: The dynamic encryption module performs a multi-level second encryption on the target data block to determine the target encryption information, as follows: Generate dynamic encryption keys using random numbers; The target data block corresponding to the primary encrypted information is encrypted at multiple levels using the dynamic encryption key to determine the target encrypted information.
10. The terminal device information storage management system for smart retail according to claim 9, characterized in that: Also includes: Get the number of target data blocks; Generate a first dynamic encryption key using a random number, and encrypt the first target data block using the first dynamic encryption key to obtain a first dynamic ciphertext; The first dynamic ciphertext is extracted to obtain the second dynamic encryption key, and the second target data block is encrypted with the second dynamic encryption key to obtain the second dynamic ciphertext, and then multiple target data blocks are multi-level encrypted according to the number information, so as to obtain multiple dynamic ciphertexts as the target encryption information.
Citation Information
Patent Citations
Method and system for data security processing
CN103780377A
Data encrypted transmission method
CN108768930A
Cross-browser user data security management system based on encryption technology
CN112751855A
Block chain-based encrypted fragment recombination data storage method and system
CN114153836A
Data processing method and device based on encryption algorithm, equipment and medium
CN114528574A