Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for generating and reading QR code

A two-dimensional code, QR code technology, applied in the field of QR two-dimensional code, to avoid the leakage of private information and ensure the effect of security

Inactive Publication Date: 2018-05-04
北京中科锐链科技有限公司
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] The technical problem to be solved by the present invention is that the existing QR two-dimensional code cannot implement access control to all or part of the information carried, and there is no guarantee for the privacy and correctness of the information, resulting in the leakage of private information

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for generating and reading QR code
  • Method for generating and reading QR code
  • Method for generating and reading QR code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052]The present invention divides the information of the QR two-dimensional code into public information and private information, and then encrypts the private information, which not only effectively protects the privacy of the sensitive information carried in the QR two-dimensional code; The application needs to disclose the information that needs to be disclosed to the scanner after scanning the code.

[0053] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0054] Such as figure 1 As shown, the present invention provides a method for generating and reading a QR two-dimensional code, comprising the following steps:

[0055] For QR code generation:

[0056] Step S10, divide the information to be encoded into public information and private information according to privacy levels.

[0057] Step S20, first encrypt the private information with an encryption algorithm, and then perform bit stream...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for generating and reading a QR code. The method includes the steps of dividing information to be encoded into public information and private information; encrypting the private information, performing bit stream transformation on the encrypted private information and the public information to obtain bit stream strings of the private information and the public information, and performing connection according to the bit stream string and a terminator of the public information, a private information indicator, and the bit stream string and a terminator of the private information to form a final bit stream string; calling a QR code generation algorithm to encode the final bit stream string to generate a QR code; calling a QR code reading algorithm to convert the QR code to a final bit stream string; reading information before a first terminator of the final bit stream string as public information, and the encrypted private information being between the private information indicator and a second terminator; using a correct key which is preset or input in real time during code scanning to decode the encrypted private information, and obtaining the private information. According to the method for generating and reading the QR code, the access control over different information is achieved, and the privacy of sensitive information carried can be effectively protected.

Description

technical field [0001] The invention relates to QR two-dimensional code technology, in particular to a method for generating and reading a QR two-dimensional code. Background technique [0002] QR (Quick Response) two-dimensional code is an information encoding and decoding technology that stores information in images and then converts images into information. Since the QR two-dimensional code is only the carrier of information, there is no guarantee for the privacy and correctness of the information. When scanning the QR two-dimensional code, all the carried information will be displayed; however, in practical applications, it is often necessary to Scenarios where all or part of the information carried in the code is used for access control, such as the following scenarios: [0003] (1) Scan code to pay; [0004] In the current scan code payment, the payee's account information is determined by the bank or enterprise that provides the service after encoding. For example, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06K19/06G06K7/14
CPCG06K7/1417G06K19/06037
Inventor 王晶
Owner 北京中科锐链科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products