CN105005802B - Based on present system time to generate the method for Quick Response Code - Google Patents

Based on present system time to generate the method for Quick Response Code Download PDF

Info

Publication number
CN105005802B
CN105005802B CN201510368587.6A CN201510368587A CN105005802B CN 105005802 B CN105005802 B CN 105005802B CN 201510368587 A CN201510368587 A CN 201510368587A CN 105005802 B CN105005802 B CN 105005802B
Authority
CN
China
Prior art keywords
sequence number
quick response
response code
cipher
time
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.)
Active
Application number
CN201510368587.6A
Other languages
Chinese (zh)
Other versions
CN105005802A (en
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.)
CITIC Aibank Corp 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 CN201510368587.6A priority Critical patent/CN105005802B/en
Publication of CN105005802A publication Critical patent/CN105005802A/en
Application granted granted Critical
Publication of CN105005802B publication Critical patent/CN105005802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention provide it is a kind of based on present system time to generate the method for Quick Response Code, comprise the following steps:Information is inputted in the information input interface during Quick Response Code generates interface, and the information to being inputted is changed, to obtain the first sequence number corresponding thereto;According to the current display time for the operating system for being implanted with Quick Response Code generation interface, to call a kind of algorithm to carry out cryptographic operation at least once to sequence number, to generate the second sequence number;First sequence number and the second sequence number are arranged, to form sequence number group;Sequence number group input Quick Response Code is generated in interface, to generate the Quick Response Code corresponding with sequence number group.The present invention by present system time to call its corresponding cipher mode, so as to generate the Quick Response Code with encryption function according to the information that inputs in generating interface in Quick Response Code.

Description

