CN105577376A - Two-dimensional code coding-and-decoding and authentication method and two-dimensional code coding-and-decoding and authentication device - Google Patents

Two-dimensional code coding-and-decoding and authentication method and two-dimensional code coding-and-decoding and authentication device Download PDF

Info

Publication number
CN105577376A
CN105577376A CN201410539137.4A CN201410539137A CN105577376A CN 105577376 A CN105577376 A CN 105577376A CN 201410539137 A CN201410539137 A CN 201410539137A CN 105577376 A CN105577376 A CN 105577376A
Authority
CN
China
Prior art keywords
quick response
response code
data
coding
data section
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
CN201410539137.4A
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201410539137.4A priority Critical patent/CN105577376A/en
Publication of CN105577376A publication Critical patent/CN105577376A/en
Pending legal-status Critical Current

Links

Abstract

An embodiment of the invention provides a two-dimensional code coding-and-decoding and authentication method and a two-dimensional code coding-and-decoding and authentication device. The two-dimensional code coding-and-decoding and authentication method mainly comprises the steps of setting a standard coded data segment and a two-dimensional code authentication data segment in coded two-dimensional code data, wherein the standard coded data segment is separated from the two-dimensional code authentication data segment through two-dimensional code segmenting marks; and setting a two-dimensional code verification mark in the two-dimensional code authentication data segment, wherein the two-dimensional code verification mark is used for verifying whether the coded two-dimensional code data are issued by a preset two-dimensional code issuing party. The two-dimensional code coding-and-decoding and authentication method and the two-dimensional code coding-and-decoding and authentication device have advantages of effectively improving safety in accessing the two-dimensional code, conveniently and effectively performing authentication on the validity of the two-dimensional code, simultaneously accommodating an open content and a private content in the two-dimensional code data, hiding the private content, and realizing no identification for existence of the private content, and realizing no use experience reduction.

Description

The encoding and decoding of Quick Response Code and authentication method and device
Technical field
The present invention relates to planar bar code technology field, particularly relate to a kind of encoding and decoding of Quick Response Code and authentication method and device.
Background technology
The numerous areas such as planar bar code technology is widely used in access to netwoks, quick pays, ticketing service is false proof.But there are some problems at present Quick Response Code application: as virus link is deposited in Quick Response Code by some people, be aided with normal introductory word and induce everybody to scan, and then be engaged in and gain user telephone fee by cheating, the activities such as Malware are installed; In other Quick Response Code ticketing service Application in Anti-counterfeiting, want to add fast access link or introductory word and need not the private data be concerned about of booking user simultaneously, be not easy to realize based on existing GB Quick Response Code standard, so just there will be the application scenarios that train ticket encrypts entirely.Also have some enterprises to want to use Quick Response Code, but the maintenance cost such as exploitation Quick Response Code, generation Quick Response Code Verification System is too high.
The encoding scheme of a kind of Quick Response Code of the prior art is two-part Quick Response Code encoding scheme, and in this scenario, 2 D code information comprises closed security zone and open district, adds user right name and key in closed security zone.The program achieves 2 D code information and not only comprises public information but also comprise private information.
The shortcoming of the encoding scheme of above-mentioned a kind of Quick Response Code of the prior art is: the method does not solve publisher's authentication question of Quick Response Code self, uses the enterprise of Quick Response Code also to need exploitation Quick Response Code, generate Verification System.
Summary of the invention
The embodiment provides a kind of encoding and decoding of Quick Response Code and authentication method and device, to realize conveniently, effectively to carry out certification to the legitimacy of Quick Response Code.
The invention provides following scheme:
The encoding and decoding of Quick Response Code and an authentication method, comprising:
Non-standard encoded data section and Quick Response Code verify data section are set in two-dimensional code data in encoded, are split by Quick Response Code segmentation markers between described non-standard encoded data section and Quick Response Code verify data section;
In described Quick Response Code verify data section, arrange Quick Response Code checking mark, described Quick Response Code checking mark is issued by the Quick Response Code publisher specified for the two-dimensional code data after verifying described coding.
Described method also comprises: in described Quick Response Code verify data section, also arrange Quick Response Code certification mode designator, described Quick Response Code certification mode designator is different from the designator in standard two-dimensional code coding, is used to indicate in described Quick Response Code verify data section and comprises Quick Response Code checking mark.
Described arranges Quick Response Code checking mark in described Quick Response Code verify data section, comprising:
According to the cryptographic algorithm of setting, Quick Response Code checking mark is encrypted, Quick Response Code checking mark after described encryption is set after Quick Response Code certification mode designator in described Quick Response Code verify data section, the Quick Response Code checking mark after described encryption accounts for described Quick Response Code certification mode designator designated bit figure place below; Or the Quick Response Code checking mark after described encryption accounts for all number of bits between the Quick Response Code segmentation markers of described Quick Response Code certification mode designator and described Quick Response Code verify data segment trailer.
Described method also comprises:
In two-dimensional code data in encoded, custom coding data segment is also set, is split by Quick Response Code segmentation markers between described custom coding data segment and described non-standard encoded data section, Quick Response Code verify data section;
The encryption algorithm that described non-standard encoded data section adopts standard to specify is encoded to two-dimensional code data, described custom coding data segment adopts self-defining encryption algorithm to encode to two-dimensional code data, and also arrange custom coding designator in described custom coding data segment, this custom coding designator is for identifying described self-defining encryption algorithm.
Described custom coding data segment comprises the data segment of multiple employing different coding mode, and the coded indicator of the corresponding coded system indicating this data segment to adopt of each data segment.
Described method also comprises:
Corresponding relation between each Quick Response Code publisher and Quick Response Code checking mark is set;
When carrying out decoding process to the two-dimensional code data after described coding, Quick Response Code segmentation markers and Quick Response Code certification mode designator is utilized to parse Quick Response Code verify data section in described two-dimensional code data, extract the Quick Response Code checking mark in described Quick Response Code verify data section, according to the described Quick Response Code checking identified query extracted, corresponding relation obtains corresponding Quick Response Code publisher;
Judge Quick Response Code publisher that described inquiry obtains whether with known described coding after the publisher of two-dimensional code data be consistent, if so, then determine that the certification of the two-dimensional code data after described coding is passed through; Otherwise, determine that the certification of the two-dimensional code data after described coding is not passed through.
Described when carrying out decoding process to the two-dimensional code data after described coding, Quick Response Code segmentation markers and Quick Response Code certification mode designator is utilized to parse Quick Response Code verify data section in described two-dimensional code data, extract the Quick Response Code checking mark in described Quick Response Code verify data section, comprising:
When carrying out decoding process to the two-dimensional code data after described coding, identify described Quick Response Code verify data section according to the Quick Response Code segmentation markers parsed;
Parse the Quick Response Code certification mode designator in described Quick Response Code verify data section, using the data of the designated bit figure place after described Quick Response Code certification mode designator as identifying described Quick Response Code checking mark; Or, using the data of all number of bits between described Quick Response Code certification mode designator and the Quick Response Code segmentation markers of described Quick Response Code verify data segment trailer as identifying described Quick Response Code checking mark;
After the described Quick Response Code checking mark identified is encrypted, according to the decipherment algorithm of setting, process is decrypted to the described Quick Response Code checking mark identified.
The encoding and decoding of Quick Response Code and an authenticate device, comprising:
Normal data section coding module, for arranging non-standard encoded data section in two-dimensional code data in encoded;
Verify data section coding module, for arranging Quick Response Code verify data section in two-dimensional code data in encoded, is split by Quick Response Code segmentation markers between described non-standard encoded data section and Quick Response Code verify data section; In described Quick Response Code verify data section, arrange Quick Response Code checking mark, described Quick Response Code checking mark is issued by the Quick Response Code publisher specified for the two-dimensional code data after verifying described coding.
Described verify data section coding module, also for also arranging Quick Response Code certification mode designator in described Quick Response Code verify data section, described Quick Response Code certification mode designator is different from the designator in standard two-dimensional code coding, is used to indicate in described Quick Response Code verify data section and comprises Quick Response Code checking mark.
Described verify data section coding module, also for the cryptographic algorithm according to setting, Quick Response Code checking mark is encrypted, Quick Response Code checking mark after described encryption is set after Quick Response Code certification mode designator in described Quick Response Code verify data section, the Quick Response Code checking mark after described encryption accounts for described Quick Response Code certification mode designator designated bit figure place below; Or the Quick Response Code checking mark after described encryption accounts for all number of bits between the Quick Response Code segmentation markers of described Quick Response Code certification mode designator and described Quick Response Code verify data segment trailer.
Described device also comprises:
Self-defining data section coding module, for arranging custom coding data segment in two-dimensional code data in encoded, is split by Quick Response Code segmentation markers between described custom coding data segment and described non-standard encoded data section, Quick Response Code verify data section;
The encryption algorithm that described non-standard encoded data section adopts standard to specify is encoded to two-dimensional code data, described custom coding data segment adopts self-defining encryption algorithm to encode to two-dimensional code data, and also arrange custom coding designator in described custom coding data segment, this custom coding designator is for identifying described self-defining encryption algorithm.
Described self-defining data section coding module, also for arranging the data segment of multiple employing different coding mode in described custom coding data segment, and the coded indicator of the corresponding coded system indicating this data segment to adopt of each data segment.
Described device also comprises:
Decoding process module, for when carrying out decoding process to the two-dimensional code data after described coding, utilize Quick Response Code segmentation markers and Quick Response Code certification mode designator to parse Quick Response Code verify data section in described two-dimensional code data, extract the Quick Response Code checking mark in described Quick Response Code verify data section;
Verification process module, for arranging the corresponding relation between each Quick Response Code publisher and Quick Response Code checking mark, obtains corresponding Quick Response Code publisher according to corresponding relation described in the Quick Response Code checking identified query that described decoding process module extracts;
Judge Quick Response Code publisher that described inquiry obtains whether with known described coding after the publisher of two-dimensional code data be consistent, if so, then determine that the certification of the two-dimensional code data after described coding is passed through; Otherwise, determine that the certification of the two-dimensional code data after described coding is not passed through.
Described decoding process module, specifically for when carrying out decoding process to the two-dimensional code data after described coding, identifies described Quick Response Code verify data section according to the Quick Response Code segmentation markers parsed;
Parse the Quick Response Code certification mode designator in described Quick Response Code verify data section, using the data of the designated bit figure place after described Quick Response Code certification mode designator as identifying described Quick Response Code checking mark; Or, using the data of all number of bits between described Quick Response Code certification mode designator and the Quick Response Code segmentation markers of described Quick Response Code verify data segment trailer as identifying described Quick Response Code checking mark;
After the described Quick Response Code checking mark identified is encrypted, according to the decipherment algorithm of setting, process is decrypted to the described Quick Response Code checking mark identified.
The technical scheme provided as can be seen from the embodiment of the invention described above, the embodiment of the present invention is by arranging non-standard encoded data section and Quick Response Code verify data section in two-dimensional code data in encoded, mark is verified two-dimensional code data to utilize the Quick Response Code in Quick Response Code verify data section to verify, effectively can improve the fail safe of access Quick Response Code, can realize conveniently, effectively certification be carried out to the legitimacy of Quick Response Code; Disclosure and private content can also be held in two-dimensional code data simultaneously, and private content is hidden, identify the existence less than private content during public use, do not affect experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of encoding and decoding of Quick Response Code that Fig. 1 provides for the embodiment of the present invention one and the process chart of authentication method;
A kind of Quick Response Code coding result schematic diagram comprising non-standard encoded data section, Quick Response Code verify data section and custom coding data segment that Fig. 2 provides for the embodiment of the present invention one;
Fig. 3 is that a kind of of the embodiment of the present invention one embodiment carries out to two-dimensional code data the process schematic processed of decoding;
A kind of encoding and decoding of Quick Response Code that Fig. 4 provides for the embodiment of the present invention two and the structural representation of authenticate device, in figure, normal data section coding module 41, verify data section coding module 42, self-defining data section coding module 43, decoding process module 44 and verification process module 45.
Embodiment
For ease of the understanding to the embodiment of the present invention, be further explained explanation below in conjunction with accompanying drawing for several specific embodiment, and each embodiment does not form the restriction to the embodiment of the present invention.
Embodiment one
The embodiment of the present invention generates recognition methods by distinctive Quick Response Code, multisection type data-encoding scheme is provided in Quick Response Code, can hide and not think disclosed data, realize preserving disclosure and private content in Quick Response Code simultaneously, the legitimacy certification of Quick Response Code self can also be realized, and Quick Response Code can be developed for being unwilling generate certification or the client that do not possess development ability provides Quick Response Code to use service.
The handling process that this embodiment offers a kind of encoding and decoding of Quick Response Code and authentication method as shown in Figure 1, comprises following treatment step:
The encoding and decoding of the Quick Response Code in step S110, the embodiment of the present invention and authentication method system provide system registry, registered user's audit function for user.After chartered logging in system by user, the log-on message of system audit user, audits by rear, and user just can use that the Quick Response Code of native system generates, the decoding of encryption and decryption, Quick Response Code and Quick Response Code authentication service function.
Step S120, user encode to needing the Quick Response Code issued, obtain the two-dimensional code data after encoding, non-standard encoded data section and Quick Response Code verify data section are set in two-dimensional code data in encoded, are split by Quick Response Code segmentation markers between described non-standard encoded data section and Quick Response Code verify data section.
Described non-standard encoded data section is usually located at the first paragraph of the two-dimensional code data after coding, the encryption algorithm that employing standard specifies is encoded to two-dimensional code data, above-mentioned standard can be GB, the Quick Response Code full stop specified using national standard or can as the symbol of full stop as Quick Response Code segmentation markers meets the standard content that national standard Quick Response Code fetch equipment can read.
Quick Response Code has many types, wherein common with QR (QuickResponse, fast reaction), DataMatrix, PDF417, Chinese letter co, for the Chinese letter co of Chinese invention, the embodiment of the present invention is described below.
The GB that Chinese letter co is corresponding is " GB/T21049-2007 Chinese letter co ".In Chinese letter co coding, the end-of-encode symbol of each coding mode is all different, does not have unified end-of-encode symbol, but consider that mode indicators is 4 bit, filling information is the bit stream of Binary Zero, so the embodiment of the present invention can select 0000 as Quick Response Code segmentation markers.
At least comprise non-standard encoded data section and Quick Response Code verify data section in two-dimensional code data after coding, interlude information can be selected voluntarily by user.
In described Quick Response Code verify data section, arrange Quick Response Code checking mark, described Quick Response Code checking mark is issued by the Quick Response Code publisher specified for the two-dimensional code data after verifying described coding.In described Quick Response Code verify data section, Quick Response Code certification mode designator is also set, described Quick Response Code certification mode designator be the indicator mark different with other custom indicator from national regulations mode indicators not, be used to indicate in described Quick Response Code verify data section and comprise Quick Response Code checking mark.Exemplary, in the embodiment of the present invention, Quick Response Code certification mode designator is 1010.
Those skilled in the art will be understood that above-mentioned Quick Response Code segmentation markers, the application type of Quick Response Code certification mode designator is only citing; the application type of other Quick Response Code segmentation markers that are existing or that may occur from now on, Quick Response Code certification mode designator is as being applicable to the embodiment of the present invention; also within scope should being included in, and this is contained at this with way of reference.
Be encrypted Quick Response Code checking mark according to the cryptographic algorithm of setting, above-mentioned cryptographic algorithm can be open enciphering and deciphering algorithm, as RSA, and DES (DataEncryptionStandard, DEA), SM2 etc.
Quick Response Code checking mark after described encryption is set after Quick Response Code certification mode designator in described Quick Response Code verify data section, Quick Response Code checking mark after described encryption accounts for described Quick Response Code certification mode designator designated bit figure place below, such as, Quick Response Code certification mode designator 1,010 6 number of bits are below accounted for; Or, Quick Response Code checking mark after described encryption accounts for all number of bits between the Quick Response Code segmentation markers of described Quick Response Code certification mode designator and described Quick Response Code verify data segment trailer, namely accounts for all number of bits between 1010 and 0000 in Quick Response Code verify data section.
In step S130, two-dimensional code data in encoded, custom coding data segment is also set, is split by Quick Response Code segmentation markers between described custom coding data segment and described non-standard encoded data section, Quick Response Code verify data section.
Described custom coding data segment adopts self-defining encryption algorithm to encode to two-dimensional code data, and also arranges custom coding designator in described custom coding data segment, and this custom coding designator is for identifying described self-defining encryption algorithm.
Described custom coding data segment comprises the data segment of multiple employing different coding mode, and the coded indicator of the corresponding coded system indicating this data segment to adopt of each data segment.
This part is Quick Response Code coding selective sections, and can be multistage content, every section of content can be encrypted or not encrypt, and all uses segmentation markers interval.The mode indicators of regulation in " GB/T21049-2007 Chinese letter co " is used when not encrypting; 1001 can be selected when encrypting as the mode indicators of encrypted content, selecting the mark that mode indicators of specifying middle with " GB/T21049-2007 Chinese letter co " is different.
A kind of Quick Response Code coding result schematic diagram comprising non-standard encoded data section, Quick Response Code verify data section and custom coding data segment that the embodiment of the present invention provides as shown in Figure 2, this coding mode can guarantee the Quick Response Code decoding device meeting GB, can only read the content before first segmentation markers, content below needs special decoding algorithm.
Step S140, the two-dimensional code data after described coding is carried out decoding process time, utilize Quick Response Code segmentation markers and Quick Response Code certification mode designator to parse Quick Response Code verify data section in described two-dimensional code data, extract the Quick Response Code checking mark in described Quick Response Code verify data section.
When carrying out decoding process to the two-dimensional code data after described coding, identify described Quick Response Code verify data section according to the Quick Response Code segmentation markers parsed.After parsing Quick Response Code certification mode designator, using the data of the designated bit figure place after described Quick Response Code certification mode designator as identifying described Quick Response Code checking mark; Or, using the data of all number of bits between described Quick Response Code certification mode designator and the Quick Response Code segmentation markers of described Quick Response Code verify data segment trailer as identifying described Quick Response Code checking mark;
When after the described encrypted algorithm for encryption of Quick Response Code checking mark identified, the decipherment algorithm corresponding according to above-mentioned cryptographic algorithm is decrypted process to the described Quick Response Code checking mark identified.Such as, above-mentioned decipherment algorithm can be 3DES algorithm.
Step S150, the embodiment of the present invention need to arrange the corresponding relation between each Quick Response Code publisher and Quick Response Code checking mark.
According to the described Quick Response Code checking identified query extracted, corresponding relation obtains corresponding Quick Response Code publisher, judge Quick Response Code publisher that described inquiry obtains whether with known described coding after the publisher of two-dimensional code data be consistent, if, then determine that the certification of the two-dimensional code data after described coding is passed through, above-mentioned Quick Response Code is issued by the Quick Response Code publisher specified; Otherwise determine that the certification of the two-dimensional code data after described coding is not passed through, above-mentioned Quick Response Code is not issued by the Quick Response Code publisher specified.
In actual applications, can after do not parse the Quick Response Code certification mode designator preset from Quick Response Code verify data section yet, then determine that the certification of the two-dimensional code data after described coding is not passed through, above-mentioned Quick Response Code is not issued by the Quick Response Code publisher specified.
Quick Response Code authentication service provides checking with on-line authentication and special purpose device certification two kinds of modes.During on-line authentication, two-dimension code image only need be submitted to native system by user, can perform decoding identifying procedure.Special purpose device certification, can realize with software or hardware mode, built-in Quick Response Code unique identification decrypted authentication key.
The embodiment of the present invention extends the coded system of GB Chinese letter co, so more more complex than national regulations decoding process during decoding, this embodiment provide a kind of to two-dimensional code data carry out decode process process be with he as shown in Figure 3, this decode procedure, do not affect the decoding of GB Quick Response Code, mainly comprise following processing procedure:
First after error correction, data recombination, original binary code stream is obtained according to GB decoding algorithm, then decode content, until be decoded to first Quick Response Code segmentation markers of national regulations, if also have residue original bit information not decode after first paragraph decoding terminates, then read further and judge whether it is in Quick Response Code standard or self-defining mode indicators with the Bit data of mode indicators equal length, if then continue decoding until be decoded to next Quick Response Code segmentation markers, then repeat this step until decoding terminates; The end if not then decode.
In Quick Response Code decoding module decodes result, if final stage mode indicators is not the Quick Response Code certification mode designator of aforementioned regulation, then the non-native system of Quick Response Code generates.
Embodiment two
This embodiment offers a kind of encoding and decoding and authenticate device of Quick Response Code, its specific implementation structure as shown in Figure 4, specifically can comprise following module:
Normal data section coding module 41, for arranging non-standard encoded data section in two-dimensional code data in encoded;
Verify data section coding module 42, for arranging Quick Response Code verify data section in two-dimensional code data in encoded, is split by Quick Response Code segmentation markers between described non-standard encoded data section and Quick Response Code verify data section; In described Quick Response Code verify data section, arrange Quick Response Code checking mark, described Quick Response Code checking mark is issued by the Quick Response Code publisher specified for the two-dimensional code data after verifying described coding.
Further, described verify data section coding module 42, also for also arranging Quick Response Code certification mode designator in described Quick Response Code verify data section, described Quick Response Code certification mode designator is different from the designator in standard two-dimensional code coding, is used to indicate in described Quick Response Code verify data section and comprises Quick Response Code checking mark.
Further, described verify data section coding module 42, also for the cryptographic algorithm according to setting, Quick Response Code checking mark is encrypted, Quick Response Code checking mark after described encryption is set after Quick Response Code certification mode designator in described Quick Response Code verify data section, the Quick Response Code checking mark after described encryption accounts for described Quick Response Code certification mode designator designated bit figure place below; Or the Quick Response Code checking mark after described encryption accounts for all number of bits between the Quick Response Code segmentation markers of described Quick Response Code certification mode designator and described Quick Response Code verify data segment trailer.
Further, described device also comprises self-defining data section coding module 43, for arranging custom coding data segment in two-dimensional code data in encoded, split by Quick Response Code segmentation markers between described custom coding data segment and described non-standard encoded data section, Quick Response Code verify data section;
The encryption algorithm that described non-standard encoded data section adopts standard to specify is encoded to two-dimensional code data, described custom coding data segment adopts self-defining encryption algorithm to encode to two-dimensional code data, and also arrange custom coding designator in described custom coding data segment, this custom coding designator is for identifying described self-defining encryption algorithm.
Further, described self-defining data section coding module 43, also for arranging the data segment of multiple employing different coding mode in described custom coding data segment, and the coded indicator of the corresponding coded system indicating this data segment to adopt of each data segment.
Further, described device also comprises:
Decoding process module 44, for when carrying out decoding process to the two-dimensional code data after described coding, utilize Quick Response Code segmentation markers and Quick Response Code certification mode designator to parse Quick Response Code verify data section in described two-dimensional code data, extract the Quick Response Code checking mark in described Quick Response Code verify data section;
Verification process module 45, for arranging the corresponding relation between each Quick Response Code publisher and Quick Response Code checking mark, obtains corresponding Quick Response Code publisher according to corresponding relation described in the Quick Response Code checking identified query that described decoding process module extracts;
Judge Quick Response Code publisher that described inquiry obtains whether with known described coding after the publisher of two-dimensional code data be consistent, if so, then determine that the certification of the two-dimensional code data after described coding is passed through; Otherwise, determine that the certification of the two-dimensional code data after described coding is not passed through.
Further, described decoding process module 44, specifically for when carrying out decoding process to the two-dimensional code data after described coding, identifies described Quick Response Code verify data section according to the Quick Response Code segmentation markers parsed;
Parse the Quick Response Code certification mode designator in described Quick Response Code verify data section, using the data of the designated bit figure place after described Quick Response Code certification mode designator as identifying described Quick Response Code checking mark; Or, using the data of all number of bits between described Quick Response Code certification mode designator and the Quick Response Code segmentation markers of described Quick Response Code verify data segment trailer as identifying described Quick Response Code checking mark;
After the described Quick Response Code checking mark identified is encrypted, according to the decipherment algorithm of setting, process is decrypted to the described Quick Response Code checking mark identified.
Carry out the encoding and decoding of Quick Response Code and the detailed process of certification and preceding method embodiment with the device of the embodiment of the present invention similar, repeat no more herein.
In sum, the embodiment of the present invention is by arranging non-standard encoded data section and Quick Response Code verify data section in two-dimensional code data in encoded, mark is verified two-dimensional code data to utilize the Quick Response Code in Quick Response Code verify data section to verify, effectively can improve the fail safe of access Quick Response Code, can realize conveniently, effectively certification be carried out to the legitimacy of Quick Response Code; Disclosure and private content can also be held in two-dimensional code data simultaneously, and private content is hidden, identify the existence less than private content during public use, do not affect experience.
The embodiment of the present invention can provide with third party cloud service mode, website mode, Verification System need not be issued by the further development and maintenance Quick Response Code of user oneself, application for registration is by just can use all functions being generated to Quick Response Code certification from Quick Response Code later, reduce company information working service cost, can develop the client that Quick Response Code generates certification or do not possess development ability for being unwilling provide Quick Response Code to use service.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device or system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Apparatus and system embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (14)

