CN106504344A - A kind of ticket checking method of electronic ticket, system and a kind of equipment - Google Patents

A kind of ticket checking method of electronic ticket, system and a kind of equipment Download PDF

Info

Publication number
CN106504344A
CN106504344A CN201610914980.5A CN201610914980A CN106504344A CN 106504344 A CN106504344 A CN 106504344A CN 201610914980 A CN201610914980 A CN 201610914980A CN 106504344 A CN106504344 A CN 106504344A
Authority
CN
China
Prior art keywords
ticket
electronic
checking
ticket checking
electronic ticket
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
Application number
CN201610914980.5A
Other languages
Chinese (zh)
Other versions
CN106504344B (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.)
BEIJING HONGMA MEDIA CULTURE DEVELOPMENT CO LTD
Original Assignee
BEIJING HONGMA MEDIA CULTURE DEVELOPMENT 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 HONGMA MEDIA CULTURE DEVELOPMENT CO LTD filed Critical BEIJING HONGMA MEDIA CULTURE DEVELOPMENT CO LTD
Priority to CN201610914980.5A priority Critical patent/CN106504344B/en
Publication of CN106504344A publication Critical patent/CN106504344A/en
Application granted granted Critical
Publication of CN106504344B publication Critical patent/CN106504344B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B11/00Apparatus for validating or cancelling issued tickets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a kind of ticket checking method of electronic ticket, system and a kind of equipment.Wherein, the method includes:The dynamic two-dimension code picture is reduced into the first ciphertext by the dynamic two-dimension code picture of scanning electron ticket;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, check code is obtained;Whether the timestamp information of the electronic ticket that contrast is obtained is consistent with current time, when consistent, whether the check code for inquiring about the ticket number binding of server storage according to the ticket number of the electronic ticket for obtaining is consistent with the check code of the electronic ticket for obtaining, when consistent, the ticket checking state of the ticket number of the electronic ticket for obtaining is inquired about, when ticket checking state is ticket checking, prompting ticket checking failure, when ticket checking state is non-ticket checking, it is ticket checking by the status modifier, ticket checking flow process terminates.The technical scheme that the present invention is provided, solves the technical problem of existing two-dimensional code electronic ticket data safety verification, further increases two-dimensional code electronic ticket data safety coefficient.

Description

