CN116049845B - Product information code management system - Google Patents

Product information code management system Download PDF

Info

Publication number
CN116049845B
CN116049845B CN202211554647.XA CN202211554647A CN116049845B CN 116049845 B CN116049845 B CN 116049845B CN 202211554647 A CN202211554647 A CN 202211554647A CN 116049845 B CN116049845 B CN 116049845B
Authority
CN
China
Prior art keywords
coordinate
data
address
code
square area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211554647.XA
Other languages
Chinese (zh)
Other versions
CN116049845A (en
Inventor
宋继斌
苏晓辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Chuanglianxiang Information Technology Co ltd
Original Assignee
Xiamen Chuanglianxiang Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Chuanglianxiang Information Technology Co ltd filed Critical Xiamen Chuanglianxiang Information Technology Co ltd
Priority to CN202211554647.XA priority Critical patent/CN116049845B/en
Publication of CN116049845A publication Critical patent/CN116049845A/en
Application granted granted Critical
Publication of CN116049845B publication Critical patent/CN116049845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Storage Device Security (AREA)

Abstract

The invention relates to the technical field of computers, in particular to a product information code management system, which comprises a data storage module, a data processing module and a data retrieval module, wherein the data processing module determines an information code uniquely corresponding to a product, the data processing module comprises a first square area and a second square area selected in the first square area, coordinates corresponding to the middle point of the second square area are encrypted to generate a first encrypted ciphertext as a digital code, a coordinate characteristic value is calculated according to the coordinates, an encryption algorithm matched with the coordinate characteristic value is called to encrypt an address of a data set to generate a second encrypted ciphertext and generate a sub two-dimensional code in the second square area, the data retrieval module decrypts the digital code to generate coordinates, the coordinate characteristic value is calculated, a decryption algorithm matched with the coordinate characteristic value is called to decrypt the second encrypted ciphertext to determine the address of the data set, the information code is prevented from being replaced, damage, modification and leakage are avoided, and the safety of product information is ensured.

Description

Product information code management system
Technical Field
The invention relates to the technical field of computers, in particular to a product information code management system.
Background
The product information comprises production information and circulation information of the product, the production information and circulation information of the whole process are generated in the whole production and circulation processes of the product, and the whole process from the producer to the purchaser is recorded, so that the product information is the basis of tracing the source of the product overtaking flow, and has an important role.
Chinese patent publication No.: CN111865586a discloses a method and device for encrypting and decrypting product information based on blockchain, which can encrypt the product information by a producer based on a unique product secret code, when a circulation party exists, a circulation key can be unidirectionally generated according to the unique secret code, and the circulation party can continue to generate a circulation information encryption key according to the circulation key, encrypt the circulation information, and regenerate the next circulation key according to the circulation information encryption key. The method is characterized in that the production information is encrypted in a mode of generating a key in a chained interlink one-way mode, and the production information is encrypted and stored by utilizing the characteristics that a unique secret code of the product cannot be known except a producer and a purchaser and the characteristics that a block chain cannot be tampered and counterfeited, so that the production information has high confidentiality.
However, the following problems are also present in the prior art:
In the prior art, the information code is single in form, the user side can acquire information through the information code, and the information code is easy to forge, so that the user side acquires fake product information, and in the prior art, the way of combining physical encryption and data encryption is not considered, so that the data is prevented from being forged due to replacement of the information code.
Disclosure of Invention
In order to solve the above problems, the present invention provides a product information code management system, comprising:
The data storage module comprises an algorithm database and a plurality of data sets, wherein the algorithm database comprises a plurality of different encryption algorithms and decryption algorithms corresponding to the encryption algorithms, and the data sets are used for storing product information;
The data processing module comprises a storage address determining unit, a digital code setting unit, an encryption and decryption unit and a two-dimensional code generating unit which are connected with the data storage module so as to generate an information code containing a digital code and a two-dimensional code;
The digital code setting unit is used for determining a first square area, selecting a second square area in the first square area, encrypting coordinates corresponding to the middle point of the second square area by a preset coordinate encryption algorithm to generate a first encrypted ciphertext, and determining the first encrypted ciphertext into a digital code;
The encryption and decryption unit is used for calculating coordinate characteristic values according to coordinates corresponding to the middle point of the second square area, matching the coordinate characteristic values with a plurality of encryption algorithms in the algorithm database, judging whether to call the corresponding encryption algorithm to encrypt the address of the data set according to the matching result, and generating a second encrypted ciphertext;
The two-dimension code generating unit is used for generating sub two-dimension codes in a second square area according to the second encrypted ciphertext;
The data retrieval module comprises an address determination unit and a data calling unit, wherein the address determination unit is connected with the data storage module, and is used for decrypting digital codes according to a preset coordinate decryption algorithm corresponding to the preset coordinate encryption algorithm to generate coordinates, calculating coordinate characteristic values according to the coordinates, matching the coordinate characteristic values with a plurality of encryption algorithms in an algorithm database, calling a decryption algorithm corresponding to the encryption algorithm matched with the coordinate characteristic values to decrypt second encrypted ciphertext corresponding to the sub-two-dimensional codes, and determining the address of the data set;
The data calling unit is used for calling and storing the product information in the corresponding data set according to the determined address.
Further, the storage address determining unit selects an address of a data set of the storage data, wherein,
The storage address determining unit determines a data set of non-stored data, randomly selects one data set from a plurality of data sets of the non-stored data, and determines an address of the data set.
Further, the digital code setting unit determines a first square region, and selects a second square region within the first square region, wherein,
The digital code setting unit determines a two-dimensional code area of the information code, establishes a rectangular coordinate system by taking the area center of the two-dimensional code area as an origin, determines a first square area with a preset first width D1 in the rectangular coordinate system, randomly selects a second square area with a preset second width D2 in the first square area,And determining the coordinates of the midpoint of the second square area.
Further, the encryption/decryption unit calculates a coordinate feature value E according to the received coordinates and the formula (1),
In the formula (1), X represents an X-axis coordinate value of the coordinate, and Y represents a Y-axis coordinate value of the coordinate.
Further, the data processing module is preset with a plurality of continuous data intervals, and establishes an association relation between each data interval and an encryption algorithm, wherein the encryption algorithm associated with each data interval is different.
Further, the encryption and decryption unit matches the coordinate characteristic value E with a plurality of encryption algorithms in the algorithm database, and judges whether to call a corresponding encryption algorithm to encrypt the address of the data set storing data according to the matching result, wherein,
And the encryption and decryption unit compares the coordinate characteristic value E with each data interval one by one, and if the coordinate characteristic value E belongs to any data interval, the encryption and decryption unit judges that the coordinate characteristic value E is matched with an encryption algorithm associated with the data interval, and judges that the encryption algorithm is called to encrypt the address of the data set, so as to generate a second encrypted ciphertext.
Further, the two-dimension code generating unit generates a sub two-dimension code in the second square area according to the received second encrypted ciphertext, randomly generates a two-dimension code image, fills the remaining area except the second square area in the first square area, and forms the two-dimension code of the information code.
Further, the address determining unit determines an image to be intercepted in the two-dimensional code of the information code, identifies the two-dimensional code in the invoked image to obtain a second encrypted ciphertext, decrypts the second encrypted ciphertext according to a decryption algorithm corresponding to the matching of the coordinate characteristic value E, determines the address of the data set,
The address determining unit obtains image information of an information code, identifies a two-dimensional code area outline in the image information, establishes a rectangular coordinate system by taking the two-dimensional code area outline as a center, identifies a digital code area in the image information, determines a digital code, decrypts the digital code according to a preset coordinate decryption algorithm corresponding to the preset coordinate encryption algorithm to obtain coordinates, determines a square area with a width being a preset second width D2 by taking a coordinate point as a center in the rectangular coordinate system, extracts an image in the square area, identifies two-dimensional code information in the image to obtain a second encrypted ciphertext, calculates a coordinate feature value E according to a formula (1) according to the coordinates, matches the coordinate feature value E with a plurality of encryption algorithms in the algorithm database, determines a decryption algorithm of the encryption algorithm matched with the coordinate feature value E, and decrypts the second encrypted ciphertext through the decryption algorithm to obtain an address of a data set.
Further, the address determining unit determines whether the two-dimensional code or the digital code is tampered according to the decryption result when decrypting the second encrypted ciphertext according to the decryption algorithm corresponding to the coordinate characteristic value E,
And when the address determining unit cannot decrypt the second encrypted ciphertext through the decryption algorithm, the address determining unit judges that the two-dimensional code or the digital code is tampered.
Further, the data calling unit calls the product information in the data set corresponding to the address according to the determined address, and stores the product information in the data set corresponding to the address according to the determined address.
Compared with the prior art, the method has the advantages that the data storage module, the data processing module and the data retrieval module are arranged, the data processing module determines the first square area, the second square area is selected in the first square area, the coordinates corresponding to the middle point of the second square area are encrypted to generate the first encrypted ciphertext serving as the digital code, the coordinate characteristic value is calculated according to the coordinates, the encryption algorithm matched with the coordinate characteristic value is called to encrypt the address of the data set, the second encrypted ciphertext generated after the address is encrypted is used to generate the sub two-dimensional code in the second square area, the data retrieval module decrypts the digital code to generate the coordinates, the coordinate characteristic value is calculated, the decryption algorithm matched with the coordinate characteristic value is called to decrypt the second encrypted ciphertext, the address of the data set is determined, the information code is replaced to cause the data to be forged, the product information is prevented from being damaged, changed and leaked, and the safety of the product information is guaranteed.
In particular, in the invention, the data processing module encrypts the coordinates corresponding to the middle point of the second square area by a preset coordinate encryption algorithm to generate the digital code, encrypts the coordinates to generate the first encrypted ciphertext, and determines the first encrypted ciphertext to be the digital code, so that encryption measures are set for acquiring the product information, and leakage and tampering of the product information are prevented.
Particularly, in the invention, the data processing module calculates the coordinate characteristic value according to the coordinate corresponding to the midpoint of the second square area, invokes an encryption algorithm matched with the coordinate characteristic value to encrypt the address of the data set and generate the sub two-dimensional code, and performs data processing through the coordinate to generate the digital code by encrypting the coordinate, thereby establishing the connection between the address of the data set and the sub two-dimensional code as well as the digital code, determining the address of the data set through decryption of the sub two-dimensional code and the digital code, and simultaneously further setting encryption measures for acquiring product information by encrypting the address of the data set, so as to avoid the information code from being tampered and the information from being stolen or leaked.
Particularly, in the invention, the data processing module randomly generates the two-dimensional code image to fill the residual area except the second square area in the first square area, thereby playing an interference role in identifying the effective sub-two-dimensional code area, ensuring that the effective sub-two-dimensional code required by decryption can not be acquired through the two-dimensional code, further setting encryption measures for acquiring the product information, and acquiring the correct product information only by combining the actual information code with a specific authorized data retrieval module during decryption, and avoiding the information code from being tampered and the information from being stolen or revealed in a mode of combining physical encryption and data encryption.
In particular, in the invention, the data retrieval module decrypts the digital code to generate the coordinates and calculates the coordinate characteristic value, and the decryption algorithm is invoked according to the coordinate characteristic value to decrypt the second encrypted ciphertext corresponding to the sub-two-dimensional code to determine the address of the data set, so that the decryption party can invoke and store the product information in the data set corresponding to the address, and random tampering of the product information and leakage of the information are prevented.
Drawings
FIG. 1 is a schematic diagram of a product information code management system according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a data processing module according to an embodiment of the invention;
Fig. 3 is a schematic diagram of a data retrieval module according to an embodiment of the invention.
Detailed Description
In order that the objects and advantages of the invention will become more apparent, the invention will be further described with reference to the following examples; it should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are merely for explaining the technical principles of the present invention, and are not intended to limit the scope of the present invention.
It should be noted that, in the description of the present invention, terms such as "upper," "lower," "left," "right," "inner," "outer," and the like indicate directions or positional relationships based on the directions or positional relationships shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the apparatus or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those skilled in the art according to the specific circumstances.
Referring to fig. 1,2 and 3, which are schematic diagrams of a product information code management system, a data processing module and a data retrieving module according to an embodiment of the invention, the product information code management system of the invention includes:
The data storage module comprises an algorithm database and a plurality of data sets, wherein the algorithm database comprises a plurality of different encryption algorithms and decryption algorithms corresponding to the encryption algorithms, and the data sets are used for storing product information;
The data processing module comprises a storage address determining unit, a digital code setting unit, an encryption and decryption unit and a two-dimensional code generating unit which are connected with the data storage module so as to generate an information code containing a digital code and a two-dimensional code;
The digital code setting unit is used for determining a first square area, selecting a second square area in the first square area, encrypting coordinates corresponding to the middle point of the second square area by a preset coordinate encryption algorithm to generate a first encrypted ciphertext, and determining the first encrypted ciphertext into a digital code;
The encryption and decryption unit is used for calculating coordinate characteristic values according to coordinates corresponding to the middle point of the second square area, matching the coordinate characteristic values with a plurality of encryption algorithms in the algorithm database, judging whether to call the corresponding encryption algorithm to encrypt the address of the data set according to the matching result, and generating a second encrypted ciphertext;
The two-dimension code generating unit is used for generating sub two-dimension codes in a second square area according to the second encrypted ciphertext;
The data retrieval module comprises an address determination unit and a data calling unit, wherein the address determination unit is connected with the data storage module, and is used for decrypting digital codes according to a preset coordinate decryption algorithm corresponding to the preset coordinate encryption algorithm to generate coordinates, calculating coordinate characteristic values according to the coordinates, matching the coordinate characteristic values with a plurality of encryption algorithms in an algorithm database, calling a decryption algorithm corresponding to the encryption algorithm matched with the coordinate characteristic values to decrypt second encrypted ciphertext corresponding to the sub-two-dimensional codes, and determining the address of the data set;
The data calling unit is used for calling and storing the product information in the corresponding data set according to the determined address.
Specifically, the specific structures of the data storage module, the data processing module and the data retrieval module are not limited, and the units in each module can be independent computers or functional modules of the computers, and only the corresponding data processing function can be completed.
Specifically, the form of the information code in the present invention may be various, but the form of the information code should be a two-dimensional code and a digital code, and in practical application, the information code may be printed, and the printed pattern includes a two-dimensional code area and a digital code area on one side of the two-dimensional code area.
In particular, the present invention correspondingly determines a unique information storage address, i.e., the address of the data set, each time an information code needs to be generated.
Specifically, the method does not limit the conversion of the two-dimension code, which is the mature prior art, and can remove the positioning frame required by positioning when constructing the two-dimension code in the second square area; when the data retrieval module obtains the address of the product information, the two-dimensional code information can be identified by constructing a positioning frame after the square area determined according to the coordinates shoots an image, or the two-dimensional code can be identified directly according to the determined square area.
Specifically, the information code in the invention is generated in the form of an image when being generated in the data processing module, and a person skilled in the art can print according to the image to paste the information code on a corresponding product.
Specifically, the storage address determination unit selects an address of a data set of storage data, wherein,
The storage address determining unit determines a data set of non-stored data, randomly selects one data set from a plurality of data sets of the non-stored data, and determines an address of the data set.
Specifically, the digital code setting unit determines a first square region, and selects a second square region within the first square region, wherein,
The digital code setting unit determines a two-dimensional code area of the information code, establishes a rectangular coordinate system by taking the area center of the two-dimensional code area as an origin, determines a first square area with a preset first width D1 in the rectangular coordinate system, randomly selects a second square area with a preset second width D2 in the first square area,And determining the coordinates of the midpoint of the second square area.
Specifically, in the invention, the data processing module encrypts the coordinates corresponding to the middle point of the second square area by a preset coordinate encryption algorithm to generate the digital code, encrypts the coordinates to generate the first encrypted ciphertext, and determines the first encrypted ciphertext to be the digital code, so that encryption measures are set for acquiring the product information, and leakage and tampering of the product information are prevented.
Specifically, the encryption/decryption unit calculates a coordinate feature value E according to the received coordinates and the formula (1),
In the formula (1), X represents an X-axis coordinate value of the coordinate, and Y represents a Y-axis coordinate value of the coordinate.
Specifically, the data processing module is preset with a plurality of continuous data intervals, and establishes an association relation between each data interval and an encryption algorithm, wherein the encryption algorithm associated with each data interval is different.
Specifically, the encryption and decryption unit matches the coordinate characteristic value E with a plurality of encryption algorithms in the algorithm database, and judges whether to call a corresponding encryption algorithm to encrypt the address of the data set storing data according to the matching result, wherein,
And the encryption and decryption unit compares the coordinate characteristic value E with each data interval one by one, and if the coordinate characteristic value E belongs to any data interval, the encryption and decryption unit judges that the coordinate characteristic value E is matched with an encryption algorithm associated with the data interval, and judges that the encryption algorithm is called to encrypt the address of the data set, so as to generate a second encrypted ciphertext.
Specifically, in the invention, the data processing module calculates the coordinate characteristic value according to the coordinate corresponding to the midpoint of the second square area, invokes an encryption algorithm matched with the coordinate characteristic value to encrypt the address of the data set and generate the sub two-dimensional code, and encrypts the coordinate to generate the digital code, which is the data processing through the coordinate, so that the connection between the address of the data set and the sub two-dimensional code as well as the digital code is established, the address of the data set can be determined through the decryption of the sub two-dimensional code and the digital code, and meanwhile, encryption measures are further set for acquiring product information through encrypting the address of the data set, thereby avoiding the information code from being tampered and the information from being stolen or leaked.
Specifically, the two-dimensional code generating unit generates a sub two-dimensional code in the second square area according to the received second encrypted ciphertext, randomly generates a two-dimensional code image, fills the remaining area except the second square area in the first square area, and forms the two-dimensional code of the information code.
Specifically, in the invention, the data processing module randomly generates the two-dimensional code image to fill the residual area except the second square area in the first square area, thereby playing an interference role in identifying the effective sub-two-dimensional code area, ensuring that the effective sub-two-dimensional code required by decryption can not be acquired through the two-dimensional code, further setting encryption measures for acquiring the product information, and acquiring the correct product information only by using a specific authorized data retrieval module in combination with the actual information code during decryption, and avoiding the information code from being tampered and the information from being stolen or leaked in a mode of combining physical encryption and data encryption.
Specifically, the address determining unit determines an image to be intercepted in a two-dimensional code of the information code, identifies the two-dimensional code in the invoked image to obtain a second encrypted ciphertext, decrypts the second encrypted ciphertext according to a decryption algorithm corresponding to the matching of the coordinate characteristic value E, determines an address of the data set,
The address determining unit obtains image information of an information code, identifies a two-dimensional code area outline in the image information, establishes a rectangular coordinate system by taking the two-dimensional code area outline as a center, identifies a digital code area in the image information, determines a digital code, decrypts the digital code according to a preset coordinate decryption algorithm corresponding to the preset coordinate encryption algorithm to obtain coordinates, determines a square area with a width being a preset second width D2 by taking a coordinate point as a center in the rectangular coordinate system, extracts an image in the square area, identifies two-dimensional code information in the image to obtain a second encrypted ciphertext, calculates a coordinate feature value E according to a formula (1) according to the coordinates, matches the coordinate feature value E with a plurality of encryption algorithms in the algorithm database, determines a decryption algorithm of the encryption algorithm matched with the coordinate feature value E, and decrypts the second encrypted ciphertext through the decryption algorithm to obtain an address of a data set.
Specifically, the address determining unit cannot decrypt the second encrypted ciphertext obtained by identifying the image in the two-dimensional code area determined by the coordinates according to the corresponding decryption algorithm matched with the coordinate characteristic value E, and the address determining unit determines that the two-dimensional code or the digital code is tampered and sends out an alarm.
Specifically, the encryption and decryption methods of the encryption algorithm and the decryption algorithm are not limited, and are not described herein in detail for the mature prior art.
Specifically, the method is not limited to the specific mode of generating the sub two-dimensional code according to the encrypted ciphertext and identifying the encrypted ciphertext according to the sub two-dimensional code, and is mature in the prior art and will not be repeated here.
Specifically, the data calling unit calls the product information in the data set corresponding to the address according to the determined address, and stores the product information in the data set corresponding to the address according to the determined address.
Specifically, in the invention, the data retrieval module decrypts the digital code to generate the coordinates and calculates the coordinate characteristic value, and the decryption algorithm is invoked according to the coordinate characteristic value to decrypt the second encrypted ciphertext corresponding to the sub-two-dimensional code to determine the address of the data set, so that the decryption party can invoke and store the product information in the data set corresponding to the address, and random tampering of the product information and leakage of the information are prevented.
Thus far, the technical solution of the present invention has been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of protection of the present invention is not limited to these specific embodiments. Equivalent modifications and substitutions for related technical features may be made by those skilled in the art without departing from the principles of the present invention, and such modifications and substitutions will be within the scope of the present invention.

Claims (9)

1. A product information code management system, comprising:
The data storage module comprises an algorithm database and a plurality of data sets, wherein the algorithm database comprises a plurality of different encryption algorithms and decryption algorithms corresponding to the encryption algorithms, and the data sets are used for storing product information;
The data processing module comprises a storage address determining unit, a digital code setting unit, an encryption and decryption unit and a two-dimensional code generating unit which are connected with the data storage module so as to generate an information code containing a digital code and a two-dimensional code;
The digital code setting unit is used for determining a first square area, selecting a second square area in the first square area, encrypting coordinates corresponding to the middle point of the second square area by a preset coordinate encryption algorithm to generate a first encrypted ciphertext, and determining the first encrypted ciphertext into a digital code;
The encryption and decryption unit is used for calculating coordinate characteristic values according to coordinates corresponding to the middle point of the second square area, matching the coordinate characteristic values with a plurality of encryption algorithms in the algorithm database, judging whether to call the corresponding encryption algorithm to encrypt the address of the data set according to the matching result, and generating a second encrypted ciphertext;
The two-dimension code generating unit is used for generating sub two-dimension codes in a second square area according to the second encrypted ciphertext;
The data retrieval module comprises an address determination unit and a data calling unit, wherein the address determination unit is connected with the data storage module, and is used for decrypting digital codes according to a preset coordinate decryption algorithm corresponding to the preset coordinate encryption algorithm to generate coordinates, calculating coordinate characteristic values according to the coordinates, matching the coordinate characteristic values with a plurality of encryption algorithms in an algorithm database, calling a decryption algorithm corresponding to the encryption algorithm matched with the coordinate characteristic values to decrypt second encrypted ciphertext corresponding to the sub-two-dimensional codes, and determining the address of the data set;
The data calling unit is used for calling and storing the product information in the corresponding data set according to the determined address;
The digital code setting unit determines a first square area and selects a second square area in the first square area, wherein,
The digital code setting unit determines a two-dimensional code area of the information code, establishes a rectangular coordinate system by taking the area center of the two-dimensional code area as an origin, determines a first square area with a preset first width D1 in the rectangular coordinate system, randomly selects a second square area with a preset second width D2 in the first square area, and D2 is less than or equal toD1 and determining the coordinates of the midpoint of the second square area.
2. The product information code management system according to claim 1, wherein the storage address determination unit selects an address of a data set of the storage data, wherein,
The storage address determining unit determines a data set of non-stored data, randomly selects one data set from a plurality of data sets of the non-stored data, and determines an address of the data set.
3. The product information code management system according to claim 2, wherein the encryption/decryption unit calculates a coordinate feature value E according to formula (1) based on the received coordinates,
(1)
In the formula (1), X represents an X-axis coordinate value of the coordinate, and Y represents a Y-axis coordinate value of the coordinate.
4. The system according to claim 1, wherein the data processing module is preset with a plurality of continuous data intervals, and establishes an association relationship between each data interval and an encryption algorithm, and the encryption algorithm associated with each data interval is different.
5. The product information code management system according to claim 4, wherein the encryption/decryption unit matches the coordinate feature value E with a plurality of encryption algorithms in the algorithm database, and determines whether to invoke a corresponding encryption algorithm to encrypt an address of the data set storing data based on the matching result, wherein,
And the encryption and decryption unit compares the coordinate characteristic value E with each data interval one by one, and if the coordinate characteristic value E belongs to any data interval, the encryption and decryption unit judges that the coordinate characteristic value E is matched with an encryption algorithm associated with the data interval, and judges that the encryption algorithm is called to encrypt the address of the data set, so as to generate a second encrypted ciphertext.
6. The product information code management system according to claim 5, wherein the two-dimensional code generating unit generates a sub two-dimensional code in the second square area according to the received second encrypted ciphertext, and randomly generates a two-dimensional code image to fill a remaining area of the first square area except the second square area, thereby forming a two-dimensional code of the information code.
7. The product information code management system according to claim 6, wherein the address determining unit determines an image to be intercepted in a two-dimensional code of the information code, identifies the two-dimensional code in the invoked image to obtain a second encrypted ciphertext, decrypts the second encrypted ciphertext according to a decryption algorithm corresponding to the coordinate feature value E, determines an address of the data set, wherein,
The address determining unit obtains image information of an information code, identifies a two-dimensional code area outline in the image information, establishes a rectangular coordinate system by taking the two-dimensional code area outline as a center, identifies a digital code area in the image information, determines a digital code, decrypts the digital code according to a preset coordinate decryption algorithm corresponding to the preset coordinate encryption algorithm to obtain coordinates, determines a square area with a width being a preset second width D2 by taking a coordinate point as a center in the rectangular coordinate system, extracts an image in the square area, identifies two-dimensional code information in the image to obtain a second encrypted ciphertext, calculates a coordinate feature value E according to a formula (1) according to the coordinates, matches the coordinate feature value E with a plurality of encryption algorithms in the algorithm database, determines a decryption algorithm of the encryption algorithm matched with the coordinate feature value E, and decrypts the second encrypted ciphertext through the decryption algorithm to obtain an address of a data set.
8. The product information code management system according to claim 7, wherein the address determination unit determines whether the two-dimensional code or the digital code is tampered with or not according to a decryption result when decrypting the second encrypted ciphertext according to a decryption algorithm to which the coordinate feature value E matches,
And when the address determining unit cannot decrypt the second encrypted ciphertext through the decryption algorithm, the address determining unit judges that the two-dimensional code or the digital code is tampered.
9. The product information code management system according to claim 8, wherein the data calling unit calls product information in the data set corresponding to the address according to the determined address, and stores the product information in the data set corresponding to the address according to the determined address.
CN202211554647.XA 2022-12-06 2022-12-06 Product information code management system Active CN116049845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211554647.XA CN116049845B (en) 2022-12-06 2022-12-06 Product information code management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211554647.XA CN116049845B (en) 2022-12-06 2022-12-06 Product information code management system

Publications (2)

Publication Number Publication Date
CN116049845A CN116049845A (en) 2023-05-02
CN116049845B true CN116049845B (en) 2024-06-04

Family

ID=86122685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211554647.XA Active CN116049845B (en) 2022-12-06 2022-12-06 Product information code management system

Country Status (1)

Country Link
CN (1) CN116049845B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011048464A (en) * 2009-08-25 2011-03-10 Denso Wave Inc Optical information reader, authentication system using optical information reader, and method of transmitting information
KR20130026990A (en) * 2011-09-06 2013-03-14 양영철 Ycmf-code by manual file of link number for yc-code of three coordinates capable of with country calling code and area(global) calling code
CN106570355A (en) * 2016-09-30 2017-04-19 乐清咔咔网络科技有限公司 Encrypted information stamp and encryption method of the same
CN107146053A (en) * 2017-05-02 2017-09-08 山东浪潮通软信息科技有限公司 A kind of method and system that grain safety is received based on the guarantee that planar bar code technology is realized
CN110839026A (en) * 2019-11-12 2020-02-25 深圳市网心科技有限公司 Data processing method based on block chain and related equipment
CN112134687A (en) * 2020-09-15 2020-12-25 武汉工程大学 Information encryption and decryption method based on two-dimensional code
CN114881670A (en) * 2022-05-17 2022-08-09 徐万里 Texture RSA encryption anti-counterfeiting method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9218508B2 (en) * 2013-09-06 2015-12-22 Getac Technology Corporation Electronic device and protection method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011048464A (en) * 2009-08-25 2011-03-10 Denso Wave Inc Optical information reader, authentication system using optical information reader, and method of transmitting information
KR20130026990A (en) * 2011-09-06 2013-03-14 양영철 Ycmf-code by manual file of link number for yc-code of three coordinates capable of with country calling code and area(global) calling code
CN106570355A (en) * 2016-09-30 2017-04-19 乐清咔咔网络科技有限公司 Encrypted information stamp and encryption method of the same
CN107146053A (en) * 2017-05-02 2017-09-08 山东浪潮通软信息科技有限公司 A kind of method and system that grain safety is received based on the guarantee that planar bar code technology is realized
CN110839026A (en) * 2019-11-12 2020-02-25 深圳市网心科技有限公司 Data processing method based on block chain and related equipment
CN112134687A (en) * 2020-09-15 2020-12-25 武汉工程大学 Information encryption and decryption method based on two-dimensional code
CN114881670A (en) * 2022-05-17 2022-08-09 徐万里 Texture RSA encryption anti-counterfeiting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Android下二维码的CORS坐标转换参数保密传播方法;李前斌,林贤斌,陈金荣;测绘通报;20140425(第4期);136-137 *

Also Published As

Publication number Publication date
CN116049845A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US7080256B1 (en) Method for authenticating a chip card in a message transmission network
US4578531A (en) Encryption system key distribution method and apparatus
US5517567A (en) Key distribution system
WO2017202025A1 (en) Terminal file encryption method, terminal file decryption method, and terminal
GB2366938A (en) Method of authentication in a mobile communication network
CN111614621B (en) Internet of things communication method and system
CN113037486B (en) Power distribution automation information encryption method based on quantum reinforcement
CN106059760B (en) A kind of cryptographic system from user terminal crypto module calling system private key
CN113761488A (en) Content network copyright tracing encryption system and encryption method
CN108062481B (en) Intelligent encryption method for logistics information
CN112866227A (en) File authorization protection method and system
US7424114B2 (en) Method for enhancing security of public key encryption schemas
JPH10171717A (en) Ic card and cipher communication system using the same
CN110098925B (en) Quantum communication service station key negotiation method and system based on asymmetric key pool pair and random number
CN116049845B (en) Product information code management system
Kwon et al. Efficient key exchange and authentication protocols protecting weak secrets
CN114697082A (en) Production and application method of encryption and decryption device in server-free environment
CN111526131B (en) Anti-quantum-computation electronic official document transmission method and system based on secret sharing and quantum communication service station
CN104253692B (en) Key management method and device based on SE
CN116455572B (en) Data encryption method, device and equipment
US7970135B1 (en) Method for the secure, distributed generation of an encryption key
CN116049792B (en) Face registration and recognition method and face data protection system
US7415110B1 (en) Method and apparatus for the generation of cryptographic keys
AU2482801A (en) Method for generating/regenerating a cipher key for a cryptographic method
CN109635905A (en) Two-dimensional code generation method, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant