CN105373927A - Coupon code generation method of electronic coupon, device and server - Google Patents

Coupon code generation method of electronic coupon, device and server Download PDF

Info

Publication number
CN105373927A
CN105373927A CN201410425690.5A CN201410425690A CN105373927A CN 105373927 A CN105373927 A CN 105373927A CN 201410425690 A CN201410425690 A CN 201410425690A CN 105373927 A CN105373927 A CN 105373927A
Authority
CN
China
Prior art keywords
sequence
electronic ticket
user
certificate code
random value
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
CN201410425690.5A
Other languages
Chinese (zh)
Other versions
CN105373927B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410425690.5A priority Critical patent/CN105373927B/en
Publication of CN105373927A publication Critical patent/CN105373927A/en
Application granted granted Critical
Publication of CN105373927B publication Critical patent/CN105373927B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present invention discloses a coupon code generation method of an electronic coupon, a device and a server, belonging to the technical field of computers. The method comprises a step of obtaining a globally unique increasing sequence allocated to an electronic coupon in advance, a step of obtaining a user identification sequence according to the service account of a user, a step of obtaining a first random value and obtaining a first password corresponding to the preset first random value, wherein each preset password is formed by numbers of a preset value digit capacity, and a step of carrying out encryption operation on the first random value, the increasing sequence and the user identification sequence through the first code, and obtaining the coupon code of the electronic coupon. According to the method, through obtaining the first password corresponding to the preset first random value and carrying out the encryption operation on the increasing sequence, the first random value, and the user identification sequence through the first code, the coupon code is generated, after using the first code corresponding to the first random value to carry out encryption operation, the calculation of the coupon codes of other users according to an existing coupon code is difficult, and the safety of the generated coupon code is high.

Description