1. the encoding and decoding of Quick Response Code and an authentication method, is characterized in that, comprising:
Non-standard encoded data section and Quick Response Code verify data section are set in two-dimensional code data in encoded, are split by Quick Response Code segmentation markers between described non-standard encoded data section and Quick Response Code verify data section;
In described Quick Response Code verify data section, arrange Quick Response Code checking mark, described Quick Response Code checking mark is issued by the Quick Response Code publisher specified for the two-dimensional code data after verifying described coding.
2. the encoding and decoding of Quick Response Code according to claim 1 and authentication method, it is characterized in that, described method also comprises: in described Quick Response Code verify data section, also arrange Quick Response Code certification mode designator, described Quick Response Code certification mode designator is different from the designator in standard two-dimensional code coding, is used to indicate in described Quick Response Code verify data section and comprises Quick Response Code checking mark.
3. the encoding and decoding of Quick Response Code according to claim 2 and authentication method, is characterized in that, described arranges Quick Response Code checking mark in described Quick Response Code verify data section, comprising:
According to the cryptographic algorithm of setting, Quick Response Code checking mark is encrypted, Quick Response Code checking mark after described encryption is set after Quick Response Code certification mode designator in described Quick Response Code verify data section, the Quick Response Code checking mark after described encryption accounts for described Quick Response Code certification mode designator designated bit figure place below; Or the Quick Response Code checking mark after described encryption accounts for all number of bits between the Quick Response Code segmentation markers of described Quick Response Code certification mode designator and described Quick Response Code verify data segment trailer.
4. the encoding and decoding of Quick Response Code according to claim 2 and authentication method, it is characterized in that, described method also comprises:
In two-dimensional code data in encoded, custom coding data segment is also set, is split by Quick Response Code segmentation markers between described custom coding data segment and described non-standard encoded data section, Quick Response Code verify data section;
The encryption algorithm that described non-standard encoded data section adopts standard to specify is encoded to two-dimensional code data, described custom coding data segment adopts self-defining encryption algorithm to encode to two-dimensional code data, and also arrange custom coding designator in described custom coding data segment, this custom coding designator is for identifying described self-defining encryption algorithm.
5. the encoding and decoding of Quick Response Code according to claim 4 and authentication method, it is characterized in that, described custom coding data segment comprises the data segment of multiple employing different coding mode, and the coded indicator of the corresponding coded system indicating this data segment to adopt of each data segment.
6. the encoding and decoding of the Quick Response Code according to Claims 2 or 3 or 4 or 5 and authentication method, is characterized in that, described method also comprises:
Corresponding relation between each Quick Response Code publisher and Quick Response Code checking mark is set;
When carrying out decoding process to the two-dimensional code data after described coding, Quick Response Code segmentation markers and Quick Response Code certification mode designator is utilized to parse Quick Response Code verify data section in described two-dimensional code data, extract the Quick Response Code checking mark in described Quick Response Code verify data section, according to the described Quick Response Code checking identified query extracted, corresponding relation obtains corresponding Quick Response Code publisher;
Judge Quick Response Code publisher that described inquiry obtains whether with known described coding after the publisher of two-dimensional code data be consistent, if so, then determine that the certification of the two-dimensional code data after described coding is passed through; Otherwise, determine that the certification of the two-dimensional code data after described coding is not passed through.
7. the encoding and decoding of Quick Response Code according to claim 6 and authentication method, it is characterized in that, described when carrying out decoding process to the two-dimensional code data after described coding, Quick Response Code segmentation markers and Quick Response Code certification mode designator is utilized to parse Quick Response Code verify data section in described two-dimensional code data, extract the Quick Response Code checking mark in described Quick Response Code verify data section, comprising:
When carrying out decoding process to the two-dimensional code data after described coding, identify described Quick Response Code verify data section according to the Quick Response Code segmentation markers parsed;
Parse the Quick Response Code certification mode designator in described Quick Response Code verify data section, using the data of the designated bit figure place after described Quick Response Code certification mode designator as identifying described Quick Response Code checking mark; Or, using the data of all number of bits between described Quick Response Code certification mode designator and the Quick Response Code segmentation markers of described Quick Response Code verify data segment trailer as identifying described Quick Response Code checking mark;
After the described Quick Response Code checking mark identified is encrypted, according to the decipherment algorithm of setting, process is decrypted to the described Quick Response Code checking mark identified.
8. the encoding and decoding of Quick Response Code and an authenticate device, is characterized in that, comprising:
Normal data section coding module, for arranging non-standard encoded data section in two-dimensional code data in encoded;
Verify data section coding module, for arranging Quick Response Code verify data section in two-dimensional code data in encoded, is split by Quick Response Code segmentation markers between described non-standard encoded data section and Quick Response Code verify data section; In described Quick Response Code verify data section, arrange Quick Response Code checking mark, described Quick Response Code checking mark is issued by the Quick Response Code publisher specified for the two-dimensional code data after verifying described coding.
9. the encoding and decoding of Quick Response Code according to claim 8 and authenticate device, is characterized in that:
Described verify data section coding module, also for also arranging Quick Response Code certification mode designator in described Quick Response Code verify data section, described Quick Response Code certification mode designator is different from the designator in standard two-dimensional code coding, is used to indicate in described Quick Response Code verify data section and comprises Quick Response Code checking mark.
10. the encoding and decoding of Quick Response Code according to claim 9 and authenticate device, is characterized in that:
Described verify data section coding module, also for the cryptographic algorithm according to setting, Quick Response Code checking mark is encrypted, Quick Response Code checking mark after described encryption is set after Quick Response Code certification mode designator in described Quick Response Code verify data section, the Quick Response Code checking mark after described encryption accounts for described Quick Response Code certification mode designator designated bit figure place below; Or the Quick Response Code checking mark after described encryption accounts for all number of bits between the Quick Response Code segmentation markers of described Quick Response Code certification mode designator and described Quick Response Code verify data segment trailer.
The encoding and decoding of 11. Quick Response Codes according to claim 9 and authenticate device, is characterized in that, described device also comprises:
Self-defining data section coding module, for arranging custom coding data segment in two-dimensional code data in encoded, is split by Quick Response Code segmentation markers between described custom coding data segment and described non-standard encoded data section, Quick Response Code verify data section;
The encryption algorithm that described non-standard encoded data section adopts standard to specify is encoded to two-dimensional code data, described custom coding data segment adopts self-defining encryption algorithm to encode to two-dimensional code data, and also arrange custom coding designator in described custom coding data segment, this custom coding designator is for identifying described self-defining encryption algorithm.
The encoding and decoding of 12. Quick Response Codes according to claim 11 and authenticate device, is characterized in that:
Described self-defining data section coding module, also for arranging the data segment of multiple employing different coding mode in described custom coding data segment, and the coded indicator of the corresponding coded system indicating this data segment to adopt of each data segment.
The encoding and decoding of 13. Quick Response Codes according to claim 9 or 10 or 11 or 12 and authenticate device, it is characterized in that, described device also comprises:
Decoding process module, for when carrying out decoding process to the two-dimensional code data after described coding, utilize Quick Response Code segmentation markers and Quick Response Code certification mode designator to parse Quick Response Code verify data section in described two-dimensional code data, extract the Quick Response Code checking mark in described Quick Response Code verify data section;
Verification process module, for arranging the corresponding relation between each Quick Response Code publisher and Quick Response Code checking mark, obtains corresponding Quick Response Code publisher according to corresponding relation described in the Quick Response Code checking identified query that described decoding process module extracts;
Judge Quick Response Code publisher that described inquiry obtains whether with known described coding after the publisher of two-dimensional code data be consistent, if so, then determine that the certification of the two-dimensional code data after described coding is passed through; Otherwise, determine that the certification of the two-dimensional code data after described coding is not passed through.
The encoding and decoding of 14. Quick Response Codes according to claim 13 and authenticate device, is characterized in that:
Described decoding process module, specifically for when carrying out decoding process to the two-dimensional code data after described coding, identifies described Quick Response Code verify data section according to the Quick Response Code segmentation markers parsed;
Parse the Quick Response Code certification mode designator in described Quick Response Code verify data section, using the data of the designated bit figure place after described Quick Response Code certification mode designator as identifying described Quick Response Code checking mark; Or, using the data of all number of bits between described Quick Response Code certification mode designator and the Quick Response Code segmentation markers of described Quick Response Code verify data segment trailer as identifying described Quick Response Code checking mark;
After the described Quick Response Code checking mark identified is encrypted, according to the decipherment algorithm of setting, process is decrypted to the described Quick Response Code checking mark identified.
CN201410539137.4A 2014-10-13 2014-10-13 Two-dimensional code coding-and-decoding and authentication method and two-dimensional code coding-and-decoding and authentication device Pending CN105577376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410539137.4A CN105577376A (en) 2014-10-13 2014-10-13 Two-dimensional code coding-and-decoding and authentication method and two-dimensional code coding-and-decoding and authentication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410539137.4A CN105577376A (en) 2014-10-13 2014-10-13 Two-dimensional code coding-and-decoding and authentication method and two-dimensional code coding-and-decoding and authentication device

