CN101388076A - Method and apparatus for generating two-dimension bar-code - Google Patents

Method and apparatus for generating two-dimension bar-code Download PDF

Info

Publication number
CN101388076A
CN101388076A CNA2007101216766A CN200710121676A CN101388076A CN 101388076 A CN101388076 A CN 101388076A CN A2007101216766 A CNA2007101216766 A CN A2007101216766A CN 200710121676 A CN200710121676 A CN 200710121676A CN 101388076 A CN101388076 A CN 101388076A
Authority
CN
China
Prior art keywords
dimensional bar
bar code
content information
code
module
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
CNA2007101216766A
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.)
BEIJING FANGWEI YINTONG TECHNOLOGY Co Ltd
Original Assignee
BEIJING FANGWEI YINTONG TECHNOLOGY Co Ltd
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 BEIJING FANGWEI YINTONG TECHNOLOGY Co Ltd filed Critical BEIJING FANGWEI YINTONG TECHNOLOGY Co Ltd
Priority to CNA2007101216766A priority Critical patent/CN101388076A/en
Publication of CN101388076A publication Critical patent/CN101388076A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method for generating two-dimensional codes and a device thereof, the steps of the method comprise generating the content information of the two-dimensional codes according to the registration information of users, encrypting the content information through an encryption algorithm, generating encryption information, transforming the encryption information into two-dimensional codes. Through encrypting the content information of the two-dimensional codes, the content information of the two-dimensional codes only can be obtained by inputting a key literacy device when using the two-dimensional codes, thereby avoiding safety problems brought when the two-dimensional codes are copied illegally, and largely increasing the safety of the two-dimensional codes. The device comprises a content obtaining module, an encryption module and a transform module, wherein the content obtaining module is used to obtain the content information of the two-dimensional codes according the registration information of the users, the encryption module is used to encrypt the content information through the encryption algorithm and generate the encryption information, and the transform module is used to transform the encryption information into two-dimensional codes. The encryption module can enable a two-dimensional code device to be capable of generating two-dimensional codes of which the content information is encrypted, thereby largely increasing the safety of the two-dimensional codes.

Description

