CN107169395A - A kind of safer QR codes generation and read method - Google Patents

A kind of safer QR codes generation and read method Download PDF

Info

Publication number
CN107169395A
CN107169395A CN201710470404.0A CN201710470404A CN107169395A CN 107169395 A CN107169395 A CN 107169395A CN 201710470404 A CN201710470404 A CN 201710470404A CN 107169395 A CN107169395 A CN 107169395A
Authority
CN
China
Prior art keywords
information
codes
error correction
safer
confidential information
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
Application number
CN201710470404.0A
Other languages
Chinese (zh)
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.)
Chongqing University
Original Assignee
Chongqing University
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 Chongqing University filed Critical Chongqing University
Priority to CN201710470404.0A priority Critical patent/CN107169395A/en
Publication of CN107169395A publication Critical patent/CN107169395A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1473Methods for optical code recognition the method including quality enhancement steps error correction

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention disclose a kind of safer QR codes and generated and read method, belongs to field of information encryption, primary data is analyzed, data encoding, error correction;Then code word filling is carried out, C is obtained1, confidential information is encrypted and Error Correction of Coding obtains C2, secret embedded location is generated according to key and is replaced, QR codes are exported after last arranging graphic, addition mask and version information.Invention introduces the concept of domestic consumer and advanced level user, it is possible to achieve the user of different identity or different conditions obtains different information from same Quick Response Code.Domestic consumer can use standard two-dimensional code decoding software to read public information, and advanced level user reads confidential information using key and special Quick Response Code decoding software, and the present invention can also avoid deletion to confidential information and distort.

Description

A kind of safer QR codes generation and read method
Technical field
The present invention is in belonging to field of information encryption, more particularly to a kind of QR codes generation and read method.
Background technology
Barcode technology is largely used as a kind of fast exchange means of small data quantity in recent years, one of which typical case Representative be exactly QR codes, QR is a kind of Quick Response Code.Tourist attractions carry out sight spot explanation using QR codes, and smart phone user is by sweeping QR codes are retouched just it is recognized that the background knowledge at many sight spots;QR codes can store web page interlinkage, just can be with by scanning QR codes It is connected to the website all answered up;QR codes are also applied to identity discriminating and business transaction field etc..QR codes are non-with prospect Often extensively, and in many cases QR codes carry information be not intended to disclosed in, can just be achieved the goal by way of encryption. But the current Quick Response Code concept without rights management in itself, in theory anyone can read information.
The content of the invention
In view of the drawbacks described above of prior art, the technical problems to be solved by the invention are to provide a kind of safer QR codes generate read method.
To achieve the above object, the invention provides a kind of safer QR code generating methods, comprise the following steps:
Step 1: analyzing primary data;
Step 2: carrying out data encoding;
Step 3: carrying out error correction to coding;
Step 4: carrying out code word filling, C is obtained1
Step 5: exporting QR codes after arranging graphic, addition mask and version information;
Following steps are also performed between step 4 and step 5:
Step A1, confidential information is encrypted and Error Correction of Coding obtains C2, the C2There is n bit, n is positive integer;
Step A2, the embedded location [p according to key generation secret1,p2,…,pn];
Step A3, use C2I-th of bit replace C1PthiIndividual bit, 1≤i≤n.
Present invention also offers a kind of safer QR code read methods, carry out according to the following steps:
Step 1. is decoded to QR codes, and identification version information, removal mask obtain C1
Step 2. generates embedded location [p according to key1,p2,…,pn];
Step 3. extracts C1In be located at [p1,p2,…,pn] bit C2
Step 4. is to C2Carry out error correction decoding and decryption obtains confidential information.
The beneficial effects of the invention are as follows:Invention introduces the concept of domestic consumer and advanced level user, it is possible to achieve different The user of identity or different conditions obtains different information from same Quick Response Code.Domestic consumer can use standard two-dimensional code Decoding software reads public information, and advanced level user reads confidential information, the present invention using key and special Quick Response Code decoding software The deletion to confidential information can also be avoided and distorted.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of QR codes generation of the present invention.
Fig. 2 is the schematic flow sheet that QR codes of the present invention are read.
Embodiment
The invention will be further described with reference to the accompanying drawings and examples:
As shown in figure 1, a kind of safer QR code generating methods, comprise the following steps:
Step 1: analyzing primary data;
Step 2: carrying out data encoding;
Step 3: carrying out error correction to coding;
Step 4: carrying out code word filling, C is obtained1
Step 5: exporting QR codes after arranging graphic, addition mask and version information;
In the present embodiment, following steps are also performed between step 4 and step 5:
Step A1, confidential information is encrypted and Error Correction of Coding obtains C2, the C2There is n bit, n is positive integer;
Step A2, the embedded location [p according to key generation secret1,p2,…,pn];
Step A3, use C2I-th of bit replace C1PthiIndividual bit, 1≤i≤n.
As shown in Fig. 2 a kind of safer QR code read methods, are carried out according to the following steps:
Step 1. is decoded to QR codes, and identification version information, removal mask obtain C1
Step 2. generates embedded location [p according to key1,p2,…,pn];
Step 3. extracts C1In be located at [p1,p2,…,pn] bit C2
Step 4. is to C2Carry out error correction decoding and decryption obtains confidential information.
Preferred embodiment of the invention described in detail above.It should be appreciated that one of ordinary skill in the art without Need creative work just can make many modifications and variations according to the design of the present invention.Therefore, all technologies in the art Personnel are available by logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea Technical scheme, all should be in the protection domain being defined in the patent claims.

Claims (2)

1. a kind of safer QR code generating methods, comprise the following steps:
Step 1: analyzing primary data;
Step 2: carrying out data encoding;
Step 3: carrying out error correction to coding;
Step 4: carrying out code word filling, C is obtained1
Step 5: exporting QR codes after arranging graphic, addition mask and version information;
It is characterized in that also performing following steps between step 4 and step 5:
Step A1, confidential information is encrypted and Error Correction of Coding obtains C2, the C2There is n bit, n is positive integer;
Step A2, the embedded location [p according to key generation secret1,p2,…,pn];
Step A3, use C2I-th of bit replace C1PthiIndividual bit, 1≤i≤n.
2. a kind of safer QR code read methods, it is characterized in that carrying out according to the following steps:
Step 1. is decoded to QR codes, and identification version information, removal mask obtain C1
Step 2. generates embedded location [p according to key1,p2,…,pn];
Step 3. extracts C1In be located at [p1,p2,…,pn] bit C2
Step 4. is to C2Carry out error correction decoding and decryption obtains confidential information.
CN201710470404.0A 2017-06-20 2017-06-20 A kind of safer QR codes generation and read method Pending CN107169395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710470404.0A CN107169395A (en) 2017-06-20 2017-06-20 A kind of safer QR codes generation and read method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710470404.0A CN107169395A (en) 2017-06-20 2017-06-20 A kind of safer QR codes generation and read method

Publications (1)

Publication Number Publication Date
CN107169395A true CN107169395A (en) 2017-09-15

Family

ID=59818973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710470404.0A Pending CN107169395A (en) 2017-06-20 2017-06-20 A kind of safer QR codes generation and read method

Country Status (1)

