Warehouse management method based on data encryption
By using a data encryption method in the warehouse management system, using the ECC algorithm to generate public and private keys, encrypting and transmitting the coordinates of items in the warehouse locations, the problem that the warehouse management system in the prior art is unable to accurately understand the material situation and insufficient confidentiality of information transmission, and the confidentiality and accuracy of information transmission are achieved.
Patent Information
- Application Number
- CN202510017754.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-05-06
AI Technical Summary
The existing warehouse management system cannot accurately understand the specific situation of the warehouse and materials, resulting in a decrease in the efficiency of the material warehouse use and insufficient confidentiality of the internal information transmission of the warehouse.
The warehouse management method based on data encryption is adopted. By establishing a warehouse three-dimensional model, acquiring the three-dimensional model feature points, using the ECC algorithm to generate public and private keys, encrypt and transmit the object position coordinates, and decrypt and compare them in the central area to ensure the confidentiality and accuracy of information transmission.
It realizes accurate transmission and verification of object information inside the warehouse, enhances the confidentiality of information transmission, and reduces the risk of information leakage and tampering caused by external attacks.
Smart Images

Figure CN119941136A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of warehouse management, and in particular to a warehouse management method based on data encryption. Background Art
[0002] With the continuous expansion of the scale of enterprises, warehouse management systems will play an increasingly important role. Efficient and convenient warehouse management systems can provide strong backing and powerful support for the production and operation of enterprises. The monitoring and management capabilities of warehouses and materials are insufficient, and the specific conditions of warehouses and materials cannot be accurately known, resulting in a decrease in the efficiency of the use of material warehouses and a decrease in the role of warehouses. In addition, the internal information transmission of some special warehouses generally has high requirements for information confidentiality. Therefore, in the process of internal information transmission in the warehouse, it is necessary to ensure the high confidentiality of information transmission. Therefore, a warehouse management method based on data encryption is proposed to solve the above problems. Summary of the invention
[0003] The purpose of the present invention is to solve the problem that the specific conditions of the warehouse and materials cannot be accurately known, resulting in reduced utilization efficiency of the material warehouse and low confidentiality of information transmission within the warehouse, and to propose a warehouse management method based on data encryption.
[0004] The technical solution of the present invention to solve the above technical problems is as follows: A warehouse management method based on data encryption includes the following steps: S1. Establish a three-dimensional model V of the warehouse according to the construction drawings; S2. Obtain m warehouse 3D model feature points , , according to the topological sorting algorithm, m warehouse 3D model feature points are sorted Sort and sort the m warehouse 3D model feature points The position coordinates are derived in order to obtain a sequence of length z; S3, obtaining the position image of the objects inside the warehouse and importing it into the warehouse three-dimensional model V; S4, obtaining the position image of objects inside the warehouse in real time, and updating the position coordinates of the objects inside the warehouse; S5. Generate a public key using the ECC algorithm , and the middle number of the sequence of length z in S2 As private key d; S6. Using public key Encrypt the coordinates of the item's location and transmit them to the central area; S7. The central area uses the private key d to decrypt the encrypted information. The central area compares the decrypted information with the specified object location coordinates. If the object location coordinates are wrong, the object with the wrong object location coordinates will be corrected. If the object location coordinates are correct, the object location will not be changed. If some internal objects are missing, the item will be displayed as lost.
[0005] Based on the above technical solution, the present invention can also be improved as follows.
[0006] Preferably, the step of obtaining the position image of objects inside the warehouse and importing it into the three-dimensional model V of the warehouse in S3 includes: preprocessing the image, using the computer vision algorithm SIFT to detect image feature points in the image, describing each feature point, generating a feature vector, and matching between different frames to establish a correspondence between frames, and then smoothing the three-dimensional model to reduce the jagged edges of the mesh.
[0007] Preferably, after the real-time acquisition of the position image of the objects inside the warehouse in S4 and the updating of the positions of the objects inside the warehouse, the internal objects can be counted by RFID to simultaneously verify the updated results in S4.
[0008] Preferably, the process of generating a public key using the ECC algorithm in S5 is as follows: First, define the elliptic curve parameter set , in is a prime number, a and b are the coefficients of the elliptic curve equation, G is a specific point on the elliptic curve: the base point, n is the number of points that can be generated by addition operations starting from the base point G, h is the ratio of the total number of points N on the elliptic curve to n, seedS is a random number used to generate the coefficients a and b of the elliptic curve equation; The equation of the elliptic curve is: ; Where a and b are curve parameters and satisfy 4a³ + 27b² ≠ 0; Use the addition operation to generate new points, take two points A (x1, y2) and B (x2, y2) on the elliptic curve, When two points A (x1, y2) and B (x2, y2) are not equal, the addition formula is: Slope ; ; ; is the horizontal coordinate of the point after the addition operation, is the ordinate of the point after the addition operation; When two points A (x1, y2) and B (x2, y2) are not equal, the addition formula is: Slope ; ; ; is the horizontal coordinate of the point after the addition operation, is the ordinate of the point after the addition operation; Using the formula Generate public key , public key Use BASE64 for encoding.
[0009] Preferably, the private key in S5 Need to meet the A positive integer in the interval, so first determine the middle number Is it 0? If it is 0, take the middle number. The last digit of is used as a transition number , if the transition number If it is 0, the next digit will be used as the transition number. , until the transition number Not 0, if the middle number If it is not 0, take the middle number As a transition number , and then determine the transition number Is it an integer? If not, the private key will be rounded up and output. , if it is an integer, the transition number is directly As a private key Output.
[0010] Preferably, the middle number of the sequence with length z in S2 in S5 is As private key d also includes: The private key d is managed hierarchically. The key hierarchical management structure includes: Root keys, key encryption keys, and working keys; The central area sets y 8-byte strings, converts the y 8-byte strings into y byte types, and then uses the 3DES encryption algorithm to encrypt the y byte type key components. The encryption process is as follows: encrypt the i-1th key component of the y byte type, and determine whether i is equal to y. If i < n, replace i with i+1 and repeat the above steps. If i = y, output the final data key R, and finally extract the first 8 bytes from the final data key R as the root key; The central area sets a password of length x, uses the 3DES encryption algorithm to encrypt, obtains the encrypted key data, and extracts the last 8 bytes from the key data as the key encryption key.
[0011] Use private key d directly as the working key.
[0012] Preferably, the step of encrypting the object location information using the public key and transmitting the information to the central area in S7 further includes: The item location information is hashed to generate a hash value of a fixed length, and the hash value is encrypted with a private key to generate a digital signature.
[0013] Preferably, the coordinates of the object position specified in S7 are a coordinate area , when the item position coordinates do not exceed the coordinate area , the item position coordinates are correct, the item position coordinates are out of the coordinate area , the item position coordinates are wrong.
[0014] Compared with the prior art, the technical solution of this application has the following beneficial technical effects: 1. After the present invention generates a sequence through the characteristic points of the warehouse three-dimensional model, a private key is generated through the middle number of the sequence. The private key can be paired with the public key to provide protection for the transmission of information inside the warehouse, ensure the accuracy of the information of objects inside the warehouse, and verify whether the objects inside the warehouse are lost.
[0015] 2. The present invention manages private keys in a hierarchical manner, dividing them into root keys, key encryption keys and working keys, which can further enhance the confidentiality level of the keys and reduce problems such as information leakage and tampering caused by external attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of the overall process of the present invention; Figure 2 The private key generation flow chart of the present invention. DETAILED DESCRIPTION
[0017] 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.
[0018] A warehouse management method based on data encryption includes the following steps: S1. Establish a three-dimensional model V of the warehouse according to the construction drawings; S2. Obtain m warehouse 3D model feature points , , according to the topological sorting algorithm, m warehouse 3D model feature points are sorted Sort and sort the m warehouse 3D model feature points The position coordinates are derived in order to obtain a sequence of length z; S3, obtaining the position image of the objects inside the warehouse and importing it into the warehouse three-dimensional model V; S4, obtaining the position image of objects inside the warehouse in real time, and updating the position coordinates of the objects inside the warehouse; S5. Generate a public key using the ECC algorithm , and the middle number of the sequence of length z in S2 As private key d; S6. Using public key Encrypt the coordinates of the item's location and transmit them to the central area; S7. The central area uses the private key d to decrypt the encrypted information. The central area compares the decrypted information with the specified object location coordinates. If the object location coordinates are wrong, the object with the wrong object location coordinates will be corrected. If the object location coordinates are correct, the object location will not be changed. If some internal objects are missing, the item will be displayed as lost.
[0019] Generally, images of objects inside a warehouse can be obtained by using a patrol robot or a drone equipped with a visual sensor. In addition, the patrol robot or drone can also be equipped with an infrared sensor to simultaneously collect non-object information, such as living information of staff, and exclude the corresponding living information from the image data.
[0020] Among them, the middle number is the number in the middle of a sequence of length z, that is, when z is an odd number, The number corresponding to the position, when z is an even number, Pick The number corresponding to the position.
[0021] The steps of obtaining the position image of the objects inside the warehouse and importing it into the three-dimensional model V of the warehouse as described in S3 include: preprocessing the image, using the computer vision algorithm SIFT to detect the image feature points in the image, describing each feature point, generating a feature vector, matching between different frames to establish a correspondence between frames, and then smoothing the three-dimensional model to reduce the jagged edges of the mesh.
[0022] S4 acquires the position image of the objects inside the warehouse in real time, and after updating the position of the objects inside the warehouse, the internal objects can be counted through RFID to simultaneously verify the updated result in S4.
[0023] The process of using the ECC algorithm to generate a public key in S5 is as follows: First, define the elliptic curve parameter set , in is a prime number, a and b are the coefficients of the elliptic curve equation, G is a specific point on the elliptic curve: the base point, n is the number of points that can be generated by addition operations starting from the base point G, h is the ratio of the total number of points N on the elliptic curve to n, seedS is a random number used to generate the coefficients a and b of the elliptic curve equation; The equation of the elliptic curve is: , Where a and b are curve parameters and satisfy 4a³ + 27b² ≠ 0; Use the addition operation to generate new points, take two points A (x1, y2) and B (x2, y2) on the elliptic curve, When two points A (x1, y2) and B (x2, y2) are not equal, the addition formula is: Slope ; ; ; is the horizontal coordinate of the point after the addition operation, is the ordinate of the point after the addition operation; When two points A (x1, y2) and B (x2, y2) are not equal, the addition formula is: Slope ; ; ; is the horizontal coordinate of the point after the addition operation, is the ordinate of the point after the addition operation; Using the formula Generate public key , public key Use BASE64 for encoding.
[0024] The private key in S5 Need to meet the A positive integer in the interval, so first determine the middle number Is it 0? If it is 0, take the middle number. The last digit of is used as a transition number , if the transition number If it is 0, the next digit will be used as the transition number. , until the transition number Not 0, if the middle number If it is not 0, take the middle number As a transition number , and then determine the transition number Is it an integer? If not, the private key will be rounded up and output. , if it is an integer, the transition number is directly As a private key Output.
[0025] The median number of the sequence of length z in S2 in S5 As private key d also includes: The private key d is managed hierarchically. The key hierarchical management structure includes: Root keys, key encryption keys, and working keys; The central area sets y 8-byte strings, converts the y 8-byte strings into y byte types, and then uses the 3DES encryption algorithm to encrypt the y byte type key components. The encryption process is as follows: encrypt the i-1th key component of the y byte type, and determine whether i is equal to y. If i < n, replace i with i+1 and repeat the above steps. If i = y, output the final data key R, and finally extract the first 8 bytes from the final data key R as the root key; The central area sets a password of length x, uses the 3DES encryption algorithm to encrypt, obtains the encrypted key data, and extracts the last 8 bytes from the key data as the key encryption key.
[0026] Use private key d directly as the working key.
[0027] A password with a length of x is set and encrypted using the 3DES encryption algorithm. Pathon can be used as follows: from Crypto.Cipher import DES3 from Crypto.Random import get_random_bytes from Crypto.Util.Padding import pad, unpad import base64 def encrypt_password(password, key): # Generate a random initialization vector (IV), the length must be 8 bytes iv = get_random_bytes(8) # Create a 3DES encryptor object with CBC mode cipher=DES3.new(key, DES3.MODE_CBC, iv) # Pad the password to make its length match the DES block size (8 bytes) padded_password=pad(password.encode('utf-8'),DES3.block_size) # Encrypted password encrypted_password=cipher.encrypt(padded_password) # Combine the IV and encrypted password and encode them in Base64 for storage or transmission encrypted_data=iv+encrypted_password encoded_data=base64.b64encode(encrypted_data).decode('utf-8') return encoded_data def decrypt_password(encoded_data, key): # Decode the Base64 encoded data back to the original bytes decrypted_data=base64.b64decode(encoded_data) # Extract the IV (first 8 bytes) and the encrypted password (the rest) iv=decrypted_data[:8] encrypted_password=decrypted_data[8:] # Create a 3DES decryptor object with CBC mode cipher=DES3.new(key, DES3.MODE_CBC, iv) # Decryption password padded_password=cipher.decrypt(encrypted_password) # Remove padding Password=unpad(padded_password,DES3.block_size).decode('utf-8') return password The step of encrypting the object location information using the public key and transmitting the information to the central area in S7 further includes: The item location information is hashed to generate a hash value of a fixed length, and the hash value is encrypted with a private key to generate a digital signature.
[0028] Digital signatures can be used in the central area to verify whether the item location information has been intercepted or tampered with.
[0029] S7 stipulates that the coordinates of the object position are a coordinate area , when the item position coordinates do not exceed the coordinate area , the item position coordinates are correct, the item position coordinates are out of the coordinate area , the item position coordinates are wrong.
[0030] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0031] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A warehouse management method based on data encryption, characterized in that: The following steps are involved: S1. Establish a three-dimensional model V of the warehouse according to the construction drawings; S2. Obtain m warehouse 3D model feature points , , according to the topological sorting algorithm, m warehouse 3D model feature points are sorted Sort and sort the m warehouse 3D model feature points The position coordinates are derived in order to obtain a sequence of length z; S3, obtaining the position image of the objects inside the warehouse and importing it into the warehouse three-dimensional model V; S4, obtaining the position image of objects inside the warehouse in real time, and updating the position coordinates of the objects inside the warehouse; S5. Generate a public key using the ECC algorithm , and the middle number of the sequence of length z in S2 As private key d; S6. Using public key Encrypt the coordinates of the item's location and transmit them to the central area; S7. The central area uses the private key d to decrypt the encrypted information. The central area compares the decrypted information with the specified object location coordinates. If the object location coordinates are wrong, the object with the wrong object location coordinates will be corrected. If the object location coordinates are correct, the object location will not be changed. If some internal objects are missing, the item will be displayed as lost.
2. A warehouse management method based on data encryption according to claim 1, characterized in that: The steps of obtaining the position image of the objects inside the warehouse and importing it into the three-dimensional model V of the warehouse as described in S3 include: preprocessing the image, using the computer vision algorithm SIFT to detect the image feature points in the image, describing each feature point, generating a feature vector, matching between different frames to establish a correspondence between frames, and then smoothing the three-dimensional model to reduce the jagged edges of the mesh.
3. A warehouse management method based on data encryption according to claim 1, characterized in that: S4 acquires the position image of the objects inside the warehouse in real time, and after updating the position of the objects inside the warehouse, the internal objects can be counted through RFID to simultaneously verify the updated result in S4.
4. A warehouse management method based on data encryption according to claim 1, characterized in that: The process of using the ECC algorithm to generate a public key in S5 is as follows: First, define the elliptic curve parameter set , in is a prime number, a and b are the coefficients of the elliptic curve equation, G is a specific point on the elliptic curve: the base point, n is the number of points that can be generated by addition operations starting from the base point G, h is the ratio of the total number of points N on the elliptic curve to n, seedS is a random number used to generate the coefficients a and b of the elliptic curve equation; The equation of the elliptic curve is: , Where a and b are curve parameters and satisfy 4a³ + 27b² ≠ 0; Use the addition operation to generate new points, take two points A (x1, y2) and B (x2, y2) on the elliptic curve, When two points A (x1, y2) and B (x2, y2) are not equal, the addition formula is: Slope , , , is the horizontal coordinate of the point after the addition operation, is the ordinate of the point after the addition operation; When two points A (x1, y2) and B (x2, y2) are not equal, the addition formula is: Slope , , , is the horizontal coordinate of the point after the addition operation, is the ordinate of the point after the addition operation; Using the formula Generate public key , public key Use BASE64 for encoding.
5. A warehouse management method based on data encryption according to claim 4, characterized in that: The private key in S5 Need to meet the A positive integer in the interval, so first determine the middle number Is it 0? If it is 0, take the middle number. The last digit of is used as a transition number , if the transition number If it is 0, the next digit will be used as the transition number. , until the transition number Not 0, if the middle number If it is not 0, take the middle number As a transition number , and then determine the transition number Is it an integer? If not, the private key will be rounded up and output. , if it is an integer, the transition number is directly As a private key Output.
6. A warehouse management method based on data encryption according to claim 1, characterized in that: The median number of the sequence of length z in S2 in S5 As private key d also includes: The private key d is managed hierarchically. The key hierarchical management structure includes: Root keys, key encryption keys, and working keys; The central area sets y 8-byte strings, converts the y 8-byte strings into y byte types, and then uses the 3DES encryption algorithm to encrypt the y byte type key components. The encryption process is as follows: encrypt the i-1th key component of the y byte type, and determine whether i is equal to y. If i < n, replace i with i+1 and repeat the above steps. If i = y, output the final data key R, and finally extract the first 8 bytes from the final data key R as the root key; The central area sets a password of length x, uses the 3DES encryption algorithm to encrypt, obtains the encrypted key data, and extracts the last 8 bytes from the key data as the key encryption key.
7. Use private key d directly as the working key.
8. A warehouse management method based on data encryption according to claim 1, characterized in that: The step of encrypting the object location information using the public key and transmitting the information to the central area in S7 further includes: The item location information is hashed to generate a hash value of fixed length, and the hash value is encrypted with a private key to generate a digital signature.
9. A warehouse management method based on data encryption according to claim 1, characterized in that: S7 stipulates that the coordinates of the object position are a coordinate area , when the item position coordinates do not exceed the coordinate area , the item position coordinates are correct, the item position coordinates are out of the coordinate area , the item position coordinates are wrong.
Citation Information
Patent Citations
Block chain data processing method and device
CN110601815A
Intelligent terminal and method for improving data transmission security
CN112950207A
Warehouse visual management control system
CN116993275A
Warehouse storage position synchronous management method based on digital twinning technology
CN118761709A
Key sharing method, private key generating method, common key generating method, encryption communication method, private key generator, common key generator, encryption communication system and recording medium
JP2002026892A