Generate the method and the device of two-dimensional bar code
Technical field
The present invention relates to 2D bar code technology, relate in particular to a kind of method and device that generates two-dimensional bar code.
Background technology
At present, two-dimensional bar code is just being understood and cognition by increasing people as a kind of brand-new automatic identification and information carrier technology.2D bar code technology has characteristics such as high density, high capacity, can explain data such as text message, data file (particularly Chinese character file), picture.Two-dimensional bar code has remarkable advantages at quantity of information, confidentiality, antipollution and aspects such as anti-interference and standardization, is one of Perfected process of realizing the network information management.Because the economy and the reliability of two-dimensional bar code, external advanced developed country has been widely used in this technology fields such as bank, national defence, customs, the tax, public safety, communications and transportation, civilian commodity.Country such as the U.S., Canada uses two-dimensional bar code in the assembling of driver's license, I.D., vehicle annual test, customs declaration list and automobile, electronic product; Two-dimensional bar code is also being carried out at international tourism's certificate, for example application on passport, visa and other travel documents by International Civil Aviation Organization.
But, because the carrier of two-dimensional bar code is the picture form, directly be printed on made of paper or the plastic cards, be easy to be copied, simple technological means such as photograph duplicates, therefore, existing two-dimensional safe bar code degree is lower.
Summary of the invention
The objective of the invention is to propose a kind of method and device that generates two-dimensional bar code, to improve the degree of safety of two-dimensional bar code at the deficiencies in the prior art.
For achieving the above object, the invention provides a kind of method that generates two-dimensional bar code, comprising:
Generate the content information of two-dimensional bar code according to user's registration information;
Encrypt described content information by cryptographic algorithm, generate enciphered message;
Described enciphered message is converted to two-dimensional bar code.
This programme is encrypted by the content information to two-dimensional bar code, make and to import the content information that the key recognizing apparatus just can obtain two-dimensional bar code when using two-dimensional bar code, avoid two-dimensional bar code by the safety problem of being brought under the situation of illicit copy, improved the degree of safety of two-dimensional bar code greatly.
For achieving the above object, the present invention also provides a kind of device that generates two-dimensional bar code, comprising:
The content acquisition module is used for the content information according to user's registration information acquisition two-dimensional bar code;
Encrypting module is used for encrypting described content information by cryptographic algorithm, generates enciphered message;
Modular converter is used for described enciphered message is converted to two-dimensional bar code.
This programme makes the two-dimensional bar code device can generate the two-dimensional bar code of content information through encrypting by encrypting module, thereby has improved the degree of safety of two-dimensional bar code greatly.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 generates the process flow diagram of the method embodiment one of two-dimensional bar code for the present invention;
Fig. 2 generates the process flow diagram of the method embodiment two of two-dimensional bar code for the present invention;
Fig. 3 generates the process flow diagram of the method embodiment three of two-dimensional bar code for the present invention;
Fig. 4 generates the structural representation of the device embodiment one of two-dimensional bar code for the present invention;
Fig. 5 generates the structural representation of the device embodiment two of two-dimensional bar code for the present invention.
Embodiment
Method embodiment one
Fig. 1 is the process flow diagram that the present invention generates the method embodiment one of two-dimensional bar code, may further comprise the steps:
Step 101: the user handles when contracting formality, and the personal information that Verification System is filled in according to user's registration generates the content information of two-dimensional bar code;
Step 102: use international Standard Encryption algorithm such as data encryption standard (DES), 3DES, Advanced Encryption Standard encrypted content information such as (AES), generate enciphered message;
Step 103: enciphered message is converted to two-dimensional bar code with the two-dimensional bar code coding module.If scanning device scans this two-dimensional bar code, what read so is unordered mess code, only provide under the situation of key the user, scanning device could be with the mess code deciphering that reads, obtain the two-dimensional bar code content information, therefore, even two-dimensional bar code is replicated, scanning device also can't obtain real two-dimensional bar code content information, has improved the degree of safety of two-dimensional bar code greatly.
Method embodiment two
Fig. 2 is the process flow diagram that the present invention generates the method embodiment two of two-dimensional bar code, may further comprise the steps:
Step 201: the user handles when contracting formality, and the personal information that Verification System is filled in according to user's registration generates the content information of two-dimensional bar code.
Step 202: use international Standard Encryption algorithm such as encrypted content information such as DES, 3DES, AES, generate enciphered message;
Step 203: by digital watermarking verification authentication calculations, generate the credential verification sign indicating number that is used for false proof verification according to content information and enciphered message, and enciphered message is converted to two-dimensional bar code with the two-dimensional bar code coding module.
Step 204: use the digital watermarking merge module that the credential verification sign indicating number is embedded in the two-dimensional bar code in the breakable watermark mode, obtain the two-dimensional bar code of band digital watermarking.Because watermark is sightless; the third party can't know whether comprise watermark in the two-dimensional bar code; be subjected to the false proof protection of digital watermarking even if know voucher; also can't know how to generate, how to hide, and how verification watermark; stoped the third party to forge the two-dimensional bar code voucher effectively; simultaneously, Verification System can be accurate, verifies the true and false of two-dimensional bar code voucher fast.
Method embodiment three
Fig. 3 is the process flow diagram that the present invention generates the method embodiment three of two-dimensional bar code, specifically may further comprise the steps:
Step 301: the user handles when contracting formality, and the personal information that Verification System is filled in according to user's registration generates the content information of two-dimensional bar code;
Step 302: content information is split, obtain a plurality of content information segmentations, as content information segmentation A1, content information segmentation A2, content information segmentation A3, content information segmentation A4;
Step 303: content information segmentation A1, content information segmentation A2, content information segmentation A3, content information segmentation A4 are encrypted respectively, generate a plurality of key informations, key information B1, key information B2, key information B3 and key information B4;
Step 304: is two-dimensional bar code C1, two-dimensional bar code C2, two-dimensional bar code C3 and two-dimensional bar code C4 with key information B1, key information B2, key information B3 and key information B4 with the two-dimensional bar code coding module converts;
Step 305: optional two-dimensional bar code is as carrier from two-dimensional bar code C1, two-dimensional bar code C2, two-dimensional bar code C3 and two-dimensional bar code C4, suppose with two-dimensional bar code C1 in the present embodiment as carrier, then two-dimensional bar code C2, two-dimensional bar code C3 and two-dimensional bar code C4 are embedded among the two-dimensional bar code C1, generate the compound two-dimensional bar code that many two-dimensional bar codes are combined with each other with digital watermark technology.If the third party uses technology such as duplicating, photograph can only get access to the part two-dimensional bar code, other implicit two-dimensional bar codes can't be provided in the transaction verification flow process, and many two-dimensional bar code authentications of this interactive mode have prevented that effectively other people are by duplicating the attack that two-dimensional bar code carries out.
Device embodiment
Fig. 4 generates the structural representation of the device embodiment one of two-dimensional bar code for the present invention.Device comprises: content acquisition module 1, encrypting module 2 and modular converter 3; Wherein, content acquisition module 1 is used for obtaining according to user's registration information the content information of two-dimensional bar code; Encrypting module 2 is used for encrypting described content information by cryptographic algorithm, generates enciphered message, makes must import key when the two-dimensional bar code that generates uses, and recognizing apparatus could obtain the content information of two-dimensional bar code, has improved the degree of safety of two-dimensional bar code greatly; Modular converter 3 is used for described enciphered message is converted to two-dimensional bar code, and available two-dimension code coding module is replaced.
Among the said apparatus embodiment, as shown in Figure 5, the device that generates two-dimensional bar code also can comprise: identifying code acquisition module 4 and merge module 5, wherein, identifying code acquisition module 4 is used for generating the identifying code that is used for false proof verification according to content information and enciphered message, and available digital watermark verification authentication calculations module is replaced; Merge module 5 is used for identifying code is embedded into described two-dimensional bar code, generates the two-dimensional bar code 6 of band digital watermark anti-fake, and available digital watermark merge module is replaced.By merge module identifying code is embedded in the two-dimensional bar code, has effectively stoped the third party to forge two-dimensional bar code, improved the degree of safety of two-dimensional bar code.
Among the said apparatus embodiment, the device that generates two-dimensional bar code also can comprise: split the content information that module is used to split two-dimensional bar code, obtain the content information segmentation, as content information segmentation A1, content information segmentation A2, content information segmentation A3, content information segmentation A4; Encrypting module also is used for the content information segmentation is encrypted respectively, generates at least two enciphered messages, as key information B1, key information B2, key information B3 and key information B4; Modular converter also is used for transferring described at least two enciphered messages to two-dimensional bar code respectively, obtains a plurality of two-dimensional bar codes, as two-dimensional bar code C1, two-dimensional bar code C2, two-dimensional bar code C3 and two-dimensional bar code C4; Merge module also is used for two-dimensional bar code of described a plurality of two-dimensional bar codes such as C1 as carrier all the other two-dimensional bar code C2, C3, C4 being embedded in the described carrier, obtains the compound two-dimensional bar code that many two-dimensional bar codes are combined with each other.If the third party duplicates compound two-dimensional bar code, only can obtain the part two-dimensional bar code, effectively prevented the illegal use of the third party owing to can't obtain other implicit two-dimensional bar codes, improved the degree of safety of two-dimensional bar code greatly.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (9)

