CN104616047A - Two-dimension code and generation method and identification method thereof - Google Patents

Two-dimension code and generation method and identification method thereof Download PDF

Info

Publication number
CN104616047A
CN104616047A CN201510090563.9A CN201510090563A CN104616047A CN 104616047 A CN104616047 A CN 104616047A CN 201510090563 A CN201510090563 A CN 201510090563A CN 104616047 A CN104616047 A CN 104616047A
Authority
CN
China
Prior art keywords
information
quick response
response code
cipher mode
ciphertext
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
CN201510090563.9A
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 Leader Tech Digtal Technology Co Ltd
Original Assignee
Beijing Leader Tech Digtal 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 Leader Tech Digtal Technology Co Ltd filed Critical Beijing Leader Tech Digtal Technology Co Ltd
Priority to CN201510090563.9A priority Critical patent/CN104616047A/en
Publication of CN104616047A publication Critical patent/CN104616047A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a two-dimension code. The two-dimension code comprises a plaintext information portion and a ciphertext information portion; the plaintext is used for analyzing downloading address information of the APP identification software of the two-dimension code; the ciphertext information portion comprises enciphered message which is formed by one or a plurality of same characters after encryption operation. A two-dimension code generation method comprises the following steps of setting an application range of the two-dimension code; inputting information contents required to be enciphered and converting the information contents to be character string information of corresponding systems; encrypting the character string information to form into the encrypting information; combining labels of application range identifier information, labels of encryption mode command information and the encryption information into ciphertext information portion; generating the plaintext information portion and the ciphertext information portion into the two-dimension code. According to the two-dimension code and the generation method thereof, the plaintext information portion can prompt a user to download and install the special two-dimension code APP identification software for analyzing the ciphertext information portion to obtain the information contents which are corresponding to the ciphertext information portion.

Description

