CN106022423B - Multifunctional two-dimensional code production method and recognition decryption method - Google Patents
Multifunctional two-dimensional code production method and recognition decryption method Download PDFInfo
- Publication number
- CN106022423B CN106022423B CN201610296563.9A CN201610296563A CN106022423B CN 106022423 B CN106022423 B CN 106022423B CN 201610296563 A CN201610296563 A CN 201610296563A CN 106022423 B CN106022423 B CN 106022423B
- Authority
- CN
- China
- Prior art keywords
- parameter
- multifunctional
- dimensional code
- antifalsification label
- assignment
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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/06037—Record 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
Abstract
The invention discloses a kind of multi-functional two code production methods, comprising the following steps: step 1 defines antifalsification label parameter described in several groups and assignment, stores into system;The parameter is carried out symmetric cryptography by step 2;Step 3 merges the antifalsification label parameter and basic information network address content, used between basic information network address and the tag parameter of assignment "? " separate, separated between the tag parameter of assignment using " & ", generates chained address;Step 4, the chained address is as the Multifunctional two-dimensional code content.The present invention is by first defining several antifalsification label parameters and being grouped assignment, defined antifalsification label parameter is added in original base information network address again, generate a new chained address, the Multifunctional two-dimensional code that can be linked to this link network address is made again, user scans this Multifunctional two-dimensional code, that is, the content in content relevant to antifalsification label parameter and original base information network address can be read.
Description
Technical field
The present invention relates to a kind of two dimensional codes, and in particular to a kind of Multifunctional two-dimensional code production method and recognition decryption method.
Background technique
On the market, the two dimensional code as antifalsification label is usually simple function, can only realize a certain specific function, is such as opened up
Show company information, jump to fake certification etc..And when antifalsification label will realize such as anti-channel conflict function, it needs for antifalsification label
Batch number or logistics code are configured, can not directly be realized using the same two dimensional code, it is therefore necessary to which another addition one is one-dimensional or two-dimentional
Code realizes batch number or logistics code, is in this way the increase that will cause antifalsification label area, influences the beauty of antifalsification label, simultaneously
Also scanning input can be caused to perplex, user will selectively scan different labels, be easy error.
Summary of the invention
The present invention is by first defining several antifalsification label parameters and be grouped assignment, then by defined antifalsification label parameter
It is added in original base information network address, generates a new chained address, then makes one to be linked to this link network address
Multifunctional two-dimensional code, user scans this Multifunctional two-dimensional code, that is, can be read content relevant to antifalsification label parameter and
Content in original base information network address.
The present invention is implemented as follows: a kind of multi-functional two code production methods, the Multifunctional two-dimensional code are used as anti-fake
Label, the Multifunctional two-dimensional code production method the following steps are included:
Step 1 defines antifalsification label parameter described in several groups and assignment, stores into system;
The antifalsification label parameter is carried out symmetric cryptography by step 2;
Step 3 merges the antifalsification label parameter and basic information network address content, basic information network address and tax
Used between the tag parameter of value "? " separate, separated between the tag parameter of assignment using " & ", generates chained address;
Step 4, the chained address is as the Multifunctional two-dimensional code content.
Preferably, the Multifunctional two-dimensional code production method further includes between step 3 and step 4, to the link
Address calculates signature value using signature algorithm, takes last signature parameter as chained address of the signature value;By assignment
Signature parameter be placed in after the content of chained address and using " & " separate, final chained address is obtained, as described multi-functional two
Tie up digital content.
Preferably, the antifalsification label parameter includes production O/No. parameter, logistics code parameter and security code.
Preferably, the signature algorithm is md5 encryption algorithm.
Further, the Multifunctional two-dimensional code recognition decryption method includes the following steps;
Step 1 scans the Multifunctional two-dimensional code and obtains final chained address;
Step 2, system obtain final last position of chained address, obtain the corresponding signature parameter assignment;
Step 3 calculates the second signature value using md5 encryption algorithm to final last four network address in chained address are removed,
It takes last position of the second signature value to compare with the signature parameter assignment, is unanimously then determining the Multifunctional two-dimensional code just
Really;
Step 4, system identification goes out corresponding antifalsification label parameter in final chained address, and it is close to carry out symmetric solution.
Compared with prior art, beneficial effects of the present invention: by first defining several antifalsification label parameters and being grouped tax
Value, then defined antifalsification label parameter is added in original base information network address, a new chained address is generated, then make
Make the Multifunctional two-dimensional code that can be linked to this link network address, user scans this Multifunctional two-dimensional code, that is, can be read with
Content in the relevant content of antifalsification label parameter and original base information network address, since newly-generated link network address is to be based on
The access of original base information network address, therefore the access of original base information network address is not interfered with, antifalsification label parameter is
As the variable of original base information network address, therefore makes and realize simply, in addition, passing through different terminal and software scans
This Multifunctional two-dimensional code can read different parameters to realize different functions.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, for this field
For those of ordinary skill, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is that multi-functional two code systems of the present invention make method flow diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein only to explain the present invention, not
For limiting the present invention.
It should be noted that it can be directly another when element is referred to as " being fixed on " or " being set to " another element
On one element or it may be simultaneously present centering elements.When an element is known as " being connected to " another element, it can
To be directly to another element or may be simultaneously present centering elements.
It is only relative concept each other it should also be noted that, the positional terms such as left and right, upper and lower in the embodiment of the present invention
It or is to refer to, and should not be regarded as restrictive with the normal operating condition of product.
As shown in Figure 1, making method flow diagram for multi-functional two code systems of the present invention, comprising the following steps:
Step 1 S101 defines antifalsification label parameter described in several groups and assignment, stores into system;
The antifalsification label parameter is carried out symmetric cryptography by step 2 S102;
Step 3 S103 merges the antifalsification label parameter and basic information network address content, basic information network address
Used between the tag parameter of assignment "? " separate, separated between the tag parameter of assignment using " & ", generates chained address;
Step 4 S104, the chained address is as the Multifunctional two-dimensional code content.
The embodiment of the present invention one, basic information network address are http://www.sz12365.net/fw, which includes enterprise
Title, product information.
Make Multifunctional two-dimensional code antifalsification label the following steps are included:
(1) when enterprise receives a production order, the production order for defining the batch antifalsification label parameter first is compiled
Number it is d, is w for the logistics code of wherein each edition antifalsification label parameter, is that each corresponding security code of antifalsification label parameter is
F, and store into system;
(2) above-mentioned production O/No. d, logistics code w and security code f are subjected to symmetric cryptography, obtain one group of data and makes a living
Produce O/No. d=xdew1;Logistics code w=123xd123;Security code f=xwkjflsk, to guarantee data security;
(3) by above-mentioned production O/No. d=xdew1, logistics code w=123xd123 and security code f=123xd123 with
Basic information network address content merges, and generates chained address:
Http:// www.sz12365.net/fw? d=xdew1&w=123xd123&f=xwkjflsk;
(4) using above-mentioned chained address as Multifunctional two-dimensional code content, required Multifunctional two-dimensional code can be obtained.
Wherein, symmetric cryptography is existing mature technology, is not described herein.
The embodiment of the present invention two, what is different from the first embodiment is that between step (3) and step (4), to chained address
Http:// www.sz12365.net/fw? d=xdew1&w=123xd123&f=xwkjflsk is calculated using md5 encryption algorithm
Signature value=330 take last signature parameter s=0 as chained address of the signature value;Signature parameter s=0 is placed
Separate after the content of chained address and using " & ", obtain final chained address:
Http:// www.sz12365.net/fw? d=xdew1&w=123xd123&f=xwkjflsk&s=0, by this
Network address is as the Multifunctional two-dimensional code content.
The Multifunctional two-dimensional code antifalsification label distinguish decryption method the following steps are included:
1) it scans the Multifunctional two-dimensional code antifalsification label and obtains final chained address
Http:// www.sz12365.net/fw? d=xdew1&w=123xd123&f=xwkjflsk&s=0;
2) system obtains above-mentioned final chained address
Http:// www.sz12365.net/fw? d=xdew1&w=123xd123&f=xwkjflsk&s=0 last
Position 0 to get arrive corresponding signature parameter assignment 0;
3) system removes final chained address
Http:// www.sz12365.net/fw? d=xdew1&w=123xd123&f=xwkjflsk&s=0's is last
Four " &s=0 ", obtain network address
Http:// www.sz12365.net/fw? d=xdew1&w=123xd 123&f=xwkjflsk, then use MD5
When Encryption Algorithm the second signature value of calculating=330, take second last position of signature value to compare with signature parameter assignment, at this point, the
Two last position of signature value are 0, and signature parameter is assigned a value of 0, and the two is equal, then determine that network address is not tampered with, and are determined described more
Function two dimensional code is correct;
4) system identification goes out above-mentioned network address
Http:// www.sz12365.net/fw? corresponding life in d=xdew1&w=123xd123&f=xwkjflsk
Produce O/No. d=xdew1;Logistics code w=123xd123;Security code f=xwkjflsk, and it is close to carry out symmetric solution, is given birth to
Produce the former assignment of O/No. d, logistics code w and security code f.
When final chained address
Http:// www.sz12365.net/fw? d=xdew1&w=123xd123&f=xwkjflsk&s=0 is usurped
Change, be such as tampered for
Http:// www.sz12365.net/fw? d=xdew1&w=123xd123&f=xwkjflst&s=0, i.e., it is anti-
Pseudo-code f value becomes " xwkjflst " from " xwkjflsk ", then calculating signature value using md5 encryption algorithm is not 330, and becomes it
It is worth, such as 335, then last position of signature value is 5, and signature parameter is assigned a value of s=0, and the two is unequal, then determines final link
Network address is tampered, and determines that the Multifunctional two-dimensional code is incorrect.Enterprise can make when using Multifunctional two-dimensional code antifalsification label
With the two dimensional code on special software or equipment scanning label, system reads out production by the identification to antifalsification label two dimensional code
O/No., logistics code and security code.It can select to produce entire order, an antifalsification label or single security code respectively
Multistage information registration is realized in the typing of product information and distributor information.
Product Manufacturing Information can be tracked by producing O/No. d and logistics code w.
Consumer entering security code f verifies product, according to consumer's IP address in product certification, can obtain consumption
It is encoded with dealer or logistics code w is compared, can quickly analyzed and sentence by area of the person where when product false proof authenticates
The problem of stopping pregnancy product falsifying, product falsifying is judged if inconsistent, supervise department for enterprise market and foundation is provided, and judgement is tied
Fruit records in the database.
After scanning input Multifunctional two-dimensional code, available product information, company information, the whether correct (product of security code
Whether certified products information) and distributor information.
The present invention is used for the Multifunctional two-dimensional code of antifalsification label, can be realized simultaneously multiple functions, such as displaying company information,
Jump to fake certification, configuration batch number and logistics code etc., without multiple two dimensional codes so that user need not barcode scanning it is multiple
Two dimensional code obtains different information, easy to use, not easy to make mistakes, is used especially for that market surpervision is anti-fake to trace to the source or enterprise is to production
Management.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modification, equivalent replacement or improvement etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (2)
1. a kind of Multifunctional two-dimensional code production method, which is characterized in that the Multifunctional two-dimensional code is used as antifalsification label, described more
Function two dimensional code production method the following steps are included:
Step 1 defines antifalsification label parameter described in several groups and assignment, stores into system;
The antifalsification label parameter is carried out symmetric cryptography by step 2;
Step 3 merges the antifalsification label parameter and basic information network address content, basic information network address and assignment
Used between tag parameter "? " separate, separated between the tag parameter of assignment using " & ", generates chained address;To the link
Address calculates signature value using signature algorithm, takes last signature parameter as chained address of the signature value;By assignment
Signature parameter be placed in after the content of chained address and using " & " separate, obtain final chained address;The signature algorithm is
Md5 encryption algorithm;
Step 4, the chained address is as the Multifunctional two-dimensional code content;
Antifalsification label parameter includes production O/No. parameter, logistics code parameter and security code.
2. the recognition decryption method that one kind makes the Multifunctional two-dimensional code according to claim 1, which is characterized in that more function
Can two dimension code reading decryption method the following steps are included:
Step 1 scans the Multifunctional two-dimensional code and obtains final chained address;
Step 2, system obtain final last position of chained address, obtain the corresponding signature parameter assignment;
Step 3 calculates the second signature value using md5 encryption algorithm to final last four network address in chained address are removed, takes institute
It states second last position of signature value to compare with the signature parameter assignment, unanimously then determines that the Multifunctional two-dimensional code is correct;
Step 4, system identification goes out corresponding antifalsification label parameter in final chained address, and it is close to carry out symmetric solution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610296563.9A CN106022423B (en) | 2016-05-05 | 2016-05-05 | Multifunctional two-dimensional code production method and recognition decryption method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610296563.9A CN106022423B (en) | 2016-05-05 | 2016-05-05 | Multifunctional two-dimensional code production method and recognition decryption method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106022423A CN106022423A (en) | 2016-10-12 |
CN106022423B true CN106022423B (en) | 2019-03-29 |
Family
ID=57081840
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610296563.9A Active CN106022423B (en) | 2016-05-05 | 2016-05-05 | Multifunctional two-dimensional code production method and recognition decryption method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106022423B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109657765B (en) * | 2018-12-04 | 2022-06-28 | 巨人移动科技有限公司 | Method and system for manufacturing and using two-dimensional code |
CN112825205A (en) * | 2019-11-19 | 2021-05-21 | 阿里健康信息技术有限公司 | Vending machine, and packaging method and device for vending machine |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103295046A (en) * | 2013-06-13 | 2013-09-11 | 北京网秦天下科技有限公司 | Method and device for generating and using safe two-dimensional codes |
CN104392197A (en) * | 2014-11-24 | 2015-03-04 | 深圳市通用条码技术开发中心 | Method for increasing reading rate and encryption of website two-dimensional code tags |
CN104537539A (en) * | 2014-11-05 | 2015-04-22 | 深圳市通用条码技术开发中心 | Method for activating and forbidding anti-counterfeit label based on two-dimension code recognition technology |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060149962A1 (en) * | 2003-07-11 | 2006-07-06 | Ingrian Networks, Inc. | Network attached encryption |
-
2016
- 2016-05-05 CN CN201610296563.9A patent/CN106022423B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103295046A (en) * | 2013-06-13 | 2013-09-11 | 北京网秦天下科技有限公司 | Method and device for generating and using safe two-dimensional codes |
CN104537539A (en) * | 2014-11-05 | 2015-04-22 | 深圳市通用条码技术开发中心 | Method for activating and forbidding anti-counterfeit label based on two-dimension code recognition technology |
CN104392197A (en) * | 2014-11-24 | 2015-03-04 | 深圳市通用条码技术开发中心 | Method for increasing reading rate and encryption of website two-dimensional code tags |
Also Published As
Publication number | Publication date |
---|---|
CN106022423A (en) | 2016-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3262785B1 (en) | Tracking unitization occurring in a supply chain | |
US20190188732A1 (en) | System and method for ensuring credibility of items in a supply chain management | |
Shim et al. | The Internet of Things: Multi-faceted research perspectives | |
CN108734475B (en) | Traceability anti-counterfeiting method based on big data relevance analysis | |
US20200097717A1 (en) | Automated document processing | |
US10614312B2 (en) | Method and apparatus for determining signature actor and identifying video based on probability of appearance of signature actor | |
CN106295735B (en) | Method and device for acquiring code information by calculating | |
US11275970B2 (en) | Systems and methods for distributed data analytics | |
CN106022423B (en) | Multifunctional two-dimensional code production method and recognition decryption method | |
KR20170037673A (en) | Fingerprint authentication system, fingerprint authentication program, and fingerprint authentication method | |
CN113688252B (en) | Safe cross-domain recommendation method based on multi-feature collaborative knowledge graph and blockchain | |
CN111371559A (en) | Material inventory data providing method, device and system based on block chain | |
CN106599968A (en) | Multi-dimensional input commodity information processing method and apparatus for generating 2D codes | |
CN111414430A (en) | Commodity information management method based on block chain, electronic device and storage medium | |
CN109949050B (en) | Block chain-based product identification analysis method, terminal device and storage medium | |
CN110069937A (en) | Data source tracing method, system and device based on block chain | |
CN110162957B (en) | Authentication method and device for intelligent equipment, storage medium and electronic device | |
CN108460606A (en) | A kind of method for anti-counterfeit based on two-dimensional code scanning and revene lookup | |
CN113032524A (en) | Trademark infringement identification method, terminal device and storage medium | |
Zhao et al. | Creating lean and agile supply chains with blockchain | |
CN115022339A (en) | Block chain based supply chain tracing method and system and electronic equipment | |
Berghoff et al. | Towards auditable ai systems | |
CN109948321A (en) | Management method, device and the server of number identity | |
CN112269974A (en) | Data management and control method and system | |
US20220012678A1 (en) | System and method for tracking and tracing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |