CN109816401A - A kind of product traceability and anti-counterfeiting system and method based on two dimensional code - Google Patents
A kind of product traceability and anti-counterfeiting system and method based on two dimensional code Download PDFInfo
- Publication number
- CN109816401A CN109816401A CN201910043346.2A CN201910043346A CN109816401A CN 109816401 A CN109816401 A CN 109816401A CN 201910043346 A CN201910043346 A CN 201910043346A CN 109816401 A CN109816401 A CN 109816401A
- Authority
- CN
- China
- Prior art keywords
- information
- product
- segment information
- dimensional code
- module
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 13
- 238000004519 manufacturing process Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 6
- 239000000284 extract Substances 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Abstract
The present invention relates to a kind of product traceability and anti-counterfeiting system based on two dimensional code, including input module, further include identity tag generation module;It further include teledata library module, the teledata library module is by digit order number information segmenting, segment information and back segment letter before being divided into, using preceding segment information as cipher key flag, corresponding key is generated using MD5 and random number algorithm, and cipher key flag and key are saved into database;Further include encrypting module, encrypted for rear segment information, obtains encrypted ciphertext;It further include two-dimensional code generation module, for preceding segment information and ciphertext to be changed into two dimensional code;Further include deciphering module, for the two dimensional code received to be extracted information, and search the corresponding cipher key flag of information into teledata library module, while segment information is decrypted after obtaining its corresponding key pair.Additionally provide a kind of product traceability and method for anti-counterfeit based on two dimensional code.This method and system can prevent product to be forged, counterfeit or be used for multiple times.
Description
Technical field
The present invention relates to product traceability anti-counterfeit fields, more particularly to the product traceability based on two dimensional code and anti-fake system
System and method.
Background technique
Two dimensional code is also known as QRCode, QR full name QuickResponse, is one all the fashion in mobile device in recent years
A kind of coding mode, it can deposit more information than traditional BarCode bar code, can also indicate more contents.
In certain products based on cloud service, product is sold as a kind of consumptive material, to obtain the additional clothes of product
Business, it is necessary to send specific request to cloud server terminal.The attached service of product simultaneously may have specific requirement, such as only
Energy service times only limit once.Under the present conditions, how to prevent product to be forged, is counterfeit or be used for multiple times.Become
One completely new problem.
Summary of the invention
In order to solve the problems in the existing technology, present invention thus provides a kind of product traceabilities based on two dimensional code
And method for anti-counterfeit, include at least following steps:
S1. unique identity tag of product, product type, date of manufacture, keeping life based on product etc. are generated
Information matches generate, the digit order number information after generation, the information that the more forward digit representation of mark is more basic, stable, and mark is got over
The information of digit representation more specialization rearward;
S2. key database is established, the preceding segment information of product identification card mark is taken, as its cipher key flag, and uses MD5
And random number algorithm generates corresponding key, saves into remote data base;
S3. the rear segment information of the key pair identity card mark generated using previous step, is encrypted;What is obtained is encrypted
Ciphertext;
S4. using the preceding segment information of product identification card mark and encrypted ciphertext as the open unique designation of product;
S5. the open unique designation of product obtained in the previous step is transformed into two dimensional code;
S6. it is required to carry out barcode scanning when end user requests cloud service content, to enclose product in the request
Open unique designation;
S7. Cloud Server is first using its preceding segment information as its cipher key flag after receiving the open unique designation of product
Its corresponding cipher key flag is first searched into remote data base, while obtaining its corresponding key;
S8. it is decrypted using the ciphertext of its product of the key pair, that is, the rear segment information of its disclosed unique designation;
S9. the plaintext after obtaining decryption adds its cipher key flag as preceding segment information, is exactly the unique identities mark of product
Will is sent to end user.
In addition, the present invention also provides a kind of product traceability and anti-counterfeiting system based on two dimensional code, including input module, this is defeated
Enter information of the module for input product;It further include identity tag generation module, the information for inputting input module generates
Digit order number information;
It further include teledata library module, which is divided into leading portion letter for the digit order number information segmenting
Breath and back segment letter generate corresponding key using MD5 and random number algorithm, and will be described using preceding segment information as cipher key flag
Cipher key flag and key are saved into database;
Further include encrypting module, is encrypted for the rear segment information, obtain encrypted ciphertext;
It further include two-dimensional code generation module, for the preceding segment information and ciphertext to be changed into two dimensional code;
It further include communication module, the two dimensional code arrived for receiving scanning input;It further include deciphering module, for that will receive
Two dimensional code extract the preceding segment information and rear segment information, and the preceding segment information pair is searched into the teledata library module
The cipher key flag answered, while obtaining its corresponding key;It is decrypted using rear segment information described in the key pair;After obtaining decryption
Plaintext plus cipher key flag as the preceding segment information, be exactly the unique identities mark of product, by the unique identities mark
User is transferred to by communication module.
Further, the digit order number information is 32, and the preceding segment information is preceding 8 information, and the rear segment information is
24 information.
Further, more basic, the stable information of the more forward digit representation of mark, mark are got in the digit order number information
The information of digit representation more specialization rearward.
Further, the key length is 128.
Further, the back segment information includes the information such as product type, date of manufacture, keeping life.
The reason for carrying out Encryption Algorithm to two dimensional code due to using, can protect two-dimensional barcode information, prevent puppet
It makes.
The validity to product cloud service is carried out using the unique identities mark of the product, is tracked, is traced to the source, access times
Etc. being controlled.The reason for carrying out Encryption Algorithm to two dimensional code due to using, can protect two-dimensional barcode information, prevent
It forges.
Detailed description of the invention
When considered in conjunction with the accompanying drawings, can be good at understanding that structure of the invention, principle, work are special with reference to following description
Point and advantage, but attached drawing described herein as is used to that of the invention is explained further, and accompanying schematic figure is intended merely to preferably right
The present invention is illustrated, and does not constitute improper restriction to the present invention, in which:
Fig. 1 is the structural schematic diagram of the product traceability and anti-counterfeiting system of the invention based on two dimensional code;
Fig. 2 is the flow chart of the product traceability and method for anti-counterfeit of the invention based on two dimensional code.
Specific embodiment
Below with reference to example and attached drawing, the invention will be further described, it is noted that following embodiment is only
Be it is schematical, be not intended to limitation the present invention.
Of the invention product traceability and anti-counterfeiting system based on two dimensional code includes input module, and the input module is for inputting
The information such as product type, date of manufacture, the keeping life of product.Further include identity tag generation module, is used to input
The information of module input generates 32 information.Particularly, more basic, the stable information of the more forward digit representation of mark, mark
The information of digit representation more specialization more rearward.
It further include teledata library module, which generates 32 information point for identity tag generation module
Section, is divided into preceding segment information and rear segment information, such as take preceding 8 information as preceding segment information, and 24 are used as rear segment information after taking, will
Preceding segment information generates corresponding key as cipher key flag, using MD5 and random number algorithm, and key length is 128, and by institute
It states cipher key flag and key is saved into database.
Further include encrypting module, is encrypted for the rear segment information, obtain encrypted ciphertext, ciphertext length is for example
It can be 24.
It further include two-dimensional code generation module, for the preceding segment information and ciphertext to be changed into two dimensional code.
It further include communication module, the two dimensional code arrived for receiving scanning input.
Further include deciphering module, for the two dimensional code received to be extracted the preceding segment information and rear segment information, and arrives institute
It states and searches the corresponding cipher key flag of the preceding segment information in teledata library module, while obtaining its corresponding key;Use this
Segment information is decrypted after described in key pair;Plaintext after obtaining decryption is plus the cipher key flag as the preceding segment information, just
It is the unique identities mark of product.The unique identities mark is transferred to user by communication module.
It, can since the back segment information includes the validity of the cloud service, track, trace to the source, access times etc.
To trace to the source well product.
More specifically, the present invention provides a kind of product traceability and method for anti-counterfeit based on two dimensional code, specifically comprising following
Step:
S1. the unique identity tag for generating product, can product type, date of manufacture, keeping life based on product
Etc. information matches generate, identity tag after generation is digit order number information, for example, 32.The more forward digit representation of mark is more
Basic, stable information, the information of digit representation more specialization of mark more rearward.
S2. key database is established, takes the preceding segment information of product identification card mark 8 for example preceding, as its cipher key flag,
And corresponding key is generated using MD5 and random number algorithm, key length is 128, is saved into remote data base.
S3. the rear segment information of the key pair identity card mark of previous step generation is used, such as latter 24 are encrypted.It obtains
Encrypted ciphertext, ciphertext length is, for example, 24.
S4. using the preceding segment information of product identification card mark and encrypted ciphertext as the open unique designation of product.
The open unique designation of product obtained in the previous step is transformed into two dimensional code by S5.
S6 requires it to carry out barcode scanning when end user requests cloud service content, to enclose product in the request
Open unique designation.
S7 Cloud Server is after receiving the open unique designation of product, using its preceding segment information as its cipher key flag.It is first
Its corresponding cipher key flag is first searched into remote data base.Its corresponding key is obtained simultaneously.
S8. it is decrypted using the ciphertext of its product of the key pair, that is, the rear segment information of its disclosed unique designation.
S9. the plaintext after obtaining decryption adds its cipher key flag as preceding segment information, is exactly the unique identities mark of product
Will.
The validity to product cloud service is carried out using the unique identities mark of the product, is tracked, is traced to the source, access times
Etc. being controlled.The reason for carrying out Encryption Algorithm to two dimensional code due to using, can protect two-dimensional barcode information, prevent
It forges.
Although having been combined embodiment to be described in detail the present invention, it should be understood by those skilled in the art that
Ground is that the present invention is not limited only to specific embodiment, on the contrary, becoming in the various amendments without departing from the application spirit and essence
Shape and replacement are all fallen among the protection scope of the application.
Claims (8)
1. a kind of product traceability and anti-counterfeiting system based on two dimensional code acts be characterized in that including input module, which is used
In the information of input product;It further include identity tag generation module, the information for inputting input module generates digit order number letter
Breath;
Further include teledata library module, the teledata library module by the digit order number information segmenting, be divided into before segment information and
Back segment letter regard preceding segment information as cipher key flag, using MD5 and the corresponding key of random number algorithm generation, and by the key
Mark and key are saved into database;
Further include encrypting module, is encrypted for the rear segment information, obtain encrypted ciphertext;
It further include two-dimensional code generation module, for the preceding segment information and ciphertext to be changed into two dimensional code;
It further include communication module, the two dimensional code arrived for receiving scanning input;It further include deciphering module, two for that will receive
It ties up code and extracts the preceding segment information and rear segment information, and it is corresponding to search into the teledata library module the preceding segment information
Cipher key flag, while obtaining its corresponding key;It is decrypted using rear segment information described in the key pair;It is bright after obtaining decryption
Text is exactly the unique identities mark of product, which is passed through plus the cipher key flag as the preceding segment information
Communication module is transferred to user.
2. the product traceability and anti-counterfeiting system according to claim 1 based on two dimensional code, it is characterised in that the digit order number
Information is 32, and the preceding segment information is preceding 8 information, and the rear segment information is 24 information.
3. according to the product traceability and anti-counterfeiting system according to claim 1 based on two dimensional code, it is characterised in that the number
More basic, the stable information of the more forward digit representation of mark in word bit information, digit representation more specialization of mark more rearward
Information.
4. according to the product traceability and anti-counterfeiting system according to claim 1 based on two dimensional code, which is characterized in that described close
Key length is 128.
5. according to the product traceability and anti-counterfeiting system according to claim 1 based on two dimensional code, which is characterized in that after described
Segment information includes the information such as product type, date of manufacture, keeping life.
6. a kind of product traceability and method for anti-counterfeit based on two dimensional code, it is characterised in that comprise the steps of:
S1. unique identity tag of product, the information such as product type, date of manufacture, keeping life based on product are generated
Matching generates, the digit order number information after generation, the information that the more forward digit representation of mark is more basic, stable, and mark is more rearward
Digit representation more specialization information;
S2. establish key database, take the preceding segment information of product identification card mark, as its cipher key flag, and using MD5 and with
Machine figures method and generates corresponding key, saves into remote data base;
S3. the rear segment information of the key pair identity card mark generated using previous step, is encrypted;What is obtained is encrypted close
Text;
S4. using the preceding segment information of product identification card mark and encrypted ciphertext as the open unique designation of product;
S5. the open unique designation of product obtained in the previous step is transformed into two dimensional code;
S6. it is required to carry out barcode scanning when end user requests cloud service content, to enclose the public affairs of product in the request
Open unique designation;
S7. Cloud Server is after receiving the open unique designation of product, using its preceding segment information as its cipher key flag, first extremely
Its corresponding cipher key flag is searched in remote data base, while obtaining its corresponding key;
S8. it is decrypted using the ciphertext of its product of the key pair, that is, the rear segment information of its disclosed unique designation;
S9. the plaintext after obtaining decryption adds its cipher key flag as preceding segment information, is exactly the unique identities mark hair of product
Give end user.
7. the product traceability and method for anti-counterfeit according to claim 6 based on two dimensional code, which is characterized in that the digit order number
Information is 32, and the preceding segment information is preceding 8 information, and the rear segment information is 24 information, and the key length is 128
Position.
8. the product traceability and method for anti-counterfeit according to claim 6 based on two dimensional code, which is characterized in that the digit order number
More basic, the stable information of the more forward digit representation of mark in information, the letter of digit representation more specialization of mark more rearward
Breath, the back segment information includes the information such as product type, date of manufacture, keeping life.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910043346.2A CN109816401A (en) | 2019-01-17 | 2019-01-17 | A kind of product traceability and anti-counterfeiting system and method based on two dimensional code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910043346.2A CN109816401A (en) | 2019-01-17 | 2019-01-17 | A kind of product traceability and anti-counterfeiting system and method based on two dimensional code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109816401A true CN109816401A (en) | 2019-05-28 |
Family
ID=66604409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910043346.2A Pending CN109816401A (en) | 2019-01-17 | 2019-01-17 | A kind of product traceability and anti-counterfeiting system and method based on two dimensional code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109816401A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110706007A (en) * | 2019-10-11 | 2020-01-17 | 工业和信息化部装备工业发展中心 | Data anti-counterfeiting method and product certificate verification method |
CN112801672A (en) * | 2021-01-27 | 2021-05-14 | 浙江天演维真网络科技股份有限公司 | Agricultural product traceability two-dimensional code signature method based on group signature |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932148A (en) * | 2012-10-25 | 2013-02-13 | 成都市易恒信科技有限公司 | System and method for preventing safety two-dimensional code counterfeiting on basis of combination of public key (CPK) authentication |
US20140108816A1 (en) * | 2012-10-11 | 2014-04-17 | Ryan Ford | Key generation method |
CN104915701A (en) * | 2015-06-09 | 2015-09-16 | 广西中烟工业有限责任公司 | Self-encrypting self-checking two-dimensional code encoding and decoding method |
CN107038594A (en) * | 2017-04-12 | 2017-08-11 | 广州品聚网络科技股份有限公司 | A kind of commodity counterfeit prevention traceability system based on two-dimensional bar code |
CN107276976A (en) * | 2016-04-08 | 2017-10-20 | 1真实标识责任有限公司 | Verify the authentication method and system of the authenticity of product |
CN107341676A (en) * | 2017-07-17 | 2017-11-10 | 深圳天净喔溯源科技有限公司 | False proof mark and the method for tracing to the source |
CN108055125A (en) * | 2017-11-23 | 2018-05-18 | 阿里巴巴集团控股有限公司 | A kind of encryption and decryption method and device of product information |
CN112287025A (en) * | 2020-10-28 | 2021-01-29 | 河北科技师范学院 | Wine product whole life process tracing and supervision method and system based on block chain |
-
2019
- 2019-01-17 CN CN201910043346.2A patent/CN109816401A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140108816A1 (en) * | 2012-10-11 | 2014-04-17 | Ryan Ford | Key generation method |
CN102932148A (en) * | 2012-10-25 | 2013-02-13 | 成都市易恒信科技有限公司 | System and method for preventing safety two-dimensional code counterfeiting on basis of combination of public key (CPK) authentication |
CN104915701A (en) * | 2015-06-09 | 2015-09-16 | 广西中烟工业有限责任公司 | Self-encrypting self-checking two-dimensional code encoding and decoding method |
CN107276976A (en) * | 2016-04-08 | 2017-10-20 | 1真实标识责任有限公司 | Verify the authentication method and system of the authenticity of product |
CN107038594A (en) * | 2017-04-12 | 2017-08-11 | 广州品聚网络科技股份有限公司 | A kind of commodity counterfeit prevention traceability system based on two-dimensional bar code |
CN107341676A (en) * | 2017-07-17 | 2017-11-10 | 深圳天净喔溯源科技有限公司 | False proof mark and the method for tracing to the source |
CN108055125A (en) * | 2017-11-23 | 2018-05-18 | 阿里巴巴集团控股有限公司 | A kind of encryption and decryption method and device of product information |
CN112287025A (en) * | 2020-10-28 | 2021-01-29 | 河北科技师范学院 | Wine product whole life process tracing and supervision method and system based on block chain |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110706007A (en) * | 2019-10-11 | 2020-01-17 | 工业和信息化部装备工业发展中心 | Data anti-counterfeiting method and product certificate verification method |
CN112801672A (en) * | 2021-01-27 | 2021-05-14 | 浙江天演维真网络科技股份有限公司 | Agricultural product traceability two-dimensional code signature method based on group signature |
CN112801672B (en) * | 2021-01-27 | 2024-02-13 | 浙江天演维真网络科技股份有限公司 | Agricultural product traceability two-dimensional code signature method based on group signature |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11743041B2 (en) | Technologies for private key recovery in distributed ledger systems | |
CN105719120B (en) | A method of encryption express delivery list privacy information | |
CN106610995B (en) | Method, device and system for creating ciphertext index | |
CN104766113B (en) | A kind of light and shade code anti-fake label and its method for anti-counterfeit | |
CN104618334A (en) | Method and system for generating and verifying dynamic two-dimensional code | |
CN104504594A (en) | Online shopping privacy protection method and system | |
WO2004102353A3 (en) | Method and system for authentication | |
CN105138585B (en) | Data base encryption field portions matching inquiry method and system | |
US20070118885A1 (en) | Unique SNiP for use in secure data networking and identity management | |
CN106161006A (en) | A kind of digital encryption algorithm | |
CN101847199A (en) | Security authentication method for radio frequency recognition system | |
CN103020682A (en) | Two-dimension code identification generating device, two-dimension code identification recognition device and two-dimension code identification system of book | |
US20160301524A1 (en) | Methods and apparatuses of digital data processing | |
CN106156738A (en) | A kind of read method of the automotive license plate ciphertext graph picture of band encryption QR Quick Response Code | |
CN109816401A (en) | A kind of product traceability and anti-counterfeiting system and method based on two dimensional code | |
CN105184590A (en) | Laser on-line efficient etching and product anti-fake traceability system applied to steels | |
CN110517049A (en) | A kind of bill anti-counterfeit recognition methods and device based on two dimensional code and block chain | |
CN110210270A (en) | Two-dimensional barcode information safety encryption and system and image in 2 D code analytic method and system | |
CN104598800A (en) | Authentication method and authentication system for identity information of grain depot and terminal equipment | |
CN114221792A (en) | Internet data transmission encryption system | |
CN104537539A (en) | Method for activating and forbidding anti-counterfeit label based on two-dimension code recognition technology | |
CN111881444B (en) | Identity verification system based on encrypted tag algorithm and working method thereof | |
CN113343255A (en) | Data interaction method based on privacy protection | |
CN106254341B (en) | For the data fingerprint extracting method and system of centralized electronic data safety system | |
CN108460606A (en) | A kind of method for anti-counterfeit based on two-dimensional code scanning and revene lookup |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |
|
RJ01 | Rejection of invention patent application after publication |