A kind of ticket checking method of electronic ticket, system and a kind of equipment
Technical field
The present invention relates to electronic ticket verification technique field, more particularly to a kind of ticket checking method of electronic ticket, system and one kind Equipment.
Background technology
Planar bar code technology is put into ticketing service industry using being a kind of mode widely, is bought in ticketing website Then 2 D code information one pictures of generation are presented, it is possible to easily manage and make by one ticket by intelligent terminal With electronic ticket, at present, therefore Quick Response Code encoding mechanism becomes electricity because of the information containing larger capacity and the high efficiency of scanning parsing Widely used one kind of cervical orifice of uterus ticket represents form.
Inventor has found in the course of the study, the mode quilt such as existing Quick Response Code is easy to by taking pictures, screenshotss, printing Duplication is stolen, and the electronic ticket data information of user can not obtain safe protection, therefore, currently uses a kind of with not reproducible The dynamic two-dimension code electronic ticket generation technique of property is solving above-mentioned safety problem.Inventor has found in the course of the study, above-mentioned Dynamic two-dimension code electronic ticket in stamps, miniature sheets, first day covers, etc. collected by philatelists Qualify Phase, by being capable of identify that the intelligent terminal of Quick Response Code, such as:PDA carries out stamps, miniature sheets, first day covers, etc. collected by philatelists When checking, be able to validate only the verity of the Quick Response Code, be not able to verify that the stamps, miniature sheets, first day covers, etc. collected by philatelists that the Quick Response Code is represented verity and Uniqueness.Stamps, miniature sheets, first day covers, etc. collected by philatelists such as through transferring the possession of, both parties are owned by the dynamic two-dimension code, cause the rights and interests of rear proved recipe and the damage of property Lose.Accordingly, it would be desirable to a kind of proof scheme of electronic ticket, it is ensured that the Quick Response Code that is checked is true and unique, protects the conjunction of ticket-buyer Method interests.
Content of the invention
In order to solve above-mentioned technical problem, the invention provides a kind of verification method of electronic ticket, system and a kind of equipment, Solve the technical problem of existing two-dimensional code electronic ticket data safety verification.
One aspect of the present invention provides a kind of ticket checking method of electronic ticket, including:
The dynamic two-dimension code picture is reduced into the first ciphertext by step one, the dynamic two-dimension code picture of scanning electron ticket; First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, check code is obtained;
Whether the timestamp information of the electronic ticket that step 2, contrast are obtained is consistent with current time, when inconsistent, points out Ticket checking fails, and exits ticket checking program;When consistent, step 3 is entered;
Step 3, the check code that is bound according to the ticket number of the ticket number inquiry server storage of the electronic ticket for obtaining Whether consistent with the check code of the electronic ticket for obtaining, when inconsistent, ticket checking failure pointed out, ticket checking program is exited, when consistent, is entered Enter step 4;
The ticket checking state of the ticket number of the electronic ticket that step 4, inquiry are obtained, when ticket checking state is ticket checking, prompting is tested Ticket fails, and exits ticket checking program;When ticket checking state is non-ticket checking, it is ticket checking by the status modifier, ticket checking flow process terminates.
Further, in the step one, the dynamic two-dimension code picture of scanning electron ticket, by the dynamic two-dimension code picture It is reduced into the first ciphertext;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, check code is obtained, Including:
The complete dynamic two-dimension code picture of scanning electron ticket, parses second plaintext and the second ciphertext;Will by private key Second ciphertext is decrypted, and obtains timestamp, the first ciphertext;
The first ciphertext is decrypted by public key, obtain first in plain text, the first plaintext is split as check code and ticket number.
Further, the second plaintext includes but is not limited to self-defined extension information.
Further, unique mark of the ticket number for electronic ticket, the unique ID for storing in the server, each ID pair The attribute information of the electronic ticket is answered.
Further, the check code is the additional identification of electronic ticket voucher, gives every electronics according to custom rule The unique value of ticket, for distinguishing state of the identical electronic ticket voucher in different user sides.
Further, the step 3 also includes:Server storage is inquired about according to the ticket number of the electronic ticket for obtaining The ticket number whether there is, and when not existing, points out ticket checking failure, exits ticket checking program.
Further, the step 3 also includes:Server storage is inquired about according to the ticket number of the electronic ticket for obtaining Whether the ticket number is bound with user side ID, during without binding information, is pointed out ticket checking failure, is exited ticket checking program.
Present invention also offers a kind of ticket checking system of electronic ticket, including:
The dynamic two-dimension code picture, for the dynamic two-dimension code picture of scanning electron ticket, is reduced into by scan module One ciphertext;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, check code is obtained;
Whether contrast module, the timestamp information for contrasting the electronic ticket for obtaining are consistent with current time, inconsistent When, ticket checking failure is pointed out, ticket checking program is exited;When consistent, the first enquiry module is transferred;
First enquiry module, the ticket number for the ticket number inquiry server storage according to the electronic ticket for obtaining are tied up Whether fixed check code is consistent with the check code of the electronic ticket for obtaining, and when inconsistent, point out ticket checking failure, exits ticket checking journey Sequence, when consistent, transfers the second enquiry module;
Second enquiry module, for inquiring about the ticket checking state of the ticket number of the electronic ticket for obtaining, ticket checking state is to test During ticket, ticket checking failure is pointed out, ticket checking program is exited;Ticket checking state be non-ticket checking when, by the status modifier be ticket checking, ticket checking stream Journey terminates.
Further, the scan module, including:
Scanning element, for the complete dynamic two-dimension code picture of scanning electron ticket, parses second plaintext and second close Text;
Decryption unit, for decrypting the second ciphertext by private key, obtains timestamp, the first ciphertext;By public key by One ciphertext is decrypted, and obtains first in plain text, the first plaintext is split as check code and ticket number.
Further, the second plaintext includes but is not limited to self-defined extension information.
Further, unique mark of the ticket number for electronic ticket, the unique ID for storing in the server, each ID pair The attribute information of the electronic ticket is answered.
Further, the check code is the additional identification of electronic ticket voucher, gives every electronics according to custom rule The unique value of ticket, for distinguishing state of the identical electronic ticket voucher in different user sides.
Further, first enquiry module also includes:
First query unit, for inquiring about the ticket number of server storage according to the ticket number of the electronic ticket for obtaining be No presence, when not existing, points out ticket checking failure, exits ticket checking program.
Second query unit, for inquiring about the ticket number of server storage according to the ticket number of the electronic ticket for obtaining be No and user side ID binds, and during without binding information, points out ticket checking failure, exits ticket checking program.
Present invention also offers a kind of equipment, including the system described in aforementioned any one.
The dynamic two-dimension code picture is reduced by the present invention by step one, the dynamic two-dimension code picture of scanning electron ticket Into the first ciphertext;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, check code is obtained;Step 2nd, whether the timestamp information of the electronic ticket that contrast is obtained is consistent with current time, when inconsistent, point out ticket checking failure, moves back Go out ticket checking program;When consistent, step 3 is entered;Step 3, the ticket number inquiry server storage according to the electronic ticket for obtaining The ticket number binding check code whether consistent with the check code of the electronic ticket for obtaining, when inconsistent, point out ticket checking to fail, Ticket checking program is exited, when consistent, step 4 is entered;The ticket checking state of the ticket number of the electronic ticket that step 4, inquiry are obtained, tests When ticket state is ticket checking, ticket checking failure is pointed out, ticket checking program is exited;When ticket checking state is non-ticket checking, by the status modifier it is Ticket checking, ticket checking flow process terminate.The technical scheme that the present invention is provided, solves existing two-dimensional code electronic ticket data safety verification Technical problem, further increases the safety coefficient that two-dimensional code electronic ticket is used.
Description of the drawings
Fig. 1 is a kind of flow chart of the embodiment one of the ticket checking method of the electronic ticket according to the present invention;
Fig. 2 is a kind of structured flowchart of the embodiment two of the ticket checking system of the electronic ticket according to the present invention;
Fig. 3 is the structured flowchart of the scan module according to the present invention;
Fig. 4 is the structured flowchart of the first enquiry module according to the present invention;
Fig. 5 is a kind of structured flowchart of the embodiment three of the equipment according to the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention in Accompanying drawing, to the embodiment of the present invention in technical scheme be clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Embodiment in based on the present invention, ordinary skill people The every other embodiment obtained under the premise of creative work is not made by member, should all belong to the model of present invention protection Enclose.
It should be noted that description and claims of this specification and the term " first " in above-mentioned accompanying drawing, " Two " it is etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except here diagram or Order beyond those of description is implemented.Additionally, term " comprising " and " having " and their any deformation, it is intended that cover Lid is non-exclusive to be included, and for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to Those steps that clearly lists or unit, but may include clearly not list or for these processes, method, product Or intrinsic other steps of equipment or unit.
Embodiment one
With reference to Fig. 1, the flow chart that Fig. 1 shows an a kind of embodiment of the ticket checking method of electronic ticket of present invention offer. Including:
The dynamic two-dimension code picture is reduced into the first ciphertext by step one, the dynamic two-dimension code picture of scanning electron ticket; First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, check code is obtained.
Whether the timestamp information of the electronic ticket that step 2, contrast are obtained is consistent with current time, when inconsistent, points out Ticket checking fails, and exits ticket checking program;When consistent, step 3 is entered.
Step 3, the check code that is bound according to the ticket number of the ticket number inquiry server storage of the electronic ticket for obtaining Whether consistent with the check code of the electronic ticket for obtaining, when inconsistent, ticket checking failure pointed out, ticket checking program is exited, when consistent, is entered Enter step 4.
The ticket checking state of the ticket number of the electronic ticket that step 4, inquiry are obtained, when ticket checking state is ticket checking, prompting is tested Ticket fails, and exits ticket checking program;When ticket checking state is non-ticket checking, it is ticket checking by the status modifier, ticket checking flow process terminates.
Further, in the step one, the dynamic two-dimension code picture of scanning electron ticket, by the dynamic two-dimension code picture It is reduced into the first ciphertext;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, check code is obtained, Including:
The complete dynamic two-dimension code picture of scanning electron ticket, parses second plaintext and the second ciphertext;Will by private key Second ciphertext is decrypted, and obtains timestamp, the first ciphertext;
The first ciphertext is decrypted by public key, obtain first in plain text, the first plaintext is split as check code and ticket number.
Further, the second plaintext includes but is not limited to self-defined extension information.
Further, unique mark of the ticket number for electronic ticket, the unique ID for storing in the server, each ID pair The attribute information of the electronic ticket is answered.
Further, the check code is the additional identification of electronic ticket voucher, gives every electronics according to custom rule The unique value of ticket, for distinguishing state of the identical electronic ticket voucher in different user sides.
Further, the step 3 also includes:Server storage is inquired about according to the ticket number of the electronic ticket for obtaining The ticket number whether there is, and when not existing, points out ticket checking failure, exits ticket checking program.
Further, the step 3 also includes:Server storage is inquired about according to the ticket number of the electronic ticket for obtaining Whether the ticket number is bound with user side ID, during without binding information, is pointed out ticket checking failure, is exited ticket checking program.
The embodiment of the present invention one passes through step one, the dynamic two-dimension code picture of scanning electron ticket, by the dynamic two-dimension code Picture is reduced into the first ciphertext;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, inspection is obtained Look into code;Whether the timestamp information of the electronic ticket that step 2, contrast are obtained is consistent with current time, and when inconsistent, prompting is tested Ticket fails, and exits ticket checking program;When consistent, step 3 is entered;Step 3, the ticket number inquiry clothes according to the electronic ticket for obtaining Whether the check code of the ticket number binding of business device storage is consistent with the check code of the electronic ticket for obtaining, and when inconsistent, points out Ticket checking fails, and exits ticket checking program, when consistent, enters step 4;The ticket number of the electronic ticket that step 4, inquiry are obtained is tested Ticket state, when ticket checking state is ticket checking, points out ticket checking failure, exits ticket checking program;When ticket checking state is non-ticket checking, by the shape State is revised as ticket checking, and ticket checking flow process terminates.The technical scheme that the embodiment of the present invention one is provided, solves existing two-dimensional code electronic The technical problem of ticket data safety verification, further increases the safety coefficient that two-dimensional code electronic ticket is used.
Embodiment two
With reference to Fig. 2, Fig. 2 shows a kind of structure of an embodiment of the ticket checking system 200 of electronic ticket of present invention offer Block diagram.Including:
Scan module 21, for the dynamic two-dimension code picture of scanning electron ticket, the dynamic two-dimension code picture is reduced into First ciphertext;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, check code is obtained;
Whether contrast module 22, the timestamp information for contrasting the electronic ticket for obtaining are consistent with current time, differ During cause, ticket checking failure is pointed out, ticket checking program is exited;When consistent, the first enquiry module is transferred;
First enquiry module 23, for the ticket number that the ticket number according to the electronic ticket for obtaining inquires about server storage Whether the check code of binding is consistent with the check code of the electronic ticket for obtaining, and when inconsistent, point out ticket checking failure, exits ticket checking journey Sequence, when consistent, transfers the second enquiry module;
Second enquiry module 24, for inquiring about the ticket checking state of the ticket number of the electronic ticket for obtaining, ticket checking state is for During ticket checking, ticket checking failure is pointed out, ticket checking program is exited;Ticket checking state be non-ticket checking when, by the status modifier be ticket checking, ticket checking Flow process terminates.
Further, with reference to Fig. 3, the scan module 21, including:
Scanning element 211, for the complete dynamic two-dimension code picture of scanning electron ticket, parses second plaintext and second Ciphertext;
Decryption unit 212, for decrypting the second ciphertext by private key, obtains timestamp, the first ciphertext;Will by public key First ciphertext is decrypted, and obtains first in plain text, the first plaintext is split as check code and ticket number.
Further, the second plaintext includes but is not limited to self-defined extension information.
Further, unique mark of the ticket number for electronic ticket, the unique ID for storing in the server, each ID pair The attribute information of the electronic ticket is answered.
Further, the check code is the additional identification of electronic ticket voucher, gives every electronics according to custom rule The unique value of ticket, for distinguishing state of the identical electronic ticket voucher in different user sides.
Further, with reference to Fig. 4, first enquiry module 23 also includes:
First query unit 231, for the ticket that the ticket number according to the electronic ticket for obtaining inquires about server storage Number whether there is, when not existing, point out ticket checking failure, exit ticket checking program.
Second query unit 232, for the ticket that the ticket number according to the electronic ticket for obtaining inquires about server storage Number whether bind with user side ID, during without binding information, point out ticket checking failure, exit ticket checking program.
The method that the implementation method and flow process of the principle of the technical scheme provided by this enforcement two are provided with embodiment one is former Reason is corresponding, and therefore, the present embodiment two has not detailed part to the description of present principles, refer to embodiment one.
Embodiment of the present invention two-way over-scans the dynamic two-dimension code picture of module scans electronic ticket, by the dynamic two-dimension code Picture is reduced into the first ciphertext;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, inspection is obtained Look into code;Whether the timestamp information of the electronic ticket that contrast module contrast is obtained is consistent with current time, and when inconsistent, prompting is tested Ticket fails, and exits ticket checking program;When consistent, the first enquiry module is transferred;First enquiry module is according to the electronic ticket for obtaining Whether the check code of the ticket number binding of ticket number inquiry server storage is consistent with the check code of the electronic ticket for obtaining, no When consistent, ticket checking failure pointed out, ticket checking program is exited, when consistent, is transferred the second enquiry module;The inquiry of second enquiry module is obtained The electronic ticket ticket number ticket checking state, ticket checking state be ticket checking when, point out ticket checking failure, exit ticket checking program;Test When ticket state is non-ticket checking, it is ticket checking by the status modifier, ticket checking flow process terminates.The technical side that the embodiment of the present invention two is provided Case, solves the technical problem of existing two-dimensional code electronic ticket data safety verification, further increases the use of two-dimensional code electronic ticket Safety coefficient.
Embodiment three
With reference to Fig. 5, Fig. 5 shows a kind of equipment 300 of present invention offer, including a kind of electronic ticket described in embodiment two Ticket checking system 200.
The embodiment of the present invention three passes through step one, the dynamic two-dimension code picture of scanning electron ticket, by the dynamic two-dimension code Picture is reduced into the first ciphertext;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, inspection is obtained Look into code;Whether the timestamp information of the electronic ticket that step 2, contrast are obtained is consistent with current time, and when inconsistent, prompting is tested Ticket fails, and exits ticket checking program;When consistent, step 3 is entered;Step 3, the ticket number inquiry clothes according to the electronic ticket for obtaining Whether the check code of the ticket number binding of business device storage is consistent with the check code of the electronic ticket for obtaining, and when inconsistent, points out Ticket checking fails, and exits ticket checking program, when consistent, enters step 4;The ticket number of the electronic ticket that step 4, inquiry are obtained is tested Ticket state, when ticket checking state is ticket checking, points out ticket checking failure, exits ticket checking program;When ticket checking state is non-ticket checking, by the shape State is revised as ticket checking, and ticket checking flow process terminates.The technical scheme that the embodiment of the present invention three is provided, solves existing two-dimensional code electronic The technical problem of ticket data safety verification, further increases the safety coefficient that two-dimensional code electronic ticket is used.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore which is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention do not limited by described sequence of movement because According to the present invention, some steps can be carried out using other orders or simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module are not necessarily of the invention Necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the portion that describes in detail Point, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only the schematically division of for example described unit, is only one kind Division of logic function, can have when actually realizing other dividing mode, for example multiple units or component can in conjunction with or can To be integrated into another system, or some features can be ignored, or not execute.Another, shown or discussed each other Coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication connection by some interfaces, device or unit, Can be electrical or other forms.
The unit that illustrates as separating component can be or may not be physically separate, aobvious as unit The part for showing can be or may not be physical location, you can be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
It may be noted that according to the needs that implements, each step/part described in this application can be split as more multistep The part operation of two or more step/parts or step/part also can be combined into new step/part by suddenly/part, To realize the purpose of the present invention.
Above-mentioned the method according to the invention can be realized in hardware, firmware, or is implemented as being storable in recording medium Software or computer code in (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through network download Original storage in long-range recording medium or nonvolatile machine readable media and the meter in local recording medium will be stored in Calculation machine code, so as to method described here can be stored in using general purpose computer, application specific processor or programmable or special With the such software processes in the recording medium of hardware (such as ASIC or FPGA).It is appreciated that computer, processor, micro- Processor controller or programmable hardware include can storing or receive software or computer code storage assembly (for example, RAM, ROM, flash memory etc.), when the software or computer code by computer, processor or hardware access and execute when, realize here The processing method of description.Additionally, when general purpose computer accesses the code of the process being shown in which for realization, the execution of code The special-purpose computer that general purpose computer is converted to the process being shown in which for execution.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by the scope of the claims.

Claims (14)

1. a kind of ticket checking method of electronic ticket, it is characterised in that include:
The dynamic two-dimension code picture is reduced into the first ciphertext by step one, the dynamic two-dimension code picture of scanning electron ticket;Decryption First ciphertext, obtains the timestamp information of the electronic ticket, electronic ticket ticket number, check code;
Whether the timestamp information of the electronic ticket that step 2, contrast are obtained is consistent with current time, when inconsistent, points out ticket checking Failure, exits ticket checking program;When consistent, step 3 is entered;
Whether the check code that step 3, the ticket number for inquiring about server storage according to the ticket number of the electronic ticket for obtaining are bound Consistent with the check code of the electronic ticket for obtaining, when inconsistent, ticket checking failure is pointed out, ticket checking program is exited, when consistent, enter step Rapid four;
The ticket checking state of the ticket number of the electronic ticket that step 4, inquiry are obtained, when ticket checking state is ticket checking, points out ticket checking to lose Lose, exit ticket checking program;When ticket checking state is non-ticket checking, it is ticket checking by the status modifier, ticket checking flow process terminates.
2. the method for claim 1, it is characterised in that in the step one, the dynamic two-dimension code figure of scanning electron ticket The dynamic two-dimension code picture is reduced into the first ciphertext by piece;First ciphertext is decrypted, the timestamp letter of the electronic ticket is obtained Breath, electronic ticket ticket number, check code, including:
The complete dynamic two-dimension code picture of scanning electron ticket, parses second plaintext and the second ciphertext;By private key by second Ciphertext is decrypted, and obtains timestamp, the first ciphertext;
The first ciphertext is decrypted by public key, obtain first in plain text, the first plaintext is split as check code and ticket number.
3. method as claimed in claim 2, it is characterised in that the second plaintext includes but is not limited to self-defined extension letter Breath.
4. the method as described in one of claim 1-3, it is characterised in that unique mark of the ticket number for electronic ticket, The unique ID stored in server, each ID have corresponded to the attribute information of the electronic ticket.
5. the method as described in one of claim 1-3, it is characterised in that additional mark of the check code for electronic ticket voucher Know, according to the unique value that custom rule gives every electronic ticket, for distinguishing identical electronic ticket voucher in different user sides In state.
6. the method for claim 1, it is characterised in that the step 3 also includes:According to the electronic ticket for obtaining The ticket number of ticket number inquiry server storage whether there is, and when not existing, points out ticket checking failure, exits ticket checking program.
7. the method for claim 1, it is characterised in that the step 3 also includes:According to the electronic ticket for obtaining Whether the ticket number of ticket number inquiry server storage is bound with user side ID, during without binding information, points out ticket checking failure, Exit ticket checking program.
8. the ticket checking system of a kind of electronic ticket, it is characterised in that include:
The dynamic two-dimension code picture, for the dynamic two-dimension code picture of scanning electron ticket, is reduced into first close by scan module Text;First ciphertext is decrypted, the timestamp information of the electronic ticket, electronic ticket ticket number, check code is obtained;
Whether contrast module, the timestamp information for contrasting the electronic ticket for obtaining are consistent with current time, when inconsistent, carry Show that ticket checking fails, exit ticket checking program;When consistent, the first enquiry module is transferred;
First enquiry module, inquires about ticket number binding of server storage for the ticket number according to the electronic ticket for obtaining Whether check code is consistent with the check code of the electronic ticket for obtaining, and when inconsistent, point out ticket checking failure, exits ticket checking program, and one During cause, the second enquiry module is transferred;
Second enquiry module, for inquiring about the ticket checking state of the ticket number of the electronic ticket for obtaining, when ticket checking state is ticket checking, Prompting ticket checking failure, exits ticket checking program;Ticket checking state be non-ticket checking when, by the status modifier be ticket checking, ticket checking flow process tie Beam.
9. system as claimed in claim 8, it is characterised in that the scan module, including:
Scanning element, for the complete dynamic two-dimension code picture of scanning electron ticket, parses second plaintext and the second ciphertext;
Decryption unit, for decrypting the second ciphertext by private key, obtains timestamp, the first ciphertext;Close by first by public key Text decryption, obtains first in plain text, the first plaintext is split as check code and ticket number.
10. system as claimed in claim 9, it is characterised in that the second plaintext includes but is not limited to self-defined extension letter Breath.
11. systems as described in one of claim 8-10, it is characterised in that unique mark of the ticket number for electronic ticket, The unique ID for storing in the server, each ID have corresponded to the attribute information of the electronic ticket.
12. systems as described in one of claim 8-10, it is characterised in that additional mark of the check code for electronic ticket voucher Know, according to the unique value that custom rule gives every electronic ticket, for distinguishing identical electronic ticket voucher in different user sides In state.
13. systems as claimed in claim 8, it is characterised in that first enquiry module also includes:
Whether the first query unit, the ticket number for the ticket number inquiry server storage according to the electronic ticket for obtaining deposit When not existing, ticket checking failure is being pointed out, ticket checking program is being exited.
Second query unit, for the ticket number inquiry server storage according to the electronic ticket that obtains the ticket number whether with User side ID binds, and during without binding information, points out ticket checking failure, exits ticket checking program.
14. a kind of equipment, it is characterised in that include the system as described in any one of claim 8-13.
CN201610914980.5A 2016-10-20 2016-10-20 A kind of ticket checking method of electronic ticket, system and a kind of equipment Active CN106504344B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610914980.5A CN106504344B (en) 2016-10-20 2016-10-20 A kind of ticket checking method of electronic ticket, system and a kind of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610914980.5A CN106504344B (en) 2016-10-20 2016-10-20 A kind of ticket checking method of electronic ticket, system and a kind of equipment

Publications (2)

Publication Number Publication Date
CN106504344A true CN106504344A (en) 2017-03-15
CN106504344B CN106504344B (en) 2019-03-15

Family

ID=58319251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610914980.5A Active CN106504344B (en) 2016-10-20 2016-10-20 A kind of ticket checking method of electronic ticket, system and a kind of equipment

Country Status (1)

Country Link
CN (1) CN106504344B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609873A (en) * 2017-09-08 2018-01-19 阿里巴巴集团控股有限公司 A kind of barcode scanning safe checking method and device
CN109035427A (en) * 2018-07-25 2018-12-18 厦门路桥信息股份有限公司 Offline verification method, medium, terminal device and the device of electronics one-way ticket
CN109118597A (en) * 2018-08-29 2019-01-01 上海哔哩哔哩科技有限公司 Intelligent terminal, ticketing service verifying system, method and computer readable storage medium
CN109448138A (en) * 2018-09-30 2019-03-08 山东知味行网络科技有限公司 A kind of electronic ticket system and method
CN110457971A (en) * 2018-05-07 2019-11-15 腾讯科技(深圳)有限公司 Repeat the detection method and device of information of identification code

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4025329B2 (en) * 2005-01-14 2007-12-19 デジタル・インフォメーション・テクノロジー株式会社 Training system and server device for training system
EP2124503A1 (en) * 2007-08-24 2009-11-25 Huawei Technologies Co., Ltd. Method, system, terminal and server for realizing the service based on multimedia message service
CN103400418A (en) * 2013-07-26 2013-11-20 电子科技大学 Electronic ticket sale and check method based on NFC (Near Field Communication) mobile terminal
CN105405035A (en) * 2015-10-26 2016-03-16 北京红马传媒文化发展有限公司 Method of determining two-dimension-code electronic ticket authenticity based on external standard time
CN105574629A (en) * 2014-10-13 2016-05-11 航天信息股份有限公司 Image code-based electronic ticket checking method and system
CN105976435A (en) * 2016-06-01 2016-09-28 杭州视界科技有限公司 Station electronic ticket booking, automatic checking method and system thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4025329B2 (en) * 2005-01-14 2007-12-19 デジタル・インフォメーション・テクノロジー株式会社 Training system and server device for training system
EP2124503A1 (en) * 2007-08-24 2009-11-25 Huawei Technologies Co., Ltd. Method, system, terminal and server for realizing the service based on multimedia message service
CN103400418A (en) * 2013-07-26 2013-11-20 电子科技大学 Electronic ticket sale and check method based on NFC (Near Field Communication) mobile terminal
CN105574629A (en) * 2014-10-13 2016-05-11 航天信息股份有限公司 Image code-based electronic ticket checking method and system
CN105405035A (en) * 2015-10-26 2016-03-16 北京红马传媒文化发展有限公司 Method of determining two-dimension-code electronic ticket authenticity based on external standard time
CN105976435A (en) * 2016-06-01 2016-09-28 杭州视界科技有限公司 Station electronic ticket booking, automatic checking method and system thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609873A (en) * 2017-09-08 2018-01-19 阿里巴巴集团控股有限公司 A kind of barcode scanning safe checking method and device
US10599900B2 (en) 2017-09-08 2020-03-24 Alibaba Group Holding Limited Code scanning security check method and apparatus
CN107609873B (en) * 2017-09-08 2020-07-14 阿里巴巴集团控股有限公司 Code scanning safety verification method and device
US10755064B2 (en) 2017-09-08 2020-08-25 Alibaba Group Holding Limited Code scanning security check method and apparatus
CN110457971A (en) * 2018-05-07 2019-11-15 腾讯科技(深圳)有限公司 Repeat the detection method and device of information of identification code
CN109035427A (en) * 2018-07-25 2018-12-18 厦门路桥信息股份有限公司 Offline verification method, medium, terminal device and the device of electronics one-way ticket
CN109118597A (en) * 2018-08-29 2019-01-01 上海哔哩哔哩科技有限公司 Intelligent terminal, ticketing service verifying system, method and computer readable storage medium
CN109448138A (en) * 2018-09-30 2019-03-08 山东知味行网络科技有限公司 A kind of electronic ticket system and method
CN109448138B (en) * 2018-09-30 2021-03-16 山东知味行网络科技有限公司 Electronic ticket system and method

Also Published As

Publication number Publication date
CN106504344B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN106504344A (en) A kind of ticket checking method of electronic ticket, system and a kind of equipment
US9619706B2 (en) Security scheme for authenticating object origins
CN109615383A (en) Data based on block chain deposit card, acquisition methods and device
CN109522735A (en) A kind of data permission verification method and device based on intelligent contract
CN110520862A (en) The cryptographic Hash of block chain for bi-directional chaining
CN106600717A (en) Method and system for online ticket checking based on client interface, and intelligent equipment
US10958665B2 (en) Consumer and business anti-counterfeiting services using identification tags
CN106780781B (en) A kind of method, system and the smart machine of user terminal ticket checking
CN107256479B (en) Transaction mode classification execution method and device
EP2913973A1 (en) Trusted NFC smart poster tag
CN101859426A (en) Electronic ticket service system and realizing method thereof
CN107342866A (en) Electronic document verification method, equipment and system
KR101798603B1 (en) Manufacturing method of label comprising a code for certificating an item's authentication
CN106157064A (en) The Antiforge system that identification code associates with image
CN101964710B (en) Digital signature and signature authenticating method
CN114365134A (en) Secure identity card using unclonable functions
JP6869989B2 (en) Secure item identification based on physical label characteristics
CN111582935A (en) Block chain-based integral mutual identification method and system
CN112597525B (en) Data processing method and device based on privacy protection and server
CN106651371A (en) Electronic ticket producing method and system and device
CN109831414A (en) A kind of delivery management method and system of electronic invoice
JP5232710B2 (en) Document protection system log display method
CN109413099A (en) Mixed cloud encryption communication method, device and electronic equipment based on certificate
CN206481316U (en) Information acquisition system and system of real name information gathering, application system
CN101369296A (en) Method and system for implementing off-line printing limitation

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
GR01 Patent grant
GR01 Patent grant