Based on present system time to generate the method for Quick Response Code
Technical field
The present invention relates to Quick Response Code field, it is especially a kind of based on present system time to generate the method for Quick Response Code.
Background technology
At present, existing Quick Response Code generating mode is to generate phase according to the information that inputs in generating interface in Quick Response Code Corresponding Quick Response Code.Due to not possessing encryption function in generating process, therefore, the Quick Response Code generated can be by many people institutes Read, identification.However, because the information included in Quick Response Code carries certain crypticity, can be by it if without encryption Other people learn secret information, therefore, are badly in need of a two-dimensional code generation method with encryption function.
The content of the invention
Weak point present in regarding to the issue above, the present invention provide it is a kind of by present system time with call and its Corresponding cipher mode, so as to generate the Quick Response Code with encryption function according to the information inputted in Quick Response Code generation interface Based on present system time to generate the method for Quick Response Code.
To achieve the above object, the present invention provide it is a kind of based on present system time to generate the method for Quick Response Code, including Following steps:
S1, information is inputted in the information input interface during Quick Response Code generates interface, and the information to being inputted turns Change, to obtain the first sequence number corresponding thereto;
S2, the current display time according to the operating system for being implanted with Quick Response Code generation interface, to call a kind of algorithm pair Sequence number carries out cryptographic operation at least once, to generate the second sequence number;
S3, the first sequence number and the second sequence number arranged, to form sequence number group;
S4, by sequence number group input Quick Response Code generation interface, to generate the Quick Response Code corresponding with sequence number group.
It is above-mentioned based on present system time to generate the method for Quick Response Code, wherein, in step sl, the information inputted Identity information including user, with mutually bind bank card number, transaction when payment cipher and the check code that generates at random.
It is above-mentioned based on present system time to generate the method for Quick Response Code, wherein, in step s 2, including following step Suddenly:
S21, according to the current display time for the operating system for being implanted with Quick Response Code generation interface to determine time interval section Sequence number;
S22, according to time interval section sequence number with selected cipher mode corresponding thereto to obtained in step S1 first Sequence number carries out first time cryptographic operation.
It is above-mentioned based on present system time to generate the method for Quick Response Code, wherein, after step S22 implementations, also wrap Include S23:
A kind of cipher mode is called by encryption order pointer, to be carried out to the first sequence number for completing first time cryptographic operation Second of cryptographic operation, to form the second sequence number.
It is above-mentioned based on present system time to generate the method for Quick Response Code, wherein, in step S23, encryption order refers to Pin random call and choose to after second of cipher mode, judge second of cipher mode and first time cipher mode whether be Identical cipher mode;
If it is determined that second of cipher mode and first time cipher mode are identical cipher mode, then this time random adjust is abandoned With with selection operation, encryption order pointer is pointed into first time cipher mode, and with this as the starting point, is moved forward or rearward one Pointer position, and the cipher mode using the cipher mode corresponding with current pointer location as second of cryptographic operation.
It is above-mentioned based on present system time to generate the method for Quick Response Code, wherein, cipher mode includes des encryption side Formula, 3DES encryption mode, TEA cipher modes, XTEA cipher modes, RC4 cipher modes, PANAMA cipher modes, Twofish add Close mode, CAST-128 cipher modes, CAST-256 cipher modes, md5 encryption mode and enigma are encrypted.
It is above-mentioned based on present system time to generate the method for Quick Response Code, wherein, also needed to before step S2 implementations into The following operating procedure of row:
To be divided within 00~59 second 11 time interval sections, and by each time interval section respectively with a kind of cipher mode phase Binding, to form 11 one-time pad encryption segments.
It is above-mentioned based on present system time to generate the method for Quick Response Code, wherein, in step s3, by the first sequence number with Second sequence number is arranged according to front or rear order, to form sequence number group.
Compared with prior art, the present invention has advantages below:
The present invention by present system time to call its corresponding cipher mode, so as to according to Quick Response Code generate boundary The information inputted in face is to generate the Quick Response Code with encryption function;
Furthermore it is also possible to carry out different cipher modes twice to generating the information inputted in interface in Quick Response Code as needed Cryptographic operation, the cipher round results of generated Quick Response Code can be improved;
In addition, before second of cryptographic operation is carried out, operation is compared due to being also equipped with cipher mode, therefore, can be avoided Because cryptographic operation twice is the shortcomings that reducing cipher round results using identical cipher mode.
Embodiment
The present invention provide it is a kind of based on present system time to generate the method for Quick Response Code, comprise the following steps:
S1, information is inputted in the information input interface during Quick Response Code generates interface, and the information to being inputted turns Change, to obtain the first sequence number corresponding thereto.
Wherein, in step sl, the identity information of the information inputted including user, with mutually bind bank card number, Payment cipher during transaction and the check code generated at random.
S2, the current display time according to the operating system for being implanted with Quick Response Code generation interface, to call a kind of algorithm pair Sequence number carries out cryptographic operation at least once, to generate the second sequence number.
Wherein, in step s 2, comprise the following steps:
S21, according to the current display time for the operating system for being implanted with Quick Response Code generation interface to determine time interval section Sequence number;
S22, according to time interval section sequence number with selected cipher mode corresponding thereto to obtained in step S1 first Sequence number carries out first time cryptographic operation.
If in addition, also need to carry out second of cryptographic operation to the first sequence number for completing first time cryptographic operation, in step After rapid S22 is implemented, in addition to S23:
A kind of cipher mode is called by encryption order pointer, to be carried out to the first sequence number for completing first time cryptographic operation Second of cryptographic operation, to form the second sequence number.
Wherein, in step S23, encryption order pointer is in random call and chooses to after second of cipher mode, judges Whether second of cipher mode and first time cipher mode are identical cipher mode;
If it is determined that second of cipher mode and first time cipher mode are identical cipher mode, then this time random adjust is abandoned With with selection operation, encryption order pointer is pointed into first time cipher mode, and with this as the starting point, is moved forward or rearward one Pointer position, and the cipher mode using the cipher mode corresponding with current pointer location as second of cryptographic operation.
In step S22 and S23, cipher mode include des encryption mode, 3DES encryption mode, TEA cipher modes, XTEA cipher modes, RC4 cipher modes, PANAMA cipher modes, Twofish cipher modes, CAST-128 cipher modes, CAST-256 cipher modes, md5 encryption mode and enigma cipher modes.
In addition, also need to proceed as follows step before step S2 implementations:
To be divided within 00~59 second 11 time interval sections, and by each time interval section respectively with a kind of cipher mode phase Binding, to form 11 one-time pad encryption segments.
Such as:1st encryption segment is mutually bound with des encryption mode, the 2nd encryption segment and 3DES encryption mode are mutually tied up Fixed, the 3rd encryption segment is mutually bound with TEA cipher modes, the 4th encrypts segment and XTEA cipher modes are mutually bound, the 5th encrypts Segment is mutually bound with RC4 cipher modes, the 6th encryption segment and PANAMA cipher modes is mutually bound, the 7th encryption segment and Twofish cipher modes are mutually bound, the 8th encryption segment mutually bound with CAST-128 cipher modes, the 9th encryption segment and CAST-256 cipher modes are mutually bound, the 10th encryption segment mutually bound with md5 encryption mode, the 11st encryption segment and Enigma cipher modes are mutually bound.
S3, the first sequence number and the second sequence number arranged, to form sequence number group.
In step s3, the first sequence number is arranged with the second sequence number according to front or rear order, to form sequence number group.
S4, by sequence number group input Quick Response Code generation interface, to generate the Quick Response Code corresponding with sequence number group.
Wherein, Quick Response Code generation interface can adopt the mode of the inputted sequence number group generation Quick Response Code corresponding with sequence number group With the generating mode that existing Quick Response Code is final.
Only as described above, only presently preferred embodiments of the present invention, professional who are familiar with this art such as. After the technological means for understanding the present invention, natural energy is changed under the teachings of the present invention according to actual needs.Therefore it is all According to the equal change that scope of the present invention patent is made and modification, once should still remain within the scope of the patent.

