CN110909519A - Bill dynamic code generation method based on time limitation - Google Patents
Bill dynamic code generation method based on time limitation Download PDFInfo
- Publication number
- CN110909519A CN110909519A CN201911126862.8A CN201911126862A CN110909519A CN 110909519 A CN110909519 A CN 110909519A CN 201911126862 A CN201911126862 A CN 201911126862A CN 110909519 A CN110909519 A CN 110909519A
- Authority
- CN
- China
- Prior art keywords
- code
- ticket
- dynamic
- bill
- generating
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/04—Billing or invoicing
Abstract
The invention relates to the field of information security, and provides a bill dynamic code generation method based on time limitation. The server generates a serial number as a plain code, a secret code obtained by an ASC encryption algorithm and dynamic codes corresponding to different time periods for the bill making. The time period comprises a plurality of invalid time periods and valid time periods, and only the dynamic codes of the valid time periods are delivered to the ticket holder. The invention solves the problems that the cipher device for the dynamic cipher has high cost, the generation process is unsafe and the dynamic cipher checking process is not suitable for manual operation.
Description
Technical Field
The invention relates to the field of information security, in particular to a bill dynamic code generation method based on time limitation.
Background
The bill is widely used in various industries as a transaction certificate, and generating a specific serial number and a password for the bill is a general technical means for verifying the authenticity and effectiveness of the bill. Many places need to be verified to enter nowadays, such as a large concert site, a sports competition site, a large evening site, a banquet site and the like, and tickets also play an important role in transportation industries such as passenger transport services of trains, airplanes, ships and the like. Under these scenarios, the authenticity, validity, and timeliness of the document are particularly important. Compared with the traditional matching of the solid serial number and the password, the prior art develops the technical scheme of using the dynamic password to ensure that the timeliness of the bill can be verified, such as the method of using a dynamic password device.
However, the prior art dynamic password generation method using a password generator in combination with time requires the ticket holder to use equipment that is authenticated and synchronized with the ticket validation system, increasing the cost and complexity of the ticket holder's operations during the validation process. Further, since the generation of the dynamic password is completed at the client, the process cannot ensure the security. An attacker can forge a ticket by intervening in the operation of the dynamic password generator. In addition, in a scene with a large traffic of people such as a large-scale event site or a station airport, the ticket checking work mostly needs to assist the management of people flow by adopting a manual ticket checking mode. The dynamic password is usually in a complex number or letter combination form, and the process of checking the dynamic code of the bill is complex and unreasonable for manpower, so that the efficiency of checking the bill is low, and the entrance jam of a place is easily caused.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, it is an object of the present invention to provide a time-based dynamic code generation method for tickets, which generates dynamic codes by a server and facilitates manual verification.
A bill dynamic code generation method based on time limitation comprises the following steps:
s1, generating a unique serial number as a plain code for the current bill, and generating a secret code by the plain code through an encryption algorithm.
S2, setting a plurality of non-overlapping time periods, wherein one time period is an effective time period; different entries, the number of which is the same as the number of time periods, are randomly selected from a code library as dynamic codes, each dynamic code corresponding to a time period.
And S3, storing the serial number, the secret code, the time period and the corresponding dynamic code as an effective item in a ticket center server.
Further, the code library is Chinese characters in ANSI, GB2312 or GBK code libraries.
Further, S1 includes generating the password by an encryption algorithm in combination with the serial number and the current time, the information of the current time including year, month, day, hour, minute, and second. The valid entry in S3 also includes storing the current time.
Further, S1 includes obtaining an identification code of the ticket holder, and generating a unique identification code for the ticket holder if the ticket holder does not have the identification code. The combination of the serial number, the current time, and the ticket holder 'S identification number is then used to generate a secret code by a cryptographic algorithm, and the valid entry in S3 also includes the ticket holder' S identification number.
Further, the encryption algorithm isASCSymmetric encryption.
Further, the serial code and the secret code in the form of a machine readable code are delivered to the ticket holder as part of the contents of the ticket, and the dynamic code is delivered to the ticket holder.
Further, the dynamic code is delivered to the bill holder in the form of mobile phone short message, e-mail or push in software.
The beneficial effects brought by the invention comprise: (1) the dynamic code is generated uniformly by the bill verification server, and the bill holder does not need to use other equipment except the bill to verify the authenticity and the validity of the bill. The difficulty of use and the cost of the bill holder are greatly reduced, and the efficiency of the bill inspection process is improved. (2) Because the generation of the dynamic code is completed in the server, the safety of the dynamic code is improved. An attacker cannot intervene in the dynamic code generation process, and the bill counterfeiting difficulty is higher. (3) The dynamic code adopts a code library conforming to the habit of artificial language, and the dynamic code can be quickly read and verified whether to be correct or not during manual ticket checking, so that the ticket checking efficiency can be effectively improved. (4) The dynamic code generated according to the Chinese character code library also enables a bill holder to quickly read and provide the dynamic code to a ticket checker or a system in the forms of writing, pronunciation and the like, so that the bill can be quickly and effectively verified under different checking systems and forms.
Drawings
FIG. 1 is a flow chart of a method for generating a bill dynamic code based on time limitation.
Detailed Description
The method for generating the ticket dynamic code based on time limit of the invention will be further described in detail with reference to the drawings and specific embodiments of the specification.
Example 1
The current ticket is a ticket corresponding to a train at 10 am on 1 st of 2020, and the time period for allowing the train waiting room to be accessed is changed from 8 am on the day to 10 am. The current time is 11 am on 10/1/2019, and the identification code of the bill holder is 101. Referring to fig. 1, a serial number, a secret code and a dynamic code are generated for a current ticket according to the following steps:
And step 201, generating a secret code by the character string obtained in the step 102 through an ASC encryption algorithm.
Example 2
This embodiment is different from embodiment 1 in that the ticket holder does not have an identification code.
The other steps of this example are the same as example 1.
It will be apparent to those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention. Such as: the dynamic code is set as English letters, a plurality of Chinese characters or the combination of English words, etc. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention also encompasses these modifications and variations.
Claims (7)
1. A bill dynamic code generation method based on time limitation comprises the following steps:
s1, generating a unique serial number as a plain code for a current bill, and generating a secret code by the plain code through an encryption algorithm;
s2, setting a plurality of non-overlapping time periods, wherein one time period is an effective time period; randomly selecting different items with the same number as the time periods from a code library as dynamic codes, wherein each dynamic code corresponds to one time period;
and S3, storing the serial number, the secret code, the time period and the corresponding dynamic code as an effective item in a ticket center server.
2. The method for generating the ticket dynamic code based on the time limit of claim 1, wherein: the code library is Chinese characters in ANSI, GB2312 or GBK code libraries.
3. The method for generating the ticket dynamic code based on the time limit of claim 1 or 2, wherein: the step S1 includes generating cipher code by encryption algorithm after combining the serial number and the current time; the valid entry in S3 also includes the current time.
4. The method for generating the ticket dynamic code based on the time limit of claim 3, wherein: said S1 includes acquiring the identification code of the ticket holder, and generating a unique identification code for the ticket holder if the ticket holder does not have the identification code; the combination of the serial number, the current time, and the ticket holder 'S identification number is then used to generate a secret code by a cryptographic algorithm, and the valid entry in S3 also includes the ticket holder' S identification number.
5. The method for generating the ticket dynamic code based on the time limit of claim 4, wherein: the encryption algorithm isASCSymmetric encryption.
6. The method for generating the ticket dynamic code based on the time limit of claim 5, wherein: the serial code and the secret code in the form of machine-readable code are delivered to the bill holder as a part of the bill contents, and the dynamic code corresponding to the valid time period is delivered to the bill holder.
7. The method for generating the ticket dynamic code based on the time limit of claim 6, wherein: the dynamic code is delivered to the bill holder in the form of mobile phone short message, e-mail or push in software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911126862.8A CN110909519B (en) | 2019-11-18 | 2019-11-18 | Ticket dynamic code generation method based on time limit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911126862.8A CN110909519B (en) | 2019-11-18 | 2019-11-18 | Ticket dynamic code generation method based on time limit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110909519A true CN110909519A (en) | 2020-03-24 |
CN110909519B CN110909519B (en) | 2023-06-06 |
Family
ID=69817804
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911126862.8A Active CN110909519B (en) | 2019-11-18 | 2019-11-18 | Ticket dynamic code generation method based on time limit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110909519B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006201997A (en) * | 2005-01-20 | 2006-08-03 | Dainippon Printing Co Ltd | Ticket issuing system |
WO2007004865A1 (en) * | 2005-06-30 | 2007-01-11 | Koninklijke Kpn N.V. | Access check and ticket therefor |
AU2014200516A1 (en) * | 2007-12-24 | 2014-02-20 | Dynamics Inc. | Cards and devices with magnetic emulators for communicating with magnetic stripe readers and applications for the same |
FR3038417A1 (en) * | 2015-06-30 | 2017-01-06 | Oberthur Technologies | SERVER AND METHOD FOR VERIFYING DYNAMIC SECURITY CODE |
CN106878300A (en) * | 2017-02-13 | 2017-06-20 | 北京微赛时代体育科技有限公司 | Dynamic cipher authentication method, device and ticket-check equipment |
US9917694B1 (en) * | 2013-11-27 | 2018-03-13 | EMC IP Holding Company LLC | Key provisioning method and apparatus for authentication tokens |
KR20180096887A (en) * | 2017-02-22 | 2018-08-30 | 한국스마트인증 주식회사 | Method for Generating Dynamic Code Which Varies Periodically and Method for Authenticating the Dynamic Code |
CN108964884A (en) * | 2017-05-24 | 2018-12-07 | 武汉斗鱼网络科技有限公司 | Generation method, storage medium, electronic equipment and the system of mobile terminal dynamic password |
JP2019004475A (en) * | 2018-07-31 | 2019-01-10 | ウノ チェ | Authentication under ubiquitous environment |
-
2019
- 2019-11-18 CN CN201911126862.8A patent/CN110909519B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006201997A (en) * | 2005-01-20 | 2006-08-03 | Dainippon Printing Co Ltd | Ticket issuing system |
WO2007004865A1 (en) * | 2005-06-30 | 2007-01-11 | Koninklijke Kpn N.V. | Access check and ticket therefor |
AU2014200516A1 (en) * | 2007-12-24 | 2014-02-20 | Dynamics Inc. | Cards and devices with magnetic emulators for communicating with magnetic stripe readers and applications for the same |
US9917694B1 (en) * | 2013-11-27 | 2018-03-13 | EMC IP Holding Company LLC | Key provisioning method and apparatus for authentication tokens |
FR3038417A1 (en) * | 2015-06-30 | 2017-01-06 | Oberthur Technologies | SERVER AND METHOD FOR VERIFYING DYNAMIC SECURITY CODE |
CN106878300A (en) * | 2017-02-13 | 2017-06-20 | 北京微赛时代体育科技有限公司 | Dynamic cipher authentication method, device and ticket-check equipment |
KR20180096887A (en) * | 2017-02-22 | 2018-08-30 | 한국스마트인증 주식회사 | Method for Generating Dynamic Code Which Varies Periodically and Method for Authenticating the Dynamic Code |
CN108964884A (en) * | 2017-05-24 | 2018-12-07 | 武汉斗鱼网络科技有限公司 | Generation method, storage medium, electronic equipment and the system of mobile terminal dynamic password |
JP2019004475A (en) * | 2018-07-31 | 2019-01-10 | ウノ チェ | Authentication under ubiquitous environment |
Also Published As
Publication number | Publication date |
---|---|
CN110909519B (en) | 2023-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2018101148A4 (en) | A system and method for document information authenticity verification | |
CN106921640A (en) | Identity identifying method, authentication device and Verification System | |
JPWO2009122558A1 (en) | Article manufacturing method, article manufacturing system, and article | |
JP2020017247A (en) | Dynamic two-dimensional code authentication method of display board, dynamic two-dimensional code authentication system thereof, user terminal thereof and authentication server thereof | |
CN110060403A (en) | The more ticket electronic voting methods of a people and system based on block chain | |
CN102298756A (en) | Method for ensuring security of computer lottery trade information | |
CN110517049A (en) | A kind of bill anti-counterfeit recognition methods and device based on two dimensional code and block chain | |
CN104103109A (en) | Method for realizing multi-person synchronous self-help conference registration through two-dimensional code scanning | |
CN104036399A (en) | True and false identification method based bar code scanning and dynamic password | |
CN104021487A (en) | Digital anti-counterfeiting method for implementing repeated verification | |
CN105117920A (en) | Anti-counterfeiting method and apparatus for picture electronic certificates | |
CN105912894B (en) | A method of it is anti-fake that passport NO. being used for E-seal printed text | |
CN110909519B (en) | Ticket dynamic code generation method based on time limit | |
WO2019026873A1 (en) | Mutual authentication system, authentication image, and recording medium | |
CN109992984A (en) | A kind of file identification method and equipment based on two dimensional code | |
CN109766973A (en) | The two dimensional code of public transport AFC system mobile payment | |
US8804158B2 (en) | Token generation from a printer | |
CN115396117A (en) | Block chain based tamper-proof electronic document signing and verifying method and system | |
Yang et al. | Towards standardizing trusted evidence of identity | |
Mhamane et al. | Digirail-The digital railway system and dynamic seat allocation | |
CN104980275A (en) | Two-dimension code-based digital signature authentication scheme allowing proxy signing | |
CN109271811A (en) | A kind of anti-tamper storage method of electronic material evidence based on group ranking | |
CN106096451A (en) | Rights and interests file management method | |
CN108053273B (en) | Credit method realized based on intelligent equipment | |
Aravinda et al. | User Authentication Using Image Processing Techniques |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |