CN110909519B - Ticket dynamic code generation method based on time limit - Google Patents
Ticket dynamic code generation method based on time limit Download PDFInfo
- Publication number
- CN110909519B CN110909519B CN201911126862.8A CN201911126862A CN110909519B CN 110909519 B CN110909519 B CN 110909519B CN 201911126862 A CN201911126862 A CN 201911126862A CN 110909519 B CN110909519 B CN 110909519B
- Authority
- CN
- China
- Prior art keywords
- code
- bill
- dynamic
- time
- generation method
- 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
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 definition. The server generates a serial number serving as a plain code, a secret code obtained by an ASC encryption algorithm and a dynamic code corresponding to different time periods for the formulated bill. 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 handed to the bill holder. The invention solves the problems that the cost of the dynamic password using the cipher device is high, the generating process is unsafe, and the dynamic password 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 limit.
Background
The bill is widely used as a transaction certificate in various industries, and the generation of specific serial numbers and passwords for the bill is a general technical means for verifying the authenticity and effectiveness of the bill. Nowadays, many places need to verify entrance tickets, such as large concert sites, sports match sites, large evening sites, banquet sites, etc., and tickets play an important role in passenger transport services in transportation industries such as trains, airplanes, ships, etc. In these scenarios, the authenticity, validity and timeliness of the ticket are particularly important. Compared with the traditional cooperation of the solid serial number and the password, the prior art develops a technical scheme using a dynamic password to ensure that timeliness of the bill can be verified, such as a method using a dynamic password device.
However, the prior art dynamic password generation method using password generator in combination with time requires the bill holder to use a device which is authenticated and synchronously matched with the bill verification system, increasing the cost and the operational complexity of the bill holder during the verification process. Further, since the generation of the dynamic password is completed at the client, the security cannot be ensured in this process. An attacker can forge a ticket by intervening in the operation of the dynamic password generator. In addition, in the scene of huge flow of people such as large-scale event sites or station airports, the ticket checking work mostly needs to use a manual ticket checking mode to assist in management of people flow. The dynamic password is usually in the form of complex numbers or letter combinations, and the process of checking the dynamic code of the bill is complex and unreasonable for manual work, so that the ticket checking efficiency is low, and the entrance of a place is easy to be blocked.
Disclosure of Invention
In view of the above-described shortcomings of the prior art, it is an object of the present invention to provide a time-bounded dynamic code generation method for ticket generation by a server, which facilitates manual verification.
A bill dynamic code generation method based on time definition comprises the following steps:
s1, generating a unique serial number for the current bill as a plain code, and generating a secret code by using 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 of the same number as time periods are randomly selected from the code library as dynamic codes, each corresponding to a time period.
S3, the serial number, the secret code, the time period and the corresponding dynamic code are used as an effective entry to be stored in the ticket center server.
Further, the code library is Chinese characters in an ANSI, GB2312 or GBK code library.
Further, S1 comprises the step of generating a password through an encryption algorithm after combining the serial number and the current time, wherein the information of the current time comprises year, month, day, time, minute and second. The valid entry in S3 also includes storing the current time.
Further, S1 includes acquiring an identification code of the bill holder, and generating a unique identification code for the bill holder if it does not have the identification code. And generating a secret code through an encryption algorithm after combining the serial number, the current time and the identification code of the bill holder, wherein the valid entry in S3 also comprises the identification code of the bill holder.
Further, the encryption algorithm isASCSymmetric encryption.
Further, the serial code and the secret code in the form of the machine-readable code are delivered to the bill holder as a part of the bill content, and the dynamic code is delivered to the bill holder.
Further, the dynamic code is delivered to the bill holder in the form of mobile phone short message, email or push in software.
The beneficial effects brought by the invention include: (1) The dynamic code is uniformly generated by the bill verification server, and the bill holder does not need to use other devices except the bill to verify the authenticity and validity of the bill. The difficulty and cost of bill holder are greatly reduced, and the efficiency of bill checking process is improved. (2) Since the generation of the dynamic code is completed in the server, the security of the dynamic code is improved. The attacker cannot interfere the process of dynamic code generation, and the difficulty of forging the bill is higher. (3) The dynamic code adopts a code library conforming to the habit of manual language, so that the dynamic code can be quickly read and verified to be correct or not during manual ticket checking, and the ticket checking efficiency can be effectively improved. (4) The dynamic codes generated according to the Chinese character code library also enable ticket holders to read quickly and provide the dynamic codes to ticket detectors or systems in the form of writing, pronunciation and the like, so that tickets can be verified quickly and effectively under different verification systems and forms.
Drawings
FIG. 1 is a flow chart of a dynamic code generation method of a ticket based on time limitation of the invention.
Detailed Description
The invention relates to a time-limit-based bill dynamic code generation method, which is further described in detail below with reference to the accompanying drawings and specific embodiments.
Example 1
The current ticket is the ticket corresponding to the train of 10 am on 1 month 1 day in 2020, and the time period for admitting the waiting room is 8 am to 10 am on the modified day. The current time is 11 am on 10 months 1 a 2019, and the identification code of the bill holder is 101. Referring to fig. 1, a serial number, a password, and a dynamic code are generated for a current ticket as follows:
Example 2
The present embodiment differs from embodiment 1 in that the ticket holder does not have an identification code.
Other steps of this embodiment are the same as those of embodiment 1.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Such as: the dynamic code is set as english letters, a combination of a plurality of chinese characters or english words, etc. Thus, the present invention also includes such modifications and variations provided they come within the scope of the appended claims and their equivalents.
Claims (6)
1. A bill dynamic code generation method based on time definition comprises the following steps:
s1, generating a unique serial number for a current bill as a plain code, and generating a secret code by using 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, the number of which is the same as that of time periods, from a code library as dynamic codes, wherein each dynamic code corresponds to one time period;
s3, storing the serial number, the secret code, the time period and the corresponding dynamic code as an effective entry in a ticket center server;
the code library is Chinese characters in an ANSI, GB2312 or GBK code library;
the dynamic code is printed on the bill and is delivered to the bill holder.
2. The time-bounded based ticket dynamic code generation method of claim 1, wherein: s1, generating a password by combining a serial number and the current time through an encryption algorithm; the valid entry in S3 also includes the current time.
3. The time-bounded based ticket dynamic code generation method of claim 2, wherein: the method comprises the steps that S1, identification codes of bill holders are obtained, and if the bill holders do not have the identification codes, unique identification codes are generated for the bill holders; and generating a secret code through an encryption algorithm after combining the serial number, the current time and the identification code of the bill holder, wherein the valid entry in S3 also comprises the identification code of the bill holder.
4. A time-bounded based ticket dynamic code generation method as claimed in claim 3, wherein: the encryption algorithm isASCSymmetric encryption.
5. The time-bounded based ticket dynamic code generation method of claim 4, wherein: the secret code in the form of the sequence code and the machine-readable code is delivered to the bill holder as a part of the bill content, and the dynamic code corresponding to the effective time period is delivered to the bill holder.
6. The time-bounded based ticket dynamic code generation method of claim 5, 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 CN110909519A (en) | 2020-03-24 |
CN110909519B true 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 (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006201997A (en) * | 2005-01-20 | 2006-08-03 | Dainippon Printing Co Ltd | Ticket issuing system |
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 |
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 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
NL1029388C2 (en) * | 2005-06-30 | 2007-01-04 | Koninkl Kpn Nv | Access control and ticket therefor. |
AU2014200516B2 (en) * | 2007-12-24 | 2016-04-21 | 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 |
KR101967874B1 (en) * | 2017-02-22 | 2019-04-10 | 한국스마트인증 주식회사 | Method for Generating Dynamic Code Which Varies Periodically and Method for Authenticating the Dynamic Code |
-
2019
- 2019-11-18 CN CN201911126862.8A patent/CN110909519B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006201997A (en) * | 2005-01-20 | 2006-08-03 | Dainippon Printing Co Ltd | Ticket issuing system |
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 |
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 |
---|---|
CN110909519A (en) | 2020-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11743041B2 (en) | Technologies for private key recovery in distributed ledger systems | |
US11062106B2 (en) | Large data transfer using visual codes with feedback confirmation | |
WO2009122558A1 (en) | Goods manufacturing method, goods manufacturing system, and goods | |
US10191993B2 (en) | Network based sweepstakes gaming system incorporating an alternative method of contestant entry | |
Srikrishnaswetha et al. | A study on smart electronics voting machine using face recognition and aadhar verification with iot | |
CN107463806A (en) | The signature and sign test method of a kind of Android application programs installation kit | |
CN109086600A (en) | Password generates and Verification System | |
CN104103109A (en) | Method for realizing multi-person synchronous self-help conference registration through two-dimensional code scanning | |
CN110060403A (en) | The more ticket electronic voting methods of a people and system based on block chain | |
CN107609821A (en) | A kind of express delivery real name sends method and system and pulls receiving unit | |
CN1956375A (en) | Dynamic password identity authentication method and system based on network | |
CN108259177A (en) | A kind of electric signing system and method | |
CN110909519B (en) | Ticket dynamic code generation method based on time limit | |
CN109992984A (en) | A kind of file identification method and equipment based on two dimensional code | |
WO2019026873A1 (en) | Mutual authentication system, authentication image, and recording medium | |
Mhamane et al. | Digirail-The digital railway system and dynamic seat allocation | |
CN110111461A (en) | A kind of pass identified off-line method and apparatus based on two dimensional code | |
US8804158B2 (en) | Token generation from a printer | |
CN105141577B (en) | A kind of asynchronous login method of oriented of Information System | |
Mogal et al. | How Two Factor Authentication Helps in Cybersecurity | |
Gupta et al. | Online facility of ticket booking and generating buspass using qr code | |
CN105844520A (en) | Electronic receipt generating and verifying method | |
CN104980275A (en) | Two-dimension code-based digital signature authentication scheme allowing proxy signing | |
US20230350987A1 (en) | Physical signature authorization via a portal | |
JP2007288546A (en) | Method of verifying name card with autograph, and encryption communication method using the same |
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 |