The certificate code generating method of electronic ticket, device and server
Technical field
The present invention relates to field of computer technology, particularly a kind of certificate code generating method of electronic ticket, device and server.
Background technology
Electronic ticket is a kind of E-consumer voucher that line is provided, and it is sent to terminal corresponding to user by electronic form.The certificate code of electronic ticket is the random number sequences code that uniquely can be mapped to a certain electronic ticket, for uniquely identifying a certain electronic ticket.When user uses electronic ticket, realized by the certificate code inputting electronic ticket.Because electronic ticket is relevant to the property of user, and the certificate code of electronic ticket is used for uniquely identifying electronic ticket, in order to ensure the security of electronic ticket, needs the certificate code generating method proposing a kind of electronic ticket.
Correlation technique is when generating the certificate code of electronic ticket, the method adopted is: obtain increasing sequence unique for an overall situation of electronic ticket distribution in advance, and obtain the information such as trade company's prefix, date, this increasing sequence and trade company's prefix and date and time information etc. are combined, obtains the certificate code of electronic ticket.
Realizing in process of the present invention, inventor finds that correlation technique at least exists following problem:
Because correlation technique is directly using the certificate code of the combinational code of the information such as increasing sequence and trade company's prefix, date as electronic ticket, therefore, malicious user can be extrapolated by existing certificate code or crack out the certificate code of other users with comparalive ease.Due to electronic ticket in use with certificate code for foundation, therefore, easily cause the electronic ticket of other users stolen or falsely use, when causing using this kind of certificate code mark electronic ticket, the security of electronic ticket is not high.
Summary of the invention
In order to solve the problem of correlation technique, embodiments provide a kind of certificate code generating method of electronic ticket, device and server.Described technical scheme is as follows:
First aspect, provide a kind of certificate code generating method of electronic ticket, described method comprises:
Obtain increasing sequence unique for the overall situation of electronic ticket distribution in advance;
Business account according to user obtains user ID sequence;
Obtain first random value, and obtain the first password corresponding with described first random value preset, wherein, the every bar password preset is made up of default value bit digital;
By described first password, computing is encrypted to described first random value, described increasing sequence and described user ID sequence, obtains the certificate code of described electronic ticket.
Second aspect, provide a kind of certificate code generating apparatus of electronic ticket, described device comprises:
First acquisition module, for obtaining increasing sequence unique for the overall situation of electronic ticket distribution in advance;
Second acquisition module, obtains user ID sequence for the business account according to user;
3rd acquisition module, for obtaining first random value;
4th acquisition module, for obtaining the default first password corresponding with described first random value, wherein, the every bar password preset is made up of default value bit digital;
Encrypting module, for being encrypted computing by described first password to described first random value, described increasing sequence and described user ID sequence, obtains the certificate code of described electronic ticket.
The third aspect, provide a kind of certificate code generation server of electronic ticket, described server includes storer, and one or more than one program, one of them or more than one program are stored in storer, and be configured to be performed by more than one or one processor, described more than one or one routine package is containing the instruction for performing following operation:
Obtain increasing sequence unique for the overall situation of electronic ticket distribution in advance;
Business account according to user obtains user ID sequence;
Obtain first random value, and obtain the first password corresponding with described first random value preset, wherein, the every bar password preset is made up of default value bit digital;
By described first password, computing is encrypted to described first random value, described increasing sequence and described user ID sequence, obtains the certificate code of described electronic ticket.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By the first password that the first random value obtained with preset is corresponding, and by first password, computing is encrypted to increasing sequence, the first random value and user ID sequence and generates certificate code, after using the first password corresponding with the first random value to be encrypted computing, be not easy according to existing certificate code the certificate code calculating other users, the certificate code of generation has higher security.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the certificate code generating method of a kind of electronic ticket that one embodiment of the invention provides;
Fig. 2 is the process flow diagram of the certificate code generating method of a kind of electronic ticket that another embodiment of the present invention provides;
Fig. 3 is the structural representation of the certificate code generating apparatus of a kind of electronic ticket that another embodiment of the present invention provides;
Fig. 4 is the structural representation of the certificate code generating apparatus of a kind of electronic ticket that another embodiment of the present invention provides;
Fig. 5 is the structural representation of the certificate code generating apparatus of a kind of electronic ticket that another embodiment of the present invention provides;
Fig. 6 is the structural representation of the certificate code generating apparatus of a kind of electronic ticket that another embodiment of the present invention provides;
Fig. 7 is the structural representation of the certificate code generating apparatus of a kind of electronic ticket that another embodiment of the present invention provides;
Fig. 8 is the structural representation of a kind of server that another embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 is the process flow diagram of the certificate code generating method of a kind of electronic ticket provided according to an exemplary embodiment.See Fig. 1, the method flow that the embodiment of the present invention provides comprises:
101: obtain increasing sequence unique for the overall situation of electronic ticket distribution in advance.
102: the business account according to user obtains user ID sequence.
103: obtain first random value, and obtain the first password corresponding with the first random value preset, wherein, the every bar password preset is made up of default value bit digital.
Alternatively, after obtaining first random value, also comprise:
First random value and increasing sequence are combined as the mark of electronic ticket, and the mark of the electronic ticket be combined to are stored to the database that user ID sequence pair answers, as the foundation of the validity of subsequent authentication electronic ticket.
104: by first password, computing is encrypted to the first random value, increasing sequence and user ID sequence, obtain the certificate code of electronic ticket.
Alternatively, by first password, computing is encrypted to the first random value, increasing sequence and user ID sequence, comprises:
Use the bits per inch word of bits per inch word to user ID sequence of the first predetermined position in first password to ask mould, obtain the first modulus value, the figure place that the first predetermined position comprises numeral is identical with the figure place that user ID sequence comprises numeral;
Numeral according to the second predetermined position in first password positions definition to the first modulus value, obtains the first positioning sequence;
Determine the second random value according to user ID sequence and the first modulus value, and obtain second password corresponding with the second random value preset;
Use the bits per inch word of bits per inch word to increasing sequence of the 3rd predetermined position in the second password to ask mould, obtain the second modulus value, the figure place that the 3rd predetermined position comprises numeral is identical with the figure place that increasing sequence comprises numeral;
Numeral according to the 4th predetermined position in the second password positions definition to the second modulus value, obtains the second positioning sequence;
According to discrete second modulus value of the second positioning sequence, obtain the first certificate code sequence, and obtain second certificate code sequence by discrete for the first modulus value in the first certificate code sequence according to the first positioning sequence, using the second certificate code sequence as certificate code electronic ticket being encrypted to computing and obtaining.
Alternatively, after generating the certificate code of electronic ticket, also comprise:
Receive the certificate code update request of the terminal transmission that user ID sequence pair is answered;
The step of acquisition first random value is returned, until after regenerating the new certificate code of electronic ticket, using the certificate code of new certificate code as electronic ticket according to certificate code update request.
Alternatively, after generating the certificate code of electronic ticket, also comprise:
Obtain user and use the certificate code inputted during electronic ticket;
The certificate code of input is decrypted, obtains the increasing sequence of the certificate code correspondence inputted, the first random value and user ID sequence;
According to the first random value and database corresponding to increasing sequence inquiring user identifier, determine that whether electronic ticket is effective;
If determine that electronic ticket is effective, then user is allowed to use electronic ticket.
Alternatively, permission user also comprises after using electronic ticket:
The mobile terminal of answering to user ID sequence pair sends the information using electronic ticket;
Determine whether to receive the confirmation that mobile terminal returns and use message;
If receive confirmation use message, then consumer electronics certificate that mobile terminal returns.
The method that the embodiment of the present invention provides, by the first password that the first random value obtained with preset is corresponding, and by first password, computing is encrypted to increasing sequence, the first random value and user ID sequence and generates certificate code, after using the first password corresponding with the first random value to be encrypted computing, be not easy according to existing certificate code the certificate code calculating other users, the certificate code of generation has higher security.
In conjunction with the certificate code generating method of the above-mentioned electronic ticket provided embodiment illustrated in fig. 1, Fig. 2 provides a kind of certificate code generating method of electronic ticket according to an exemplary embodiment.See Fig. 2, the method flow that the embodiment of the present invention provides comprises:
201: obtain increasing sequence unique for the overall situation of electronic ticket distribution in advance.
Owing to being directed to the electronic ticket of a certain business, often there are certain quantity and order.With the electronic ticket of certificate code mark, there is uniqueness in order to make again, need to ensure to possess the Serial No. that electronic ticket can be made to have uniqueness in certificate code.Therefore, the embodiment of the present invention, when generating the certificate code of electronic ticket, by the uniqueness of the unique sequence identifier electronic ticket of the overall situation, by the order of increasing sequence mark electronic ticket, therefore, needs to obtain increasing sequence unique for the overall situation of electronic ticket distribution in advance.By obtaining increasing sequence unique for the overall situation of electronic ticket distribution in advance, the uniqueness of the electronic ticket of follow-up generation can be ensured.
Such as, if be directed to certain business will generate 1000 electronic tickets, then can pre-set 1000 increasing sequences, therefore, when generating each certificate code, the increasing sequence that the overall situation got when selecting an increasing sequence to generate certificate code as this time from 1000 increasing sequences pre-set is unique.
202: the business account according to user obtains user ID sequence.
In order to ensure the security of the electronic ticket of user, user, before acquisition electronic ticket, need to carry out register by the business account of correspondence, and the business account of user often can a certain user of unique identification.In addition, because number of users may be a lot, therefore, when storing the user profile of all users of a certain business, often for point storehouse submeter stores the user profile of different user, thus the user profile of different user is stored in the different sink table of disparate databases.In embodiments of the present invention, in order to make the certificate code of generation relevant to the user profile of user, a user ID sequence can be determined according to the business account of user, and when generating certificate code, this user ID sequence also be participated in calculate.About the mode obtaining user ID sequence according to the business account of user, the embodiment of the present invention does not do concrete restriction.But, in order to the follow-up validity to certificate code confirm time, can associate with storing the Database of this certificate code, when obtaining user ID sequence, quantity storehouse that this business sets up shown can be combined into and determine.Therefore, this user ID sequence both can as user ID, the Database Identification of the certificate code that also can generate as storage.
Such as, if the business account of user is 652358452, and in advance for this business establishes 1000 different storehouses tables, then when storing the user profile of this user, can be stored in and be numbered in the storehouse table of 452, therefore, can using 452 as the identifier of the user got according to the business account of this user.Certainly, each numerical value herein only for citing, does not form the restriction to the embodiment of the present invention.
203: obtain first random value, and obtain the first password corresponding with the first random value preset, wherein, the every bar password preset is made up of default value bit digital.
In order to make the certificate code generated have more security, in embodiments of the present invention, when generating certificate code, can be realized by certain cryptographic algorithm.In addition, in order to make the certificate code generated have randomness, avoiding being easily passed through existing certificate code and calculating out, first can obtain a random value, and use the password Aided Generation certificate code corresponding with this random value preset.In addition, in order to meet the computing of ciphering process, default every bar password is made up of default value bit digital.About the concrete numerical value of default value, the embodiment of the present invention does not do concrete restriction.Such as, the every bar password preset all can comprise 32-bit number, etc.
About the mode of acquisition first random value, the embodiment of the present invention does not do concrete restriction, when specifically implementing, random rolling mode can be taked to obtain a value as the first random value.About the mode obtaining the first password corresponding with the first random value preset, the embodiment of the present invention does not do concrete restriction equally.It should be noted that, in order to ensure to there is the first password corresponding with the first random value, needing the mapping relations setting up random value and password in advance.
Wherein, when setting up the mapping relations of random value and password, being directed to a certain business, can realizing by setting up the business password dictionary comprising default value bar password.Therefore, when obtaining the first password corresponding with the first random value, the first password corresponding with the first random value can be obtained according to the first random value in the business password dictionary set up in advance.
Such as, be directed to a certain business, the business password dictionary that comprises 100 passwords can be set up.In addition, the numerical value of random value can be made corresponding with the numbering of password in business password dictionary.Particularly, if the first random value got is 5, then can obtain the 5th bar of password in business password dictionary, and using the 5th bar of password as first password.
Alternatively, because the embodiment of the present invention is when generating certificate code, computing can be encrypted.Again because increasing sequence can unique identification electronic ticket, the first random value can ensure certificate code randomness and due to the first random value corresponding with the first password preset.In addition, the user profile that user ID sequence can identify this user is stored in which default database.Therefore, after acquisition first random value, first random value and increasing sequence can also be combined as the mark of electronic ticket, and the mark of the electronic ticket be combined to be stored to the database that user ID sequence pair answers, as the foundation of the validity of subsequent authentication electronic ticket.
About the mode of mark the first random value and increasing sequence being combined as electronic ticket, the embodiment of the present invention does not do concrete restriction.During concrete enforcement, can arrange the first random value front, increasing sequence is rear; Also can arrange and pass sequence front, the first random value is rear; Combine after first random value and increasing sequence can also being sorted in a certain order, etc.
Such as, if the first random value is 5, increasing sequence is 0000001234, and when combination first random value and increasing sequence, arranges the first random value front, increasing sequence rear, then the electronic ticket be combined to be designated 50000001234.In addition, the embodiment of the present invention does not limit the mode mark of the electronic ticket be combined to being stored to the database that user ID sequence pair is answered.
Be stored in the database that user ID sequence pair answers by the mark of the electronic ticket that the first random value and increasing sequence are combined to, guarantee follow-up when the validity according to electronic ticket code checking electronic ticket, inquire about in the database can answered at user ID sequence pair and obtain.In addition, only store the mark of the electronic ticket that the first random value and increasing sequence are combined in a database, and directly do not store the certificate code generated according to follow-up cryptographic algorithm, even if disabled user gets the first random value and increasing sequence from database, also certificate code cannot be extrapolated easily, thus the security of electronic ticket can be ensured, compare in correlation technique and directly store the certificate code be combined to according to increasing sequence in a database, make the security of electronic ticket higher.
204: by first password, computing is encrypted to the first random value, increasing sequence and user ID sequence, obtain the certificate code of electronic ticket.
Wherein, by first password, computing is encrypted to the first random value, increasing sequence and user ID sequence, obtains the mode of the certificate code of electronic ticket, can have a variety of.During concrete enforcement, include but not limited to realize as follows:
Step one: use the bits per inch word of bits per inch word to user ID sequence of the first predetermined position in first password to ask mould, obtain the first modulus value, wherein, it is identical that the first predetermined position comprises numeral figure place and user ID sequence comprise digital figure place.
Wherein, user ID sequence, when generating certificate code, also participates in calculating by the method provided due to the embodiment of the present invention.Therefore, in ciphering process, the bits per inch word of the bits per inch word of the first predetermined position in first password to user ID sequence can be used to ask mould.Because user ID sequence may comprise long number, in order to realize asking mould to user ID sequence, the first predetermined position is needed to comprise digital figure place identical with the figure place that user ID sequence comprises numeral.Such as, if user ID sequence comprises three bit digital, then the bits per inch word of bits per inch word to user ID sequence comprising the first predetermined position of three bit digital in first password is used to ask mould.Wherein, the embodiment of the present invention does not limit the particular location of primary importance, and this primary importance can be preassigned any position in first password.Such as, first in first password can be specified in advance to be the numeral of first position to the 3rd bit digital, etc.
The mode of mould asked in the bits per inch word of bits per inch word to user ID sequence about the first predetermined position used in first password, and the embodiment of the present invention does not do concrete restriction.During concrete enforcement, can by the bits per inch word bit-wise addition of the bits per inch word of the first predetermined position in first password and user ID sequence.In addition, in order to ensure ciphering process reversibility, when by the bits per inch word bit-wise addition of the bits per inch word of the first predetermined position in first password and user ID sequence, if to the numeral of position 10 should be filled it up with mutually in the numeral at a certain position place in first password and user ID sequence, then use this addition result to ask mould to 10.
Particularly, when using the bits per inch word of bits per inch word to user ID sequence of the first predetermined position in first password to ask mould, include but not limited to be realized by following formula:
decA=(key[i]+srcA)%10
Wherein, key [i] is the numeral of a certain position of the first predetermined position in first password, srcA is the numeral of a certain position in user ID sequence, and decA is certain bit digital in the first modulus value obtained after using the numeral of numeral to position a certain in user ID sequence of a certain position of the first predetermined position in first password to ask mould.
Such as, if first password is 32582314256325254784561236985000, user ID sequence is 452, and specifies the 5th bit digital in use first password to ask mould to the 7th bit digital to user ID sequence in advance.Because the 5th bit digital in 32582314256325254784561236985000 is 231 to the 7th bit digital, then use 231 to ask mould to 452, obtaining the first modulus value is 683.
Step 2: the numeral according to the second predetermined position in first password positions definition to the first modulus value, obtains the first positioning sequence.
Wherein, bit definition refers to how to sort to a certain sequence, or a certain sequence is inserted into which position of existing sequence, etc.In a word, the sequence obtained according to bit definition can change the order of existing sequence.About the mode according to the numeral of the second predetermined position in first password, the first modulus value being positioned to definition, the embodiment of the present invention does not do concrete restriction.About the particular location of the second predeterminated position, the embodiment of the present invention does not do concrete restriction.During concrete enforcement, this second predeterminated position also can be the optional position in first password.Such as, the numeral of in first password first to the 3rd can be selected to position definition to the first modulus value.In conjunction with above-mentioned citing, because the numeral of first to the 3rd in 32582314256325254784561236985000 is 325, therefore, the first positioning sequence is 325.
Step 3: determine the second random value according to user ID sequence and the first modulus value, and obtain second password corresponding with the second random value preset.
Wherein, determine the mode of the second random value according to user ID sequence and the first modulus value, can have a variety of.Such as, user ID sequence and the first modulus value phase Calais can be determined the second random value, also user ID sequence can be multiplied with the first modulus value and determine the second random value, bits per inch Zi Xiang Calais in user ID sequence and the first modulus value can also be determined the second random value, etc.
About the principle obtaining second password corresponding with the second random value preset, consistent with the principle obtaining the first password corresponding with the first random value preset in above-mentioned steps 203, specifically see the content in above-mentioned steps 203, can not repeat at this.Such as, if the second random value determined according to user ID sequence and the first modulus value is 23, then need to obtain second password corresponding with 23.
Step 4: use the bits per inch word of bits per inch word to increasing sequence of the 3rd predetermined position in the second password to ask mould, obtain the second modulus value, the figure place that the 3rd predetermined position comprises numeral is identical with the figure place that increasing sequence comprises numeral.
Wherein, the bits per inch word of bits per inch word to increasing sequence of the 3rd predetermined position in the second password is used to ask the principle of mould, ask the principle of mould consistent with the bits per inch word of bits per inch word to user ID sequence of the first predetermined position used in above-mentioned steps one in first password, specifically see the content in above-mentioned steps one, can not repeat them here.About the more specific location information of the 3rd predeterminated position in the second password, the embodiment of the present invention does not do concrete restriction equally.It should be noted that, in order to successfully use the bits per inch word of bits per inch word to increasing sequence of the 3rd predetermined position in the second password to ask mould, need guarantee the 3rd predetermined position to comprise digital figure place identical with the figure place that increasing sequence comprises numeral.
Such as, if increasing sequence is the 0000001234, second password is 01239875123456789054124503218859, and comprise ten due to increasing sequence, then should the 3rd predetermined position in the second password select ten to ask mould to increasing sequence.As, if select the numeral of first to the tenth in the second password to ask mould to increasing sequence, then can carry out bit-wise addition by 0000001234 and 0123987512 and obtain the second modulus value, therefore, the second modulus value obtained in this citing is 0123988746.
Step 5: the numeral according to the 4th predetermined position in the second password positions definition to the second modulus value, obtains the second positioning sequence.
Wherein, according to the numeral of the second predetermined position in first password, definition is positioned to the first modulus value in the principle of this step and above-mentioned steps three, the principle obtaining the first positioning sequence is consistent, specifically see the content in above-mentioned steps three, can not repeat them here.About the particular location of the 4th predeterminated position in the second password, the embodiment of the present invention does not do concrete restriction.During concrete enforcement, optional position can be selected in the second password as the 4th predeterminated position.Such as, second can be selected in the second password to the 5th as the 4th predeterminated position, thus using second to the numeral on the 5th as the second positioning sequence, now, the second positioning sequence is 1239, etc.
Step 6: according to discrete second modulus value of the second positioning sequence, obtain the first certificate code sequence, and obtain second certificate code sequence by discrete for the first modulus value in the first certificate code sequence according to the first positioning sequence, using the second certificate code sequence as certificate code electronic ticket being encrypted to computing and obtaining.
About the mode according to discrete second modulus value of the second positioning sequence, the embodiment of the present invention does not do concrete restriction.During concrete enforcement, can determine in conjunction with the content of bit definition.Such as, if the content of bit definition is the position of every two of the numeral exchange according to the second positioning sequence, then when discrete second modulus value, can by the digital switch on some position in the second modulus value.Such as, in conjunction with above-mentioned citing, if the second modulus value is 0123988746, second positioning sequence is 1239, and when discrete second modulus value, the content of bit definition is the numeral on every two corresponding with the second positioning sequence in exchange second modulus value, then when according to 1239 discrete second modulus value, numeral on first and second in second modulus value is exchanged, numeral on 3rd and the 9th exchanged, now, the first certificate code sequence obtained is 1043988726.
About according to the first positioning sequence by discrete for the first modulus value to the mode in the first certificate code sequence, can have a variety of.Such as, the numeral of the first modulus value on each can be inserted in the position corresponding with the numeral in the first positioning sequence in the first certificate code sequence, also latter one of position that can be corresponding with the numeral in the first positioning sequence in the first certificate code is inserted the numeral of the first modulus value on each, etc.
Wherein, when position corresponding with the numeral in the first positioning sequence in the first certificate code rear one insert digital on each of the first modulus value time, according to the first positioning sequence by discrete for the first modulus value to the mode in the first certificate code sequence, include but not limited to be realized by following formula:
Str_new=Str.substr(0,loc[i])+decA+Str.substr(loc[i])
In formula, Str_new is the new sequence of of obtaining after the numeral on a certain position in insertion first modulus value, Str.substr (0, loc [i]) represent that front loc [i] position of the first certificate code sequence remains unchanged, loc [i] represents the numeral in the first positioning sequence on a certain position, decA represents the numeral on the first a certain position of modulus value, the numeral that Str.substr (loc [i]) represents in the first certificate code sequence except front loc [i] position on other.
Such as, in conjunction with above-mentioned citing, if the first certificate code sequence is 1043988726, first modulus value is 683, first positioning sequence is 325, and according to the first positioning sequence by discrete for the first modulus value to the first certificate code sequence time, latter one of position corresponding with the numeral in the first positioning sequence in the first certificate code is inserted the numeral of the first modulus value on each, then when generation second certificate code sequence, first the numeral 6 in the first modulus value first to be inserted in the first certificate code sequence after the 3rd bit digital according to the numeral 3 on the first positioning sequence 325 first, obtain sequence 10463988726, then, the numeral 8 on second in the first modulus value to be inserted in 10463988726 after the 2nd bit digital according to the numeral 2 on the first positioning sequence 325 second, obtain sequence 108463988726, finally, according to the numeral 5 on the first positioning sequence 325 the 3rd, the numeral 3 in the first modulus value the 3rd is inserted in 108463988726 after five digit number, obtain sequence 1084633988726.Therefore, the second certificate code sequence is 1084633988726.
It should be noted that, according to the first positioning sequence by discrete for the first modulus value to the first certificate code sequence time, should follow first to insert and get afterwards, rear slotting principle of first getting, namely the numeral first inserted is when follow-up being decrypted, after take out from this sequence, the numeral of rear insertion, when follow-up being decrypted, is first taken out from sequence.Such as, in conjunction with above-mentioned citing, when being decrypted this second certificate code sequence, first the numeral 3 finally inserted after the 5th is taken out, in sequence again after taking-up 3, the numeral 8 after current sequence second-order digit is taken out, in the sequence finally again after taking-up 8, the numeral 6 after current sequence the 3rd bit digital is taken out.
Alternatively, because database often has certain version number, in order to avoid there is the situation of loss of data after database goes wrong, when generating certificate code, after the version of database can also be retained, and the predeterminated position that will insert after the version of database in the second certificate code sequence, thus using the certificate code of the second certificate code sequence of the version number in data inserting storehouse as the electronic ticket generated.About the particular location of predeterminated position, the embodiment of the present invention does not do concrete restriction.During concrete enforcement, randomness is had more in order to make certificate code, this predeterminated position can be the position corresponding with the first random value or the second random value, as, it can be the position at the first random value or the second random value place, also can be the first random value or the second random rear position or several positions afterwards, etc.
205: the certificate code update request receiving the terminal transmission that user ID sequence pair is answered, returns step 203 according to certificate code update request, until after regenerating the new certificate code of electronic ticket, using the certificate code of new certificate code as electronic ticket.
This step is optional step.In order to ensure the security of the certificate code of the electronic ticket mark generated, the method support that the embodiment of the present invention provides is according to the request real-time update certificate code of user.Such as, user, when thinking that the certificate code of oneself is revealed, can initiate certificate code update request.In such cases, the certificate code update request of the terminal transmission that user ID sequence pair is answered can be received, and return step 203 according to this certificate code update request, until after regenerating the new certificate code of electronic ticket, using the certificate code of new certificate code as electronic ticket.About the mode receiving the certificate code update request that terminal that user ID sequence pair answers sends, the embodiment of the present invention does not do concrete restriction.It should be noted that, because increasing sequence can the order of unique identification certificate code and business certificate code and quantity, therefore, when upgrading certificate code, increasing sequence can be kept constant.
In addition, because the certificate code of the electronic ticket generated by the embodiment of the present invention is digital form, and the certificate code of digital form occupies little space relative to the certificate code of alphabetical form.In addition, because machine for punching the card only supports the certificate code of digital form usually, and do not support the certificate code of alphabetical form, therefore, relative to the scene using letter as certificate code, the certificate code that the method provided by the embodiment of the present invention is generated, as the mark of electronic ticket, not only have more security, and the scope of application is wider.
Alternatively, after generating the certificate code of electronic ticket, this certificate code unique identification and this certificate code just can be used the electronic ticket of.Now, if user wants to use this electronic ticket, then need to be realized by certificate code.Therefore, if determine that user is using this electronic ticket, then also need to determine whether user can use this electronic ticket.About determining whether user can use the mode of this electronic ticket, include but not limited to realize in the following way:
The first step: obtain user and use the certificate code inputted during electronic ticket, and the certificate code of input is decrypted, obtain the increasing sequence of the certificate code correspondence inputted, the first random value and user ID sequence.
Use the mode of the certificate code inputted during electronic ticket about acquisition user, the embodiment of the present invention does not do concrete restriction.During concrete enforcement, corresponding electronic ticket can be provided to use the page, and certificate code input frame is set in this page, therefore, when obtaining user and using the certificate code inputted during electronic ticket, the content realization that user inputs in the certificate code input frame pre-set can be obtained.
Be decrypted about to the certificate code of input, obtain the mode of the increasing sequence of certificate code correspondence, the first random value and the user ID sequence inputted, relevant with the mode be encrypted certificate code when generating certificate code.Particularly, the inverse operation be encrypted certificate code when being generating certificate code to the mode that is decrypted of certificate code of input, the principle of the cipher mode that specifically can adopt when the 6th step generates certificate code see the above-mentioned first step, does not repeat them here.
Second step: according to the first random value and database corresponding to increasing sequence inquiring user identifier, determine that whether electronic ticket is effective.
Because the embodiment of the present invention is when generating certificate code, the first random series and increasing sequence that generate this certificate code are stored in the database of answering with its user ID sequence pair, therefore, when determining whether user can use electronic ticket, need, according to the first random value and database corresponding to increasing sequence inquiring user identifier, to determine that whether electronic ticket is effective.If with find in the database that user ID sequence pair is answered and decipher the first random value of obtaining and consistent the first random value of increasing sequence and increasing sequence, then determine that this electronic ticket is effective, otherwise, determine that this electronic ticket is invalid.
3rd step: if determine that electronic ticket is effective, then allow user to use electronic ticket.
Further, after permission user uses electronic ticket, really be user in order to what ensure to use this electronic ticket, can also include but not limited to: the mobile terminal of answering to user ID sequence pair sends the information using electronic ticket, and determine whether to receive the confirmation that mobile terminal returns and use message; If receive confirmation use message, then consumer electronics certificate that mobile terminal returns.
Send the mode of the information using electronic ticket about the mobile terminal of answering to user ID sequence pair, the embodiment of the present invention does not do concrete restriction.During concrete enforcement, when then user registers business account, the mobile terminal number that user is corresponding can be reserved, therefore, when the mobile terminal of answering to user ID sequence pair sends the information using electronic ticket, the business account of user first can be determined according to user ID sequence, and the mobile terminal number reserved according to the business account inquiring user of user, thus the mobile terminal realizing answering to user ID sequence pair sends the information using electronic ticket.About the particular content of information, the embodiment of the present invention does not do concrete restriction.
About determining whether the mode receiving the confirmation use message that mobile terminal returns, can have a variety of.During concrete enforcement, the option information whether user determines to use can be carried in information, and point out user to reply message according to this option information.Such as, the content of information can be " using certificate code for the electronic ticket of * * * * * * *, confirmation use R. S. V. P. 1, otherwise R. S. V. P. 0 ".Now, if receive that mobile terminal returns carry 1 message, then determine to receive the confirmation that mobile terminal returns and use message, otherwise, determine not receive the confirmation that mobile terminal returns and use message.
In addition, in order to ensure the security of electronic ticket, when determining whether to receive confirmation that mobile terminal returns and using message, can also Preset Time be set.If receive the confirmation use message that mobile terminal returns in this Preset Time, then determine to consume this electronic ticket.If do not receive the confirmation use message that mobile terminal returns in this Preset Time, then do not allow this electronic ticket of customer consumption.
About the mode of this electronic ticket of consumption, can have a variety of, include but not limited to this electronic ticket to be labeled as use, etc.
By this possibility, before consumer electronics certificate, need the confirmation obtaining user, the security of electronic ticket can be ensured better.
The method that the embodiment of the present invention provides, by the first password that the first random value obtained with preset is corresponding, and by first password, computing is encrypted to increasing sequence, the first random value and user ID sequence and generates certificate code, after using the first password corresponding with the first random value to be encrypted computing, be not easy according to existing certificate code the certificate code calculating other users, the certificate code of generation has higher security.
Fig. 3 is the structural representation of the certificate code generating apparatus of a kind of electronic ticket provided according to an exemplary embodiment, this device for perform above-mentioned Fig. 1 or embodiment illustrated in fig. 2 in the certificate code generating method of electronic ticket that provides.See Fig. 3, this device comprises:
First acquisition module 301, for obtaining increasing sequence unique for the overall situation of electronic ticket distribution in advance;
Second acquisition module 302, obtains user ID sequence for the business account according to user;
3rd acquisition module 303, for obtaining first random value;
4th acquisition module 304, for obtaining the default first password corresponding with the first random value, wherein, the every bar password preset is made up of default value bit digital;
Encrypting module 305, for being encrypted computing by first password to the first random value, increasing sequence and user ID sequence, obtains the certificate code of electronic ticket.
Alternatively, see Fig. 4, device, also comprises:
Composite module 306, for being combined as the mark of electronic ticket by the first random value and increasing sequence;
Memory module 307, for the mark of the electronic ticket be combined to being stored to the database that user ID sequence pair is answered, as the foundation of the validity of subsequent authentication electronic ticket.
Alternatively, encrypting module 305, comprising:
First asks form unit, mould is asked for using the bits per inch word of the bits per inch word of the first predetermined position in first password to user ID sequence, obtain the first modulus value, the figure place that the first predetermined position comprises numeral is identical with the figure place that user ID sequence comprises numeral;
First bit definition unit, for positioning definition according to the numeral of the second predetermined position in first password to the first modulus value, obtains the first positioning sequence;
Determining unit, for determining the second random value according to user ID sequence and the first modulus value;
Acquiring unit, for obtaining default second password corresponding with the second random value;
Second asks form unit, for using the bits per inch word of bits per inch word to increasing sequence of the 3rd predetermined position in the second password to ask mould, obtains the second modulus value, and the figure place that the 3rd predetermined position comprises numeral is identical with the figure place that increasing sequence comprises numeral;
Second bit definition unit, for positioning definition according to the numeral of the 4th predetermined position in the second password to the second modulus value, obtains the second positioning sequence;
First discrete unit, for according to discrete second modulus value of the second positioning sequence, obtains the first certificate code sequence;
Second discrete unit, for obtaining second certificate code sequence by discrete for the first modulus value in the first certificate code sequence according to the first positioning sequence, using the second certificate code sequence as certificate code electronic ticket being encrypted to computing and obtaining.
Alternatively, see Fig. 5, device, also comprises:
Receiver module 308, the certificate code update request that the terminal of answering for receiving user ID sequence pair sends;
Return module 309, for returning the step of acquisition first random value according to certificate code update request, until after regenerating the new certificate code of electronic ticket, using the certificate code of new certificate code as electronic ticket.
Alternatively, see Fig. 6, device, also comprises:
5th acquisition module 310, uses for obtaining user the certificate code inputted during electronic ticket;
Deciphering module 311, for being decrypted the certificate code of input, obtains the increasing sequence of the certificate code correspondence inputted, the first random value and user ID sequence;
Enquiry module 312, for according to the first random value and database corresponding to increasing sequence inquiring user identifier, determines that whether electronic ticket is effective;
Allowing module 313, for when determining that electronic ticket is effective, allowing user to use electronic ticket.
Alternatively, see Fig. 7, device, also comprises:
Sending module 314, sends for the mobile terminal of answering to user ID sequence pair the information using electronic ticket;
Determination module 315, the confirmation returned for determining whether to receive mobile terminal uses message;
Consumption module 316, for when receiving the confirmation use message that mobile terminal returns, consumer electronics certificate.
The device that the embodiment of the present invention provides, by the first password that the first random value obtained with preset is corresponding, and by first password, computing is encrypted to increasing sequence, the first random value and user ID sequence and generates certificate code, after using the first password corresponding with the first random value to be encrypted computing, be not easy according to existing certificate code the certificate code calculating other users, the certificate code of generation has higher security.
Fig. 8 is the server that a kind of certificate code for electronic ticket according to an exemplary embodiment generates.With reference to Fig. 8, server 800 comprises processing components 822, and it comprises one or more processor further, and the memory resource representated by storer 832, can such as, by the instruction of the execution of processing components 822, application program for storing.The application program stored in storer 832 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 822 is configured to perform instruction, to perform the certificate code generating method of above-mentioned Fig. 1 or the electronic ticket provided embodiment illustrated in fig. 2.
Server 800 can also comprise the power management that a power supply module 826 is configured to perform server 800, and a wired or wireless network interface 850 is configured to server 800 to be connected to network, and input and output (I/O) interface 858.Server 800 can operate the operating system based on being stored in storer 832, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Wherein, more than one or one program is stored in storer, and is configured to be performed by more than one or one processor, and described more than one or one routine package is containing the instruction for carrying out following operation:
Obtain increasing sequence unique for the overall situation of electronic ticket distribution in advance;
Business account according to user obtains user ID sequence;
Obtain first random value, and obtain the first password corresponding with the first random value preset, wherein, the every bar password preset is made up of default value bit digital;
By first password, computing is encrypted to the first random value, increasing sequence and user ID sequence, obtains the certificate code of electronic ticket.
Suppose that above-mentioned is the first possible embodiment, in the embodiment that the second then provided based on the embodiment that the first is possible is possible, in the storer of server, also comprise the instruction for performing following operation: after obtaining first random value, also comprise:
First random value and increasing sequence are combined as the mark of electronic ticket, and the mark of the electronic ticket be combined to are stored to the database that user ID sequence pair answers, as the foundation of the validity of subsequent authentication electronic ticket.
In the third the possible embodiment provided based on the embodiment that the first is possible, in the storer of server, also comprise the instruction for performing following operation: by first password, computing is encrypted to the first random value, increasing sequence and user ID sequence, comprises:
Use the bits per inch word of bits per inch word to user ID sequence of the first predetermined position in first password to ask mould, obtain the first modulus value, the figure place that the first predetermined position comprises numeral is identical with the figure place that user ID sequence comprises numeral;
Numeral according to the second predetermined position in first password positions definition to the first modulus value, obtains the first positioning sequence;
Determine the second random value according to user ID sequence and the first modulus value, and obtain second password corresponding with the second random value preset;
Use the bits per inch word of bits per inch word to increasing sequence of the 3rd predetermined position in the second password to ask mould, obtain the second modulus value, the figure place that the 3rd predetermined position comprises numeral is identical with the figure place that increasing sequence comprises numeral;
Numeral according to the 4th predetermined position in the second password positions definition to the second modulus value, obtains the second positioning sequence;
According to discrete second modulus value of the second positioning sequence, obtain the first certificate code sequence, and obtain second certificate code sequence by discrete for the first modulus value in the first certificate code sequence according to the first positioning sequence, using the second certificate code sequence as certificate code electronic ticket being encrypted to computing and obtaining.
In the 4th kind of possible embodiment provided based on the embodiment that the first is possible, in the storer of server, also comprise the instruction for performing following operation: after generating the certificate code of electronic ticket, also comprise:
Receive the certificate code update request of the terminal transmission that user ID sequence pair is answered;
The step of acquisition first random value is returned, until after regenerating the new certificate code of electronic ticket, using the certificate code of new certificate code as electronic ticket according to certificate code update request.
In the 5th kind of possible embodiment provided based on the embodiment that the first is possible, in the storer of server, also comprise the instruction for performing following operation: after generating the certificate code of electronic ticket, also comprise:
Obtain user and use the certificate code inputted during electronic ticket;
The certificate code of input is decrypted, obtains the increasing sequence of the certificate code correspondence inputted, the first random value and user ID sequence;
According to the first random value and database corresponding to increasing sequence inquiring user identifier, determine that whether electronic ticket is effective;
If determine that electronic ticket is effective, then user is allowed to use electronic ticket.
In the 6th kind of possible embodiment provided based on the 5th kind of possible embodiment, in the storer of server, also comprise the instruction for performing following operation: permission user also comprises after using electronic ticket:
The mobile terminal of answering to user ID sequence pair sends the information using electronic ticket;
Determine whether to receive the confirmation that mobile terminal returns and use message;
If receive confirmation use message, then consumer electronics certificate that mobile terminal returns.
The server that the embodiment of the present invention provides, by the first password that the first random value obtained with preset is corresponding, and by first password, computing is encrypted to increasing sequence, the first random value and user ID sequence and generates certificate code, after using the first password corresponding with the first random value to be encrypted computing, be not easy according to existing certificate code the certificate code calculating other users, the certificate code of generation has higher security.
It should be noted that: the certificate code generating apparatus of the electronic ticket that above-described embodiment provides is when generating the certificate code of electronic ticket, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the certificate code generating method embodiment of the certificate code generating apparatus of the electronic ticket that above-described embodiment provides and the certificate code generation server of electronic ticket and electronic ticket belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (13)