Country Link
CN (1) CN107169395A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109255417A (en) * 2018-09-29 2019-01-22 连尚(新昌)网络科技有限公司 Method and apparatus for generating two dimensional code
CN109726786A (en) * 2017-10-31 2019-05-07 北京京东尚科信息技术有限公司 Two-dimensional barcode information reading, generation method and device
CN110097159A (en) * 2019-04-29 2019-08-06 绍兴聚量数据技术有限公司 A kind of QR code safety certifying method and system based on Hamming code
WO2019153867A1 (en) * 2018-02-07 2019-08-15 北京三快在线科技有限公司 Two-dimensional code generation and identification
CN110245507A (en) * 2019-06-17 2019-09-17 湘潭大学 A kind of information ciphering method based on Chinese cross-word puzzle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923700A (en) * 2010-07-15 2010-12-22 福建师范大学 Double-effect digital watermarking method
CN103378967A (en) * 2013-07-23 2013-10-30 重庆大学 QR code encryption method
CN104268610A (en) * 2014-09-11 2015-01-07 重庆大学 Method for generating and reading graded QR code
CN104281866A (en) * 2013-07-09 2015-01-14 航天信息股份有限公司 Two-dimensional code application method and device
CN106650869A (en) * 2016-10-18 2017-05-10 重庆文理学院 Information hiding method based on two-dimensional code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923700A (en) * 2010-07-15 2010-12-22 福建师范大学 Double-effect digital watermarking method
CN104281866A (en) * 2013-07-09 2015-01-14 航天信息股份有限公司 Two-dimensional code application method and device
CN103378967A (en) * 2013-07-23 2013-10-30 重庆大学 QR code encryption method
CN104268610A (en) * 2014-09-11 2015-01-07 重庆大学 Method for generating and reading graded QR code
CN106650869A (en) * 2016-10-18 2017-05-10 重庆文理学院 Information hiding method based on two-dimensional code

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109726786A (en) * 2017-10-31 2019-05-07 北京京东尚科信息技术有限公司 Two-dimensional barcode information reading, generation method and device
CN109726786B (en) * 2017-10-31 2023-09-26 北京京东尚科信息技术有限公司 Two-dimensional code information reading and generating method and device
WO2019153867A1 (en) * 2018-02-07 2019-08-15 北京三快在线科技有限公司 Two-dimensional code generation and identification
US11263416B2 (en) 2018-02-07 2022-03-01 Beijing Sankuai Online Technology Co., Ltd Two-dimensional code generation and identification
CN109255417A (en) * 2018-09-29 2019-01-22 连尚(新昌)网络科技有限公司 Method and apparatus for generating two dimensional code
CN110097159A (en) * 2019-04-29 2019-08-06 绍兴聚量数据技术有限公司 A kind of QR code safety certifying method and system based on Hamming code
CN110245507A (en) * 2019-06-17 2019-09-17 湘潭大学 A kind of information ciphering method based on Chinese cross-word puzzle
CN110245507B (en) * 2019-06-17 2023-06-02 湘潭大学 Information encryption method based on Chinese character filling game

Similar Documents

Publication Publication Date Title
CN107169395A (en) A kind of safer QR codes generation and read method
CN106815544B (en) A kind of information concealing method based on two dimensional code
JP6961705B2 (en) Composite 2D barcode generation, readers and methods
CN103684760B (en) The encryption of communication and the method, apparatus of decryption and system
CN101295343B (en) Two-dimensional code multi-enciphering anti-fake printing method
CN106788995B (en) File encryption method and device
CN102724668A (en) Method and system for sharing WIFI (wireless fidelity) network information on basis of two-dimensional code graphs
CN103049777A (en) Security application method for two-dimension code and encoding/decoding system
US20150199545A1 (en) Two-Dimensional Code Authenticating Device, Two-Dimensional Code Generating Device, Two-Dimensional Code Authenticating Method, and Program
CN110210270B (en) Two-dimensional code information security reinforcement method and system and two-dimensional code image analysis method and system
CN104376356A (en) Two-dimensional code generating method with encryption function
CN105491077A (en) Identity authentication system
CN103415007A (en) Mobile phone two-dimensional code safe use method based on information hiding
CN103914639A (en) Document tracing method and document tracing device
CN105550730A (en) Safe two-dimensional code manufacture method and decoding method, and safe two-dimensional code identifier
Wang et al. 2D barcodes for visual cryptography
CN104766113A (en) Plain and secret code type anti-fake label and anti-fake method thereof
CN105205674A (en) Product anti-counterfeiting method based on two-dimensional code
CN103997406B (en) Identity identifying method and device based on two dimensional code
CN104268610A (en) Method for generating and reading graded QR code
CN104680215A (en) Making method and decoding method for two-dimensional code graph
CN105577376A (en) Two-dimensional code coding-and-decoding and authentication method and two-dimensional code coding-and-decoding and authentication device
CN105450591A (en) An information verification method and system, clients and a server
TWI557647B (en) Two - dimensional code, generation method and recognition method with two - dimensional software installation information
CN112069850A (en) Service providing method, device, equipment and storage medium based on two-dimension code

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: 20170915

RJ01 Rejection of invention patent application after publication