1, a kind of method that generates two-dimensional bar code is characterized in that, comprising:
Generate the content information of two-dimensional bar code according to user's registration information;
Encrypt described content information by cryptographic algorithm, generate enciphered message;
Described enciphered message is converted to two-dimensional bar code.
2, method according to claim 1 is characterized in that, also comprises:
Generate identifying code according to described content information and enciphered message;
Described identifying code is embedded in the described two-dimensional bar code.
3, method according to claim 2 is characterized in that, described identifying code is embedded in the described two-dimensional bar code be specially:
Described identifying code is embedded in the described two-dimensional bar code in the breakable watermark mode.
4, method according to claim 1 is characterized in that, encrypts described content information by cryptographic algorithm, generates enciphered message and is specially:
Split described content information, obtain the content information segmentation;
Described content information segmentation is encrypted respectively, generate at least two enciphered messages.
5, method according to claim 4 is characterized in that, described enciphered message is converted to two-dimensional bar code is specially:
Transfer described at least two enciphered messages to two-dimensional bar code respectively, obtain a plurality of two-dimensional bar codes.
6, method according to claim 5 is characterized in that, also comprises:
A two-dimensional bar code in described a plurality of two-dimensional bar codes as carrier, is embedded into all the other two-dimensional bar codes in the described carrier.
7, a kind of device that generates two-dimensional bar code is characterized in that, comprising:
The content acquisition module is used for the content information according to user's registration information acquisition two-dimensional bar code;
Encrypting module is used for encrypting described content information by cryptographic algorithm, generates enciphered message;
Modular converter is used for described enciphered message is converted to two-dimensional bar code.
8, device according to claim 7 is characterized in that, also comprises:
The identifying code acquisition module is used for generating identifying code according to described content information and enciphered message;
Merge module is used for described identifying code is embedded into described two-dimensional bar code.
9, according to claim 7 or 8 described devices, it is characterized in that, also comprise:
Split module, be used to split described content information, obtain the content information segmentation;
Described encrypting module also is used for described content information segmentation is encrypted respectively, generates at least two enciphered messages;
Described modular converter also is used for transferring described at least two enciphered messages to two-dimensional bar code respectively, obtains a plurality of two-dimensional bar codes;
Described merge module also is used for a two-dimensional bar code with described a plurality of two-dimensional bar codes as carrier, and all the other two-dimensional bar codes are embedded in the described carrier.
CNA2007101216766A 2007-09-12 2007-09-12 Method and apparatus for generating two-dimension bar-code Pending CN101388076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101216766A CN101388076A (en) 2007-09-12 2007-09-12 Method and apparatus for generating two-dimension bar-code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101216766A CN101388076A (en) 2007-09-12 2007-09-12 Method and apparatus for generating two-dimension bar-code

Publications (1)