1. a certificate code generating method for electronic ticket, is characterized in that, described method comprises:
Obtain increasing sequence unique for the overall situation of electronic ticket distribution in advance;
Business account according to user obtains user ID sequence;
Obtain first random value, and obtain the first password corresponding with described first random value preset, wherein, the every bar password preset is made up of default value bit digital;
By described first password, computing is encrypted to described first random value, described increasing sequence and described user ID sequence, obtains the certificate code of described electronic ticket.
2. method according to claim 1, is characterized in that, after described acquisition first random value, also comprises:
Described first random value and described increasing sequence are combined as the mark of described electronic ticket, and the mark of the electronic ticket be combined to are stored to the database that described user ID sequence pair answers, as the foundation of the validity of electronic ticket described in subsequent authentication.
3. method according to claim 1, is characterized in that, is describedly encrypted computing by described first password to described first random value, described increasing sequence and described user ID sequence, comprising:
The bits per inch word of the bits per inch word of the first predetermined position in described first password to described user ID sequence is used to ask mould, obtain the first modulus value, the figure place that described first predetermined position comprises numeral is identical with the figure place that described user ID sequence comprises numeral;
Numeral according to the second predetermined position in described first password positions definition to described first modulus value, obtains the first positioning sequence;
Determine the second random value according to described user ID sequence and described first modulus value, and obtain second password corresponding with described second random value preset;
Use the bits per inch word of bits per inch word to described increasing sequence of the 3rd predetermined position in described second password to ask mould, obtain the second modulus value, the figure place that described 3rd predetermined position comprises numeral is identical with the figure place that described increasing sequence comprises numeral;
Numeral according to the 4th predetermined position in described second password positions definition to described second modulus value, obtains the second positioning sequence;
According to discrete described second modulus value of described second positioning sequence, obtain the first certificate code sequence, and according to described first positioning sequence by discrete for described first modulus value extremely described first certificate code sequence, obtain the second certificate code sequence, using described second certificate code sequence as the certificate code described electronic ticket being encrypted to computing and obtaining.
4. method according to claim 1, is characterized in that, after the certificate code of the described electronic ticket of described generation, also comprises:
Receive the certificate code update request of the terminal transmission that described user ID sequence pair is answered;
The step of acquisition first random value is returned, until after regenerating the new certificate code of described electronic ticket, using the certificate code of described new certificate code as described electronic ticket according to described certificate code update request.
5. method according to claim 1, is characterized in that, after the certificate code of the described electronic ticket of described generation, also comprises:
Obtain user and use the certificate code inputted during described electronic ticket;
The certificate code of described input is decrypted, obtains the increasing sequence of the certificate code correspondence of described input, the first random value and user ID sequence;
Inquire about according to described first random value and described increasing sequence the database that described user ID sequence pair answers, determine that whether described electronic ticket is effective;
If determine that described electronic ticket is effective, then described user is allowed to use described electronic ticket.
6. method according to claim 5, is characterized in that, the described user of described permission also comprises after using described electronic ticket:
The mobile terminal of answering to described user ID sequence pair sends the information using described electronic ticket;
Determine whether to receive the confirmation that described mobile terminal returns and use message;
If receive the confirmation use message that described mobile terminal returns, then consume described electronic ticket.
7. a certificate code generating apparatus for electronic ticket, it is characterized in that, described device comprises:
First acquisition module, for obtaining increasing sequence unique for the overall situation of electronic ticket distribution in advance;
Second acquisition module, obtains user ID sequence for the business account according to user;
3rd acquisition module, for obtaining first random value;
4th acquisition module, for obtaining the default first password corresponding with described first random value, wherein, the every bar password preset is made up of default value bit digital;
Encrypting module, for being encrypted computing by described first password to described first random value, described increasing sequence and described user ID sequence, obtains the certificate code of described electronic ticket.
8. device according to claim 7, is characterized in that, described device, also comprises:
Composite module, for being combined as the mark of described electronic ticket by described first random value and described increasing sequence;
Memory module, for the mark of the electronic ticket be combined to being stored to the database that described user ID sequence pair is answered, as the foundation of the validity of electronic ticket described in subsequent authentication.
9. device according to claim 7, is characterized in that, described encrypting module, comprising:
First asks form unit, mould is asked for using the bits per inch word of the bits per inch word of the first predetermined position in described first password to described user ID sequence, obtain the first modulus value, the figure place that described first predetermined position comprises numeral is identical with the figure place that described user ID sequence comprises numeral;
First bit definition unit, positions definition for the numeral according to the second predetermined position in described first password to described first modulus value, obtains the first positioning sequence;
Determining unit, for determining the second random value according to described user ID sequence and described first modulus value;
Acquiring unit, for obtaining default second password corresponding with described second random value;
Second asks form unit, mould is asked for using the bits per inch word of bits per inch word to described increasing sequence of the 3rd predetermined position in described second password, obtain the second modulus value, the figure place that described 3rd predetermined position comprises numeral is identical with the figure place that described increasing sequence comprises numeral;
Second bit definition unit, for positioning definition according to the numeral of the 4th predetermined position in described second password to described second modulus value, obtains the second positioning sequence;
First discrete unit, for according to discrete described second modulus value of described second positioning sequence, obtains the first certificate code sequence;
Second discrete unit, for obtaining second certificate code sequence by discrete for described first modulus value in described first certificate code sequence according to described first positioning sequence, using described second certificate code sequence as the certificate code described electronic ticket being encrypted to computing and obtaining.
10. device according to claim 7, is characterized in that, described device, also comprises:
Receiver module, the certificate code update request that the terminal of answering for receiving described user ID sequence pair sends;
Return module, for returning the step of acquisition first random value according to described certificate code update request, until after regenerating the new certificate code of described electronic ticket, using the certificate code of described new certificate code as described electronic ticket.
11. devices according to claim 7, is characterized in that, described device, also comprises:
5th acquisition module, uses for obtaining user the certificate code inputted during described electronic ticket;
Deciphering module, for being decrypted the certificate code of described input, obtains the increasing sequence of the certificate code correspondence of described input, the first random value and user ID sequence;
Enquiry module, for inquiring about the database that described user ID sequence pair is answered according to described first random value and described increasing sequence, determines that whether described electronic ticket is effective;
Allowing module, for when determining that described electronic ticket is effective, allowing described user to use described electronic ticket.
12. devices according to claim 11, is characterized in that, described device, also comprises:
Sending module, sends for the mobile terminal of answering to described user ID sequence pair the information using described electronic ticket;
Determination module, the confirmation returned for determining whether to receive described mobile terminal uses message;
Consumption module, for when receiving the confirmation use message that described mobile terminal returns, consumes described electronic ticket.
The certificate code generation server of 13. 1 kinds of electronic tickets, it is characterized in that, described server includes storer, and one or more than one program, one of them or more than one program are stored in storer, and be configured to be performed by more than one or one processor, described more than one or one routine package is containing the instruction for performing following operation:
Obtain increasing sequence unique for the overall situation of electronic ticket distribution in advance;
Business account according to user obtains user ID sequence;
Obtain first random value, and obtain the first password corresponding with described first random value preset, wherein, the every bar password preset is made up of default value bit digital;
By described first password, computing is encrypted to described first random value, described increasing sequence and described user ID sequence, obtains the certificate code of described electronic ticket.
CN201410425690.5A 2014-08-26 2014-08-26 Ticket code generation method and device of electronic ticket and server Active CN105373927B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410425690.5A CN105373927B (en) 2014-08-26 2014-08-26 Ticket code generation method and device of electronic ticket and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410425690.5A CN105373927B (en) 2014-08-26 2014-08-26 Ticket code generation method and device of electronic ticket and server