Publications (1)

Publication Number Publication Date
CN105577376A true CN105577376A (en) 2016-05-11

Family

ID=55887093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410539137.4A Pending CN105577376A (en) 2014-10-13 2014-10-13 Two-dimensional code coding-and-decoding and authentication method and two-dimensional code coding-and-decoding and authentication device

Country Status (1)

Country Link
CN (1) CN105577376A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022433A (en) * 2016-06-23 2016-10-12 天津众阳科技有限公司 Novel QR code and generation and code scanning method thereof
CN106408324A (en) * 2016-08-29 2017-02-15 星空电讯科技(北京)股份有限公司 Intelligent cloud screen identification code matching method
WO2019095171A1 (en) * 2017-11-15 2019-05-23 深圳大学 Two-dimensional code detection method and terminal
CN109948760A (en) * 2019-03-28 2019-06-28 尤尼泰克(嘉兴)信息技术有限公司 A kind of information demonstrating method and device based on two dimensional code
CN111178476A (en) * 2019-11-22 2020-05-19 万翼科技有限公司 Two-dimensional code generation and recognition method and device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377837A (en) * 2007-08-29 2009-03-04 北京方维银通科技有限公司 Method for generating and checking electronic check two-dimension code credence
CN101645140A (en) * 2008-08-06 2010-02-10 华为技术有限公司 Two-dimensional code generation method, decoding method and device
WO2012035306A1 (en) * 2010-09-18 2012-03-22 Philip Wesby System and method for encoding and controlled authentication
CN103049777A (en) * 2012-11-15 2013-04-17 江苏缨思贝睿物联网科技有限公司 Security application method for two-dimension code and encoding/decoding system
CN103295046A (en) * 2013-06-13 2013-09-11 北京网秦天下科技有限公司 Method and device for generating and using safe two-dimensional codes
CN103400173A (en) * 2013-07-25 2013-11-20 中国科学院信息工程研究所 Generating method and reading method of two-dimensional code containing private information
CN103559526A (en) * 2013-10-31 2014-02-05 北京天威诚信电子商务服务有限公司 Method and system for generation and verification of two-dimensional code
CN103559221A (en) * 2013-10-18 2014-02-05 北京奇虎科技有限公司 Multi-media data processing method and device and browser

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377837A (en) * 2007-08-29 2009-03-04 北京方维银通科技有限公司 Method for generating and checking electronic check two-dimension code credence
CN101645140A (en) * 2008-08-06 2010-02-10 华为技术有限公司 Two-dimensional code generation method, decoding method and device
WO2012035306A1 (en) * 2010-09-18 2012-03-22 Philip Wesby System and method for encoding and controlled authentication
CN103049777A (en) * 2012-11-15 2013-04-17 江苏缨思贝睿物联网科技有限公司 Security application method for two-dimension code and encoding/decoding system
CN103295046A (en) * 2013-06-13 2013-09-11 北京网秦天下科技有限公司 Method and device for generating and using safe two-dimensional codes
CN103400173A (en) * 2013-07-25 2013-11-20 中国科学院信息工程研究所 Generating method and reading method of two-dimensional code containing private information
CN103559221A (en) * 2013-10-18 2014-02-05 北京奇虎科技有限公司 Multi-media data processing method and device and browser
CN103559526A (en) * 2013-10-31 2014-02-05 北京天威诚信电子商务服务有限公司 Method and system for generation and verification of two-dimensional code

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022433A (en) * 2016-06-23 2016-10-12 天津众阳科技有限公司 Novel QR code and generation and code scanning method thereof
CN106408324A (en) * 2016-08-29 2017-02-15 星空电讯科技(北京)股份有限公司 Intelligent cloud screen identification code matching method
WO2019095171A1 (en) * 2017-11-15 2019-05-23 深圳大学 Two-dimensional code detection method and terminal
CN109948760A (en) * 2019-03-28 2019-06-28 尤尼泰克(嘉兴)信息技术有限公司 A kind of information demonstrating method and device based on two dimensional code
CN109948760B (en) * 2019-03-28 2022-05-17 尤尼泰克(嘉兴)信息技术有限公司 Information presentation method and device based on two-dimensional code
CN111178476A (en) * 2019-11-22 2020-05-19 万翼科技有限公司 Two-dimensional code generation and recognition method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103295046B (en) The method and apparatus generated and use safe Quick Response Code
CN106788995B (en) File encryption method and device
CN107992923A (en) A kind of QR Quick Response Codes generation and the method read
CN105577376A (en) Two-dimensional code coding-and-decoding and authentication method and two-dimensional code coding-and-decoding and authentication device
CN104268610B (en) One kind classification QR code generating methods and read method
CN104281866A (en) Two-dimensional code application method and device
CN103049777A (en) Security application method for two-dimension code and encoding/decoding system
CN106027228B (en) Encryption and decryption method and encryption and decryption system for webpage identifier
CN110070363B (en) Account management method and verification method in block chain network and terminal equipment
CN105282090B (en) A kind of open URL scrambled method of anti-unauthorized access on internet
IN2014MN02389A (en)
US20160132871A1 (en) Secure redemption code generation for gift cards and promotions
CN107342854A (en) The encrypting and decrypting method and intelligent access control system of gate inhibition's Quick Response Code authority information
CN101894232B (en) Safe input method applied to identity authentication
CN113348455A (en) Apparatus and method for providing authentication, non-repudiation, managed access, and twin discrimination of data using data control signatures
CN105656626A (en) Reverse reconstruction encryption method
CN102842053B (en) A kind of false proof figure code label and manufacture method thereof
CN105187219B (en) The anti-tamper method of identity information in real-name authentication
CN112149068A (en) Access-based authorization verification method, information generation method and device, and server
CN108090364B (en) Method and system for positioning data leakage source
CN108234126B (en) System and method for remote account opening
CN113761578A (en) Document true checking method based on block chain
CN111711521B (en) Block chain account private key resetting method and system
CN112202794A (en) Transaction data protection method and device, electronic equipment and medium
KR20160082100A (en) Mobile ticket security system and method of based location information and terminal unique number

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160511

RJ01 Rejection of invention patent application after publication