Ticketing service application system based on the close algorithm of state, booking method and ticket management method
Technical field
The present invention relates to ticketing service application apparatus and ticketing service application process, more particularly, to a kind of ticketing service based on the close algorithm of state should
With system, booking method and ticket management method.
Background technology
With the arriving of digital times, the level of information technology increasingly improves, and electronic degree progressively develops, and gives people
Daily life, work bring great convenience and benefit, traditional papery admission ticket is provided and delivered, purchase of queuing up, worry admission ticket lose
The limitation such as mistake, can not meet the demand of vast customers and gradually be replaced by electronic ticket, then electronic ticket is arisen at the historic moment.
People have achieved electronic ticket manor commercially to the accreditation of electronic ticket and dependence, and electronic ticket also and is not merely confined to electronics
The narrow scope of form bill, and it is by mean of the application upgrade of generation information technology, system level.Compare traditional papery
Admission ticket, electronic ticket convenient, fast, safely, the advantage such as save time, and penetrates into all trades and professions successively, it can be applicable to film ticket/electricity
Shadow card, entrance ticket/group ticket/individual's ticket, various show ticket, electronic offers coupons etc., the life style of people, custom
Also change therewith, trudge, queue up from former vote buying needs, various certificate and other complicated processes, only need to today
The mouse that makes a motion in a few minutes can easily solve, and electronic ticket is thus walked on the main stem of fashional consumption.
In the prior art, most of electronic bill application is all to carry out ticketing in portal website, then passes through note shape
Electronic ticket voucher is sent on mobile terminal formula, and user exchanges entity ticket for electronic ticket voucher decorrelation trade company and enters to exercise again
It is primarily present following problem with, this electronic bill application process and system:
A, traditional electronic ticket are all to pass through short message sending to terminal with digital coding form or Quick Response Code form, and it is carrying
In body storage and transmitting procedure, not do not encrypt, be easily cracked, and consumer after receiving electronic ticket in addition it is also necessary to by should
Note to entity retail shop go exchange entity ticket, due to entity ticket exchange, cash, verify, be all artificial treatment, thus its
Inefficiency, error rate is higher.
B, conditional electronic ticketing service application can only be by internet customers or phone carries out interaction with consumer it is impossible to and consumer
Carry out effective real-time interactive, transaction is brought inconvenience.
C, the carrier major part due to conditional electronic ticketing service are all to adopt short message mode, and the length of note itself is general all
It is 70 characters or 160 English alphabets, the quantity of information that it is carried is less.
According to above some as can be seen that existing ticketing service application system exist ticket information be easily cracked, system with
The defect such as the interaction capabilities of user are poor, the bearer cap of information carrier is little, accordingly, it is difficult to meet the application to ticketing system for the market
Demand.
Content of the invention
The technical problem to be solved in the present invention is, provides a kind of ticketing service application system based on the close algorithm of state, booking side
Method and ticket management method, this ticketing service application system is encrypted to ticket information by the close algorithm of state, thus improve information
Safety, meanwhile, this ticketing service application system also achieves man-machine real-time, interactive, and meets ticketing service application to information
The requirement of bearer capabilities.
For solving above-mentioned technical problem, the present invention adopts the following technical scheme that.
A kind of ticketing service application system based on the close algorithm of state, it includes:Support that smart card, the ticketing service of the close algorithm of state are whole
End, ticket management subsystem, key management subsystem and encryption equipment, wherein, described smart card is used for storing ticket information;Described
It is embedded with PSAM card in ticket terminals, this ticket terminals is used for smart card reader data, and hand over ticket management subsystem
Mutually communicate;Described ticket management subsystem is used for processing ticketing service business, capital settlement and operation management;Described key management subsystem
Unite for distribute, transmit and backup intelligence card key, and with ticket management subsystem interactive correspondence;Described encryption equipment is to prop up
Hold the encryption device of the close algorithm of state, it is used for generating, store and verify the key of smart card, and hand over key management subsystem
Mutually communicate.
Preferably, described ticket information includes any one in ticketing service mark, word, numeral, symbol, letter and picture
Or several combinations.
Preferably, described ticketing service business includes generating, manages and checking ticket information, and shows and store the result,
And the result is fed back to ticket terminals.
Preferably, described capital settlement includes to the calculating being traded expense between holder, ticket counter and operator,
And execute money-capital transfer operation.
Preferably, operation management includes smart card management, terminal management, ticketing service business, allocation settlement, Report Server Management and is
System is safeguarded.
Preferably, described ticket terminals include smart card reader module, information storage module, information display module, net
Network communication module and PSAM card, wherein, described smart card reader module is used for reading the ticket information of smart cards for storage, or uses
In the ticket information write smart card feeding back to ticket management subsystem;Described information memory module is used for storing smart card
Ticket information;Described information display module is used for receiving, showing the information that ticket management subsystem feeds back to;Described network service
Module is Internet communication interface, and it includes network card interface, Wifi communication interface and GPRS communication interface.
Preferably, described smart card is CPU card, and it includes contact type CPU card and contactless CPU card.
Preferably, described ticket terminals are PDA or POS.
A kind of booking method for above-mentioned ticketing service application system, it comprises the steps:Step S100:Ticket terminals are read
Smart card, ticket terminals carry out legitimate verification by the close algorithm of state to smart card;Step S101:Judge whether smart card closes
Method, if so, then execution step S102, if it is not, then execution step S109;Step S102, obtains the ticket information of smart card, and root
Generate Ticketing information according to ticket information;Step S103, ticket terminals are encrypted to Ticketing information by PSAM card;Step
S104, ticket terminals send the Ticketing information of encryption to ticket management subsystem;Step S105, ticket terminals judge ticketing service
Whether management subsystem responds, if so, execution step S106, if it is not, then execution step S107;Step S106, ticket terminals lead to
Cross the data that PSAM card returns to ticket management subsystem to be decrypted, execution step S108 afterwards;Step S107, ticket terminals
Judge whether this request reaches largest request number, if so, then send Fail Transaction request to ticket management subsystem, execute afterwards
Step S109, if it is not, then number of request adds 1, return to step S104 afterwards;Step S108, ticket terminals judge that this booking transaction is
No success, if it is not, then execution step S109, if so, then deducts dealing money, and new ticket information is write smart card, it
Print bill of exchange, execution step S110 afterwards;Step S109:Mistake in prompting, execution step S110 afterwards;Step S110:
Terminate booking.
A kind of ticket management method for above-mentioned ticketing service application system, it comprises the steps:Step S200, ticketing service pipe
Reason subsystem, when receiving the transaction request of ticket terminals, first judges whether the IP address of this ticket terminals is legal, if so, then connects
Receive this transaction request and obtain Transaction Information, execution step S201 afterwards, if it is not, then return miscue information.Step S201,
After ticket management subsystem receives Transaction Information, this Transaction Information is transmitted to key management subsystem, key management
System is decrypted to this Transaction Information using encryption equipment, and decrypted result is returned to ticket management subsystem;Step S202,
After ticket management subsystem receives decrypted result, judge whether this Transaction Information has been filed on, if it is not, then obtaining the ticket of smart card
Business information, and this information is verified, execution step S203 afterwards, if so, then return miscue information;Step S203,
Ticket management subsystem judges whether the smart card amount of money is more than or equal to dealing money, if so, then determines whether corresponding door
Ticket, execution step S204 afterwards, if it is not, then return miscue information;Step S204, deduction smart card is deposited in data base
The corresponding amount of money of storage, and preserve transaction record;Step S205, ticket management subsystem generates ticketing information, and is sent to key
Management subsystem, key management subsystem is encrypted to ticketing information using the close algorithm of state of encryption equipment, afterwards by encryption knot
Fruit returns to ticket management subsystem;Step S206, the encrypted result that ticket management subsystem is received sends to ticketing service eventually
End;Step S207, ticket management process completes.
In ticketing service application system disclosed by the invention, ticket terminals obtain ticket information by chip card reader, and pass through
PSAM card is authenticated to the legitimacy of smart card, after certification success, sends ticket purchasing request, ticketing service pipe to ticket management subsystem
Reason subsystem, after receiving ticket purchasing request, Ticketing information is sent to key management subsystem, key management subsystem passes through
Encryption equipment is decrypted and is back to ticket management subsystem to this Ticketing information, and ticket management subsystem is processing this business
Afterwards result is sent to ticket terminals, ticket terminals print receipt or prompting error message according to result.It is based on
Above-mentioned realize process, the beneficial effects of the present invention is:Encryption equipment and PSAM card employ the biography to ticket information for the close algorithm of state
Defeated and storage is encrypted, thus improve the safety of information;Meanwhile, to support the smart card of the close algorithm of state as electronic ticket
Carrier, significantly meet the ticketing service requirement to bearer capabilities for the application;In addition, ticket terminals are by the ticket information to smart card
Reading, and combine network transmission it is achieved that the real-time interactive of system and user;Additionally, electronic ticket is combined with smart card
Mode so that exchange, the processing procedure cashing and verify simpler convenient, only need to gently scan in practical operation
Complete;Finally, the application mode combining is applied in this smart card and ticketing service, has the advantage of Highgrade integration, and is capable of
More applications and more service content.
Brief description
Fig. 1 is the structured flowchart of the ticketing service application system based on the close algorithm of state proposed by the present invention.
Fig. 2 is the flow chart of booking method proposed by the present invention.
Fig. 3 is the flow chart of ticket management method proposed by the present invention.
Specific embodiment
With reference to the accompanying drawings and examples the present invention is described in more detail.
A kind of the invention discloses ticketing service application system based on the close algorithm of state, as shown in figure 1, described ticketing service application system
Include:Support smart card 1, ticket terminals 2, ticket management subsystem 3, key management subsystem 4 and the encryption of the close algorithm of state
Machine 5, wherein:
Described smart card 1 is used for storing ticket information.Described ticket information include ticketing service mark, word, numeral, symbol,
Any one in letter and picture or several combinations.In practical application, this smart card 1 can be CPU card, and it includes
Contact type CPU card and contactless CPU card.
It is embedded with PSAM card, this ticket terminals 2 is used for reading and writing data to smart card 1, and and ticket in described ticket terminals 2
Business management subsystem 3 interactive correspondence.More specifically, this ticket terminals 2 include smart card reader module, information storage module,
Information display module, network communication module and PSAM card, wherein, described smart card reader module is used for reading smart card 1 and stores
Ticket information, or the ticket information for feeding back to ticket management subsystem 3 writes smart card;Described information stores mould
Block is used for storing the ticket information of smart card 1;Described information display module is used for receiving, shows that ticket management subsystem 3 feeds back
The information returned;Described network communication module is Internet communication interface, and it includes network card interface, Wifi communication interface and GPRS
Communication interface.In practical application, described ticket terminals 2 can for PDA or POS or other have and equal process energy
The smart card read-write device of power.
Described ticket management subsystem 3 is used for processing ticketing service business, capital settlement and operation management.Wherein, described ticketing service
Business includes generating, manages and checking ticket information, and shows and store the result, and the result is fed back to ticketing service eventually
End;Described capital settlement is included to the calculating being traded expense between holder, ticket counter and operator, and executes currency money
Golden transfer operation;Operation management include smart card 1 manage, terminal management, ticketing service business, allocation settlement, Report Server Management and system
Safeguard.
Described key management subsystem 4 is used for distributing, transmit and backup intelligence card 1 key, and sub with ticket management
System 3 interactive correspondence.
Described encryption equipment 5 is the encryption device supporting the close algorithm of state, and it is used for generating, store and verify the close of smart card 1
Key, and with key management subsystem 4 interactive correspondence.
In order to preferably above-mentioned ticketing service application system be combined with practical application, the invention also discloses being used for this ticketing service
The booking method of application system and ticket management method.
In conjunction with shown in Fig. 1 and Fig. 2, described booking method comprises the steps:
Step S100:Ticket terminals 2 chip card reader 1, ticket terminals 2 carry out legitimacy by the close algorithm of state to smart card 1
Checking;
Step S101:Judge whether smart card 1 is legal, if so, then execution step S102, if it is not, then execution step S109;
Step S102, obtains the ticket information of smart card 1, and generates Ticketing information according to ticket information;
Step S103, ticket terminals 2 are encrypted to Ticketing information by PSAM card;
Step S104, ticket terminals 2 send the Ticketing information of encryption to ticket management subsystem 3;
Step S105, ticket terminals 2 judge whether ticket management subsystem 3 responds, if so, execution step S106, if it is not,
Then execution step S107;
Step S106, ticket terminals 2 are decrypted by the data that PSAM card returns to ticket management subsystem 3, afterwards
Execution step S108;
Step S107, ticket terminals 2 judge whether this request reaches largest request number, if so, then to ticket management subsystem
System 3 sends Fail Transaction and asks, execution step S109 afterwards, if it is not, then number of request adds 1, return to step S104 afterwards;
Step S108, ticket terminals 2 judge whether this booking transaction is successful, if it is not, then execution step S109, if so, then
Deduction dealing money, and new ticket information is write smart card 1, print bill of exchange, execution step S110 afterwards;
Step S109:Mistake in prompting, execution step S110 afterwards;
Step S110:Terminate booking.
In conjunction with shown in Fig. 1 and Fig. 3, described ticket management method comprises the steps:
Step S200, ticket management subsystem 3, when receiving the transaction request of ticket terminals 2, first judges this ticket terminals 2
IP address whether legal, if so, then receive this transaction request and obtain Transaction Information, execution step S201 afterwards, if it is not, then
Return miscue information.
Step S201, after ticket management subsystem 3 receives Transaction Information, this Transaction Information is transmitted to key management
Subsystem 4, key management subsystem 4 is decrypted to this Transaction Information using encryption equipment 5, and decrypted result is returned to ticketing service
Management subsystem 3;
Step S202, after ticket management subsystem 3 receives decrypted result, judges whether this Transaction Information has been filed on, if
No, then obtain the ticket information of smart card 1, and this information is verified, execution step S203 afterwards, if so, then return wrong
Information by mistake;
Step S203, ticket management subsystem 3 judges whether smart card 1 amount of money is more than or equal to dealing money, if so, then
Determine whether corresponding admission ticket, afterwards execution step S204, if it is not, then returning miscue information;
Step S204, the corresponding amount of money that deduction smart card 1 is stored in data base, and preserve transaction record;
Step S205, ticket management subsystem 3 generates ticketing information, and is sent to key management subsystem 4, key management
Subsystem 4 is encrypted to ticketing information using the close algorithm of state of encryption equipment 5, afterwards encrypted result is returned to ticket management
System 3;
Step S206, the encrypted result that ticket management subsystem 3 is received sends to ticket terminals 2;
Step S207, ticket management process completes.
In ticketing service application system disclosed by the invention, ticket terminals 2 obtain ticket information by chip card reader 1, and lead to
Cross PSAM card the legitimacy of smart card 1 is authenticated, after certification success, send ticket purchasing request, ticket to ticket management subsystem 3
Business management subsystem 3, after receiving ticket purchasing request, Ticketing information is sent to key management subsystem 3, key management subsystem
System 3 is decrypted and is back to by encryption equipment 5 ticket management subsystem 3 to this Ticketing information, and ticket management subsystem 3 is at place
After having managed this business, result is sent to ticket terminals 2, ticket terminals 2 print receipt according to result or prompting is wrong
False information.
In said process, encryption equipment 1 and PSAM card employ the close algorithm of state to carry out adding to the transmission of ticket information and storage
Close, thus improve the safety of information;Meanwhile, to support the carrier of the smart card 1 of the close algorithm of state as electronic ticket, severe fullness sensation in the abdomen
The requirement to bearer capabilities for the foot ticketing service application;In addition, ticket terminals 2 are by the reading of the ticket information to smart card 1, and
In conjunction with network transmission it is achieved that the real-time interactive of system and user;Additionally, the mode that combines with smart card of electronic ticket so that
The processing procedure exchange, cashed and verify is simpler convenient, only need to gently scan and can complete in practical operation;Finally,
This smart card and the ticketing service application mode that combines of application, have the advantage of Highgrade integration, and be capable of more applications and
More service content.What time can be seen that ticketing service application system proposed by the present invention in conjunction with above, in ticketing service applied technical field
Achieve and substantially improve, be suitable for popularization and application in the art, and there is wide market prospect.
The above is preferred embodiments of the present invention, is not limited to the present invention, all technology models in the present invention
Enclose interior done modification, equivalent or improvement etc., should be included in the range of the present invention protected.