Publications (2)

Publication Number Publication Date
CN105373927A true CN105373927A (en) 2016-03-02
CN105373927B CN105373927B (en) 2020-06-02

Family

ID=55376105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410425690.5A Active CN105373927B (en) 2014-08-26 2014-08-26 Ticket code generation method and device of electronic ticket and server

Country Status (1)

Country Link
CN (1) CN105373927B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106712934A (en) * 2016-12-01 2017-05-24 腾讯科技(深圳)有限公司 Identification information generation method and device
CN106972918A (en) * 2017-03-15 2017-07-21 中国工商银行股份有限公司 A kind of generation method, device and the verification method of electronic code data
CN107707345A (en) * 2016-08-09 2018-02-16 百度在线网络技术(北京)有限公司 A kind of encryption of bar code and verification method and device
CN108256915A (en) * 2018-01-17 2018-07-06 北京网信云服信息科技有限公司 A kind of sharing method of electronic ticket, presented side's terminal, server and system
CN108280678A (en) * 2018-01-10 2018-07-13 北京思特奇信息技术股份有限公司 A kind of card certificate dynamic creation method and system
WO2018196814A1 (en) * 2017-04-28 2018-11-01 阿里巴巴集团控股有限公司 Method and device for processing electronic coupon link
CN109117116A (en) * 2017-06-26 2019-01-01 上海新飞凡电子商务有限公司 Based on the random delivery of cargo code generating method from increasing sequence
CN110046508A (en) * 2018-12-27 2019-07-23 阿里巴巴集团控股有限公司 Service code code value processing method, device and equipment
CN110543471A (en) * 2019-07-05 2019-12-06 威富通科技有限公司 Ticket code generation method and server
CN110738513A (en) * 2019-09-11 2020-01-31 完美世界(北京)软件科技发展有限公司 method and device for generating and verifying redemption codes
CN111026758A (en) * 2019-12-11 2020-04-17 易点生活电子商务有限公司 Electronic ticket issuing method and device
CN111401965A (en) * 2020-03-24 2020-07-10 贵阳块数据城市建设有限公司 Electronic coupon code classification management system
CN111723360A (en) * 2019-03-18 2020-09-29 北京京东尚科信息技术有限公司 Voucher code processing method and device and storage medium
CN111914515A (en) * 2020-08-17 2020-11-10 江苏华泽微福科技发展有限公司 Ticket encryption system and verification method
CN112016948A (en) * 2019-05-31 2020-12-01 口碑(上海)信息技术有限公司 Electronic ticket code generation method and device, storage medium and electronic device
CN112668017A (en) * 2020-12-24 2021-04-16 阡陌数字信息科技(南京)有限公司 Construction method, decryption method and device of self-explanatory encryption card

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546333A (en) * 2009-04-14 2009-09-30 北京红旗贰仟软件技术有限公司 Method for determining uniqueness of electronic documents by using electronic barcode
CN101799879A (en) * 2009-12-29 2010-08-11 上海贝岭股份有限公司 Method for manufacturing real-name train ticket
US20120134492A1 (en) * 2010-11-29 2012-05-31 Hui Liu Data Encryption and Decryption Method and Apparatus
CN102509141A (en) * 2011-10-31 2012-06-20 广东商学院 Electronic group-buying coupon and usage and system of electronic group-buying coupon
CN103093375A (en) * 2012-12-31 2013-05-08 邬国锐 Electronic coupon processing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546333A (en) * 2009-04-14 2009-09-30 北京红旗贰仟软件技术有限公司 Method for determining uniqueness of electronic documents by using electronic barcode
CN101799879A (en) * 2009-12-29 2010-08-11 上海贝岭股份有限公司 Method for manufacturing real-name train ticket
US20120134492A1 (en) * 2010-11-29 2012-05-31 Hui Liu Data Encryption and Decryption Method and Apparatus
CN102509141A (en) * 2011-10-31 2012-06-20 广东商学院 Electronic group-buying coupon and usage and system of electronic group-buying coupon
CN103093375A (en) * 2012-12-31 2013-05-08 邬国锐 Electronic coupon processing system and method

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707345A (en) * 2016-08-09 2018-02-16 百度在线网络技术(北京)有限公司 A kind of encryption of bar code and verification method and device
CN106712934A (en) * 2016-12-01 2017-05-24 腾讯科技(深圳)有限公司 Identification information generation method and device
CN106972918A (en) * 2017-03-15 2017-07-21 中国工商银行股份有限公司 A kind of generation method, device and the verification method of electronic code data
WO2018196814A1 (en) * 2017-04-28 2018-11-01 阿里巴巴集团控股有限公司 Method and device for processing electronic coupon link
US11182816B2 (en) 2017-04-28 2021-11-23 Advanced New Technologies Co., Ltd. Method and device for processing electronic coupon link
CN109117116A (en) * 2017-06-26 2019-01-01 上海新飞凡电子商务有限公司 Based on the random delivery of cargo code generating method from increasing sequence
CN108280678A (en) * 2018-01-10 2018-07-13 北京思特奇信息技术股份有限公司 A kind of card certificate dynamic creation method and system
CN108280678B (en) * 2018-01-10 2022-07-19 北京思特奇信息技术股份有限公司 Method and system for dynamically generating card ticket
CN108256915A (en) * 2018-01-17 2018-07-06 北京网信云服信息科技有限公司 A kind of sharing method of electronic ticket, presented side's terminal, server and system
CN110046508B (en) * 2018-12-27 2024-06-18 创新先进技术有限公司 Service code value processing method, device and equipment
CN110046508A (en) * 2018-12-27 2019-07-23 阿里巴巴集团控股有限公司 Service code code value processing method, device and equipment
CN111723360A (en) * 2019-03-18 2020-09-29 北京京东尚科信息技术有限公司 Voucher code processing method and device and storage medium
CN111723360B (en) * 2019-03-18 2023-11-03 北京京东尚科信息技术有限公司 Credential code processing method, device and storage medium
CN112016948B (en) * 2019-05-31 2024-01-23 口碑(上海)信息技术有限公司 Method and device for generating electronic coupon code, storage medium and electronic device
CN112016948A (en) * 2019-05-31 2020-12-01 口碑(上海)信息技术有限公司 Electronic ticket code generation method and device, storage medium and electronic device
CN110543471A (en) * 2019-07-05 2019-12-06 威富通科技有限公司 Ticket code generation method and server
CN110738513A (en) * 2019-09-11 2020-01-31 完美世界(北京)软件科技发展有限公司 method and device for generating and verifying redemption codes
CN111026758A (en) * 2019-12-11 2020-04-17 易点生活电子商务有限公司 Electronic ticket issuing method and device
CN111026758B (en) * 2019-12-11 2022-09-16 易点生活数字科技有限公司 Electronic ticket issuing method and device
CN111401965A (en) * 2020-03-24 2020-07-10 贵阳块数据城市建设有限公司 Electronic coupon code classification management system
CN111914515A (en) * 2020-08-17 2020-11-10 江苏华泽微福科技发展有限公司 Ticket encryption system and verification method
CN112668017A (en) * 2020-12-24 2021-04-16 阡陌数字信息科技(南京)有限公司 Construction method, decryption method and device of self-explanatory encryption card