A kind of Quick Response Code and generation method thereof and recognition methods
Technical field
The present invention relates to Quick Response Code field, especially a kind of Quick Response Code and generation method thereof and recognition methods.
Background technology
Quick Response Code is according to certain rules at the chequered with black and white figure of the upper distribution of plane (two-dimensional directional) with specific geometric figure.But, because existing any one Quick Response Code APP identification software is all to carry out distinguishing to Quick Response Code and to resolve, therefore, easily cause the phenomenon of information leakage to occur.
Summary of the invention
For the weak point existed in the problems referred to above, the invention provides a kind of when reading this Quick Response Code, can according to information to download and to install special Quick Response Code APP identification software, thus parse and a kind of Quick Response Code of the information corresponding to this Quick Response Code and generation method thereof and recognition methods.
For achieving the above object, the invention provides a kind of Quick Response Code, this Quick Response Code comprises cleartext information part, through the ciphertext message part of cryptographic operation and the separator that is arranged between cleartext information part and ciphertext message part when generating;
Described cleartext information part is the download address information of the APP identification software for resolving this Quick Response Code;
Described ciphertext message part comprises the enciphered message formed after cryptographic operation, by identical one or more characters;
The cipher mode of cryptographic operation is CAST-128 cipher mode or CAST-256 cipher mode.
Above-mentioned a kind of Quick Response Code, wherein, described cleartext information part is visible character or character string information.
Above-mentioned a kind of Quick Response Code, wherein, described enciphered message is being converted into scale-of-two, scale-of-eight, the decimal system or hexadecimal text-string information before cryptographic operation.
Above-mentioned a kind of Quick Response Code, wherein, described ciphertext message part also comprises range of application identifier information and cipher mode indication information, and described range of application identifier information is successively set on the front side of described cipher mode indication information and described enciphered message;
Described range of application identifier information is for representing the range of application of this Quick Response Code;
Described cipher mode indication information is for representing the cipher mode of enciphered message described in this.
The invention provides a kind of generation method of Quick Response Code, comprise the following steps:
S1, generate the range of application of the selected Quick Response Code generated in software at Quick Response Code;
The information content of S2, input needs encryption in ciphertext message inputting interface, and the information content is converted to the character string information of corresponding system;
S3, the current display time generated according to character string information, be encrypted operation, to form enciphered message to call CAST-128 or CAST-256 cipher mode to character string information generation;
S4, the label of the label of range of application identifier information, cipher mode command information and enciphered message are merged into ciphertext message part;
S5, cleartext information part and ciphertext message part merged after import Quick Response Code and generate in interface, to generate Quick Response Code corresponding thereto.
The generation method of above-mentioned Quick Response Code, wherein, in step s 2, the described information content is being converted into scale-of-two, scale-of-eight, the decimal system or hexadecimal text-string information, the system type will changed to select the information content by menu option before cryptographic operation.
The generation method of above-mentioned Quick Response Code, wherein, in step s 2,
00 ~ 59 second is divided into four time interval sections:
Very first time segment is divided into by 00 ~ 14 second, corresponding with scale-of-two;
15 ~ 29 seconds are divided into the second time interval section, corresponding with scale-of-eight;
30 ~ 44 seconds are divided into the 3rd time interval section, corresponding with the decimal system;
45 ~ 59 seconds are divided into the 4th time interval section, corresponding with sexadecimal.
The generation method of above-mentioned Quick Response Code, wherein, in step s3, comprises following operation:
Judge that character string information conversion generates the type of last figure in rear system time, if last figure can not be divided exactly by numeral 2, then judge that this last figure is as odd number, then adopt CAST-128 cipher mode to be encrypted character string information, to form enciphered message;
If last figure can be divided exactly by numeral 2, then judge that this last figure is as even number, then adopt CAST-256 cipher mode to be encrypted character string information, to form enciphered message.
The invention provides a kind of recognition methods of Quick Response Code, comprise the following steps:
By Quick Response Code APP identification software, Quick Response Code is scanned, if current two-dimension APP identification software cannot resolve the ciphertext message part in Quick Response Code, in the interface of Quick Response Code APP identification software, then point out user according to the address information in the cleartext information part of Quick Response Code, the APP identification software of this Quick Response Code of download parsing;
If current two-dimension APP identification software can resolve the ciphertext message part in Quick Response Code, then in the interface of Quick Response Code APP identification software, show the enciphered message in ciphertext message part.
Compared with prior art, the present invention has the following advantages:
The cleartext information part that Quick Response Code provided by the invention comprises, user can be pointed out to download and the Quick Response Code APP identification software for resolving the ciphertext message part in Quick Response Code is installed, to obtain the information content corresponding with ciphertext message part, by this kind of mode, can prevent other Quick Response Codes of the content in the Quick Response Code in the present invention APP identification software from resolving, avoid the phenomenon that information leakage occurs to occur.
Accompanying drawing explanation
Fig. 1 is the structural drawing of Quick Response Code ingredient in the present invention.
Embodiment
As shown in Figure 1, Quick Response Code provided by the invention comprises cleartext information part, through the ciphertext message part of cryptographic operation and the separator that is arranged between cleartext information part and ciphertext message part when generating.
Cleartext information part is visible character or character string information, cleartext information part is the download address information of the APP identification software for resolving this Quick Response Code, when any Quick Response Code APP identification software scans this Quick Response Code, for downloading and installing the APP identification software can resolving dark text.
Ciphertext message part comprises the range of application identifier information, cipher mode indication information and the enciphered message that are arranged in order from front to back.
The label of range of application identifier information for representing the range of application of this Quick Response Code, wherein, the identifier of range of application identifier information for being made up of 0 or multiple character.
The label of cipher mode indication information is for representing the cipher mode of this enciphered message, and wherein, cipher mode indication information can with the numeral composition of 2.Cipher mode is CAST-128 cipher mode or CAST-256 cipher mode.
Enciphered message is being converted into scale-of-two, scale-of-eight, the decimal system or hexadecimal text-string information before cryptographic operation.
Text-string information after completing cryptographic operation through cipher mode, the enciphered message be made up of identical one or more characters.
Separator can adopt the arbitrary symbol except ". ", " // ", ": ", for cleartext information part and ciphertext message part being distinguished.
The present invention also provides a kind of generation method of Quick Response Code, comprises the following steps:
S1, generate in software the range of application setting generated Quick Response Code at Quick Response Code;
The range of application of Quick Response Code is represented by the label of range of application identifier information, wherein, and the identifier of label for being made up of 0 or multiple character of range of application identifier information.
The information content of S2, input needs encryption in ciphertext message inputting interface, and the information content is converted to the character string information of corresponding system;
Wherein, the information content is being converted into scale-of-two, scale-of-eight, the decimal system or hexadecimal text-string information, the system type will changed to select the information content by menu option before cryptographic operation.
In addition, also make system automatically the information content is converted to the character string information of corresponding system type, its operation steps is as follows:
00 ~ 59 second is divided into four time interval sections:
Wherein, be divided into very first time segment by 00 ~ 14 second, corresponding with scale-of-two;
15 ~ 29 seconds are divided into the second time interval section, corresponding with scale-of-eight;
30 ~ 44 seconds are divided into the 3rd time interval section, corresponding with the decimal system;
45 ~ 59 seconds are divided into the 4th time interval section, corresponding with sexadecimal.
Judge that input needs the system displaying time of the information content of encryption in ciphertext message inputting interface, and according to system displaying time to judge affiliated time interval section, and the system type of post-conversion characters string information.
Wherein, if input needs the number of seconds numeral in the system displaying time of the information content of encryption to be 13 seconds in ciphertext message inputting interface, then judge to belong to very first time segment, and be converted into binary character string information.
S3, the current display time generated according to character string information, be encrypted operation, to form enciphered message to call CAST-128 or CAST-256 cipher mode to character string information generation;
Wherein, judge that character string information conversion generates the type of last figure in rear system time, if last figure can not be divided exactly by numeral 2, then judge that this last figure is as odd number, CAST-128 cipher mode is then adopted to be encrypted character string information, to form enciphered message;
If last figure can be divided exactly by numeral 2, then judge that this last figure is as even number, then adopt CAST-256 cipher mode to be encrypted character string information, to form enciphered message.
In addition, after completing cryptographic operation, extract the label of the cipher mode command information of the cipher mode by being used for representing this enciphered message.
S4, the label of the label of range of application identifier information, cipher mode command information and enciphered message are merged into ciphertext message part;
Wherein, ciphertext message part is divided into the label of range of application identifier information, the label of cipher mode command information and enciphered message from front to back successively.
S5, cleartext information part and ciphertext message part merged after import Quick Response Code and generate in interface, to generate Quick Response Code corresponding thereto.
Wherein, cleartext information part is visible character or character string information, cleartext information part is the download address information of the APP identification software for resolving this Quick Response Code, when any Quick Response Code APP identification software scans this Quick Response Code, for downloading and installing the APP identification software can resolving dark text.
In addition, the mode cleartext information part after merging and ciphertext message being partially converted to Quick Response Code is the conversion regime of existing Quick Response Code.
The present invention also provides a kind of recognition methods of Quick Response Code, comprises the following steps:
By Quick Response Code APP identification software, Quick Response Code is scanned, if current two-dimension APP identification software cannot resolve the ciphertext message part in Quick Response Code, in the interface of Quick Response Code APP identification software, then point out user according to the address information in the cleartext information part of Quick Response Code, the APP identification software of this Quick Response Code of download parsing;
If current two-dimension APP identification software can resolve the ciphertext message part in Quick Response Code, then in the interface of Quick Response Code APP identification software, show the enciphered message in ciphertext message part.
The concrete steps of said method are as follows:
Sa, scanned Quick Response Code by Quick Response Code APP identification software, Quick Response Code APP identification software after detecting the position sensing figure in Quick Response Code, thus is resolved the information comprised in Quick Response Code;
First Sb, Quick Response Code APP identification software resolve the ciphertext message part in Quick Response Code, if current two-dimension APP identification software cannot resolve the ciphertext message part in Quick Response Code, in the interface of Quick Response Code APP identification software, then point out user according to the address information in the cleartext information part of Quick Response Code, the APP identification software of this Quick Response Code of download parsing;
If current two-dimension APP identification software can resolve the ciphertext message part in Quick Response Code, then in the interface of Quick Response Code APP identification software, show the enciphered message in ciphertext message part.
Only as described above, be only preferred embodiment of the present invention, such as professional who are familiar with this art.After understanding technological means of the present invention, natural energy, according to actual needs, is changed under the teachings of the present invention.Therefore all equal changes of doing according to the present patent application the scope of the claims and modification, once should still remain within the scope of the patent.

