Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of and transmits the method for Transaction Information by the mobile network, with the security of guaranteeing that the user concludes the business by the mobile network.
Another object of the present invention is to provide a kind of system that transmits Transaction Information by the mobile network.
A kind of method of transmitting Transaction Information by the mobile network of the present invention, the portable terminal and the financial sector that transmit both sides as Transaction Information send and receive move transaction information by the mobile network, be provided for encryption and comprise the financial module of financial key at the transmit leg of move transaction information, be provided for decryption processing and comprise the financial module of financial key the take over party of move transaction information, this method may further comprise the steps:
A. the transmit leg of move transaction information carries out encryption by financial module to the Transaction Information in the current transaction related information that needs to send, and the transaction related information after will handling sends to the take over party of move transaction information;
B. the take over party of move transaction information is decrypted processing by financial module to the Transaction Information in the transaction related information that receives, and obtains the Transaction Information after the deciphering.
This method may further include: move transaction information sender and take over party's financial module generates communication key according to financial key respectively;
Among the step a, the transmit leg of described move transaction information carries out encryption by financial module to the Transaction Information that sends and is: the move transaction information sender is encrypted Transaction Information according to communication key;
Among the step b, the take over party of described move transaction information is decrypted the Transaction Information that receives by financial module and is treated to: the move transaction information sender is decrypted Transaction Information according to communication key.
Described financial module generates communication key according to financial key: generate communication key according to financial key and random number.
This method may further include: the transmit leg of move transaction information and take over party's financial module generate signature key according to financial key respectively;
Among the step a, the transmit leg of described move transaction information carries out encryption by financial module to the Transaction Information that sends and is: the transmit leg of move transaction information generates signature according to signature key for this Transaction Information; The take over party that transaction related information after described will the processing sends to move transaction information is: will sign and send to the take over party of Transaction Information with Transaction Information together by transaction related information;
Among the step b, the take over party of described move transaction information is decrypted to handle to the Transaction Information that receives by financial module and comprises: the take over party of move transaction information generates signature according to signature key for this Transaction Information, whether the signature that relatively carries in this signature and the transaction related information of receiving is consistent afterwards, if, determine that then current information is correct, the step of the Transaction Information after the deciphering is obtained in execution afterwards; Otherwise, determine that current information is incorrect, and finish to work as pre-treatment.
Described financial module generates signature key by financial key: generate signature key according to financial key and random number.
Described Transaction Information is: all information in the transaction related information except that signing messages.
Described random number is produced by a side who transmits move transaction information, and this random number is sent to the opposing party; Described this random number is sent to the opposing party is independent transmission, also can be to transmit together with other Transaction Information.
Described random number produces when each transaction, or is produced by the transmit leg of Transaction Information when sending Transaction Information at every turn, or by a side who transmits move transaction information generation regularly.
This method can further include: the user totem information corresponding with financial key is set; The corresponding relation that further comprises financial key and user totem information in the described financial sector;
Described financial sector according to financial key Transaction Information is encrypted or decryption processing before, further comprise: financial sector is obtained the mobile terminal user identification information, and obtains corresponding financial key according to this user totem information.
The transmit leg of described move transaction information is a portable terminal; Further comprise in the financial module of described portable terminal: user key;
Then this method may further include: portable terminal is encrypted the key data of self by this user key, preserves afterwards and encrypts the key data that obtains;
Before described portable terminal is encrypted Transaction Information by financial module, further comprise: by user key the key data of self preserving is decrypted processing, the financial module of portable terminal is encrypted Transaction Information by the key data that deciphering obtains afterwards.
Further comprise transaction journal number in the described transaction related information, and transmit the serial number of preserving the last and completed transaction among the both sides of move transaction information;
Among the step b, after the Transaction Information of the take over party of described move transaction information after obtaining deciphering, further comprise: judge that whether the pairing serial number of this Transaction Information is greater than the serial number of self preserving, if, then further handle this Transaction Information, otherwise, this Transaction Information is made invalidation.
Further comprise message SN in the described transaction related information, and preserve the message SN of the last transaction related information among the both sides of transmission move transaction information;
Among the step b, the take over party of described move transaction information is before being decrypted processing by financial module to the Transaction Information in the current transaction related information that needs to send, further comprise: judge that whether the pairing message SN of this transaction related information is greater than the message SN of self preserving, if, then carry out the step that this Transaction Information is decrypted processing, otherwise, this transaction related information is made invalidation, and finishes to work as pre-treatment.
A kind of system that transmits Transaction Information by the mobile network of the present invention, at least comprise portable terminal and the financial sector of transmitting move transaction information in the system, comprise the financial module that is used for encryption and comprises financial key in the transmit leg of move transaction information, the transmit leg of move transaction information carries out encryption by financial module to the Transaction Information in the current transaction related information that needs to send, and the transaction related information after will handling sends to the take over party of move transaction information;
Comprise the financial module that is used for decryption processing and comprises financial key among the take over party of move transaction information, the take over party of move transaction information is decrypted processing by financial module to the Transaction Information in the transaction related information that receives, and obtains the Transaction Information after the deciphering.
The transmit leg of described move transaction information and the financial module among the take over party generate communication key by financial key;
The transmit leg of described move transaction information by financial module to the encryption that Transaction Information carries out is: financial module is carried out encryption by the communication key that generates to Transaction Information;
The take over party of described move transaction information by financial module to the decryption processing that Transaction Information carries out is: financial module is decrypted processing by the communication key that generates to Transaction Information.
The transmit leg of described move transaction information and the financial module among the take over party generate signature key according to financial key;
The transmit leg of described move transaction information by financial module to the encryption that Transaction Information carries out is: the financial module of move transaction information sender generates signature according to signature key for this Transaction Information;
The take over party of described move transaction information by financial module to the decryption processing that Transaction Information carries out is: move transaction receiving party's financial module generates signature according to signature key for this Transaction Information, and relatively whether this signature is consistent with the signature of receiving, the Transaction Information obtain deciphering when signature is consistent after.
The transmit leg of described move transaction information is a portable terminal; Further comprise in the financial module of described portable terminal: user key, described portable terminal is encrypted the key data of self by this user key:
The encryption that described portable terminal is done Transaction Information by financial module comprises: by user key self key data is decrypted processing, financial module is encrypted Transaction Information by the key data that deciphering obtains afterwards.
The present invention program is provided with financial module by the both sides that send and receive in move transaction information such as portable terminal and financial sectors, Transaction Information to the needs transmission carries out the encryption and decryption processing, can solve the safety issue of mobile payment, guaranteed that financial transaction is independent of outside mobile network's the safety, even make under the situation that mobile communication safety is broken, financial transaction safety can not be on the hazard yet, thereby, for the transmission of Transaction Information between financial sector and the customer mobile terminal provides special safety guarantee.By implementing the progress that this method can promote mobile payment service greatly, and can promote to carry out carrying out of block trade business by portable terminal.
The security system that the present invention program provides is independent of mobile network's security system, also be that the E-Security scheme can independently be implemented, the change that has guaranteed the financial transaction security strategy can not have influence on carrying out of existing mobile service, implements thereby help the independent of mobile payment service more.
The present invention program also by increasing financial key identification, makes the user can pass through a plurality of bank accounts of mobile terminal administration.
Embodiment
The present invention program mainly does some settings to the system that transmits Transaction Information by the mobile network, at least comprise portable terminal and financial sector in such system, specifically, be financial module to be set the both sides that move transaction information sends and receives, the transmit leg of move transaction information carries out encryption by financial module to the Transaction Information that will send, and the take over party of move transaction information then is decrypted processing by financial module to the Transaction Information that receives.The system that is provided with financial module as shown in Figure 1.
Reaching specific embodiment below more in conjunction with the accompanying drawings is described in further detail implementation of the present invention.
Referring to Fig. 2, the present invention program can realize by following steps:
Step 201, be provided for the financial module of encryption, and be provided for the financial module of decryption processing the take over party of move transaction information at the transmit leg of move transaction information.
The transmit leg of move transaction information and take over party can be financial sectors, also can be portable terminals.Also financial key should be set in the financial module of portable terminal and financial sector.For portable terminal, should determine the user totem information corresponding with financial key, this user totem information can directly not be kept at portable terminal, such as, the mobile terminal number that can this user ID be set to the user, portable terminal is when financial sector transmits transaction related information, and this mobile terminal number is sent to financial sector as call information, and this sign also can be other identification information or the mailing address information of portable terminal.Certainly, this user ID also can be that financial sector is the special finance sign of special of being provided with of this mobile phone users, such as, it is a finance sign that is similar to bank's card number etc., at this moment, can will should the finance sign be kept at portable terminal, portable terminal is when financial sector transmits transaction related information, and this finance sign is sent to financial sector as transaction related information.This finance sign can also directly be an account No..Then preserve the corresponding relation of financial key and user totem information in the financial sector, so that financial sector selects correct financial key that move transaction information is encrypted or decryption processing according to user ID.
In addition, the financial module of financial sector can be arranged on AUC.
The transmit leg ofstep 202, move transaction information is when take over party's transmission comprises the transaction related information of Transaction Information at least, by this financial module wherein Transaction Information is carried out encryption, and the Transaction Information after will encrypting sends to the take over party of move transaction information by transaction related information.
Portable terminal carries out encryption to Transaction Information, is meant that portable terminal encrypts Transaction Information according to financial key by the cryptographic algorithm in the financial module.
It is Transaction Information to be encrypted according to financial key by the cryptographic algorithm in the financial module equally that financial sector is carried out encryption to Transaction Information, different is, financial sector need at first be obtained user totem information, obtains corresponding financial key according to this user totem information again.This user totem information can be informed financial sector by the mobile network as mobile calls information, also can directly inform financial sector by portable terminal or other terminal, and this other-end can be point of sells service terminals such as (POS).If user totem information directly is a customer mobile terminal number etc., then mobile communications network can directly send this customer mobile terminal number to financial sector by call information; Accordingly, if user totem information is bank's card number etc., then generally be to inform financial sector by transaction related information, promptly should comprise the information of bank's card number and so in this transaction related information as user totem information.
In addition, the Transaction Information of portable terminal transmission can be the transaction content information that comprises trading volume relevant informations such as dealing money; Also can be the affirmation information of confirming whether current transaction is carried out.
When the take over party ofstep 203, move transaction information receives the Transaction Information that transmit leg sends, by financial module the Transaction Information of receiving is decrypted processing, to obtain real Transaction Information.
Specifically, the take over party is by financial module as portable terminal, according to the Transaction Information ciphertext in this transaction related information of financial secret key decryption, obtains Transaction Information expressly.The take over party is as financial sector, it is the financial key of determining this user totem information correspondence according to the entrained user totem information of transaction related information that receives, then, obtain Transaction Information expressly according to the Transaction Information ciphertext in this this transaction related information of finance secret key decryption.
By above-mentioned steps, can realize purpose of the present invention.
Certainly, for the both sides that move transaction information is transmitted more perfect to the encryption of Transaction Information, can also be by the transmit leg of Transaction Information, such as financial sector, generate a random number, and this random number sent to the take over party of move transaction information as transaction related information, such as portable terminal.The both sides that Transaction Information transmits are no matter be portable terminal or financial sector, all obtain communication key according to financial key and this random number, like this, the transmit leg of above-mentioned move transaction information is when sending transaction related information, Transaction Information in the transaction related information is encrypted according to financial key by the cryptographic algorithm in the financial module, be actually and at first obtain communication key, and by cryptographic algorithm Transaction Information is encrypted according to this communication key.Correspondingly, the take over party of above-mentioned move transaction information is when receiving Transaction Information, Transaction Information is decrypted according to financial key by the decipherment algorithm in the financial module, is actually and at first obtains this communication key, and by decipherment algorithm Transaction Information is decrypted according to this communication key.
Certainly, in order further to improve the security of network service, can also further produce the signature key that is used to verify Transaction Information integrality and correctness.Specifically, be to generate communication key and signature key according to financial key by the transmit leg of move transaction information, this transmit leg at first carries out encryption according to this communication key to Transaction Information, afterwards again by signature algorithm according to signature key to the processing of signing of the message ciphertext after encrypting.Accordingly, the take over party of move transaction information also generates communication key and signature key according to financial key, like this, the take over party of move transaction information is when receiving transaction related information, at first by signature algorithm according to signature key to the processing of signing of the Transaction Information in the message that receives, obtaining the signature of Transaction Information, and whether more resulting signature is consistent with the signature in receiving transaction related information, thereby judges the correctness and the integrality of Transaction Information.Inconsistent if sign, illustrate that then Transaction Information makes mistakes; If signature is consistent, promptly Transaction Information is correct, and then the take over party is decrypted Transaction Information by decipherment algorithm according to communication key again, thereby obtains Transaction Information expressly.
More than to handle be only at Transaction Information to signature, such as only to dealing money, whether conclude the business, the processing of signing such as trading password.In the middle of the reality, can be at the computing of signing except that the All Activity relevant information of signature the result, such as, not only to dealing money, whether conclude the business, Transaction Information such as trading password is signed computing, if user totem information is a finance sign, then can also be at the computing of also signing of this finance sign, that is, simultaneously to dealing money, whether conclude the business, trading password, user ID are signed processing.
Certainly, also communication key can be set, but a signature key only is set, simplifying processing procedure, but in this case, be the security that guarantees user password information, should transmit the user with signature way and confirm the password of concluding the business.
For generating communication key and signature key, can two random numbers be set by financial sector, and generate communication key and signature key by these two random numbers and financial key respectively.Also can only utilize a random number and financial key, such as, communication key generated with the part in this random number and financial key, with the another part and the financial key generation signature key of this random number.Certainly, also can use different algorithms to use a random number and financial key to generate communication key and signature key simultaneously.
For the random number among the present invention program, no matter be only to be used to produce communication key, still both be used to produce communication key, be used to produce signature key again, can be when sending message at every turn, transmit leg by move transaction information produces, and send to corresponding take over party, also can be once to conclude the business only to produce random number one time, can be side generation random number, and in this transaction related information, carry this random number by the transaction related information that sends for the first time this time transaction, corresponding take over party then preserves this random number, correspondingly, move transaction information sender afterwards just need not be carried this random number again when sending transaction related information.Certainly, this random number also can be produced by any one party that Transaction Information transmits and send to the other side and preserve, and only needs to produce and transmit one time random number to guarantee once transaction.
The random number that relates among the present invention program can also be regular generation, promptly, be not each transaction or all will again produce random number when sending transaction related information at every turn, can be after having produced random number, the both sides that move transaction information transmits preserve this random number respectively, and is set the effective time of this random number, such as a week, or one month, or other random time section.The Transaction Information transmit leg is when sending transaction related information, check at first whether before the deadline this random number, if, then directly use this random number to make relevant treatment, otherwise, oneself produce a random number again, and this random number sent to the take over party, or the request take over party produces a random number again, and send to oneself, then, both sides produce communication key and signature key according to new random number, and use the computing of signing of new signature key, and use new communication key to carry out the encryption and decryption computing.
The plan of establishment based on above-mentioned random number, if random number produces when being each transaction or transmission Transaction Information, then communication key among the present invention program and signature key can be in each transaction or when sending transaction related information at every turn, produce according to financial key and random number.Situation for regular generation random number, communication key and signature key can be in each transaction or when sending transaction related information at every turn, immediately produce according to financial key and random number, also can be after according to this random number and financial key generation communication key and signature key, communication key, signature key and financial key are preserved together, so that in follow-up transaction, use.
But directly preserving these key informations is very unsafe for portable terminal, and the key of preserving in the portable terminal is easy to be stolen.For addressing this problem, can also further produce user key, with this user key key datas such as financial key, communication key and signature key are carried out encryption, and the key data after will encrypting is kept in the portable terminal.Like this, when portable terminal is carried out transaction at needs, at first according to user key decruption key data, to obtain key data such as financial key.Like this, even the pairing loss of data of these keys can not impact user's account safety yet.For portable terminal, this user key can be an encrypted message, also can be the terminal key by this encrypted message control access.
For further guaranteeing the security of key data, can also realize the control visit of key data by hardware encryption circuit, be set to write key such as financial module, and can not read key.The technology that realizes data access control by hardware encryption circuit is very ripe, such as, key etc. is set in SIM card, no longer be described in detail at this.
By above-mentioned setting, though the relevant information of current transaction can not be cracked,, current transaction may be intercepted and captured and repeat mala fide and be sent by other users, to disturb the take over party of Transaction Information.Because signature key is to obtain by computing that the data in the transaction related information are signed, therefore can in transaction related information, be provided for identifying the identification information of current transaction, such as, transaction journal information can be set in Transaction Information, each transaction is at a transaction journal number, and transaction journal number increases progressively according to the order of transaction.Like this, the take over party of current transaction receives Transaction Information, and determine after the signature unanimity, also need number to judge whether current Transaction Information is invalid Transaction Information by transaction journal, the serial number of once concluding the business before if the serial number in the current Transaction Information is less than or equal to, determine that then current Transaction Information is an invalid information, therefore can make invalidation to this transaction.Certainly, portable terminal should be preserved the transaction journal number of last transaction after transaction is finished, and financial sector also should be preserved corresponding to the transaction journal of the last transaction of this portable terminal number.
In order to prevent the repetition message attack, in the middle of the reality, can also solve by the mode that message SN increases progressively.That is, message SN is set in Transaction Information, message of the every transmission of transmit leg just increases a numeral with the sequence number in the message, and the numeral that is increased can be fixed, such as, increase by 1 at every turn; Also can be at random, such as, the random digit from 1 to 100 increased at every turn.Like this, when the take over party of move transaction information before the Transaction Information in the transaction related information that receives is decrypted processing, when determining that at first the entrained sequence number of the current message that receives is less than or equal to the entrained sequence number of message that the last time receives, just think that this message is repetition message, and filter out this message.Certainly, portable terminal and financial sector all should be preserved the sequence number of last message accordingly.
From combination, financial module can be the combination of a data file and program, and wherein, data file is used to preserve financial key etc., and program then realizes the function of encryption and decryption.On structure, financial module can be a chip, has preserved financial key in this chip, and this chip can also have the function of encryption and decryption simultaneously.At this moment, the encryption and decryption processing for Transaction Information is realized by this chip.
Certainly, can use special chip to realize the control visit of key data, and use general application program to realize enciphering and deciphering algorithm.When needs carried out the encryption and decryption processing to Transaction Information, application program was obtained corresponding key data by the cipher key access password, and used this key data that corresponding Transaction Information is carried out encryption and decryption and handle.
Owing to be provided with the corresponding relation of financial key and user totem information in terminal, therefore, the present invention can also be further be provided with a plurality of financial keys and corresponding a plurality of user totem informations in terminal, thereby, can realize the function of a plurality of bank cards of terminal management.
The above only is the present invention program's preferred embodiment, not in order to limit protection scope of the present invention.