Also Published As

Publication number Publication date
CN105373927B (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN105373927A (en) Coupon code generation method of electronic coupon, device and server
CN110264200B (en) Block chain data processing method and device
CN102782694B (en) Apparatus, method and system for data security
CA2652084C (en) A method and apparatus to provide authentication and privacy with low complexity devices
EP3779792B1 (en) Two-dimensional code generation method, data processing method, apparatus, and server
CN108123800A (en) Key management method, device, computer equipment and storage medium
CN109347632B (en) Block chain ID generation and use method, device, electronic equipment and storage medium
CN101997681B (en) Authentication method and system for multi-node path and relevant node equipment
CN112560067A (en) Access method, device and equipment based on token authority verification and storage medium
CN107592202A (en) Application signature method, apparatus, system, computing device and storage medium
CN113422686B (en) Gateway layer authentication method, system, electronic device and storage medium
CN114091045A (en) Information inquiry method, device, system, equipment and storage medium for protecting privacy
CN113536284B (en) Digital certificate verification method, device, equipment and storage medium
CN111695097A (en) Login checking method and device and computer readable storage medium
CN107196919A (en) A kind of method and apparatus of matched data
CN111628863B (en) Data signature method and device, electronic equipment and storage medium
CN105653902B (en) Software registration method and device register code generating method and device
CN110166230A (en) Code key management method and device
CN103368918A (en) Method, device and system for dynamic password authentication
EP3270562B1 (en) A method of generating multiple identifications with multi-level security for network-connected devices
CN113221154A (en) Service password obtaining method and device, electronic equipment and storage medium
CN101192263A (en) Information processing system and method
CN113162763A (en) Data encryption and storage method and device, electronic equipment and storage medium
CN103326994A (en) Method and system for processing services
EP3472997A1 (en) Generating unique random strings as element identifiers

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