Self-encrypting self-checking two-dimensional code encoding and decoding method

An encoding method and self-checking technology, applied in the fields of information security and automatic identification, can solve the problems of easy forgery of two-dimensional codes and difficult forgery of two-dimensional code information.

Active Publication Date: 2015-09-16
CHINA TOBACCO GUANGXI IND
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problem that the two-dimensional code printed on the product is easy to be forged, a two-dimensional code code decoding method capable of self-encryption and decryption is proposed, which can realize self-encryption

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
  • Self-encrypting self-checking two-dimensional code encoding and decoding method
  • Self-encrypting self-checking two-dimensional code encoding and decoding method
  • Self-encrypting self-checking two-dimensional code encoding and decoding method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] see figure 1 , the encoding structure 0 of the two-dimensional code of the present invention includes address 1 and parameter 2, parameter 2 includes key batch number 24, random salt22 and ciphertext 23, and ciphertext 23 is composed of key 231, salt22 and product serial number 231, By combining the random salt with the product serial number, using a random key to encrypt, the string that connects the key batch number, salt and encrypted ciphertext is used as the parameter of the QR code information, and the key batch number and salt are stored in the background The corresponding relationship with the key, each key batch number corresponds to a batch of salt and key, and each salt uniquely corresponds to a key.

[0031] This key is generated by the following steps, see figure 2

[0032] Step S11, generate a new key batch number of a specified length by means of pipeline increment, table lookup, rule increment, etc.; if 1001 with a length of 4 is used as the key batch...

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 self-encrypting self-checking two-dimensional code encoding and decoding method, which comprises the steps of: selecting a record randomly from a data record sheet corresponding to a currently-used secret key batch number, wherein the record comprises salt and a secret key; connecting the salt and a product serial number into a character string, encrypting the character string via the secret key by using a symmetric key algorithm to obtain a ciphertext; connecting the key batch number, the salt and the ciphertext into a character string serving as a parameter; and combining a given address and the parameter to obtain a Url, which serves as a required two-dimensional code information code. The self-encrypting self-checking two-dimensional code encoding and decoding method can realize the self-encrypting self-checking encoding and decoding of two-dimensional code information, so that the two-dimensional code information is difficult to forge, and can directly judge whether the two-dimensional code is forged according to the two-dimensional code information.

Description

technical field [0001] The invention relates to the fields of information security and automatic identification, in particular to a self-encrypting and self-verifying two-dimensional code encoding and decoding method. Background technique [0002] Since two-dimensional codes can represent rich information and are easy to use, especially with the popularity of mobile smart terminals, two-dimensional code scanning has become a widely used method. Some companies print a unique QR code on each product to achieve product authenticity identification, product tracking, marketing activities and other purposes. Two-dimensional code technology is to encode the two-dimensional code information represented by a string to generate a scannable two-dimensional code. Generally, open technologies such as QR codes are used, which do not have encryption features and can be easily scanned by any code-scanning software. Reading, so that the QR code on the product is easy to be forged. [0003]...

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
IPC IPC(8): G06K19/06G06F21/62
Inventor 张雨夏孙忱王珏梁海玲陆瑛
Owner CHINA TOBACCO GUANGXI IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products