A kind of electronic coupon processing system and methodTechnical field
The present invention relates to audio coding decoding and data security field, be specifically related to a kind of electronic coupon processing system based on voice communication and digital signature authentication.
Background technology
At present, in known issuing preferential tickets scheme, realize that the terminal granting of reward voucher needs to set up read-write equipment for smart card and printing device in terminal, get authority and paper coupons is offered client with checking client's reward voucher.But this type of scheme exists card reader and smart card cost expensive, and the paper coupons of printing preserves that difficulty, statistics are loaded down with trivial details, the shortcoming such as forgery very easily.
Derived gradually thus the electronic coupons based on smart mobile phone, electronic coupons are usually transmitted and use by modes such as note, two-dimension codes, and the real identifying information of reward voucher is stored in back-end server.Granting and the identification that will realize thus reward voucher just need to make coupon information and recognition result carry out a series of circle transmission between mobile phone, Authentication devices, internet, back-end server.This verification process is not only slowly loaded down with trivial details, and in the situation that the network environment shakiness arbitrarily link occur interrupting all causing the reward voucher granting and identify invalid.
Summary of the invention
Technical matters to be solved by this invention is: overcome the deficiency of prior art in issuing preferential tickets, proof procedure, provide a kind of and merge the electronic coupons granting easy to use of audio encoding and decoding technique and Technology On Data Encryption and get system.
A kind of electronic coupon processing system comprises: mobile terminal module, user's service module, trade company's front-end module, security authentication module, audio decoder module, it is characterized in that,
Described mobile terminal module, for being arranged on the application program on mobile intelligent terminal, its major function is to play the audio frequency ID of one section respective user ID to get reward voucher, the reward voucher security information of getting is decrypted and shows reward voucher and use;
Described user's service module is deployed in web server, is used for the management of subscriber data and private key for user file and the audio user ID file that storage forwarding is produced by security authentication module and audio coding decoding module;
Described trade company front-end module, for being placed on the merchant tenninal equipment in the market, the built-in security authentication module of this equipment and audio coding decoding module are provided the function of reward voucher to realize suspension;
Described security authentication module is deployed in web server, be used for take Conbined public or double key mechanism as the user generates the concurrent key file of letting smuggled articles pass, reward voucher is carried out digital signature, coupon information is encrypted operation; Also contain this module in trade company's front-end module;
Described audio coding decoding module is deployed in web server, is used for user profile is encoded into audio file, and this module also is used for the audio file that receives is resolved simultaneously, to reduce every subscriber data; Also contain this module in trade company's front-end module.
Described electronic coupon processing system, it is characterized in that, described trade company front-end module, major responsibility are got qualification for the audio frequency ID that receives the user and the identification of decoding, judgement user's reward voucher and are provided corresponding reward voucher, the reward voucher of granting is carried out digital signature and cryptographic operation.
Described electronic coupon processing system is characterized in that, described user profile comprises: member's grade of user, reward voucher are got the information such as qualification, user preference, subscriber phone number.
Described electronic coupon processing system is characterized in that, described coupon information comprises: user member's card number, user mobile phone number, trade company's numbering, vendor number, coupon number, reward voucher type, the reward voucher amount of money, the reward voucher term of validity.
Described electronic coupon processing system is characterized in that, described mobile terminal comprises: smart mobile phone, panel computer and other intelligent handheld devices with audio playing function and camera function.
The present invention provides a kind of electronic coupons disposal route simultaneously, it is characterized in that, user profile is encoded and identify by audio encoding and decoding technique; By Conbined public or double key mechanism, electronic coupons are carried out digital signature and encryption; Carry out generation and the granting of electronic coupons information by presetting terminal.
Described reward voucher disposal route is characterized in that, comprises the steps:
1) user by mobile intelligent terminal send user profile to the web server end to obtain private key for user and audio frequency ID file;
2) when the user held mobile intelligent terminal arrival merchant tenninal, merchant tenninal received the audio frequency ID file of user's mobile intelligent terminal broadcast and decodes user ID;
3) merchant tenninal is provided condition according to the judgement of the information in audio user ID file reward voucher, and reward voucher is encrypted coupon information by Conbined public or double key mechanism after generating, and the security information after encryption is presented on the screen of merchant tenninal by image in 2 D code;
4) user by the image in 2 D code of the camera scanning generation of mobile intelligent terminal, obtains the coupon information of encryption, re-uses the private key for user deciphering and obtains reward voucher or corresponding error message.
Described reward voucher disposal route is characterized in that, described coupon information comprises: user member's card number, user mobile phone number, trade company's numbering, vendor number, coupon number, reward voucher type, the reward voucher amount of money, the reward voucher term of validity.
Described reward voucher disposal route, it is characterized in that, in step 3), after reward voucher generates, merchant tenninal equipment uses Conbined public or double key mechanism to carry out digital signature to coupon information, carries out simultaneously coupon information is encrypted, and it is encrypted the text that produces is A, the text that its signature is produced is B, and " A+B " this reward voucher security information text code becomes image in 2 D code to be presented at merchant tenninal the most at last.
The invention has the beneficial effects as follows: use cheap terminal Mike and earpiece to replace tradition expensive smart card and card reader, greatly reduce the cost that reduces user's identification; Reduced by digital signature and encryption the danger that coupon data is leaked and distorts; Realize the suspension granting of reward voucher by presetting terminal, alleviated network consumption and internet dependence that electronic coupons are provided.
Description of drawings
The present invention is further described below in conjunction with drawings and Examples.
Fig. 1 is system function module figure, the systematic functional structrue of expression preferred embodiment of the present invention.
Fig. 2 is a process flow diagram, and in expression embodiment, the user is in system registry and obtain initial key and a kind of of audio frequency ID may logic flow.
Fig. 3 is a process flow diagram, and in expression embodiment, the merchant tenninal recognition user information is also provided a kind of possibility logic flow of specific electron reward voucher for it.
Fig. 4 is a process flow diagram, and in expression embodiment, the user gets a kind of possibility logic flow of reward voucher to merchant tenninal by audio plays ID.
The deployment diagram of Fig. 5 system of the present invention.
Embodiment
Understand for technology contents of the present invention, characteristics and effect being had more specifically, existing in conjunction with illustrated embodiment, details are as follows:
User of the present invention refers to purchase and consumption person; Trade company refers to shop supplier in kind.The deployment diagram of system of the present invention as shown in Figure 5, wherein mobile terminal module is that software realizes that in intelligent use, trade company's front-end module is the smart card device that is deployed in shop in kind, web server is disposed by coupon system service provider.
Fig. 1 is the functional block diagram of a preferred embodiment of the present invention, and is as shown in the drawing, and the system module of the present embodiment includes:
1. mobile terminal module.This module is the application program that is arranged on mobile intelligent terminal, and its major function is the audio frequency ID that plays one section respective user ID to get reward voucher, the reward voucher security information of getting is decrypted and shows reward voucher and use etc.
2. user's service module.This module is deployed in web server, is responsible for the management of subscriber data and private key for user file and the audio user ID file that storage forwarding is produced by security authentication module and audio coding decoding module.
3. trade company's front-end module.This module is the merchant tenninal equipment that is placed in the market, and the built-in security authentication module of this equipment and audio coding decoding module are provided the function of reward voucher to realize suspension.Its major responsibility is got qualification for the audio frequency ID that receives the user and the identification of decoding, judgement user's reward voucher and is provided corresponding reward voucher, the reward voucher of granting is carried out digital signature and cryptographic operation etc.
4. security authentication module.This module is deployed in web server, be responsible for take Conbined public or double key mechanism as the user generates the concurrent key file of letting smuggled articles pass, reward voucher is carried out digital signature, coupon information is encrypted operation etc.
5. audio coding decoding module.This module is deployed in web server, and major function becomes audio file for user's member's grade, reward voucher are got the information codings such as qualification, user preference, subscriber phone number.This module also is responsible for the audio file that receives is resolved simultaneously, to reduce every subscriber data.
Fig. 2 be in a preferred embodiment of the present invention the user in mobile the application by the web server system registry and obtain initial key and a kind of of audio frequency ID may logic flow.
The user fills in every subscriber data by the application on smart mobile phone (APP), and subscriber data includes but not limited to that user mobile phone number, shopping preferences, user are in information such as member's card number of this trade company, member's grades.User's service module receives the backward security authentication module of user profile and the audio coding decoding module of mobile network's transmission and sends request, is respectively the user and generates private key for user and audio frequency ID file.Wherein private key file is to generate by Conbined public or double key mechanism according to " Customs Assigned Number+hour of log-on+user's pet name " user profile.And audio frequency ID file is that " member's card number+member's grade+reward voucher is got qualification+user preference+subscriber phone number " coding is formed, the sound frequency that coding forms is in the cognizable frequency range of people's ear, and the sound that forms is comparatively softly melodious, but not simple high frequency noise.
Fig. 3 is that in a preferred embodiment of the present invention, the merchant tenninal recognition user information is also provided a kind of possibility logic flow of specific electron reward voucher for it.
After the audio frequency ID that merchant tenninal equipment (trade company's front-end module is installed on it) reception smart mobile phone sends, it is resolved.If resolving, audio frequency ID unsuccessfully points out user's relevant error; If the subscriber data that successfully resolved is obtained according to parsing judges whether it has the qualification of getting reward voucher; If it points out relevant error information without getting qualification, generate specific reward voucher according to information such as user preference and member's grades for it if get qualification.After reward voucher generated, merchant tenninal equipment used Conbined public or double key mechanism to carry out digital signature to coupon information, carries out simultaneously the encryption of information.Wherein coupon information comprises at least: user member's card number, user mobile phone number, trade company's numbering, vendor number, coupon number, reward voucher type, the reward voucher amount of money, the reward voucher term of validity etc., it is encrypted the text that produces is A, and the text that its signature is produced is B." A+B " this reward voucher security information text code becomes image in 2 D code to be presented at merchant tenninal the most at last.
Fig. 4 is that in a preferred embodiment of the present invention, the user gets a kind of possibility logic flow of reward voucher to merchant tenninal equipment by audio plays ID.
The user plays its audio frequency ID by smart mobile phone, and enters reward voucher issue flow process shown in Figure 3.If merchant tenninal equipment reward voucher failed regeneration is pointed out relevant error information; If reward voucher generates successfully, the user by the two-dimension code image that shows on smart mobile phone camera scanning merchant tenninal equipment to obtain reward voucher security information text.After obtaining text, the user uses the private key file on smart mobile phone to carry out the deciphering of text by Conbined public or double key mechanism.If Decryption failures is pointed out the reward voucher error message, if successful decryption is saved to coupon information in the mobile phone application, namely successfully got reward voucher.
Embodiment 1:
The typical case of the system of originally registering one of uses: the user uses by mobile intelligent terminals such as smart mobile phone or panel computers and sends user profile to web server end acquisition private key for user and audio frequency ID file.When the user holds mobile intelligent terminal arrival merchant tenninal, merchant tenninal receives the audio frequency ID file of user's mobile intelligent terminal broadcast and decodes user ID, provide condition according to the judgement of the information in audio user ID file reward voucher, after reward voucher generates, by Conbined public or double key mechanism, coupon information is encrypted, the security information after encryption is presented on the screen of merchant tenninal by image in 2 D code.The user obtains the coupon information of encryption by the image in 2 D code of the camera scanning generation of mobile intelligent terminal, re-uses the private key for user deciphering and obtains reward voucher or corresponding error message.Reward voucher gets final product choice for use when electronic business transaction is paid.