Claims (9)

1. a Quick Response Code, is characterized in that, this Quick Response Code comprises cleartext information part, through the ciphertext message part of cryptographic operation and the separator that is arranged between cleartext information part and ciphertext message part when generating;
Described cleartext information part is the download address information of the APP identification software for resolving this Quick Response Code;
Described ciphertext message part comprises the enciphered message formed after cryptographic operation, by identical one or more characters;
The cipher mode of cryptographic operation is CAST-128 cipher mode or CAST-256 cipher mode.
2. a kind of Quick Response Code according to claim 1, is characterized in that, described cleartext information part is visible character or character string information.
3. a kind of Quick Response Code according to claim 1 and 2, is characterized in that, described enciphered message is being converted into scale-of-two, scale-of-eight, the decimal system or hexadecimal text-string information before cryptographic operation.
4. a kind of Quick Response Code according to claim 3, it is characterized in that, described ciphertext message part also comprises range of application identifier information and cipher mode indication information, and described range of application identifier information is successively set on the front side of described cipher mode indication information and described enciphered message;
Described range of application identifier information is for representing the range of application of this Quick Response Code;
Described cipher mode indication information is for representing the cipher mode of enciphered message described in this.
5. generate a method for Quick Response Code according to claim 1, comprise the following steps:
S1, generate the range of application of the selected Quick Response Code generated in software at Quick Response Code;
The information content of S2, input needs encryption in ciphertext message inputting interface, and the information content is converted to the character string information of corresponding system;
S3, the current display time generated according to character string information, be encrypted operation, to form enciphered message to call CAST-128 or CAST-256 cipher mode to character string information generation;
S4, the label of the label of range of application identifier information, cipher mode command information and enciphered message are merged into ciphertext message part;
S5, cleartext information part and ciphertext message part merged after import Quick Response Code and generate in interface, to generate Quick Response Code corresponding thereto.
6. the generation method of Quick Response Code according to claim 5, it is characterized in that, in step s 2, the described information content is being converted into scale-of-two, scale-of-eight, the decimal system or hexadecimal text-string information, the system type will changed to select the information content by menu option before cryptographic operation.
7. the generation method of Quick Response Code according to claim 5, is characterized in that, in step s 2,
00 ~ 59 second is divided into four time interval sections:
Very first time segment is divided into by 00 ~ 14 second, corresponding with scale-of-two;
15 ~ 29 seconds are divided into the second time interval section, corresponding with scale-of-eight;
30 ~ 44 seconds are divided into the 3rd time interval section, corresponding with the decimal system;
45 ~ 59 seconds are divided into the 4th time interval section, corresponding with sexadecimal.
8. the generation method of the Quick Response Code according to claim 6 or 7, is characterized in that, in step s3, comprises following operation:
Judge that character string information conversion generates the type of last figure in rear system time, if last figure can not be divided exactly by numeral 2, then judge that this last figure is as odd number, then adopt CAST-128 cipher mode to be encrypted character string information, to form enciphered message;
If last figure can be divided exactly by numeral 2, then judge that this last figure is as even number, then adopt CAST-256 cipher mode to be encrypted character string information, to form enciphered message.
9. identify a method for the Quick Response Code described in claim 1, comprise the following steps:
By Quick Response Code APP identification software, Quick Response Code is scanned, if current two-dimension APP identification software cannot resolve the ciphertext message part in Quick Response Code, in the interface of Quick Response Code APP identification software, then point out user according to the address information in the cleartext information part of Quick Response Code, the APP identification software of this Quick Response Code of download parsing;
If current two-dimension APP identification software can resolve the ciphertext message part in Quick Response Code, then in the interface of Quick Response Code APP identification software, show the enciphered message in ciphertext message part.
CN201510090563.9A 2015-02-28 2015-02-28 Two-dimension code and generation method and identification method thereof Pending CN104616047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510090563.9A CN104616047A (en) 2015-02-28 2015-02-28 Two-dimension code and generation method and identification method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510090563.9A CN104616047A (en) 2015-02-28 2015-02-28 Two-dimension code and generation method and identification method thereof