Claims (4)

1. it is a kind of based on present system time to generate the method for Quick Response Code, comprise the following steps:
S1, information is inputted in the information input interface during Quick Response Code generates interface, and the information to being inputted is changed, with The first sequence number corresponding thereto is obtained, in step sl, the identity information of the information inputted including user, with mutually binding Payment cipher and the check code that generates at random when bank card number, transaction;
S2, the current display time according to the operating system for being implanted with Quick Response Code generation interface, to call a kind of algorithm to sequence number Cryptographic operation at least once is carried out, to generate the second sequence number, in step s 2, is comprised the following steps:
S21, according to the current display time for the operating system for being implanted with Quick Response Code generation interface to determine time interval section sequence number;
S22, according to time interval section sequence number with selected cipher mode corresponding thereto to the first sequence number for being obtained in step S1 First time cryptographic operation is carried out, after step S22 implementations, in addition to S23:
A kind of cipher mode is called by encryption order pointer, to carry out second to the first sequence number for completing first time cryptographic operation Secondary cryptographic operation, to form the second sequence number, in step S23, encryption order pointer adds in random call and selection to second After close mode, judge whether second of cipher mode and first time cipher mode are identical cipher mode;
If it is determined that second cipher mode and first time cipher mode be identical cipher mode, then abandon this random call and Selection operation, encryption order pointer is pointed into first time cipher mode, and with this as the starting point, be moved forward or rearward a pointer Position, and the cipher mode using the cipher mode corresponding with current pointer location as second of cryptographic operation;
S3, the first sequence number and the second sequence number arranged, to form sequence number group;
S4, by sequence number group input Quick Response Code generation interface, to generate the Quick Response Code corresponding with sequence number group.
2. it is according to claim 1 based on present system time to generate the method for Quick Response Code, it is characterised in that encryption side Formula includes des encryption mode, 3DES encryption mode, TEA cipher modes, XTEA cipher modes, RC4 cipher modes, PANAMA and added Close mode, Twofish cipher modes, CAST-128 cipher modes, CAST-256 cipher modes, md5 encryption mode and enigma Encryption.
3. it is according to claim 2 based on present system time to generate the method for Quick Response Code, it is characterised in that in step S2 also needs to proceed as follows step before implementing:
11 time interval sections were divided into by 00 ~ 59 second, and each time interval section is mutually bound with a kind of cipher mode respectively, To form 11 one-time pad encryption segments.
4. it is according to claim 1 based on present system time to generate the method for Quick Response Code, it is characterised in that in step In S3, the first sequence number is arranged with the second sequence number according to front or rear order, to form sequence number group.
CN201510368587.6A 2015-02-13 2015-06-29 Based on present system time to generate the method for Quick Response Code Active CN105005802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510368587.6A CN105005802B (en) 2015-02-13 2015-06-29 Based on present system time to generate the method for Quick Response Code

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201510079210 2015-02-13
CN2015100792109 2015-02-13
CN201510368587.6A CN105005802B (en) 2015-02-13 2015-06-29 Based on present system time to generate the method for Quick Response Code

Publications (2)

Publication Number Publication Date
CN105005802A CN105005802A (en) 2015-10-28
CN105005802B true CN105005802B (en) 2018-03-02

Family

ID=54378466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510368587.6A Active CN105005802B (en) 2015-02-13 2015-06-29 Based on present system time to generate the method for Quick Response Code

