CN107798373A - A kind of method and system of Quick Response Code anti-copying - Google Patents
A kind of method and system of Quick Response Code anti-copying Download PDFInfo
- Publication number
- CN107798373A CN107798373A CN201711192087.7A CN201711192087A CN107798373A CN 107798373 A CN107798373 A CN 107798373A CN 201711192087 A CN201711192087 A CN 201711192087A CN 107798373 A CN107798373 A CN 107798373A
- Authority
- CN
- China
- Prior art keywords
- code
- static
- quick response
- dimensional code
- response code
- 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.)
- Granted
Links
- 230000004044 response Effects 0.000 title claims abstract description 68
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000003068 static effect Effects 0.000 claims abstract description 69
- 238000000605 extraction Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 claims description 2
- 230000003111 delayed effect Effects 0.000 claims 1
- 238000005516 engineering process Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000002329 infrared spectrum Methods 0.000 description 2
- 238000010521 absorption reaction Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 229910002056 binary alloy Inorganic materials 0.000 description 1
- 239000011230 binding agent Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000012860 organic pigment Substances 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
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/06046—Constructional details
-
- 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
Abstract
The invention discloses a kind of method and system of Quick Response Code anti-copying, methods described includes:Dynamic two-dimension code is obtained, dynamic two-dimension code includes the first static two dimensional code and the second static two dimensional code, and the first static two dimensional code and the second static two dimensional code are shown according to preset interval time rotation;Whether the Quick Response Code for judging to obtain is the first static two dimensional code, is to continue to obtain Quick Response Code until getting the second static two dimensional code in the second delay time, otherwise continues to obtain Quick Response Code after the first delay time until getting the first static two dimensional code;Decoding.The system includes:Two-dimensional code generation module, read module and central processing module;Two-dimensional code generation module is used to generate dynamic two-dimension code, and read module is used to obtain the dynamic two-dimension code, and central processing module is used to decode;Read module communicates to connect with central processing module.
Description
Technical field
The present invention relates to Quick Response Code application field, particularly a kind of method and system of Quick Response Code anti-copying.
Background technology
Quick Response Code is the chequered with black and white figure being distributed in the two-dimensional direction according to certain rules with certain specific geometric figure
Shape record data symbolic information, " 0 ", " 1 " bit for forming computer-internal logical foundations are dexterously utilized on coding
The concept of stream, the geometrical body corresponding with binary system using several represent word numerical information, are set by image input
Standby or photoelectric scanning device automatically identifying and reading is to realize that information automatically processes.Contained much information because Quick Response Code has, coding range
Extensively, decode the high distinguishing feature such as low with use cost of reliability, be widely used in every field, still, Quick Response Code into
This low, coding and decoding technology discloses, it is easy to is replicated, is used for multiple times.
Current existing Quick Response Code copy prevention method includes:The information that Quick Response Code preserves is encrypted, distinguishes Quick Response Code
In encrypted information, and by decryption can check the information preserved in Quick Response Code, this mode not really realize
False proof purpose, preserving the Quick Response Code of encryption information can still be replicated;With reference to database technology, first read in Quick Response Code and preserve
Unique identification information, two-dimensional code data storehouse is then remotely accessed by network or other information technology, and by the unique mark
Quick Response Code added in database access mark, ensure that the Quick Response Code can only be accessed once, so as to realize false proof purpose.
Although this mode can play anti-fake effect to a certain extent, it cannot be guaranteed that being all two corresponding to actual products each time
Dimension code first accesses, and easily causes true and false reverse;It is combined using invisible two-dimensional codes and profiling Quick Response Code, invisible two-dimensional codes information
Reading need to be carried out by special two dimension code reading equipment, and this method cost is higher, and use is dumb, and can not moved
Moved end uses;Utilize hydric group (CH, OH, NH) in the binder and organic pigment molecule of near infrared spectrum and printing-ink
The sum of fundamental frequencies of the vibration characteristic consistent with the absorption of frequencys multiplication at different levels, the near infrared spectrum by scanning Quick Response Code obtain printing Quick Response Code
The method of the eigen vibration information of organic molecule hydric group in ink, there is also using dumb for this method, it is impossible in movement
The shortcomings that end is realized.Utility model【201420079783.2】A kind of dynamic two-dimension code display system is disclosed, it is still to utilize
Gauze, 2 D code information and information of mobile terminal are handled by background server, generate and feed back further according to result
Information is to mobile terminal or redefines new Quick Response Code, and the utility model is high to network and server requirement, and management cost
Also it is higher.
The content of the invention
In order to solve the above problems, the present invention proposes a kind of method and system of Quick Response Code anti-copying.
Specifically, a kind of method of Quick Response Code anti-copying, comprises the following steps:
S1, dynamic two-dimension code being obtained, the dynamic two-dimension code includes the first static two dimensional code and the second static two dimensional code, and described the
One static two dimensional code and the second static two dimensional code are shown according to preset interval time rotation;
Whether S2, the Quick Response Code for judging to obtain are the first static two dimensional code, are to extract the first static two dimensional code information simultaneously
S4 is performed, otherwise performs S3;
S3, S1 is jumped to, while enter the first delay time;
S4, continue to obtain Quick Response Code, until getting the second static two dimensional code in the second delay time, extraction second is quiet
State 2 D code information;
S5, decoding.
Further, the first static two dimensional code information includes the first user account information and transaction beginning label, institute
Stating the second static two dimensional code information includes second user accounts information and signing messages.
Further, if not reading Quick Response Code in first delay time and second delay time, tie
Beam task.
Further, the preset interval time is less than first delay time and second delay time.
Further, the step S5 also includes:Extract first user account information and the second user account
Information, and judge whether unanimously, unanimously then to decode, otherwise end task.
Specifically, a kind of system of Quick Response Code anti-copying, including:Two-dimensional code generation module, read module and central processing
Module;The two-dimensional code generation module is used to generate dynamic two-dimension code, the dynamic two-dimension code include the first static two dimensional code and
Second static two dimensional code, the first static two dimensional code and the second static two dimensional code show according to preset interval time rotation
Show;The read module is used to obtain the dynamic two-dimension code, and the central processing module is used to decode, the read module with
The central processing module communication connection;
The system specific implementation step is as follows:
S1, the read module obtain dynamic two-dimension code;
Whether the Quick Response Code that S2, the read module judge to obtain is the first static two dimensional code, is to perform S4, otherwise holds
Row S3;
S3, S1 is jumped to, while enter the first delay time;
S4, the read module continue to obtain Quick Response Code, until getting second static two dimensional in the second delay time
Code;
S5, the central processing module perform decoding.
Further, the first static two dimensional code information includes the first user account information and transaction beginning label, institute
Stating the second static two dimensional code information includes second user accounts information and signing messages.
Further, if the read module is not read in first delay time and second delay time
Quick Response Code, then end task.
Further, the preset interval time is less than first delay time and second delay time.
Further, the central processing module is additionally operable to extract first user account information and the second user
Accounts information, and judge whether unanimously, unanimously then to decode, otherwise end task.
The beneficial effects of the present invention are:By generating two Quick Response Codes for including different information, and within a certain period of time
Rotation is shown, only gets two two when preventing Quick Response Code to be replicated abuse well, while reading within a certain period of time
Tie up the information of code and the match is successful to decode, further prevent Quick Response Code to be replicated, abuse.
Brief description of the drawings
Fig. 1 is for a kind of method schematic diagram of Quick Response Code anti-copying of the present invention;
Fig. 2 is for a kind of system schematic of Quick Response Code anti-copying of the present invention.
Embodiment
In order to which technical characteristic, purpose and the effect of the present invention is more clearly understood, now control illustrates this hair
Bright embodiment.
As shown in figure 1, a kind of method of Quick Response Code anti-copying, can be applied to a kind of system of Quick Response Code anti-copying, also may be used
It is independent to implement.
First, the first static two dimensional code information includes the first user account information and transaction beginning label, the second static state two
Dimension code information includes second user accounts information and signing messages;To ensure that this method is normally implemented, it is also necessary to by predetermined interval
Time is set smaller than the first delay time and the second delay time.
This method comprises the following steps that:
S1, dynamic two-dimension code is obtained, the dynamic two-dimension code includes the first static two dimensional code and the second static two dimensional code, and first is static
Quick Response Code and the second static two dimensional code are shown according to preset interval time rotation;
Whether S2, the Quick Response Code for judging to obtain are the first static two dimensional code, are to extract the first static two dimensional code information and perform
S4, otherwise perform S3;
S3, S1 is jumped to, while enter the first delay time, terminate to appoint if Quick Response Code is not got in the first delay time
Business;
S4, continue to obtain Quick Response Code, until getting the second static two dimensional code in the second delay time, extract the second static state two
Code information is tieed up, if not getting any Quick Response Code in the second delay time, is ended task;
S5, decoding, judge that whether the first user account information for getting is consistent with second user accounts information, unanimously then solves
Code, otherwise ends task.
As shown in Fig. 2 a kind of system of Quick Response Code anti-copying, including:Two-dimensional code generation module, read module and centre
Manage module;Two-dimensional code generation module is used to generate dynamic two-dimension code, and dynamic two-dimension code is quiet comprising the first static two dimensional code and second
State Quick Response Code, the first static two dimensional code and the second static two dimensional code are shown according to preset interval time rotation;Read module is used for
Dynamic two-dimension code is obtained, central processing module is used to decode, and read module communicates to connect with central processing module;
So that the system is applied to subway lockage as an example, user selects into website by cell phone application first and goes out website, Quick Response Code life
The first static two dimensional code and the second static two dimensional code are generated into module, the first static two dimensional code information is believed including the first user account
Breath and transaction beginning label, the second static two dimensional code information include second user accounts information and signing messages.Pre-set
First, two static two dimensional codes carry out rotation by 30ms time interval and shown, to ensure that the system is normally implemented, set and obtain the
First, the delay time of the second static two dimensional code need to change interval time more than first and second static two dimensional code wheel, will obtain here
First, the delay time of two static two dimensional codes is disposed as 50ms.
The specific read step of the system is as follows:
When S1, user are entered the station, read module scans the dynamic two-dimension code on user mobile phone and attempts to obtain dynamic two-dimension code;
S2, read module get whether the Quick Response Code for judging to obtain by beginning label of merchandising after Quick Response Code is the first static state two
Code is tieed up, the first static two dimensional code information is extracted if transaction beginning label is got and is sent to central processing module, performs S4,
Otherwise S3 is performed;
S3, S1 is jumped to, while enter the first delay time 50ms, if not getting Quick Response Code in 50ms, ended task
And prompt illegal;
S4, read module continue to obtain Quick Response Code, until getting the second static two dimensional code in 50ms, extract the second static state two
Tie up code information and send to central processing module, end task and prompt illegal if Quick Response Code is not got in 50ms;
After S5, central processing module receive the information of first and second static two dimensional code, the first user account information and second are judged
Whether user account information is consistent, unanimously then decodes, and opens a sluice gate, and otherwise ends task and prompts illegal.
It should be noted that for foregoing each embodiment of the method, in order to be briefly described, therefore it is all expressed as to a system
The combination of actions of row, but those skilled in the art should know, the application is not limited by described sequence of movement, because
For according to the application, certain some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, involved action and unit not necessarily this Shen
Please be necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in some embodiment
Part, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, ROM, RAM etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (10)
- A kind of 1. method of Quick Response Code anti-copying, it is characterised in that comprise the following steps:S1. dynamic two-dimension code is obtained, the dynamic two-dimension code includes the first static two dimensional code and the second static two dimensional code, and described One static two dimensional code and the second static two dimensional code are shown according to preset interval time rotation;Whether the Quick Response Code for S2. judging to obtain is the first static two dimensional code, is to extract the first static two dimensional code information simultaneously S4 is performed, otherwise performs S3;S3. S1 is jumped to, while enters the first delay time;S4. continue to obtain Quick Response Code, until getting the second static two dimensional code in the second delay time, extraction second is quiet State 2 D code information;S5. decode.
- A kind of 2. method of Quick Response Code anti-copying according to claim 1, it is characterised in that:The first static two dimensional code Information includes the first user account information and transaction beginning label, and the second static two dimensional code information includes second user account Information and signing messages.
- A kind of 3. method of Quick Response Code anti-copying according to claim 1, it is characterised in that:If when described first is delayed Between and second delay time in do not read Quick Response Code, then end task.
- A kind of 4. method of Quick Response Code anti-copying according to claim 1, it is characterised in that:The preset interval time is small In first delay time and second delay time.
- 5. the method for a kind of Quick Response Code anti-copying according to claim 2, it is characterised in that the step S5 also includes: First user account information and the second user accounts information are extracted, and judges whether unanimously, unanimously then to decode, otherwise End task.
- A kind of 6. system of Quick Response Code anti-copying, it is characterised in that including:Two-dimensional code generation module, read module and centre Manage module;The two-dimensional code generation module is used to generate dynamic two-dimension code, and the dynamic two-dimension code includes the first static two dimensional code With the second static two dimensional code, the first static two dimensional code and the second static two dimensional code show according to preset interval time rotation Show;The read module is used to obtain the dynamic two-dimension code, and the central processing module is used to decode, the read module with The central processing module communication connection;The system specific implementation step is as follows:S1, the read module obtain dynamic two-dimension code;Whether the Quick Response Code that S2, the read module judge to obtain is the first static two dimensional code, is that then extraction first is static 2 D code information simultaneously performs S4, otherwise performs S3;S3, S1 is jumped to, while enter the first delay time;S4, the read module continue to obtain Quick Response Code, until getting second static two dimensional in the second delay time Code, extract the second static two dimensional code information;S5, the central processing module perform decoding.
- A kind of 7. system of Quick Response Code anti-copying according to claim 6, it is characterised in that:The first static two dimensional code Information includes the first user account information and transaction beginning label, and the second static two dimensional code information includes second user account Information and signing messages.
- A kind of 8. system of Quick Response Code anti-copying according to claim 6, it is characterised in that:If the read module is in institute State in the first delay time and second delay time and do not read Quick Response Code, then end task.
- A kind of 9. system of Quick Response Code anti-copying according to claim 6, it is characterised in that:The preset interval time is small In first delay time and second delay time.
- A kind of 10. system of Quick Response Code anti-copying according to claim 7, it is characterised in that:The central processing module It is additionally operable to extract first user account information and the second user accounts information, and judges whether unanimously, unanimously then to solve Code, otherwise ends task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711192087.7A CN107798373B (en) | 2017-11-24 | 2017-11-24 | Two-dimensional code anti-copying method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711192087.7A CN107798373B (en) | 2017-11-24 | 2017-11-24 | Two-dimensional code anti-copying method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107798373A true CN107798373A (en) | 2018-03-13 |
CN107798373B CN107798373B (en) | 2020-09-29 |
Family
ID=61536451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711192087.7A Active CN107798373B (en) | 2017-11-24 | 2017-11-24 | Two-dimensional code anti-copying method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107798373B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108681896A (en) * | 2018-03-29 | 2018-10-19 | 阿里巴巴集团控股有限公司 | Displaying, recognition methods and the device of Quick Response Code |
CN111131162A (en) * | 2019-11-26 | 2020-05-08 | 广州羊城通有限公司 | Method and device for starting two-dimensional code display |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102760242A (en) * | 2012-05-16 | 2012-10-31 | 孟智平 | Encoding and decoding method for three-dimensional codes and using method |
CN105590198A (en) * | 2014-10-30 | 2016-05-18 | 中国银联股份有限公司 | Two-dimensional code payment method and payment system |
US20160239850A1 (en) * | 2013-09-27 | 2016-08-18 | Chia-Ming Kang | Anti-counterfeit verification system |
CN107104969A (en) * | 2017-04-27 | 2017-08-29 | 山西大学 | The method that the individual privacy information in express delivery is protected with dynamic encryption mechanism |
CN107194694A (en) * | 2017-04-14 | 2017-09-22 | 广州羊城通有限公司 | A kind of off line method of payment based on Quick Response Code |
CN107316072A (en) * | 2017-07-12 | 2017-11-03 | 贵州信安创科技有限公司 | Dimension code anti-counterfeit method, anti-counterfeit authentication method and the false proof device of offline synchronization |
-
2017
- 2017-11-24 CN CN201711192087.7A patent/CN107798373B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102760242A (en) * | 2012-05-16 | 2012-10-31 | 孟智平 | Encoding and decoding method for three-dimensional codes and using method |
CN105701530A (en) * | 2012-05-16 | 2016-06-22 | 孟智平 | Three-dimensional code coding and decoding and application method |
US20160239850A1 (en) * | 2013-09-27 | 2016-08-18 | Chia-Ming Kang | Anti-counterfeit verification system |
CN105590198A (en) * | 2014-10-30 | 2016-05-18 | 中国银联股份有限公司 | Two-dimensional code payment method and payment system |
CN107194694A (en) * | 2017-04-14 | 2017-09-22 | 广州羊城通有限公司 | A kind of off line method of payment based on Quick Response Code |
CN107104969A (en) * | 2017-04-27 | 2017-08-29 | 山西大学 | The method that the individual privacy information in express delivery is protected with dynamic encryption mechanism |
CN107316072A (en) * | 2017-07-12 | 2017-11-03 | 贵州信安创科技有限公司 | Dimension code anti-counterfeit method, anti-counterfeit authentication method and the false proof device of offline synchronization |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108681896A (en) * | 2018-03-29 | 2018-10-19 | 阿里巴巴集团控股有限公司 | Displaying, recognition methods and the device of Quick Response Code |
US11074424B2 (en) | 2018-03-29 | 2021-07-27 | Advanced New Technologies Co., Ltd. | Displaying and recognizing two-dimensional code |
US11250229B2 (en) | 2018-03-29 | 2022-02-15 | Advanced New Technologies Co., Ltd. | Displaying and recognizing two-dimensional code |
CN111131162A (en) * | 2019-11-26 | 2020-05-08 | 广州羊城通有限公司 | Method and device for starting two-dimensional code display |
CN111131162B (en) * | 2019-11-26 | 2022-04-05 | 广州羊城通有限公司 | Method and device for starting two-dimensional code display |
Also Published As
Publication number | Publication date |
---|---|
CN107798373B (en) | 2020-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104392502B (en) | A kind of Work attendance method of the Quick Response Code attendance checking system based on smart mobile phone | |
CN104375836B (en) | A kind of method and device of displaying screen locking window | |
CN102542453B (en) | Mobile payment identity verification method | |
CN102075547B (en) | Dynamic password generating method and device and authentication method and system | |
CN102867205B (en) | Information management and two-dimensional code generation method and related devices | |
CN103685255B (en) | File encryption method based on two-dimension code scanning | |
CN101645081A (en) | Method and system for tracing farm product information through two-dimension code | |
CN107800672A (en) | A kind of Information Authentication method, electronic equipment, server and information authentication system | |
CN109274582B (en) | Instant communication message display method, device, equipment and storage medium | |
CN104252613A (en) | Method, device and terminal for obtaining virtual object | |
CN102609543A (en) | Multifunctional two-dimensional code product traceability system and traceability method | |
CN105162604A (en) | Feature image identification based verification method and system, and verification server | |
CN107248084A (en) | Ticketing service method for managing security and device | |
CN104200252B (en) | A kind of function logic jump method, client and system based on barcode data | |
CN107798373A (en) | A kind of method and system of Quick Response Code anti-copying | |
CN103136591A (en) | Physical examination reservation method based on two-dimensional bar code | |
CN105897716B (en) | A kind of generation method of website log identifying code | |
CN104156639A (en) | Method and device for opening application program through two-dimension code and intelligent terminal | |
CN106971163A (en) | One kind connects neck people recognition methods, device and system | |
CN106803116A (en) | A kind of method and device for generating Asset Tag | |
CN104144146B (en) | A kind of method and system of access website | |
CN101369891A (en) | Dynamic cipher authentication method and double-matrix dynamic password card | |
CN104125234A (en) | Method and system for dynamic image security verification | |
Boragule et al. | On-device Face Authentication System for ATMs and Privacy Preservation | |
CN205427892U (en) | System is utilized to two -dimensional code information security |
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 | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A method and system for preventing QR code duplication Effective date of registration: 20231225 Granted publication date: 20200929 Pledgee: Shanghai Pudong Development Bank Co.,Ltd. Chengdu Branch Pledgor: CHENGDU ZHIYUANHUI INFORMATION TECHNOLOGY CO.,LTD. Registration number: Y2023980073782 |