Publications (1)

Publication Number Publication Date
CN104616047A true CN104616047A (en) 2015-05-13

Family

ID=53150483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510090563.9A Pending CN104616047A (en) 2015-02-28 2015-02-28 Two-dimension code and generation method and identification method thereof

Country Status (1)

Country Link
CN (1) CN104616047A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178476A (en) * 2019-11-22 2020-05-19 万翼科技有限公司 Two-dimensional code generation and recognition method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404056A (en) * 2008-10-29 2009-04-08 金蝶软件(中国)有限公司 Software protection method, apparatus and equipment
JP2009282875A (en) * 2008-05-26 2009-12-03 Toshinori Matsuki Unified system of order, payment and delivery of product by two dimensional code
CN103716358A (en) * 2012-09-29 2014-04-09 北京易云剪客科技有限公司 Customized application program downloading method and apparatus
CN104281866A (en) * 2013-07-09 2015-01-14 航天信息股份有限公司 Two-dimensional code application method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009282875A (en) * 2008-05-26 2009-12-03 Toshinori Matsuki Unified system of order, payment and delivery of product by two dimensional code
CN101404056A (en) * 2008-10-29 2009-04-08 金蝶软件(中国)有限公司 Software protection method, apparatus and equipment
CN103716358A (en) * 2012-09-29 2014-04-09 北京易云剪客科技有限公司 Customized application program downloading method and apparatus
CN104281866A (en) * 2013-07-09 2015-01-14 航天信息股份有限公司 Two-dimensional code application method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN104616046A (en) Two-dimension code and generation method and identification method thereof
CN104636784A (en) Two-dimensional code, and generation method and identification method thereof
CN107665233B (en) Database data processing method and device, computer equipment and storage medium
CN106788995B (en) File encryption method and device
CN103684760B (en) The encryption of communication and the method, apparatus of decryption and system
CN104616048A (en) Two-dimension code and generation method and identification method thereof
CN106209886B (en) Web interface data encryption is endorsed method, apparatus and server
CN106021554A (en) Log analysis method and device
CN102752115A (en) Challenge code generation method and device, dynamic password authentication method and system
CN105654163A (en) Two-dimensional code generated based on short domain name and generation method and generation device thereof
US20130141457A1 (en) Electronic device capable of recovering garbled characters and method for recovering garbled characters
US20180323966A1 (en) System and method for hashing a data string using an image
CN111130958A (en) Data transmission method and device, electronic equipment and storage medium
WO2020233047A1 (en) Page test method and apparatus
CN104636785A (en) Two-dimensional code with two-dimensional code software installation information, generation method and identification method
CN105323329A (en) IPv6 address generating method and device, and IPv6 address analyzing method and device
CN105898054A (en) Verification-based message display method and communication terminal
CN107105324A (en) A kind of method and client of protection barrage information
CN104616047A (en) Two-dimension code and generation method and identification method thereof
CN105302422A (en) Information input method and information input device
CN103326851B (en) SCM Based a kind of compass encrypting and decrypting method
CN104935783A (en) Safe and active image tampering detection method and device
CN104883383B (en) The method and device that data during combined anti-fake is identified are bound
CN107729345B (en) Website data processing method and device, website data processing platform and storage medium
CN105446622A (en) Enhancement transaction password input method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150513

WD01 Invention patent application deemed withdrawn after publication