CN104657763A - 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
CN104657763A
CN104657763A CN201510079524.9A CN201510079524A CN104657763A CN 104657763 A CN104657763 A CN 104657763A CN 201510079524 A CN201510079524 A CN 201510079524A CN 104657763 A CN104657763 A CN 104657763A
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
CN201510079524.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 CN201510079524.9A priority Critical patent/CN104657763A/en
Publication of CN104657763A publication Critical patent/CN104657763A/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 MD5 (message digest 5) or ENIGMA 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 MD5 or ENIGMA 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 MD5 or ENIGMA 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 MD5 or ENIGMA 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 md5 encryption 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 ENIGMA 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 MD5 or ENIGMA 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 MD5 or ENIGMA 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 md5 encryption 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 ENIGMA 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 MD5 or ENIGMA 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 MD5 or ENIGMA 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 md5 encryption 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 ENIGMA 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.
CN201510079524.9A 2015-02-13 2015-02-13 Two-dimension code as well as two-dimension code generating method and generating device Pending CN104657763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510079524.9A CN104657763A (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
CN201510079524.9A CN104657763A (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
CN104657763A true CN104657763A (en) 2015-05-27

Family

ID=53248862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510079524.9A Pending CN104657763A (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) CN104657763A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409471A (en) * 2017-08-18 2019-03-01 徐子明 A kind of generation method and its generation system of two dimensional code

Citations (6)

* 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
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
CN104134139A (en) * 2013-05-03 2014-11-05 中国银联股份有限公司 Method for encryption protection of financial information
US20140359294A1 (en) * 2013-05-30 2014-12-04 Cartasite, Inc. Configurable, secure quick response code creation and use
CN104281866A (en) * 2013-07-09 2015-01-14 航天信息股份有限公司 Two-dimensional code application method and device

Patent Citations (6)

* 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
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
CN104134139A (en) * 2013-05-03 2014-11-05 中国银联股份有限公司 Method for encryption protection of financial information
US20140359294A1 (en) * 2013-05-30 2014-12-04 Cartasite, Inc. Configurable, secure quick response code creation and use
CN104281866A (en) * 2013-07-09 2015-01-14 航天信息股份有限公司 Two-dimensional code application method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409471A (en) * 2017-08-18 2019-03-01 徐子明 A kind of generation method and its generation system of two dimensional code
CN109409471B (en) * 2017-08-18 2021-08-31 重庆赫皇科技咨询有限公司 Two-dimensional code generation method and generation system thereof

Similar Documents

Publication Publication Date Title
CN105450620B (en) A kind of information processing method and device
CN102170357B (en) Combined secret key dynamic security management system
CN103856640A (en) Method and system for processing user resource information
CN107038383A (en) A kind of method and apparatus of data processing
CN102571357B (en) Signature realization method and signature realization device
CN108256929A (en) A kind of electronic invoice based on Quick Response Code issues method and system
CN104636783B (en) Based on present system time with generate carry Net silver information Quick Response Code method
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
CN105005802B (en) Based on present system time to generate the method for Quick Response Code
CN104794514A (en) Combined anti-counterfeiting mark based on same ID (Identity) as well as generation method and device
CN102340402B (en) Identity authentication method based on visual cryptography
CN101887713B (en) Encryption method and device for font library
CN107070874A (en) System, encryption method and the device of broadcast communication, decryption method and device
CN104616042A (en) Special two-dimensional code corresponding to gift detail and generation mode of special two-dimensional code
CN104734847B (en) Towards the shared symmetric key data encryption and decryption method of public key cryptography application
CN106503527A (en) A kind of method and apparatus of electronic document fingerprint signature
CN104252669A (en) Signing validation method and device
CN106411520A (en) Method, device and system for processing virtual resource data
CN107104788A (en) The ciphering signature method and apparatus of terminal and its non-repudiation
CN104657765A (en) Two-dimension code as well as two-dimension code generating method and generating device
CN104767622B (en) Encryption method and device
CN111209577B (en) Method and device for adding watermark data, storage medium and electronic equipment
CN104657763A (en) Two-dimension code as well as two-dimension code generating method and generating device
US20160110552A1 (en) Method and Apparatus for Transmission of Visually Encoded Data

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: 20150527

WD01 Invention patent application deemed withdrawn after publication