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

A kind of qr code encryption method

An encryption method, QR code technology, applied in the field of QR code encryption, can solve problems such as poor security, low efficiency, and no consideration of QR code coding rules and graphic characteristics, and achieve high compatibility, security and flexible encryption.

Inactive Publication Date: 2016-01-27
CHONGQING UNIV
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The first is to directly encrypt the original data, and then make the encrypted information into a QR code; however, the research on the appeal did not consider the coding rules and graphic characteristics of the QR code, and it does not have format compatibility, but also has efficiency Disadvantages of low and poor security

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
  • A kind of qr code encryption method
  • A kind of qr code encryption method
  • A kind of qr code encryption method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] Embodiment one, such as figure 1 Shown, a kind of QR code encryption method comprises the following steps:

[0047] Step 1, generating an initial vector and a key vector by a random vector generator; both the initial vector and the key vector are 1×256 row vectors;

[0048] Step 2, the initial vector is cyclically filled with an m×m matrix to obtain an initial matrix C 0 , m is a positive integer; convert the key vector into a key box S 1 , S 2 , S 3 ......S j , where S j is a 1×16 vector, j∈[1,16];

[0049] Step 3, for the matrix C 0 Perform 2×m rounds of encryption to obtain the encryption matrix E, and the initial matrix C 0 Encryption proceeds as follows:

[0050]A0. Carry out the R round of encryption, and select the key box according to the current number of encryption rounds R, where the initial value of R is 1, and R≤2×m;

[0051] A1. Obtain matrix C sequentially R-1 The binary values ​​of the upper, lower, left, and right elements of the element P to...

Embodiment 2

[0058] Embodiment two, such as figure 2 and image 3 As shown, the flow process of this embodiment is basically the same as that of Embodiment 1, the difference is that it also includes the steps of QR code generation and QR code decryption, and Embodiment 2 is executed according to the following steps:

[0059] S1. Data analysis;

[0060] S2. Determine the version of the QR code, and obtain the side length of the QR code;

[0061] S3. Generate an initial vector and a key vector by a random vector generator; both the initial vector and the key vector are 1×256 row vectors;

[0062] S4. The initial vector is cyclically filled with an m×m matrix to obtain an initial matrix C 0 , m is a positive integer; convert the key vector into a key box S 1 , S 2 , S 3 ......S j , where S j is a 1×16 vector, j∈[1,16];

[0063] S5, for the matrix C 0 Perform 2×m rounds of encryption to obtain the encryption matrix E, and the initial matrix C 0 Encryption proceeds as follows:

[0...

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 QR code encryption method and belongs to the field of information encryption. According to the method, a random vector generator is used for generating an initial vector and a secret key vector, an initial matrix is obtained, the secret key vector is converted into a secret key box, the corresponding secret key box is selected according to the round number of encryption, encryption is carried out on the matrix according to the selected secret key box so that an encrypted matrix can be obtained, and then encryption is carried out on a QR code. The encryption process of the QR code through the method is parallel, efficient and safe.

Description

technical field [0001] The invention belongs to the field of information encryption, and in particular relates to a QR code encryption method. Background technique [0002] In recent years, barcode technology has been widely used as a means of rapid exchange of small data volumes, and a typical representative is QR code, which is a two-dimensional code. Tourist attractions use QR codes for scenic spot explanations. Smartphone users can learn the background knowledge of many scenic spots by scanning QR codes; It is applied to the fields of identity authentication and business transactions, etc. The application prospect of QR code is very broad, and in many cases, the information carried by QR code is not expected to be disclosed, and the purpose can be achieved by means of encryption. [0003] At present, many people have done a lot of work on the encryption research of QR, which is mainly divided into two types. The first is to directly encrypt the original data, and then...

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): H04L9/08G06K19/06
Inventor 周庆黄党志胡月王湛鹏洪颖王宏
Owner CHONGQING UNIV
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