Supercharge Your Innovation With Domain-Expert AI Agents!

QR code generation and verification method

A two-dimensional code and data verification technology, applied to record carriers, instruments, computer parts, etc. used in machines, can solve the problems of easy copying and dissemination of two-dimensional code images, poor security, etc. The effect of improving safety

Inactive Publication Date: 2018-04-20
程序
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When applying QR codes in the prior art, fixed QR code pictures are generally used; however, fixed QR code pictures are easy to be copied and spread, and the security is poor

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
  • QR code generation and verification method
  • QR code generation and verification method
  • QR code generation and verification method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0018] Such as figure 1 As shown, this embodiment provides a method for generating a two-dimensional code, including:

[0019] Step 101, when a data verification instruction input by a user is received, corresponding verification data is acquired according to the data verification instruction.

[0020] In this embodiment, the data verification instruction input by the user needs to indicate the specific type of data verification, such as indicating payment verification, electronic ticket verification, door lock verification, etc.; taking the electronic ticket verification of the scenic spot as an example, the data verification The instruction may also indicate the specific content of the data verification, such as the name of the scenic spot, the type of ticket for the scenic spot, etc., and the content mark corresponding to the specific content.

[0021] In this embodiment, the process of obtaining corresponding verification data through step 101 includes: obtaining specific...

Embodiment 2

[0035] Such as image 3 As shown, this embodiment provides a two-dimensional code verification method, including:

[0036] Step 301, acquiring a two-dimensional code corresponding to encrypted data.

[0037] In this embodiment, the encrypted data in step 301 is obtained by encrypting the data to be verified with the preset time key and private key; the specific process of generating the two-dimensional code is similar to the process provided in Embodiment 1 of the present invention, and will not be repeated here Let me repeat them one by one. After the QR code is generated, the QR code can be obtained by scanning or taking a photo, which is not limited here.

[0038] Step 302, analyzing the two-dimensional code to obtain encrypted data.

[0039] Step 303, obtaining the current time and a preset refresh period.

[0040]Step 304: Verify the encrypted data according to the current time, the refresh period and the preset public key, and obtain a verification result.

[0041] ...

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 two dimensional code generation and verification method, and relates to the data processing field; the method comprises the following steps: S10, receiving an user inputted data verification instruction, and obtaining corresponding verification data according to the data verification instruction; S20, obtaining a reception time of the data verification instruction, and starting timing with zero as a starting time; S30, encoding a present time and the verification data according to a preset time key, a private key and a public key, thus obtaining the encoded data, and the public key is matched with the time key and the private key; S40, generating a two dimension code matched with the encoded data, so the user can verify according to the two dimension code; S50, updating the verification data when the preset time reaches a preset refresh period, and executing the S20 to S50 according to the updated verification data. The two dimensional code generation and verification method is applied to the payment verification, electron ticket verification and door locking verification fields.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method for generating and verifying a two-dimensional code. Background technique [0002] With the development of two-dimensional code technology, two-dimensional codes are widely used in information acquisition, member management, advertising push, data verification and other fields. When applying two-dimensional codes in the prior art, a fixed two-dimensional code picture is generally used; however, the fixed two-dimensional code picture is easy to be copied and spread, and the security is poor. Contents of the invention [0003] The invention provides a method for generating and verifying a two-dimensional code, which can improve security. [0004] The present invention adopts the following technical solution to solve the technical problem: a method for generating a two-dimensional code, including: S10, when receiving a data verification instruction input by a user, obtaini...

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 Patents(China)
IPC IPC(8): G06K19/06
Inventor 程序
Owner 程序
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More