Publication Number Publication Date
CN101388076A true CN101388076A (en) 2009-03-18

Family

ID=40477488

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101216766A Pending CN101388076A (en) 2007-09-12 2007-09-12 Method and apparatus for generating two-dimension bar-code

Country Status (1)

Country Link
CN (1) CN101388076A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270294A (en) * 2011-08-12 2011-12-07 华南农业大学 Bar code and two-dimension code hybrid coding and decoding methods and devices
CN104517131A (en) * 2013-09-26 2015-04-15 爱国者欧途欧(北京)网络科技有限公司 Code generation registration method and system
CN105976004A (en) * 2016-04-25 2016-09-28 华南农业大学 Color two-dimensional code multi-dimensional information encoding and decoding methods and devices
CN106326961A (en) * 2015-07-01 2017-01-11 迪米特里·马琳金 Method for protecting the authenticity of an object, item, document, packaging and/or a label from imitation, forgery and theft
CN108960385A (en) * 2018-06-29 2018-12-07 苏州酷豆物联科技有限公司 Two dimensional code generation and verification method and system based on the encryption of multiple code key
CN109840576A (en) * 2019-01-18 2019-06-04 深圳大学 The generation method and coding/decoding method of anti-copying two dimensional code based on segmentation insertion
CN110641860A (en) * 2019-09-29 2020-01-03 张王 Garbage classification prompting method based on bar code scanning

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270294A (en) * 2011-08-12 2011-12-07 华南农业大学 Bar code and two-dimension code hybrid coding and decoding methods and devices
CN104517131A (en) * 2013-09-26 2015-04-15 爱国者欧途欧(北京)网络科技有限公司 Code generation registration method and system
CN104517131B (en) * 2013-09-26 2019-04-19 爱国者欧途欧(北京)网络科技有限公司 A kind of coding generates register method and system
CN106326961A (en) * 2015-07-01 2017-01-11 迪米特里·马琳金 Method for protecting the authenticity of an object, item, document, packaging and/or a label from imitation, forgery and theft
CN105976004A (en) * 2016-04-25 2016-09-28 华南农业大学 Color two-dimensional code multi-dimensional information encoding and decoding methods and devices
CN105976004B (en) * 2016-04-25 2019-05-07 华南农业大学 A kind of color 2 D code multidimensional information coding, coding/decoding method and device
CN108960385A (en) * 2018-06-29 2018-12-07 苏州酷豆物联科技有限公司 Two dimensional code generation and verification method and system based on the encryption of multiple code key
CN109840576A (en) * 2019-01-18 2019-06-04 深圳大学 The generation method and coding/decoding method of anti-copying two dimensional code based on segmentation insertion
CN110641860A (en) * 2019-09-29 2020-01-03 张王 Garbage classification prompting method based on bar code scanning

Similar Documents

Publication Publication Date Title
CN103198344B (en) Tax control secure two-dimensional code coding, decoding processing method
CN1930578B (en) The digital signature obtained from least one architectural feature of material cell is used to protect the direct reading of sensitive information and read the method for shielded sensitive information
CN100565546C (en) A kind of method of checking contents of paper file whether to be distorted
WO2003046806A1 (en) A digital anti-forging method
CN104166871B (en) Anti-counterfeit label and anti-counterfeit method based on combination of two-dimension codes and RFID chips
US20120308003A1 (en) Authentic barcodes using digital signatures
CN101388076A (en) Method and apparatus for generating two-dimension bar-code
EP0710934A2 (en) Methods and systems for performing article authentication
CN102509142A (en) Anti-counterfeiting method for verifying seal using facts and seal impression authenticity
CA2374196A1 (en) Legitimacy protection of electronic document and a printed copy thereof
CN101295343A (en) Two-dimensional code multi-enciphering anti-fake printing method
CN102930317A (en) Device for generating two-dimension code identifiers of books, two-dimension code identification device and system
CN104517045B (en) Digital document guard method and system
CN103345601A (en) Identity recording and verification system based on radio frequency
US20110296191A1 (en) Method for securely drawing up a virtual multiparty contract capable of being physically represented
CN102930634A (en) Invoice true check system based on cloud computing and encrypted two-dimensional codes
CN109472335A (en) A kind of lottery ticket anti-counterfeiting system and method for anti-counterfeit
CN103310254A (en) Secure anti-counterfeiting certificate and production method for same
CN111667039A (en) Two-dimensional code anti-counterfeiting method
CN101246548A (en) Biological information storage method and system
CN101359214A (en) Security document printing system and method of controlling the same
CN202870898U (en) Radio frequency-based commodity information identification system
CN101099207B (en) Portable data support with watermark function
EP2697785A1 (en) Authentic barcodes using digital signatures
CN1321507C (en) Soft certification anti-false method based on graphic code primary and secondary signet series information association mechanism

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090318