[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104657765A - Two-dimension code as well as two-dimension code generating method and generating device - Google Patents

Two-dimension code as well as two-dimension code generating method and generating device Download PDF

Info

Publication number
CN104657765A
CN104657765A CN201510079628.XA CN201510079628A CN104657765A CN 104657765 A CN104657765 A CN 104657765A CN 201510079628 A CN201510079628 A CN 201510079628A CN 104657765 A CN104657765 A CN 104657765A
Authority
CN
China
Prior art keywords
sequence number
encrypted
quick response
response code
cipher mode
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
CN201510079628.XA
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 CN201510079628.XA priority Critical patent/CN104657765A/en
Publication of CN104657765A publication Critical patent/CN104657765A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a two-dimension code. A message input into a message input interface in a two-dimension code generation interface is encrypted by selecting a corresponding RC4 or PANAMA encryption mode according to current system display time before the two-dimension code is generated. A method for generating the two-dimension code comprises steps as follows: a message corresponding to the two-dimension code is input into the message input interface in the two-dimension code generation interface and is converted to obtain corresponding first serial numbers; according to current display time of an operating system, the RC4 or PANAMA encryption mode is called to encrypt the serial numbers to generate second serial numbers; the first serial numbers and the second serial numbers are arranged to form a serial number group, and the serial number group is encrypted; the serial number group is input into the two-dimension code generation interface to generate the corresponding two-dimension code. The current system time is taken as a condition, and a corresponding encryption mode is called, so that the message input into the two-dimension code generation interface can generate the two-dimension code with an encryption function.

Description

A kind of generation method of Quick Response Code and this Quick Response Code and generating apparatus
Technical field
The present invention relates to Quick Response Code field, the generation method of especially a kind of Quick Response Code and this Quick Response Code and generating apparatus.
Background technology
Along with the development of science and technology, in limited space, express more information in the urgent need to bar code, thus meet the demand of various information transmission, therefore create planar bar code technology.Planar bar code technology utilizes the specific geometric figure pattern identification that arrangement formation is special in the two-dimensional direction according to certain rules, to realize the transmission of information.But along with the widespread use of Quick Response Code and propagation, be also with a lot of disadvantageous factor.
The present inventor finds when studying, the Quick Response Code be applied on the bills such as ticket, pass-check, reward voucher contains the personal informations such as name, phone, address and identification card number usually, will be utilized by lawless person if dealt with improperly, and then possessor is damaged.
Summary of the invention
For the weak point existed in the problems referred to above, the invention provides a kind of by present system time be condition to call its corresponding cipher mode, thus to generating generation method and the generating apparatus of a kind of Quick Response Code that the information that inputs in interface is encrypted and this Quick Response Code at Quick Response Code.
For achieving the above object, the invention provides a kind of Quick Response Code, the information inputted in the information input interface that Quick Response Code generates in interface, before generation Quick Response Code, is encrypted with selected RC4 or PANAMA cipher mode corresponding thereto according to system current display time.
The present invention also provides a kind of generation method of Quick Response Code, comprises the following steps:
S1, to generate in interface information input interface at Quick Response Code in the input information corresponding with Quick Response Code, and inputted information to be changed, to obtain the first sequence number corresponding thereto;
S2, according to implanting the current display time of operating system having Quick Response Code to generate interface, to call RC4 or PANAMA cipher mode, operation is encrypted to sequence number, to generate the second sequence number;
S3, the first sequence number and the second sequence number to be arranged, to form sequence number group, and operation is encrypted to sequence number group;
S4, the sequence number group input Quick Response Code after cryptographic operation to be generated in interface, to generate the Quick Response Code corresponding with sequence number group.
The generation method of above-mentioned Quick Response Code, wherein, in step s 2, comprises following operation:
The type of the time last figure of the first serial number gencration in determining step S1, if last figure can not be divided exactly by numeral 2, then judges that this last figure is as odd number, then adopt RC4 cipher mode to be encrypted the first sequence number, to generate the second sequence number;
If last figure can be divided exactly by numeral 2, then judge that this last figure is as even number, then adopt PANAMA cipher mode to be encrypted the first sequence number, to generate the second sequence number.
The generation method of above-mentioned Quick Response Code, wherein, in step s3, comprises the following steps:
S31, the first sequence number and the second sequence number to be arranged, to form sequence number group;
S32, call another kind of cipher mode by encryption order pointer, to be encrypted operation to sequence number group.
The generation method of above-mentioned Quick Response Code, wherein, in step s 32, comprises following operation:
Judge that whether the cipher mode of the second sequence number in sequence number group is identical with the current crypto mode pointed by encryption order pointer, if result of determination is identical, encryption order pointer then points to another cipher mode, and calls this kind of cipher mode and be encrypted operation to sequence number group;
If result of determination is different, then calls current crypto mode and operation is encrypted to sequence number group.
The present invention also provides a kind of generating apparatus of Quick Response Code, comprising:
Quick Response Code generates interface: for the information inputted in information input interface being converted to the first sequence number corresponding thereto, and generate final Quick Response Code;
Time judgment module: for obtain by input information be converted to the current time in system after the first sequence number, and the type of decision-making system current time is carried out;
Cryptographic operation module: for being encrypted operation to select corresponding cipher mode to the first sequence number according to the current time in system after judgement, to form the second sequence number, and operation is encrypted to the sequence number group be made up of the first sequence number and the second sequence number.
The generating apparatus of above-mentioned Quick Response Code, wherein, described time determination device comprises:
Time acquisition unit: for obtain by input information be converted to the current time in system after the first sequence number;
Time type judging unit: for judging the type of the current time in system got, its judgment mode is as follows:
Last figure in extraction system current time, judges whether this last figure can be divided exactly, if result of determination is for can be divided exactly by 2, then for decision-making system current time is even number by numeral 2;
If result of determination is for can not be divided exactly by 2, then for decision-making system current time is odd number.
The generating apparatus of above-mentioned Quick Response Code, wherein, described cryptographic operation module comprises:
First sequence number cryptographic operation unit: for the type according to the current time in system, the cipher mode chosen under the effect of encryption order pointer is corresponding thereto encrypted the first sequence number, to form the second sequence number;
Cipher mode judging unit: for judging the cipher mode of the second sequence number, to learn the cipher mode of the second sequence number;
Sequence number group encryption operating unit: under the effect of encryption order pointer, is encrypted operation to choose corresponding cipher mode to sequence number group.
Compared with prior art, the present invention has the following advantages:
The present invention by present system time be condition to call its corresponding cipher mode, thus to generating in interface the information that inputs at Quick Response Code to generate the Quick Response Code with encryption function;
Owing to adopting two kinds of different cipher modes to be encrypted operation, the cipher round results of generated Quick Response Code can be improved;
In addition, before carrying out second time cryptographic operation, owing to also possessing cipher mode comparison operation, therefore, can avoid because twice cryptographic operation is all the shortcomings adopting identical cipher mode and make cipher round results reduce.
Embodiment
The invention provides a kind of Quick Response Code, be printed on the required article surface implanted, the information inputted in the information input interface that Quick Response Code generates in interface, before generation Quick Response Code, is encrypted with selected RC4 or PANAMA cipher mode corresponding thereto according to current display time.
The present invention also provides a kind of generation method of Quick Response Code, comprises the following steps:
S1, to generate in interface information input interface at Quick Response Code in the input information corresponding with Quick Response Code, and inputted information to be changed, to obtain the first sequence number corresponding thereto.
S2, according to implanting the current display time of operating system having Quick Response Code to generate interface, to call RC4 or PANAMA cipher mode, operation is encrypted to sequence number, to generate the second sequence number.
Wherein, in step s 2, following operation is comprised:
The type of the time last figure of the first serial number gencration in determining step S1, if last figure can not be divided exactly by numeral 2, then judges that this last figure is as odd number, then adopt RC4 cipher mode to be encrypted the first sequence number, to generate the second sequence number;
If last figure can be divided exactly by numeral 2, then judge that this last figure is as even number, then adopt PANAMA cipher mode to be encrypted the first sequence number, to generate the second sequence number.
S3, the first sequence number and the second sequence number to be arranged, to form sequence number group, and operation is encrypted to sequence number group.
In step s3, comprise the following steps:
S31, the first sequence number and the second sequence number to be arranged, to form sequence number group;
S32, call another kind of cipher mode by encryption order pointer, to be encrypted operation to sequence number group.
In step s 32, following operation is comprised:
Judge that whether the cipher mode of the second sequence number in sequence number group is identical with the current crypto mode pointed by encryption order pointer, if result of determination is identical, encryption order pointer then points to another cipher mode, and calls this kind of cipher mode and be encrypted operation to sequence number group;
If result of determination is different, then calls current crypto mode and operation is encrypted to sequence number group.
S4, the sequence number group input Quick Response Code after cryptographic operation to be generated in interface, to generate the Quick Response Code corresponding with sequence number group.
The present invention also provides a kind of generating apparatus of Quick Response Code, comprising:
Quick Response Code generates interface: for the information inputted in information input interface being converted to the first sequence number corresponding thereto, and generate final Quick Response Code.
Time judgment module: for obtain by input information be converted to the current time in system after the first sequence number, and the type of decision-making system current time is carried out.
Time determination device comprises:
Time acquisition unit: for obtain by input information be converted to the current time in system after the first sequence number;
Time type judging unit: for judging the type of the current time in system got, its judgment mode is as follows:
Last figure in extraction system current time, judges whether this last figure can be divided exactly, if result of determination is for can be divided exactly by 2, then for decision-making system current time is even number by numeral 2;
If result of determination is for can not be divided exactly by 2, then for decision-making system current time is odd number.
Cryptographic operation module: for being encrypted operation to select corresponding cipher mode to the first sequence number according to the current time in system after judgement, to form the second sequence number, and operation is encrypted to the sequence number group be made up of the first sequence number and the second sequence number.
Cryptographic operation module comprises:
First sequence number cryptographic operation unit: for the type according to the current time in system, the cipher mode chosen under the effect of encryption order pointer is corresponding thereto encrypted the first sequence number, to form the second sequence number;
Cipher mode judging unit: for judging the cipher mode of the second sequence number, to learn the cipher mode of the second sequence number;
Sequence number group encryption operating unit: under the effect of encryption order pointer, is encrypted operation to choose corresponding cipher mode to sequence number group.
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 (8)

1. a Quick Response Code, be printed on the required article surface implanted, it is characterized in that, the information inputted in the information input interface that Quick Response Code generates in interface, before generation Quick Response Code, is encrypted with selected RC4 or PANAMA cipher mode corresponding thereto according to system current display time.
2. generate a method for Quick Response Code described in claim 1, comprise the following steps:
S1, to generate in interface information input interface at Quick Response Code in the input information corresponding with Quick Response Code, and inputted information to be changed, to obtain the first sequence number corresponding thereto;
S2, according to implanting the current display time of operating system having Quick Response Code to generate interface, to call RC4 or PANAMA cipher mode, operation is encrypted to sequence number, to generate the second sequence number;
S3, the first sequence number and the second sequence number to be arranged, to form sequence number group, and operation is encrypted to sequence number group;
S4, the sequence number group input Quick Response Code after cryptographic operation to be generated in interface, to generate the Quick Response Code corresponding with sequence number group.
3. generation method according to claim 2, is characterized in that, in step s 2, comprises following operation:
The type of the time last figure of the first serial number gencration in determining step S1, if last figure can not be divided exactly by numeral 2, then judges that this last figure is as odd number, then adopt RC4 cipher mode to be encrypted the first sequence number, to generate the second sequence number;
If last figure can be divided exactly by numeral 2, then judge that this last figure is as even number, then adopt PANAMA cipher mode to be encrypted the first sequence number, to generate the second sequence number.
4. generation method according to claim 3, is characterized in that, in step s3, comprises the following steps:
S31, the first sequence number and the second sequence number to be arranged, to form sequence number group;
S32, call another kind of cipher mode by encryption order pointer, to be encrypted operation to sequence number group.
5. generation method according to claim 4, is characterized in that, in step s 32, comprises following operation:
Judge that whether the cipher mode of the second sequence number in sequence number group is identical with the current crypto mode pointed by encryption order pointer, if result of determination is identical, encryption order pointer then points to another cipher mode, and calls this kind of cipher mode and be encrypted operation to sequence number group;
If result of determination is different, then calls current crypto mode and operation is encrypted to sequence number group.
6. implement the claims the device generating method described in 2, it is characterized in that, comprising:
Quick Response Code generates interface: for the information inputted in information input interface being converted to the first sequence number corresponding thereto, and generate final Quick Response Code;
Time judgment module: for obtain by input information be converted to the current time in system after the first sequence number, and the type of decision-making system current time is carried out;
Cryptographic operation module: for being encrypted operation to select corresponding cipher mode to the first sequence number according to the current time in system after judgement, to form the second sequence number, and operation is encrypted to the sequence number group be made up of the first sequence number and the second sequence number.
7. generating apparatus according to claim 6, is characterized in that, described time determination device comprises:
Time acquisition unit: for obtain by input information be converted to the current time in system after the first sequence number;
Time type judging unit: for judging the type of the current time in system got, its judgment mode is as follows:
Last figure in extraction system current time, judges whether this last figure can be divided exactly, if result of determination is for can be divided exactly by 2, then for decision-making system current time is even number by numeral 2;
If result of determination is for can not be divided exactly by 2, then for decision-making system current time is odd number.
8. generating apparatus according to claim 6, is characterized in that, described cryptographic operation module comprises:
First sequence number cryptographic operation unit: for the type according to the current time in system, the cipher mode chosen under the effect of encryption order pointer is corresponding thereto encrypted the first sequence number, to form the second sequence number;
Cipher mode judging unit: for judging the cipher mode of the second sequence number, to learn the cipher mode of the second sequence number;
Sequence number group encryption operating unit: under the effect of encryption order pointer, is encrypted operation to choose corresponding cipher mode to sequence number group.
CN201510079628.XA 2015-02-13 2015-02-13 Two-dimension code as well as two-dimension code generating method and generating device Pending CN104657765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510079628.XA CN104657765A (en) 2015-02-13 2015-02-13 Two-dimension code as well as two-dimension code generating method and generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510079628.XA CN104657765A (en) 2015-02-13 2015-02-13 Two-dimension code as well as two-dimension code generating method and generating device

Publications (1)

Publication Number Publication Date
CN104657765A true CN104657765A (en) 2015-05-27

Family

ID=53248864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510079628.XA Pending CN104657765A (en) 2015-02-13 2015-02-13 Two-dimension code as well as two-dimension code generating method and generating device

Country Status (1)

Country Link
CN (1) CN104657765A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203569A (en) * 2016-07-07 2016-12-07 立德高科(昆山)数码科技有限责任公司 Stamp album approaches to IM based on Quick Response Code
CN108681759A (en) * 2018-05-14 2018-10-19 广州微兆信息科技有限公司 Plate processing, image in 2 D code generation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006093876A (en) * 2004-09-21 2006-04-06 Docomo Systems Inc Information provision system
CN102118710A (en) * 2011-03-08 2011-07-06 上海红松信息技术有限公司 System and method for transmitting data between mobile terminals
CN102546174A (en) * 2011-12-20 2012-07-04 贾松仁 Two-dimensional code encryption/decryption method and anti-counterfeiting method
US20120189122A1 (en) * 2011-01-20 2012-07-26 Yi-Li Huang Method with dynamic keys for mutual authentication in wireless communication environments without prior authentication connection
CN103198344A (en) * 2013-03-01 2013-07-10 重庆市远大印务有限公司 Tax-control safety two-dimensional code encoding and decoding processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006093876A (en) * 2004-09-21 2006-04-06 Docomo Systems Inc Information provision system
US20120189122A1 (en) * 2011-01-20 2012-07-26 Yi-Li Huang Method with dynamic keys for mutual authentication in wireless communication environments without prior authentication connection
CN102118710A (en) * 2011-03-08 2011-07-06 上海红松信息技术有限公司 System and method for transmitting data between mobile terminals
CN102546174A (en) * 2011-12-20 2012-07-04 贾松仁 Two-dimensional code encryption/decryption method and anti-counterfeiting method
CN103198344A (en) * 2013-03-01 2013-07-10 重庆市远大印务有限公司 Tax-control safety two-dimensional code encoding and decoding processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203569A (en) * 2016-07-07 2016-12-07 立德高科(昆山)数码科技有限责任公司 Stamp album approaches to IM based on Quick Response Code
CN108681759A (en) * 2018-05-14 2018-10-19 广州微兆信息科技有限公司 Plate processing, image in 2 D code generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102571357B (en) Signature realization method and signature realization device
CN104636783B (en) Based on present system time with generate carry Net silver information Quick Response Code method
CN108256929A (en) A kind of electronic invoice based on Quick Response Code issues method and system
CN103778590A (en) Method and device for utilizing digital image to store and transmit information
CN104794516A (en) Position-changeable combined anti-counterfeit label, combined anti-counterfeit label generation method and combined anti-counterfeit label generation device
CN104794514A (en) Combined anti-counterfeiting mark based on same ID (Identity) as well as generation method and device
CN101789862A (en) Encryption and decryption device and method based on gravity acceleration
CN105005802A (en) Method for generating two-dimensional code on basis of current system time
CN108155987A (en) Group message sending method, method of reseptance and its system and communicating terminal
CN102340402B (en) Identity authentication method based on visual cryptography
US10552618B2 (en) Method and apparatus for transmission of visually encoded data
CN104616042A (en) Special two-dimensional code corresponding to gift detail and generation mode of special two-dimensional code
CN107767266A (en) Intelligent digital currency and dynamic coding service system
CN104657765A (en) Two-dimension code as well as two-dimension code generating method and generating device
CN109618073A (en) A kind of more figure encryption methods based on Hyperchaotic Chen System
CN104252669A (en) Signing validation method and device
CN109478995A (en) Whitepack Encryption Algorithm is realized
CN104657766A (en) Two-dimension code as well as two-dimension code generating method and generating device
CN104767622B (en) Encryption method and device
CN104657763A (en) Two-dimension code as well as two-dimension code generating method and generating device
CN104616044A (en) Two-dimension code and generating method and generating device thereof
CN104616045A (en) Two-dimension code and generating method and generating device thereof
CN111209577B (en) Method and device for adding watermark data, storage medium and electronic equipment
CN103401681B (en) Model taking method, impression-taking apparatus and chip
CN104657764A (en) Special two-dimensional code corresponding to ticket information and generation method of special two-dimensional code

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150527