Country Status (1)

Country Link
CN (1) CN105005802B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127279A (en) * 2016-04-12 2016-11-16 立德高科(昆山)数码科技有限责任公司 The Quick Response Code of a kind of novel type, its generation method and two-dimension code label
CN106203565A (en) * 2016-07-01 2016-12-07 立德高科(昆山)数码科技有限责任公司 Photo remarks Quick Response Code and the method for generation thereof
CN106790510B (en) * 2016-12-16 2020-07-31 北京小米移动软件有限公司 Method, device and system for generating serial number
CN106897760A (en) * 2017-03-02 2017-06-27 苏州钜立智能***有限公司 Quick Response Code generates equipment
CN109409471B (en) * 2017-08-18 2021-08-31 重庆赫皇科技咨询有限公司 Two-dimensional code generation method and generation system thereof
CN109410396B (en) * 2018-10-14 2021-01-01 浙江鸿利锁业有限公司 Intelligent lock data encryption transmission method and leasing equipment applying same

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1443452A2 (en) * 2003-01-30 2004-08-04 Denso Wave Incorporated Two-dimensional code, methods and apparatuses for generating, displaying and reading same
CN102546174A (en) * 2011-12-20 2012-07-04 贾松仁 Two-dimensional code encryption/decryption method and anti-counterfeiting method
CN104253684A (en) * 2014-09-23 2014-12-31 深圳市汇顶科技股份有限公司 Encryption method and encryption device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1443452A2 (en) * 2003-01-30 2004-08-04 Denso Wave Incorporated Two-dimensional code, methods and apparatuses for generating, displaying and reading same
CN102546174A (en) * 2011-12-20 2012-07-04 贾松仁 Two-dimensional code encryption/decryption method and anti-counterfeiting method
CN104253684A (en) * 2014-09-23 2014-12-31 深圳市汇顶科技股份有限公司 Encryption method and encryption device

Also Published As

Publication number Publication date
CN105005802A (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN105005802B (en) Based on present system time to generate the method for Quick Response Code
CN104636783B (en) Based on present system time with generate carry Net silver information Quick Response Code method
CN104794516B (en) Combined anti-fake mark, generation method and the generating means of position type variable
CN105530241B (en) The authentication method of mobile intelligent terminal and POS terminal
Welch Diffusion of Franchise System Use in InternationalOperations
CN105406960B (en) A kind of method of information encryption and decryption
CL2011000842A1 (en) Computerized method and mobile device to generate a time-limited number to be used in a payment card transaction between the mobile device and a terminal that involves a payment card granted by a financial institution and a desired expiration date.
SG11201806344VA (en) Credit payment method and apparatus based on mobile terminal p2p
US20050149739A1 (en) PIN verification using cipher block chaining
CN104616042A (en) Special two-dimensional code corresponding to gift detail and generation mode of special two-dimensional code
CN107846275A (en) The method and device of network security of cutting into slices isolation
CN105897400A (en) Masking method and device for SM4 algorithm
CN105989259B (en) User ID authentication method, apparatus and system
CN105376055A (en) Method for generating pseudo random number and pseudo random number generator
CN106096957A (en) The update method of service attribute value and system
CN105379172B (en) Device and method for the key updating used in Tuber yield
CN104092683B (en) PIN code protecting method and system
CN106203565A (en) Photo remarks Quick Response Code and the method for generation thereof
CN105634729A (en) Mobile phone encryption and decryption method based on bluetooth equipment
CN104616043A (en) Special two-dimensional code corresponding to information recorded in postcard and generation method of two-dimensional code
CN105281915A (en) Ciphertext generating method of password keyboard
CN104657764A (en) Special two-dimensional code corresponding to ticket information and generation method of special two-dimensional code
CN104680219A (en) Special two-dimensional code corresponding to information recorded in red packet and generating method for special two-dimensional code
CN108776892A (en) The restoration methods of storage system, equipment and storage system
CN104657765A (en) Two-dimension code as well as two-dimension code generating method and generating device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180914

Address after: 100029 8 floor, 3 building, 5 Anding Road, Chaoyang District, Beijing.

Patentee after: CITIC Bank Limited by Share Ltd

Address before: 100081 room 803, Fuhai international port 17, Da Liu Shu Lu, Haidian District, Beijing.

Patentee before: Leader Tech (Beijing) Digtal Technology Co., Ltd.

TR01 Transfer of patent right