WO2016070799A1 - 数据交互方法和系统 - Google Patents

数据交互方法和系统 Download PDF

Info

Publication number
WO2016070799A1
WO2016070799A1 PCT/CN2015/093729 CN2015093729W WO2016070799A1 WO 2016070799 A1 WO2016070799 A1 WO 2016070799A1 CN 2015093729 W CN2015093729 W CN 2015093729W WO 2016070799 A1 WO2016070799 A1 WO 2016070799A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
real
manager
sleeve
real card
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.)
Ceased
Application number
PCT/CN2015/093729
Other languages
English (en)
French (fr)
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.)
Tendyron Corp
Original Assignee
Tendyron Corp
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
Priority claimed from CN201510055973.XA external-priority patent/CN105991545A/zh
Priority claimed from CN201510054772.8A external-priority patent/CN105989476A/zh
Application filed by Tendyron Corp filed Critical Tendyron Corp
Priority to SG11201703723WA priority Critical patent/SG11201703723WA/en
Priority to US15/525,204 priority patent/US20170337545A1/en
Priority to EP15856587.9A priority patent/EP3217620B1/en
Publication of WO2016070799A1 publication Critical patent/WO2016070799A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention is directed to solving the above problems.
  • a primary object of the present invention is to provide a method of data interaction.
  • An aspect of the present invention provides a data interaction method, including: a card sleeve obtaining a real card information list of a card sleeve end, wherein the real card information list of the card sleeve end is a real card manager end obtained by the card sleeve from the real card manager.
  • establishing a secure connection between the card sleeve and the analog card includes: sending, by the card sleeve, a first secure connection instruction for indicating a secure connection to the analog card, wherein the first secure connection instruction comprises: using the analog card in the analog card certificate The first connection ciphertext obtained by encrypting the first binding factor of the public key to the card sleeve end and the generated first connection random factor, and the first binding factor of the card sleeve using the ferrule private key pair and the first connection random The first factor obtained by signing the factor The connection signature is received; the analog card receives the first secure connection instruction, and the first connection ciphertext is decrypted by using the analog card private key, and the first binding decryption factor of the ferrule end and the first connection random decryption factor are obtained; the analog card uses the ferrule certificate The card set public key, the first binding decryption factor of the card sleeve end, and the first connection random decryption factor verify the first connection
  • the first card binding decryption factor of the analog card verification card set is the same as the analog card end binding factor, and the second connection random factor is generated;
  • the analog card uses the card set in the card set certificate
  • the public key encrypts the first connection random decryption factor and the second connection random factor to obtain a second connection ciphertext, and uses the analog card private key to sign the first connection random decryption factor and the second connection random factor to obtain a second connection signature;
  • the simulated card sends a first secure connection response to the card sleeve, wherein the first secure connection response comprises: the second connection connection And the second connection signature; the card sleeve receives the first secure connection response, decrypts the second connection ciphertext by using the ferrule private key, and obtains the decrypted first connection random decryption factor and the second connection random decryption factor;
  • the secure connection between the card sleeve and the real card manager includes: the card sleeve receives the seventh connection random factor generated by the real card manager sent by the real card manager and the real card manager unique identifier; the card sleeve is sent to the real card manager a fourth secure connection instruction for instructing to establish a secure connection, wherein the fourth secure connection instruction includes: a card sleeve unique identifier, the card sleeve uses a real card manager public key in the real card manager certificate, and a seventh connection random factor and The seventh connected ciphertext obtained by encrypting the generated eighth connection random factor, the seventh connection signature obtained by the ferrule using the ferrule private key to sign the seventh connection random factor and the eighth connection random factor; the real card manager receives The fourth secure connection instruction determines whether the unique identifier of the card set is in the real card manager binding list; if the card unique identifier is in the real card manager binding list, the real card manager uses the real card manager private key Decrypting the seventh
  • the real card manager binding factor is a fourth binding random factor.
  • the real card manager uses the real card manager-side secure transmission key to perform second processing on the received data to verify the correctness of the second processed data, including: the real card manager uses the real card manager to securely transmit the data. After the key performs the second processing on the received data, the password to be verified is obtained; the real card manager determines whether the password to be verified is an alarm password; if the password to be verified is an alarm password, the real card manager determines that the password to be verified passes the verification. And perform an alarm operation; if the password to be verified is not an alarm password and is a login password, the real card manager determines that the password to be verified is verified.
  • the real card manager sends to the real card manager, the real card manager receives the data sent by the card set, and after performing the second processing on the received data by using the real card manager secure transmission key, the real card manager determines the second processed data.
  • the real card manager security transmission key is used to perform the first processing on the update instruction and the update data, and then sent to the card sleeve, and the card sleeve is sent to the real card manager to be sent.
  • the data is subjected to the second processing of the received data by using the second secure transmission key of the card sleeve, and the real card information list of the card sleeve end is updated.
  • the key pair update instruction and the update data are first processed and then sent to the card sleeve; the card sleeve is further configured to receive the data sent by the real card manager, and use the second secure transmission key of the card sleeve to perform the received data. After the second processing, the card card end real card information list is updated.
  • FIG. 7 is a flowchart of a method for establishing a secure connection between a card sleeve and an analog card according to an embodiment of the present invention
  • connection In the description of the present invention, it should be noted that the terms “installation”, “connected”, and “connected” are to be understood broadly, and may be fixed or detachable, for example, unless otherwise explicitly defined and defined. Connected, or integrally connected; can be mechanical or electrical; can be directly connected, or indirectly connected through an intermediate medium, can be the internal communication of the two components.
  • Connected, or integrally connected can be mechanical or electrical; can be directly connected, or indirectly connected through an intermediate medium, can be the internal communication of the two components.
  • the specific meaning of the above terms in the present invention can be understood in a specific case by those skilled in the art.
  • the contact interface may be a contact or the like, and the non-contact interface may be an NFC interface, etc., and the wireless interface may be a Bluetooth interface, an infrared interface, a 2.4 GHz interface, a WIFI interface, an RFID interface, or the like.
  • the card sleeve may include one or more card sleeves, and the card sleeve may manage one or more analog cards, and each of the analog cards may belong to and be managed by one card sleeve.
  • the ferrule may be a device separately manufactured in the shape of a card jacket, or may be a mobile device having a ferrule function provided in the data structure, including: a smartphone, a tablet (PAD), a PDA (eg, a palmtop computer, a learning machine) ), notebook computers, e-book reading devices, wearable devices (such as smart watches, smart glasses, etc.).
  • a real card manager that can manage multiple card holders, and the real card manager has multiple contact (eg, card slot, etc.) interfaces and/or contactless (eg, NFC, etc.) interfaces to facilitate real card managers.
  • contact eg, card slot, etc.
  • contactless eg, NFC, etc.
  • Different types of real cards are connected in different ways, wherein the real card manager is connected with at least one real card, and the real card manager side real card information list is stored, and the real card manager side real card information list includes the real card.
  • the card sleeve obtains a real card information list of the card sleeve end, wherein the real card information list of the card sleeve end is a real card information list of the real card manager end obtained from the real card manager, and the real card manager side real card information list Real card information including real cards connected to the real card manager;
  • the card sleeve receives the real card selection instruction, determines the selected real card; and the simulated card receives the first data sent by the transaction terminal, and sends the first data to the card sleeve;
  • the real card manager receives the first data sent by the card sleeve and sends it to the selected real card.
  • the card sleeve is used to obtain a real card information list of the card sleeve end; the real card information list is prompted by the card sleeve end; the real card selection instruction is received, and the selected real card is determined, wherein the card card end real card information list is the card sleeve from the real card.
  • the real card manager side real card information list obtained in the manager, the real card manager side real card information list includes the real card information of the real card connected with the real card manager;
  • the card sleeve is further configured to prompt the first data, receive an acknowledgement instruction for confirming that the first data is correct, and send the first data to the real card manager;
  • the real card manager Before the card sleeve obtains the real card information list of the card holder, the real card manager generates the real card information list of the real card manager by the following manner.
  • the present invention is not limited to this:
  • the real card manager After detecting the real card connected to the real card manager, the real card manager obtains the real card information of the real card, wherein the real card information includes at least: the card number; specifically, the real card manager detects that there is a real card and When making a connection, the real card information stored in the real card connected to it is read, and finally the real card information of all the real cards connected to the real card manager is obtained.
  • the real card information may include information such as card authentication information, the issuer identifier of the real card, and the like in addition to the card number.
  • the real card manager generates a real card manager end identification list in addition to the real card manager end real card information list, and the real card manager end identification list identifier and the real card manager end real card information list.
  • the real card information in the one-to-one correspondence.
  • the real card information of the real card connected in the important card area cannot be obtained, for example: the real card in the ordinary card area is visible to the card sleeve, and the card sleeve can be directly connected with it; the real card in the important card area is The card sleeve is not visible, and the card sleeve cannot be directly connected to it. If you need to connect the real card in the important card area, you need to set the card in the important card area in one of the following ways, so that the card holder Can be connected to all or part of the real card in the important card area:
  • Method 2 After the user enters the login password, the card sleeve only has the right to connect and use all the real cards in the normal card area, and does not have the right to connect and use the real card in the important card area, if necessary, the important card is needed. If the real card in the area is connected, you can set the client on the real card manager, or set the control terminal (such as PC, smartphone, tablet, etc.) connected to the real card manager, and control the terminal. Set the client, the user sets the permission by logging in to the client, and opens or closes the permission of the card to connect all or part of the real card in the important card area, so that the card can be opened with the important card area. The real card is used for connection.
  • the control terminal such as PC, smartphone, tablet, etc.
  • Method 3 After the user enters the login password, the card sleeve only has the right to connect and use all the real cards in the normal card area, and does not have the right to connect and use the real card in the important card area, if necessary, the important card is needed. If the real card in the area is connected, the password can be set on the real card manager. The user can initiate a permission setting request to the real card manager through the card sleeve. The real card manager only receives the permission setting request and receives the request. The privilege password entered by the user, and after verifying that the privilege password entered by the user is correct, can open or close the privilege of connecting all or part of the real card in the important card area, so that the ferrule can be associated with the important card.
  • the card sleeve looks for a list of card end identifiers; specifically, the card sleeve end identification list is obtained from the real card manager A list of real card manager side identifiers.
  • the card sleeve end identification list is sent to the real card manager, and the real card manager receives the card sleeve end identification list sent by the card sleeve, and determines the received card sleeve end identification list. Whether it is the same as the real card manager end identification list stored by the real card manager. If not, the real card manager sends the update command and the update data to the card sleeve, and after the card sleeve receives the update command and the update data, the card is updated.
  • the preset identifier is sent to the real card manager, so that the real card manager delivers the real card manager end identification list and
  • the real card manager After receiving the update instruction input by the user by the real card manager, the real card manager sends the real card manager side real card information list to the card holder.
  • Method 2 The card sleeve determines whether the process of updating the card information list needs to be performed:
  • the real card manager sends the real card manager end identification list to the card holder;
  • the real card manager directly sends the real card manager side real card information list to the card sleeve, so that the card sleeve is directly stored; or
  • the card sleeve In the third mode, the card sleeve is in the heartbeat sleep mode, and the card sleeve determines whether the card card end real card information list update operation process is required:
  • the card sleeve sends the detection information to the real card manager every first preset time in the heartbeat sleep mode;
  • the card sleeve If the card sleeve receives the response information within the second preset time, and the response information further includes the update prompt information, the card sleeve stores the update prompt information; wherein the update prompt information is the real card manager notifying the card set real card manager There is a prompt message for updating the real card information list on the real card manager side.
  • the card sleeve receives the real card manager end identification list sent by the real card manager, and determines whether the received real card manager end identification list is the same as the card sleeve end identification list stored by the card sleeve; specifically, if the card sleeve is first time If the real card manager end identification list is used or never successfully downloaded, and the card end end identification list is not stored, it is directly determined to be different.
  • the update instruction sent by the real card manager includes adding and/or deleting instructions
  • updating the data includes the need Adding real card information or an identifier corresponding to the real card information to be deleted, after receiving the update instruction and the update data, the card sleeve performs an addition and/or deletion operation on the card card end real card information list according to the update instruction and the update data; or
  • the update instruction sent by the real card manager includes a replacement instruction, and the update data includes a list of the real card information of the latest real card manager, and after receiving the update instruction and the update data, the card sets the card end according to the update instruction and the update data.
  • the present invention is not limited to the above implementation manner of the third method.
  • the update of the card card end real card information list may be implemented by one of the following methods:
  • the real card manager directly sends the real card manager side real card information list to the card sleeve, so that the card sleeve is directly stored; or
  • FIG. 6 shows a scheme of the fourth method of the data updating method of the present invention, and it should be understood that the data updating method is Mode 4 can be implemented by a data interaction method or a data interaction system.
  • the data updating method of the present invention includes:
  • the real card manager receives the detection information and sends a response message to the card sleeve;
  • the card sleeve If the card sleeve receives the response information within the second preset time, and the response information further includes the update prompt information, the card sleeve stores the update prompt information; wherein the update prompt information is the real card manager notifying the card set real card manager There is a prompt message for updating the real card information list on the real card manager side.
  • the real card manager sends the update command and update data to the card holder;
  • the first preset time may be the same as or different from the second preset time.
  • the present invention is not limited to the foregoing implementation manner of the fourth method.
  • the update of the card card end real card information list may be implemented by one of the following methods:
  • the real card manager After receiving the update instruction input by the user by the real card manager, the real card manager sends the real card manager side real card information list to the card holder.
  • the user may be prompted to confirm whether to update, and after the user confirms the update, perform a subsequent update operation.
  • the update data sent by the real card manager includes a real card manager end identification list, so that the card holder obtains the latest identification list.
  • the card sleeve reminds the card end of the real card information list; specifically, the card sleeve uses its own display device or the external display device to display the card card end real card information list, or the card sleeve uses its own voice playback device or by means of an external voice playback device Voice playback (such as speaker playback or earphone handset playback) card card real card information list, for users to select the real card to be used for trading according to the card card end real card information list, convenient for users to choose, enhance user experience .
  • Voice playback such as speaker playback or earphone handset playback
  • the card sleeve receives the real card selection instruction to determine the selected real card; specifically, the real card selection instruction received by the card sleeve may be generated by selecting a physical button separately set on the card sleeve, or may be on the touch screen of the card sleeve The generated by the virtual button is selected, or can be generated for the menu item indicating the selection function in the menu displayed on the card cover screen.
  • the card sleeve receives the real card selection instruction, determines the selected real card, and the card sleeve realizes data transmission via the real card manager and the selected real card.
  • the analog card receives the first data sent by the transaction terminal, and sends the first data to the card sleeve; specifically, in the data interaction process, the analog card and the transaction terminal (eg, ATM machine, POS machine, bus card recharge machine, etc.) Performing a connection (contact interface or contactless interface), the analog card receives the first data sent by the transaction terminal, and the first data may be data to be processed (eg, withdrawal amount, deduction amount, real card information acquisition request, etc.) .
  • the card set prompts the first data, receives the confirmation instruction for confirming the correctness of the first data, and sends the first data to the real card manager; specifically, the card sleeve can display the first data, or can play the voice (for example, a speaker or The first data is played by the earphone receiver, etc., for the user to confirm whether the first data is correct, and only after correct, after receiving the confirmation instruction that the user inputs the correct first data, the first data is sent to the real card. Manager; if the user confirms that the first data is incorrect, the data interaction can be directly canceled, thereby improving the security of data interaction.
  • the real card manager receives the first data sent by the card sleeve and sends it to the selected real card. Specifically, the real card manager sends the first data to the selected real card, so that the selected real card processes the first data. After the selected real card receives the first data, the first data may be processed, and the processing is a scheme for processing the existing smart card, and details are not described herein again.
  • a plurality of different types of real cards can be realized by one analog card.
  • the user performs data interaction, only the analog card and the card sleeve are carried, and the real card can be completed without carrying a real card, thereby improving convenience. And security.
  • the card sleeve can prompt the information that needs to be confirmed during the data interaction process, so that the user can confirm the information that needs to be confirmed in the data interaction process and then perform the interaction, thereby ensuring the authenticity of the data interaction and improving the security.
  • the real card matching the transaction terminal can be selected, the unnecessary expenses (such as bank interbank withdrawal fee, etc.) generated by the user in the prior art that the real card matched with the transaction terminal is not carried can be solved.
  • the above specific implementation only discloses a single data interaction from the transaction terminal to the real card.
  • there may be multiple data interactions and the interaction process is similar to the single data interaction described above.
  • Whether the data of the interaction is prompted at the ferrule to ensure the authenticity of the interactive data is determined according to whether the interactive data needs confirmation.
  • the card sleeve can be connected with the real card manager to obtain a secure connection between the card holder and the real card manager for secure transmission of data, and the real card manager security transmission key.
  • the card set establishes a secure connection with the analog card, and obtains the first secure transmission key and the analog card end secure transmission key of the card sleeve end for secure transmission of data between the card sleeve and the analog card:
  • the card holder and the analog card can establish a secure connection by:
  • Method 1 the card set and the analog card mutually authenticate each other's identity (for example, mutual authentication of the other party's signature data), and in each other In the process of authenticating the identity of the other party, compare whether the binding factors stored by the two parties are the same. After comparing the binding factors stored by both parties and verifying the identity of each other, generate a secure transmission key for secure transmission of data between the card holder and the analog card. Key (card first end secure transport key and analog card end secure transport key).
  • the card set and the analog card mutually authenticate each other's identity, that is, the card set and the analog card mutually authenticate each other's identity.
  • FIG. 7 is a flow chart showing a method for establishing a secure connection between a card sleeve and an analog card in the embodiment of the present invention. It should be understood that the method for establishing a secure connection may be implemented by a data interaction method or a data interaction system. Referring to Figure 7, the secure connection between the card holder and the analog card includes:
  • the card sleeve sends a first secure connection instruction for instructing to establish a secure connection to the analog card, where the first secure connection instruction includes: using a simulated card public key in the analog card certificate, the first binding factor of the card sleeve end, and a first connection ciphertext obtained by encrypting the generated first connection random factor, and the first connection signature obtained by the NIC using the ferrule private key to sign the first binding factor of the ferrule end and the first connection random factor; specifically Before using the card sleeve to interact with the analog card for data interaction, optionally, a secure connection is established between the card sleeve and the analog card to improve the security of subsequent data interaction.
  • the card sleeve can determine whether the analog card is in the first binding list of the card sleeve end, for example, the following manner can be determined: the card sleeve is detected in the simulation.
  • the analog card receives the first secure connection instruction, decrypts the first connection ciphertext by using the analog card private key, and obtains the first binding decryption factor of the ferrule end and the first connection random decryption factor; specifically, using the simulated card private key pair
  • the first connection ciphertext is decrypted. If a data transmission error occurs in the data transmission, or a tampering occurs in the data transmission, the decryption factor cannot be successfully decrypted, or the first binding decryption factor of the decrypted card end and the first A connection random decryption factor is different from the first binding factor of the ferrule end and the first connection random factor.
  • the simulated card uses the ferrule public key in the ferrule certificate, the first binding decryption factor of the ferrule end, and the first connection random decryption factor to verify the first connection signature; specifically, the analog card uses the ferrule public key pair ferrule The signed signature is verified to ensure the legal source of the data.
  • the simulated card After the simulated card verifies that the first connection signature is correct, it is verified whether the first binding decryption factor of the card sleeve end is the same as the analog card end binding factor; specifically, the simulated card also verifies whether the first binding decryption factor of the decrypted card sleeve end is Whether the analog card end binding factor stored in the analog card itself is the same, if the same, it indicates that the card sleeve has completed the binding operation before establishing a secure connection with the analog card. Based on this, the analog card can determine whether the card sleeve is Bind to the mock card.
  • the second connection random factor is generated; specifically, the second connection random factor may be a random number generated by the simulated card, a random character or Combination, of course, after generating the second connection random factor, the randomness of the second connection random factor may also be verified to improve the randomness of the second connection random factor to prevent cracking.
  • the analog card encrypts the first connection random decryption factor and the second connection random factor by using the ferrule public key in the ferrule certificate to obtain the second connection ciphertext, and uses the analog card private key to the first connection random decryption factor and the second connection.
  • the random factor is signed to obtain the second connection signature; specifically, the analog card encrypts the first connection random decryption factor and the second connection random factor by using the ferrule public key to ensure the first connection random decryption factor and the second connection random factor transmission
  • the security card uses the analog card private key to sign the first connection random decryption factor and the second connection random factor to ensure that the subsequent card sets can authenticate the validity of the simulated card identity.
  • the simulated card sends a first secure connection response to the card sleeve, wherein the first secure connection response includes: a second connection ciphertext and a second connection signature; specifically, the analog card sends the second connection ciphertext and the second connection signature to
  • the card sleeve is such that the card sleeve decrypts and verifies the received data.
  • the card sleeve receives the first secure connection response, and decrypts the second connection ciphertext by using the ferrule private key to obtain the decrypted first connection random decryption factor and the second connection random decryption factor; specifically, using the ferrule private key pair
  • the second connection ciphertext is decrypted. If a data transmission error occurs in the data transmission, or tampering occurs in the data transmission, the decryption may not be successful, or the decrypted first connection random decryption factor and the second connection random
  • the decryption factor is different from the first connection random factor and the second connection random factor.
  • the encryption is performed by the card holder public key, and only the card set private key can be successfully decrypted, thereby ensuring the security of data decryption.
  • the second connection random decryption factor is used to generate the first secure transmission key of the ferrule end between the ferrule and the analog card;
  • the second connection random factor is used to generate an analog card-side secure transmission key between the card sleeve and the analog card.
  • the ferrule may generate the first secure transmission key of the ferrule end between the ferrule and the analog card by using the second connection random decryption factor, or generate the ferrule by using the first connection random factor and the second connection random decryption factor.
  • the analog card may also use the second connection random factor to generate an analog card-side secure transmission key between the card sleeve and the analog card, or may use the first connection random decryption factor and the second connection random factor Generating the simulated card-side secure transmission key between the card sleeve and the analog card, and also using the first connection random decryption factor, the second connection random factor, and the analog card-side binding factor to generate the simulated card-side security between the card sleeve and the analog card
  • the transmission key as long as the card set and the analog card use the same algorithm with the same parameters to generate a secure transmission key.
  • the step of simulating the card to generate the secure key of the analog card end between the card and the analog card by using at least the second connection random factor is not limited to the steps in the first mode, and may also be in the analog card generation.
  • the simulated card end secure transmission key is generated, and after the first connection random decryption factor after the ferrule verification and decryption is the same as the first connection random factor, the success information sent by the card sleeve is received, and the simulated card end security is generated. Transfer key.
  • the security connection established by the above card sleeve and the analog card can improve the security of data transmission, and at the same time, it can also verify whether the two parties are bound, thereby further improving the security.
  • the ferrule and the analog card need to authenticate each other in addition to mutual authentication. certificate.
  • Method 2 The card set and the analog card mutually authenticate each other's identity (for example, mutually authenticate the other party's signature data), and generate a secure transmission key factor in the process of mutually authenticating the identity of the other party, and at least use the stored binding after mutual authentication of the identity of the other party.
  • the factor and the secure transmission key factor generate a secure transmission key for secure transmission of data between the card holder and the analog card (the first secure transmission key of the card holder and the secure transmission key of the analog card end), and verify the security generated by both parties. Whether the transport key is the same.
  • the card sleeve and the analog card mutually authenticate each other's identity, that is, the card sleeve and the analog card mutually authenticate each other's identity.
  • FIG. 8 is a flow chart showing a method for establishing a secure connection between a card holder and an analog card in the embodiment of the present invention. It should be understood that the method for establishing a secure connection may be implemented by a data interaction method or a data interaction system. Referring to Figure 8, the secure connection between the card holder and the analog card includes:
  • the card sleeve receives the third connection random factor generated by the simulated card sent by the analog card and the simulated card unique identifier; specifically, the third connection random factor may be a random number generated by the simulated card, a random character or a combination thereof, of course, in the generation After the three random factors are connected, the randomness of the third connected random factor can also be verified to improve the randomness of the third connected random factor and prevent the crack.
  • the simulated card generates a third connection random factor. After the simcard detects the analog card, the analog card sends the third connection random factor and the simulated card unique identifier to the ferrule.
  • the card sleeve sends a second secure connection instruction for instructing to establish a secure connection to the analog card, wherein the second secure connection instruction includes: a card sleeve unique identifier, and the card sleeve uses the analog card public key in the simulated card certificate to randomly connect the third connection
  • the third connection ciphertext obtained by encrypting the factor and the generated fourth connection random factor, and the ferrule using the ferrule private key pair third Connecting the random factor and the third connection signature obtained by the fourth connection random factor for signature; specifically, before using the card sleeve to interact with the analog card, optionally, establishing a secure connection between the card sleeve and the analog card, Improve the security of subsequent data interactions.
  • the randomness of the fourth connection random factor may also be verified to improve the The randomness of the four connected random factors is prevented from being cracked; optionally, before the step, after the card sleeve receives the unique identifier of the simulated card, the card sleeve can determine whether the simulated card is first tied at the card sleeve end according to the unique identifier of the simulated card. In the list, only after judging that the simulated card is in the first binding list of the card holder, the subsequent process is executed, the process is optimized, and the efficiency is improved.
  • the analog card receives the second secure connection instruction, and determines whether the unique identifier of the card sleeve is in the analog card end binding list; specifically, the analog card determines whether the card sleeve is in the analog card end binding list according to the received card sleeve unique identifier. In the middle; only after judging the card set in the analog card end binding list, the subsequent process is executed, the process is optimized, and the efficiency is improved.
  • the simulated card verifies the third connection signature by using the ferrule public key, the third connection random decryption factor and the fourth connection random decryption factor in the ferrule certificate; specifically, the signature of the simulated card using the ferrule public key to send the ferrule Verify to ensure the legal source of the data.
  • the simulated card After the simulated card verifies that the third connection signature is correct, it is verified whether the third connection random decryption factor is the same as the third connection random factor; specifically, the third connection random factor generated by the simulated card verification itself is the same as the third connection random decryption factor, Ensure that the data has not been tampered with, and that the encrypted data source does indeed send the third connection random factor to the simulated card.
  • the analog card uses the analog card private key to sign the third connection random decryption factor and the fourth connection random decryption factor to obtain a fourth connection signature; specifically, the analog card utilization
  • the analog card private key signs the third connection random decryption factor and the fourth connection random decryption factor to ensure that the subsequent card sets can authenticate the validity of the simulated card identity.
  • the simulated card sends a second secure connection response to the ferrule, wherein the second secure connection response includes: a fourth connection signature; specifically, the analog card sends the fourth connection signature to the ferrule, so that the ferrule performs the received data verification.
  • the card sleeve receives the second secure connection response, and verifies the fourth connection signature by using the analog card public key, the third connection random factor and the fourth connection random factor in the simulated card certificate; specifically, the card sleeve uses the analog card public key pair
  • the signature sent by the simulated card is verified to ensure the legal source of the data.
  • the fourth connection random factor and the first binding factor of the card sleeve are used to generate the first secure transmission key of the card sleeve end between the card sleeve and the analog card;
  • the analog card uses at least the fourth Connecting the random decryption factor and the simulated card end binding factor to generate an analog card end secure transmission key between the card sleeve and the analog card; specifically, the card sleeve can generate the card by using the fourth connection random factor and the first binding factor of the card sleeve end
  • the first secure transmission key between the set card and the analog card, or the third connection random factor, the fourth connection random factor and the first binding factor of the card sleeve may be used to generate the card sleeve end between the card sleeve and the analog card.
  • the first secure transmission key similarly, the analog card can also use the fourth connection random decryption factor and the analog card end binding factor to generate an analog card-side secure transmission key between the card sleeve and the analog card, or use the third connection.
  • the random factor, the fourth connected random decryption factor, and the analog card end binding factor generate a secure card-side transmission transmission between the card sleeve and the analog card.
  • the secure transmission key factor may be a fourth connection random factor or a third connection random factor and a fourth connection random factor at the card sleeve end; the secure transmission key factor may be at the analog card end.
  • the secure transmission key may include an encryption and decryption key and/or a verification key.
  • the encryption and decryption key may participate in the data transmission to ensure the security of the data transmission, and the data transmission may be ensured by using the verification key to participate in the data transmission. Integrity, in the present invention, the secure transmission key can be selectively used in accordance with the security level of the transmitted data.
  • the card sleeve uses the first secure transmission key of the card sleeve to perform the first processing on the third connection random factor and the fourth connection random factor, and then sends the data to the analog card; the analog card uses the analog card end security transmission key to randomly decrypt the third connection.
  • the factor and the fourth connection random decryption factor are sent to the card set after the first processing; specifically, the two parties perform the first processing on the data by using the generated secure transmission key, and then send the data to the other party, so that the other party can verify the security transmission secret generated by the two parties. Whether the keys are the same.
  • the card sleeve receives the data sent by the analog card, and performs second processing on the received data by using the first secure transmission key of the card sleeve, and compares the second processed data with the third connection random factor and the fourth connection random factor.
  • the analog card receives the data sent by the card sleeve, and uses the analog card-side secure transmission key to perform the second data received. Processing, comparing whether the second processed data is the same as the third connected random decryption factor and the fourth connected random decryption factor.
  • the two parties compare whether the second processed data is the same as the data respectively sent by the two parties. If they are the same, the two sides generate the secure transmission key.
  • the keys are the same, so as to ensure that the two parties can use the generated secure transmission key for data transmission.
  • the secure transmission keys generated by the two parties are the same, it is also possible to verify that the respective binding factors are the same, and further verify that the other party is a real binding object, thereby further improving the security of subsequent data transmission.
  • the step of generating an analog card-side secure transmission key by the analog card is not limited to the steps in the second method, and the simulated card-side secure transmission key may be generated after the decryption obtains the fourth connection random decryption factor.
  • the success message sent by the card sleeve is generated, and then the simulated card end secure transmission key is generated; the step of generating the first secure transmission key of the card sleeve end is also not performed.
  • the method is limited to the steps in the second method, and the first secure transmission key of the card sleeve is generated after the fourth connection random factor is generated in the ferrule.
  • the security connection established by the above card sleeve and the analog card can improve the security of data transmission, and at the same time, it can also verify whether the two parties are bound, thereby further improving the security.
  • the card sleeve and the analog card need to authenticate each other in addition to mutual authentication. certificate.
  • the present invention is not limited to the establishment of the above-mentioned ferrule to initiate a secure connection, and may also trigger the establishment of a secure connection by the simcard triggering card.
  • the second secure connection command is sent to the ferrule by the analog card, and other processes and The above-mentioned process implementation entities can be implemented in reverse, and will not be further described herein.
  • Binding factor which may be a binding factor generated by the above-mentioned card set and the simulated card to mutually authenticate each other's certificate and the identity of the other party, and after both parties have passed the authentication process, respectively, may be generated in the authentication process, or may be passed The binding factor that is entered and stored manually.
  • the binding factor used in the first mode and the second mode may be a random value manually input during the establishment of the secure connection; or a secure connection process is established.
  • the secure transmission key is generated only by the random factor, and the binding factor is not verified or the binding factor is not used to generate the secure transmission key.
  • the card set establishes a secure connection with the real card manager, and obtains the second secure transmission key of the card holder and the real card manager security transmission key for secure transmission of data between the card holder and the real card manager:
  • the card holder and the real card manager can establish a secure connection by:
  • Method 1 the card set and the real card manager mutually authenticate each other's identity, and in the process of mutually authenticating each other's identity, compare whether the binding factors stored by the two parties are the same, compare the stored binding factors of both parties and authenticate each other's identity. After passing, a secure transmission key for secure transmission of data between the card holder and the real card manager (the second secure transmission key of the card holder and the secure transmission key of the real card manager) is generated.
  • the card holder and the real card manager mutually authenticate each other's certificate and the identity of the other party before establishing a secure connection between the card holder and the real card manager, and after both parties have passed the authentication, they are stored in the authentication process.
  • the card holder and the real card manager mutually authenticate each other's identity, that is, the card holder and the real card manager mutually authenticate each other's identity.
  • the scheme of establishing a secure connection between the card holder and the real card manager is different from the scheme of establishing a secure connection between the card holder and the analog card.
  • the way to generate the secure connection command is different: in the scheme in which the card holder and the real card manager adopt the method of establishing a secure connection, the third secure connection instruction may be generated by the physical button connected separately on the card sleeve, or It is generated by the connection virtual button on the touch screen of the card sleeve, or may be generated after the power-on password is verified correctly, or may be generated when the card sleeve sends a login request to the real card manager, or may be on the card sleeve screen.
  • the displayed function is selected in the displayed menu.
  • FIG. 9 is a flowchart of a method for establishing a secure connection between a card holder and a real card manager in the embodiment of the present invention. It should be understood that the method for establishing a secure connection may be implemented by a data interaction method or a data interaction system. Referring to Figure 9, the secure connection of the card holder to the real card manager includes:
  • the card sleeve sends a third secure connection instruction for instructing to establish a secure connection to the real card manager, wherein the third secure connection instruction comprises: using the real card manager public key pair in the real card manager certificate The fifth binding cipher obtained by encrypting the second binding factor and the generated fifth connection random factor, and the card sleeve is obtained by using the ferrule private key to sign the second binding factor of the ferrule end and the fifth connection random factor Five connection signatures;
  • the real card manager receives the third secure connection instruction, decrypts the fifth connected ciphertext by using the real card manager private key, and obtains the second binding decryption factor of the ferrule end and the fifth connection random decryption factor;
  • the real card manager verifies the fifth connection signature by using the ferrule public key in the ferrule certificate, the second binding decryption factor of the ferrule end, and the fifth connection random decryption factor;
  • the real card manager encrypts the fifth connection random decryption factor and the sixth connection random factor by using the card set public key in the card holder certificate to obtain the sixth connection ciphertext, and uses the real card manager private key to the fifth connection random decryption factor. And the sixth connection random factor is signed to obtain the sixth connection signature;
  • the real card manager sends a third secure connection response to the card set, where the third secure connection response includes: a sixth connection ciphertext and a sixth connection signature;
  • the card sleeve receives the third secure connection response, and decrypts the sixth connection ciphertext by using the ferrule private key to obtain the decrypted fifth connection random decryption factor and the sixth connection random decryption factor;
  • the card sleeve verifies the sixth connection signature by using the real card manager public key in the real card manager certificate, the decrypted fifth connection random decryption factor and the sixth connection random decryption factor;
  • the step of the real card manager using at least the sixth connection random factor to generate a real card manager secure transmission key between the card holder and the real card manager is not limited to the steps in the first mode, and
  • the real card manager security transmission key may be generated after the real card manager generates the sixth connection random factor, or the card may be received after the card connection verification decrypted fifth connection random decryption factor is the same as the fifth connection random factor.
  • the set of successful information is sent to generate a real card manager-side secure transmission key.
  • the security connection established by the above card sleeve and the real card manager can improve the security of data transmission, and at the same time, it can also verify whether the two parties are bound, thereby further improving the security.
  • the card holder and the real card manager not only authenticate each other but also authenticate each other. Need to authenticate each other's certificates.
  • the present invention is not limited to the establishment of the above-mentioned ferrule to initiate a secure connection, and may also trigger the establishment of a secure connection by the real card manager by the ferrule. At this time, the third card connection command is sent by the real card manager to the ferrule.
  • Other processes can be implemented contrary to the above-mentioned process implementation subject, and will not be repeated here.
  • the card set and the real card manager mutually authenticate each other's identity, and generate a secure transmission key factor in the process of mutually authenticating each other's identity, and at least use the stored binding factor and secure transmission after mutual authentication of the identity of the other party is passed.
  • the key factor generates a secure transmission key for secure transmission of data between the card holder and the real card manager (the second secure transmission key of the card holder and the secure transmission key of the real card manager), and verifies the security generated by both parties. Whether the transport key is the same.
  • the card holder and the real card manager mutually authenticate each other's certificate and the identity of the other party before establishing a secure connection between the card holder and the real card manager, and after both parties have passed the authentication, they are stored in the authentication process.
  • the card holder and the real card manager mutually authenticate each other's identity, that is, the card holder and the real card manager mutually authenticate each other's identity.
  • the execution subject is different: in the scheme in which the card holder and the real card manager adopt the second method to establish a secure connection, the execution subject is a card sleeve and a real card manager; in the scheme that the card sleeve and the analog card adopt the second method to establish a secure connection, The execution subject is a ferrule and an analog card.
  • the card sleeve performs the same operation in the two schemes, and the real card manager and the simulation card perform the same operation in the two schemes.
  • the security connection instruction is generated in different ways: in the scheme that the card holder and the real card manager adopt the second method to establish a secure connection, the fourth security connection instruction may be generated by the physical button connected to the card sleeve, or It is generated by the connection virtual button on the touch screen of the card sleeve, or may be generated after the power-on password is verified correctly, or may be generated when the card sleeve sends a login request to the real card manager, or may be on the card sleeve screen.
  • the displayed function is selected in the displayed menu.
  • FIG. 10 is a flowchart of a method for establishing a secure connection between a card holder and a real card manager in a data interaction method according to an embodiment of the present invention. It should be understood that the method for establishing a secure connection may be through a data interaction method or data interaction. System implementation. Referring to Figure 10, the secure connection of the card holder to the real card manager includes:
  • the card sleeve receives the seventh connection random factor and the real card manager unique identifier generated by the real card manager sent by the real card manager;
  • the card sleeve sends a fourth secure connection instruction for instructing to establish a secure connection to the real card manager, wherein the fourth secure connection instruction comprises: a card sleeve unique identifier, and the card sleeve utilizes a real card manager in the real card manager certificate.
  • the seventh connection ciphertext obtained by encrypting the seventh connection random factor and the generated eighth connection random factor by the key, the seventh set of the cryptogram, the seventh connection random factor and the eighth connection random factor are obtained by using the ferrule private key Connection signature
  • the real card manager receives the fourth secure connection instruction, and determines whether the unique identifier of the card set is in the real card manager binding list;
  • the real card manager uses the real card tube
  • the private key of the processor decrypts the seventh connection ciphertext, and obtains a seventh connection random decryption factor and an eighth connection random decryption factor;
  • the real card manager uses the real card manager private key to sign the seventh connection random decryption factor and the eighth connection random decryption factor to obtain the eighth connection signature;
  • the real card manager sends a fourth secure connection response to the card sleeve, where the fourth secure connection response includes: an eighth connection signature;
  • the card sleeve receives the fourth secure connection response, and verifies the eighth connection signature by using the real card manager public key, the seventh connection random factor and the eighth connection random factor in the real card manager certificate;
  • At least the eighth connection random factor and the second binding factor of the card sleeve are used to generate the second secure transmission key between the card holder and the real card manager;
  • the real card manager At least using the eighth connection random decryption factor and the real card manager binding factor to generate a real card manager secure transmission key between the card holder and the real card manager;
  • the card sleeve uses the second secure transmission key of the card sleeve to perform the first processing on the seventh connection random factor and the eighth connection random factor, and then sends the result to the real card manager; the real card manager uses the real card manager to securely transmit the key. And performing a first processing on the seventh connection random decryption factor and the eighth connection random decryption factor, and sending the card to the ferrule;
  • the card sleeve receives the data sent by the real card manager, and performs second processing on the received data by using the second secure transmission key of the card sleeve, and compares the second processed data with the seventh connection random factor and the eighth connection random. Whether the factors are the same; the real card manager receives the data sent by the card sleeve, and performs second processing on the received data by using the real card manager secure transmission key, and compares the second processed data with the seventh connected random decryption factor. And whether the eighth connection random decryption factor is the same.
  • the security connection established by the above card sleeve and the real card manager can improve the security of data transmission, and at the same time, it can also verify whether the two parties are bound, thereby further improving the security.
  • the card holder and the real card manager not only authenticate each other but also authenticate each other. Need to authenticate each other's certificates.
  • the present invention is not limited to the establishment of the above-mentioned ferrule to initiate a secure connection, and may also trigger the establishment of a secure connection by the real card manager by the ferrule. At this time, the fourth card connection command is sent by the real card manager to the ferrule.
  • Other processes can be implemented contrary to the above-mentioned process implementation subject, and will not be repeated here.
  • the binding factor used is the binding process between the card holder and the real card manager.
  • the binding factor generated and saved in the authentication process, and the binding factor may be a binding between the card holder and the real card manager to authenticate each other's certificate and the identity of the other party, and after both parties are authenticated, each of the bindings generated in the authentication process is generated.
  • the binding factor used in the first mode and the second mode may be a random value manually input during the establishment of the secure connection; or the security is established.
  • the secure transmission key is generated only by the random factor, and the binding factor is not verified or the binding factor is not used to generate the secure transmission key.
  • the card sleeve sends a login request to the real card manager; specifically, the login request may be generated for the login physical button separately set on the card sleeve, or may be generated for the login virtual button on the touch screen of the card sleeve, or It can be generated after the power-on password is verified correctly, or it can be generated by selecting the login function in the menu displayed on the card sleeve screen; the login request can include the card sleeve unique identifier, so that the real card manager knows which card sleeve requests to log in.
  • the card sleeve establishes a secure connection with the real card manager, and obtains the second secure transmission key and the real card of the card sleeve end for secure transmission of data between the card sleeve and the real card manager. After the manager side securely transmits the key:
  • the card sleeve performs the first processing on the received login password through the second secure transmission key of the card sleeve, and then sends the login password to the real card manager. Specifically, the card sleeve may also prompt the user to input the login password, after the user inputs the login password.
  • the first security processing key of the card sleeve is used to perform the first processing on the login password and then sent to the real card manager, thereby improving the security of the login password transmission.
  • the real card manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager security transmission key to verify the correctness of the second processed data; specifically, the real card manager utilizes The real card manager secure transmission key performs the second processing on the data sent by the card sleeve, and obtains the login password input by the user.
  • the code is compared with the legal login password stored by the user. Only when the login password entered by the user is the same as the legal login password stored by the user, the card is allowed to log in to the real card manager, thereby improving login security and ensuring the security of subsequent data transmission. If the real card manager of the present invention has an alarm function, the legal login password and the legal alarm password can be set in the real card manager in advance.
  • the real card manager uses the real card manager to transmit the secure key pair.
  • the password to be verified is obtained; the real card manager determines whether the password to be verified is an alarm password; if the password to be verified is an alarm password, the real card manager determines that the password to be verified passes, and performs an alarm operation. If the password to be verified is not an alarm password and is a login password, the real card manager determines that the password to be verified is verified. Since the alarm password is set, when the login password input by the user is the alarm password, the real card manager can recognize that the current login has a security risk and perform an alarm operation (for example, the real card manager sends an alarm message, and calls the alarm to the law enforcement department). Wait).
  • the card sleeve is logged into the real card manager.
  • the card set before establishing a secure connection between the card holder and the real card manager, the card set initiates a login request first, and triggers the establishment of the secure connection while the card set sends the login request, and after the secure connection is established, Login password verification, which can save processes and improve processing speed.
  • Method 1 After the card set is registered in the real card manager, the real card manager determines whether it is necessary to update the real card information list of the card holder:
  • the card sleeve looks up the card end identification list; specifically, the card end identification list is a real card manager end identification list obtained by the card holder from the real card manager.
  • the card sleeve end second identification key is used to perform the first processing on the card sleeve end identification list and then sent to the real card manager, and the real card manager receives the data sent by the card sleeve.
  • the manager-side secure transmission key performs the first processing on the update instruction and the update data, and then sends the data to the card sleeve, and the card sleeve receives the data sent by the real card manager, and uses the second secure transmission key pair of the card sleeve to receive the data.
  • the card card end real card information list is updated. Specifically, updating the real card information list of the card sleeve end may be performed by: the update instruction sent by the real card manager includes a storage instruction, and the update data includes the latest real card manager side real card information list, and the card sleeve receives the update.
  • the storage operation is performed on the card-side real card information list according to the update instruction and the update data.
  • the preset identifier is sent to the real card manager, so that the real card manager delivers the real card manager end identification list and
  • the process may further include: a process of performing a binding operation between the card sleeve and the real card manager.
  • the trigger command received by the card sleeve for indicating that the card sleeve is bound to the analog card may be generated by a binding physical button separately set on the card sleeve, or may be a binding virtual button on the touch screen of the card sleeve.
  • the generated one may be generated after the power-on password is verified correctly, or may be generated after the analog card is inserted into the card sleeve, or may be generated by selecting a binding function in a menu displayed on the card sleeve screen, of course, It can be generated in any other manner and is not limited in the present invention.
  • the card sleeve sends a first binding instruction to the analog card, where the first binding instruction includes: a first binding random factor generated by the card sleeve, a card sleeve certificate, and a card sleeve unique identifier; specifically, the card sleeve can be contacted
  • the connection (via the contact interface) sends the first binding instruction to the analog card, and the card sleeve can also send the first binding instruction to the analog card through the contactless connection (via the contactless interface or the wireless interface), the former can improve the binding Security, which can improve the convenience of binding.
  • the first binding instruction carries the first binding random factor to prevent the replay attack.
  • a second binding random factor is generated; specifically, the second binding random factor may be a random number generated by the simulated card, a random character or a combination thereof; After the factor, the randomness of the second bound random factor can also be verified to improve the randomness of the second bound random factor and prevent Was cracked.
  • the simulated card uses the ferrule public key in the ferrule certificate to encrypt the first binding random factor and the second binding random factor to obtain the first bound ciphertext, and uses the simulated card private key to the first binding random factor and the first
  • the second binding random factor is signed to obtain the first binding signature; specifically, the simulated card encrypts the first binding random factor and the second binding random factor by using the ferrule public key to ensure the first binding random factor and the first
  • the analog card uses the analog card private key to sign the first binding random factor and the second binding random factor to ensure that the subsequent card sets can authenticate the legality of the simulated card identity.
  • the simulated card sends a first binding response to the card sleeve, where the first binding response includes: a first binding ciphertext, a first binding signature, an analog card certificate, and an analog card unique identifier; specifically, the simulated card is sent
  • the first binding response carries the analog card certificate so that the card sleeve authenticates the analog card
  • the first binding response carries the analog card unique identifier so that the card sleeve knows which analog card is bound thereto; wherein the analog card unique identifier can be simulated Any one or combination of card serial number, device identification code, MAC address, etc. to uniquely identify the identity of the analog card.
  • the first binding ciphertext is decrypted by using the ferrule private key to obtain the first binding random decryption factor and the second binding random decryption factor; specifically, using the ferrule private key pair
  • the first bound ciphertext is decrypted. If a data transmission error occurs in the data transmission, or a tampering occurs in the data transmission, the decryption may not be successfully decrypted, or the first bound random decryption factor and the second decrypted are decrypted.
  • the bound random decryption factor is different from the first bound random factor and the second bound random factor.
  • the encryption is performed by the card holder public key, and only the card set private key can be successfully decrypted, thereby ensuring the security of data decryption.
  • the card sleeve verifies the first binding signature by using the analog card public key in the simulated card certificate, the first binding random decryption factor, and the second binding random decryption factor; specifically, the card sleeve uses the simulated card after the verification is passed
  • the key verifies the signature sent by the analog card to ensure the legal source of the data.
  • the first binding random decryption factor After verifying that the first binding signature is correct, verifying whether the first binding random decryption factor is the same as the first binding random factor; specifically, the first binding random factor generated by the ferrule verification itself is randomly related to the first binding.
  • the same decryption factor ensures that the data has not been tampered with, and the encrypted data source does send the first bound random factor object to the card set.
  • the card sleeve receives a trigger command for confirming that the analog card is uniquely identified, and uses the card set private key to randomly bind the first binding.
  • the factor and the second binding random decryption factor are signed, obtain the second binding signature, and store the simulated card unique identifier, the simulated card certificate, and the first binding factor of the card sleeve end to the first binding list of the card sleeve end, wherein
  • the first binding factor of the card sleeve is a second binding random decryption factor; specifically, the trigger command received by the card sleeve for confirming that the analog card is uniquely identified may be generated by a confirmation physical button separately set on the card sleeve, Or it can be generated by the confirmation virtual button on the touch screen of the card sleeve, or selected by the confirmation function in the menu displayed on the card sleeve screen, or the voice confirmation received by the voice collection device (such as a microphone) of the card holder.
  • the first binding list of the card sleeve is also used for the first binding factor of the memory card sleeve
  • the first binding factor of the card sleeve end is a second binding random factor of the ciphertext transmission, and the second binding random factor is transmitted according to the second ciphertext. Therefore, the first binding factor of the ferrule end is secure and has not been tampered with. of.
  • the card sleeve sends a second binding signature to the analog card; specifically, the card sleeve sends a second binding signature to the analog card, so that the simulated card authenticates the card holder identity.
  • the simulated card receives the second binding signature, and uses the ferrule public key, the first binding random factor, and the second binding random factor in the ferrule certificate to verify the second binding signature; specifically, the simulated card uses the verification to pass
  • the subsequent ferrule public key verifies the signature sent by the ferrule to ensure the legal source of the data.
  • the memory card After the simulated card verifies that the second binding signature is correct, the memory card sets a unique identifier, a card holder certificate, and an analog card end binding factor to the analog card end binding list, wherein the simulated card end binding factor is the second binding random factor.
  • the analog card may further store an analog card end binding list, where the analog card end binding list is used to record information about the card sleeve bound to the analog card, for example, a card sleeve unique identifier, a card sleeve certificate, etc.
  • the analog card end binding list is further configured to store an analog card end binding factor, and the simulated card end binding factor is a second binding random factor generated by the simulated card.
  • FIG. 12 is a flowchart of performing a binding operation between a card holder and a real card manager in the embodiment of the present invention. It should be understood that the binding operation may be implemented by a data interaction method or a data interaction system. Referring to FIG. 12, the binding operation of the card sleeve and the real card manager includes:
  • the trigger command received by the card sleeve for indicating that the card sleeve is bound to the real card manager may be generated by a binding physical button separately set on the card sleeve, or may be a binding on the touch screen of the card sleeve.
  • the virtual key is generated, or may be generated after the power-on password is verified correctly, or may be generated by selecting a binding function in a menu displayed on the card sleeve screen, and of course, may be generated by any other means, in the present invention. There are no restrictions.
  • the second binding instruction carries the third binding random factor to prevent the replay attack
  • the second binding instruction carries the card sleeve certificate for the real card manager to authenticate the card sleeve
  • the second binding instruction carries the card holder unique
  • the identifier is such that the real card manager knows which card sleeve is bound to it; wherein the third binding random factor may be a random number generated by the card sleeve, a random character or a combination thereof, of course, after generating the third binding random factor, The randomness of the third bound random factor may be verified to improve the randomness of the third bound random factor to prevent cracking; the unique identifier of the card set may be any one of a card serial number, a device identifier, a MAC address, and the like. Or a combination thereof to uniquely identify the identification of the card holder.
  • the real card manager receives the second binding instruction, and uses the root certificate to verify the card certificate; specifically, the real card manager pre-stores the root certificate, and uses the root certificate to complete verification of the card certificate to ensure subsequent use of the card. Set of certificate security.
  • the fourth binding random factor is generated; specifically, the fourth binding random factor may be a random number generated by the real card manager, a random character or a combination thereof; After the four random factors are bound, the randomness of the fourth bound random factor can also be verified to improve the randomness of the fourth bound random factor and prevent the crack.
  • the real card manager encrypts the third binding random factor and the fourth binding random factor by using the ferrule public key in the ferrule certificate to obtain the second binding ciphertext, and uses the real card manager private key to bind the third binding.
  • the random factor and the fourth bound random factor are signed to obtain a third binding signature; specifically, the real card manager encrypts the third binding random factor and the fourth binding random factor by using the ferrule public key to ensure the third
  • the real card manager uses the real card manager private key to sign the third binding random factor and the fourth binding random factor to ensure that the subsequent ferrule can Authenticate the authenticity of the real card manager identity.
  • the real card manager sends a second binding response to the card sleeve, where the second binding response includes: a second binding ciphertext, a third binding signature, a real card manager certificate, and a real card manager unique identifier;
  • the second binding response sent by the real card manager carries the real card manager certificate so that the card holder authenticates the real card manager, and the second binding response carries the real card manager unique identifier so that the card sleeve knows which one is true.
  • the card manager is bound thereto; wherein the real card manager uniquely identifies any one or a combination of a real card manager serial number, a device identifier, a MAC address, etc. to uniquely identify the identity of the real card manager.
  • the card sleeve receives the second binding response, and uses the root certificate to verify the real card manager certificate; specifically, the card sleeve pre-stores the root certificate, and uses the root certificate to complete verification of the real card manager certificate to ensure subsequent use of the real certificate.
  • Card Manager Certificate Security
  • the second binding ciphertext is decrypted by using the card set private key, and the third binding random decryption factor and the fourth binding random decryption factor are obtained; specifically, using the card private
  • the key decrypts the second bound ciphertext. If a data transmission error occurs in the data transmission, or a tampering occurs in the data transmission, the decryption may not be successfully decrypted, or the decrypted third binding random decryption factor and The fourth bound random decryption factor is different from the third bound random factor and the fourth bound random factor.
  • the encryption is performed by the card holder public key, and only the card set private key can be successfully decrypted, thereby ensuring the security of data decryption.
  • the card sleeve verifies the third binding signature by using the real card manager public key, the third binding random decryption factor and the fourth binding random decryption factor in the real card manager certificate; specifically, after the card sleeve is verified and passed
  • the real card manager public key verifies the signature sent by the real card manager to ensure the legal source of the data.
  • the real card manager is prompted only An identifier; in particular, the card sleeve can display the unique identifier of the real card manager, or can be played by voice (such as speaker playback or through earphone handset playback), the real card manager unique identifier, so that the user can verify the authenticity of the real card manager. Confirm, improve binding security.
  • the card sleeve sends a fourth binding signature to the real card manager; specifically, the card sleeve sends a fourth binding signature to the real card manager, so that the real card manager authenticates the card holder identity.
  • the memory card After the real card manager verifies that the fourth binding signature is correct, the memory card sets a unique identifier, a card holder certificate, and a real card manager binding factor to the real card manager binding list, wherein the real card manager is bound
  • the factor is the fourth bound random factor.
  • the real card manager may also store a real card manager binding list, the real card manager binding list is used to record information about the card binding with the real card manager, for example: the card holder is unique
  • the real card manager binding list is also used to store the real card manager binding factor, and the real card manager binding factor is the fourth binding generated by the real card manager. Random factor.
  • the operation of performing binding on the card holder and the real card manager is not an essential step. According to the requirements of different application scenarios, the operation of performing binding on the card holder and the real card manager may be selected.
  • the operation of performing binding on the card holder and the real card manager is not limited to the implementation provided above.
  • manual binding may be used, that is, in a trusted environment, the card to be bound is input.
  • the identifier of the real card manager is used as the first binding factor of the card sleeve end, and the real card manager defaults to the real card manager binding factor; or the card to be bound is input on the real card manager.
  • the operation of binding the card sleeve to the simulated card, and the operation of binding the card sleeve to the real card are not required to be performed at the same time. According to the requirements of different application scenarios, only the binding of the card sleeve and the simulation card may be selected. The operation, or only the binding operation of the card sleeve and the real card manager, or the above binding operation is not performed.
  • the first data sent by the analog card to the card sleeve is first processed by using the analog card end secure transmission key, and the card sleeve receives the first processed first data, and utilizes The card-side secure transmission key performs the second processing.
  • the first data sent by the card set to the real card manager is sent by using the card set end secure transmission key for the first process, and the real card manager receives the first process.
  • the first data is processed by the real card manager side secure transmission key.
  • the following provides a data interaction method of the present invention after a secure connection is established between the card holder and the analog card, and the card holder establishes a secure connection with the real card manager, but the present invention is not limited thereto:
  • the analog card receives the data sent by the transaction terminal, and performs the first processing on the received data by using the simulated card-side secure transmission key, and then sends the data to the card holder; specifically, in the data interaction process, the analog card and the transaction terminal (for example, The ATM machine, the POS machine, the bus card recharge machine, etc. are connected (contact interface or contactless interface), and the analog card receives the data sent by the transaction terminal, and the data can be the data to be processed (for example, the withdrawal amount, the deduction amount) , real card information acquisition request, etc.).
  • the confirmation command received by the card sleeve for confirming the correctness of the second processed data may be generated by the confirmation physical button separately set on the card sleeve, or may be generated for the confirmation virtual button on the touch panel of the card sleeve, or
  • the menu displayed on the screen of the card set selects the function generated by the confirmation function, or may be a voice confirmation indication received by the voice collection device (such as a microphone) of the card sleeve and verified the fingerprint generation device generated after the passage, or may be a card sleeve
  • the iris collection device of the ferrule receives the iris confirmation indication and the verification is generated, of course, it may be generated by any other method, and is not used in the present invention. limit.
  • the real card manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected real card; specifically, the real card manager will be processed.
  • the data is sent to the selected real card, so that the selected real card processes the data to be processed.
  • a plurality of different types of real cards can be realized by one analog card.
  • the user performs data interaction, only the analog card and the card sleeve are carried, and the real card can be completed without carrying a real card, thereby improving convenience. And security.
  • the data interaction between the analog card, the card holder and the real card manager is encrypted, decrypted and/or verified by the secure transmission key, thereby ensuring the security and integrity of the data transmission.
  • the real card matching the transaction terminal can be selected, the unnecessary expenses (such as bank interbank withdrawal fee, etc.) generated by the user in the prior art that the real card matched with the transaction terminal is not carried can be solved.
  • operations such as recharging (such as bus card, water card, card recharge, etc.) can also be implemented, so that the user can carry a plurality of different types of real cards only by carrying the card sleeve and the analog card of the present invention.
  • the recharge is convenient for users to carry, avoiding the loss of assets caused by the loss of real cards.
  • the card sleeve receives the real card selection instruction, determines the selected real card; and the analog card receives the data sent by the refill terminal, and performs the first processing on the received data by using the analog card end secure transmission key, and then sends the data to the card sleeve; specifically
  • the real card selection instruction received by the card sleeve may be generated by selecting a physical button separately set on the card sleeve, or may be generated by selecting a virtual button on the touch screen of the card sleeve, or may be displayed on the card sleeve screen.
  • the menu item that indicates the selection function is selected in the menu.
  • the card sleeve receives the real card selection instruction, determines the selected real card, and the card sleeve realizes data transmission via the real card manager and the selected real card.
  • the analog card is connected with a recharging terminal (such as a recharger or the like) (the contact interface or the non-contact interface), and the analog card receives the data sent by the refill terminal, and the data may be the recharge data to be processed. (such as recharge amount, etc.), so that subsequent users can confirm whether the pending recharge data is correct.
  • the analog card may further receive a real card information request sent by the recharge terminal to obtain the selected real card, and the card sleeve receives the data sent by the analog card, and uses the card sleeve.
  • the second processed data is first processed by the second secure transmission key of the card sleeve, and then sent to the real card manager, the real card.
  • the manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected real card, and the selected real card receives the data sent by the real card manager.
  • the real card manager receives the data sent by the selected real card, and performs the first processing and then sending the received data by using the real card manager secure transmission key.
  • the card sleeve receives the data sent by the real card manager, and uses the card sleeve end After the second security processing key performs the second processing on the received data, the second processed data is first processed by the first secure transmission key of the card sleeve, and then sent to the analog card, and the analog card receiving card is sent.
  • the card sleeve receives the data sent by the analog card, and performs the second processing on the received data by using the first secure transmission key of the card sleeve end, prompts the second processed data, and receives the data for indicating the second processing.
  • the second processed data is first processed by the second secure transmission key of the card sleeve and sent to the real card manager; specifically, the card sleeve can display the recharge data to be processed, or Voice playback (such as speaker playback or through earphone handset playback) pending recharge data for the user to confirm whether the pending recharge data is correct, and only after correct, receive the user input indicating that the recharge data to be processed is correct.
  • the to-be-processed recharge data is sent to the real card manager; if the user confirms that the recharge data to be processed is incorrect, the recharge can be directly canceled, thereby improving the security of the recharge.
  • the confirmation command received by the card sleeve for indicating the correctness of the data after the second processing may be generated by the confirmation physical button separately set on the card sleeve, or may be generated by the confirmation virtual button on the touch screen of the card sleeve, or The menu displayed on the screen of the card set selects the function generated by the confirmation function, or may be a voice confirmation indication received by the voice collection device (such as a microphone) of the card sleeve and verified the fingerprint generation device generated after the passage, or may be a card sleeve After the fingerprint confirmation indication is received and the verification is generated, or the iris collection device of the ferrule receives the iris confirmation indication and the verification is generated, of course, it may be generated by any other method, and is not used in the present invention. limit.
  • the real card manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected real card; specifically, the real card manager will be processed.
  • the recharge data is sent to the selected real card, so that the selected real card processes the recharged data to be processed (for example, performing a refill operation).
  • the card sleeve can prompt the information that needs to be confirmed during the recharging process, thereby the user can confirm the information to be confirmed in the recharging process and then perform the recharging, thereby ensuring the authenticity of the recharging and improving the security.
  • the data interaction between the analog card, the card holder and the real card manager is encrypted, decrypted and/or verified by the secure transmission key, thereby ensuring the security and integrity of the data transmission.
  • the real card matching the recharge terminal can be selected, the unnecessary expenses (such as bank interbank withdrawal fee, etc.) generated by the user in the prior art that the real card matching the recharge terminal is not carried can be solved.
  • operations such as transactions (such as ATM machine withdrawal transfer, POS card swipe, etc.) can also be implemented, so that the user can carry a plurality of different types of real cards only by carrying the card sleeve and the analog card of the present invention.
  • the transaction is convenient for the user to carry, avoiding the loss of assets caused by the loss of the real card.
  • the card sleeve obtains a real card information list of the card sleeve end, wherein the real card information list of the card sleeve end is a real card manager end real card information list obtained from the real card manager; specifically, optionally, before this step
  • the operation of the card sleeve booting and the card sleeve login to the real card manager can also be performed, and details are not described herein. For details, refer to the above description about the card sleeve booting and the card sleeve login real card manager.
  • the card sleeve obtains the real card information list of the card sleeve end, and may further include the steps of updating the card card end real card information list, which will not be described here.
  • the real card manager After the card card is obtained from the real card manager, the real card manager has a real card information list, and then stores it in the storage area of the card sleeve as a real card information list of the card holder end, and the card sleeve needs to be prompted (for example, display or When the card is in the real card information list, the card card can be directly obtained from the local card card list to improve the processing speed of the card sleeve.
  • the card sleeve receives the real card selection instruction, determines the selected real card; and the analog card receives the data sent by the transaction terminal, and performs the first processing on the received data by using the analog card end secure transmission key, and then sends the data to the card sleeve; specifically
  • the real card selection instruction received by the card sleeve may be generated by selecting a physical button separately set on the card sleeve, or may be generated by selecting a virtual button on the touch screen of the card sleeve, or may be displayed on the card sleeve screen.
  • the menu item that indicates the selection function is selected in the menu.
  • the analog card may further receive a real card information request sent by the transaction terminal to obtain the selected real card, and the card sleeve receives the data sent by the analog card, and uses the card sleeve.
  • the second processed data is first processed by the second secure transmission key of the card sleeve, and then sent to the real card manager, the real card.
  • the manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected real card, and the selected real card receives the data sent by the real card manager.
  • the real card manager receives the data sent by the selected real card, and performs the first processing and then sending the received data by using the real card manager secure transmission key.
  • the card holder receives the number sent by the real card manager
  • the second processed data is first processed by the first secure transmission key of the card sleeve and then sent to the simulation.
  • the card, the analog card receives the data sent by the card sleeve, and performs the second processing on the received data by using the analog card-side secure transmission key, and then sends the data to the transaction terminal, thereby obtaining the real card information of the selected real card. In order to subsequently trade the real card.
  • the real card manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected real card; specifically, the real card manager will be processed.
  • the transaction data is sent to the selected real card for processing the transaction data to be processed by the selected real card.
  • the selected real card receives the data sent by the real card manager, and sends the data obtained after the transaction processing to the real card manager after the transaction processing; specifically, the selected real card performs transaction processing on the transaction data to be processed,
  • the transaction processing is a transaction processing scheme of an existing smart card, and will not be described herein.
  • the real card manager receives the data sent by the selected real card, and performs the first processing on the received data by using the real card manager secure transmission key, and then sends the data to the card sleeve;
  • the card sleeve receives the data sent by the real card manager, and performs the second processing on the received data by using the second secure transmission key of the card sleeve, and then uses the first secure transmission key of the card sleeve to process the second processed
  • the data is sent to the analog card after the first processing
  • the analog card receives the data sent by the card sleeve, and performs the second processing on the received data by using the analog card-side secure transmission key, and then sends the data to the transaction terminal. Specifically, after the transaction terminal receives the data processed by the real card transaction, This transaction can be completed according to the existing transaction process, such as withdrawing money, transferring money, and deducting credits.
  • the card sleeve can prompt the information that needs to be confirmed during the transaction process, thereby the user can confirm the information that needs to be confirmed in the transaction process and then execute the transaction, thereby ensuring the authenticity of the transaction and improving the security.
  • the data interaction between the analog card, the card holder and the real card manager is encrypted, decrypted and/or verified by the secure transmission key, thereby ensuring the security and integrity of the data transmission.
  • the real card matching the transaction terminal can be selected, the unnecessary expenses (such as bank interbank withdrawal fee, etc.) generated by the user in the prior art that the real card matched with the transaction terminal is not carried can be solved.
  • the above specific implementation only discloses a single data interaction from a transaction terminal to a real card, a real card to a transaction terminal. In actual applications, there may be multiple data interactions, and the interaction process is similar to the above single data interaction.
  • whether the interaction data is prompted at the card sleeve to ensure the authenticity of the interaction data may be determined according to whether the interactive data needs confirmation.
  • the ferrule can also update an application that has already been installed or install a new application, so as to expand various applications of the ferrule or upgrade an existing application of the ferrule:
  • the present invention provides a specific implementation of the card application update, but the present invention is not limited to this:
  • FIG 13 shows a flow diagram of a card application update, it being understood that the update process can be implemented by a data interaction method or a data interaction system.
  • the card application update includes:
  • the card set sends at least the card holder certificate to the update platform; specifically, the secure update platform is separately set to complete the update of the card set application.
  • the card set sends the card holder certificate to the update platform, so that the update platform knows which card set needs to be updated, and can also verify the identity of the card set; the card set can also notify the update platform that needs to be updated or other update platform needs to be updated or
  • the downloaded application information is sent to the update platform so that the update platform knows which application installation package needs to be sent to the card holder.
  • the update platform generates a first update encryption key; specifically, the update platform itself generates an update encryption key for encrypting the application installation package, and the update encryption key generated each time the application update is performed may be the same or different, different It can prevent being cracked and improve security.
  • the update platform encrypts the card set application installation package by using the first update encryption key to obtain the first installation package ciphertext; specifically, the update platform encrypts the card set application installation package by using the generated update encryption key, thereby ensuring the card set The security of the application installation package transfer.
  • the update platform uses the update platform private key to sign the first installation package ciphertext to obtain the first installation package signature; specifically, the update platform signs the first installation package ciphertext, so that the subsequent card suite verifies the identity of the update platform.
  • the update platform encrypts the first update encryption key by using the card holder public key in the card holder certificate, and obtains the first update encryption key ciphertext; specifically, the update platform encrypts and updates the encryption key by using the card set public key encryption, thereby ensuring update encryption.
  • the security of key transmission ensures that only the card sleeve can decrypt the update encryption key and improve the security of the application installation package transmission.
  • the update platform sends the card set update information to the card set, wherein the card set update information includes: an update platform certificate, a first installation package ciphertext, a first installation package signature, and a first update encryption key ciphertext; specifically, updating
  • the update information sent by the platform carries the updated platform certificate, so that the card set authenticates the update platform, and the update information carries the first installation package ciphertext to ensure the security of the application installation package transmission, and the update information carries the first installation package signature to ensure
  • the subsequent card sets can authenticate the legality of the updated platform identity, and the update information carries the updated encryption key ciphertext to ensure the security of the encrypted key transmission.
  • the card sleeve receives the update information of the card set, and uses the root certificate to verify and update the platform certificate. Specifically, the card set pre-stores the root certificate, and uses the root certificate to complete the verification of the updated platform certificate, so as to ensure the security of the subsequent update platform certificate.
  • the simulation card is installed according to the analog card application installation package. Specifically, if the simulated card is an update to an already installed application, you can overwrite the installed application, or upgrade the installed application, or uninstall the installed application before proceeding with the new application. Installation of the program, if the emulation card is a newly installed application, you can install the application directly.
  • the update platform generates a third update encryption key; specifically, the update platform itself generates an update encryption key for encrypting the application installation package, and the update encryption key generated each time the application update is performed may be the same or different, different It can prevent being cracked and improve security.
  • the account platform receives the payment success information sent by the payment platform, and performs a refill operation, wherein the payment success information is generated after the payment platform receives the second processed data sent by the card set and executes the transaction processing operation. Specifically, payment After completing the payment, the platform generates payment success information, and sends the payment success information to the account platform, so that the account platform knows that the payment is completed, thereby completing the refill operation.
  • the payment success information may further include verification information, so that the account platform verifies the payment success information, and only after the verification is passed, the recharge is completed, and the security is improved.
  • the recharge platform obtains the card information of the selected real card through the analog card, the card sleeve and the real card manager, wherein the card information includes: the card number of the selected real card and the card authentication information;
  • the card set is registered in the real card manager, wherein the real card manager is connected with at least one real card, and the real card manager side real card information list is stored, and the real card manager side real card information list includes the real card manager.
  • the real card information of the connected real card specifically, the step of registering the above-mentioned card sleeve can refer to the related description of the above-mentioned card sleeve registration, and will not be described in detail herein.
  • the real card manager may be configured to save real card information of all or part of the real cards in the real card connected thereto, and form a real card information list of the real card manager, so that the user can meet the security requirements of the real card. Make different settings, for example, you can set real card information on the real card manager that does not allow you to get some real cards, thus ensuring the security of these real cards.
  • the card sleeve receives the data sent by the analog card, performs the second processing on the received data by using the first secure transmission key of the card sleeve end, and then performs the second processed data by using the second secure transmission key of the card sleeve end.
  • the method is sent to the real card manager, wherein the first secure transmission key of the card sleeve is generated when the card sleeve establishes a secure connection with the analog card, and the second secure transmission key of the card sleeve is the card sleeve and the real card management.
  • the real card manager receives the data sent by the card set, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected real card, wherein the real card manager side secure transmission key is
  • the card set is generated when a secure connection is established with the real card manager; specifically, the real card manager performs the second processing on the data sent by the card sleeve and then sends the data to the selected real card, so that the selected real card obtains the card information acquisition request. Thereby the card information is returned.
  • the process of generating the real card manager security transmission key reference may be made to the description of the process of generating the secure transmission key of the real card manager, which will not be described in detail herein.
  • the selected real card sends the card information of the selected real card to the real card manager;
  • the real card manager uses the real card manager-side secure transmission key to perform the first processing on the received card information of the selected real card, and then sends the card information to the card sleeve;
  • the analog card receives the refill package sent by the recharge platform, and performs the first processing on the refill package by using the analog card end secure transmission key, and then sends the refill package to the card sleeve;
  • the card sleeve receives the confirmation instruction for indicating that the second processed data is correct, and performs the first processing on the second processed data by using the second secure transmission key of the card sleeve, and then sends the data to the real card manager;
  • the card set is registered in the real card manager, wherein the real card manager is connected with at least one real card, and the real card manager side real card information list is stored, and the real card manager side real card information list includes the real card manager.
  • the real card information of the connected real card specifically, the step of registering the above-mentioned card sleeve can refer to the related description of the above-mentioned card sleeve registration, and will not be described in detail herein.
  • the real card manager may be configured to save real card information of all or part of the real cards in the real card connected thereto, and form a real card information list of the real card manager, so that the user can meet the security requirements of the real card. Make different settings, for example, you can set real card information on the real card manager that does not allow you to get some real cards, thus ensuring the security of these real cards.
  • the card sleeve obtains a real card information list of the card sleeve end, wherein the real card information list of the card sleeve end is a real card manager end real card information list obtained from the real card manager; specifically, how the card sleeve obtains the real card information list
  • the related description of the real card information list can be obtained by referring to the above card sleeve, and will not be described in detail herein.
  • the card sleeve receives the first real card selection instruction to determine the selected first real card; specifically, the card sleeve determines that the selected first real card is a debit card, such as a bank card, etc., at this time, the simulation in the data interaction architecture Cards can be used as debit cards (such as bank cards).
  • the card sleeve receives the data sent by the analog card, performs the second processing on the received data by using the first secure transmission key of the card sleeve end, and then performs the second processed data by using the second secure transmission key of the card sleeve end.
  • the method is sent to the real card manager, wherein the first secure transmission key of the card sleeve is generated when the card sleeve establishes a secure connection with the analog card, and the second secure transmission key of the card sleeve is the card sleeve and the real card management.
  • the card sets the second processing of the data sent by the analog card, and performs the first processing and then sends the data to the real card manager to provide data transmission security, and the real card manager is provided.
  • the first secure transmission key of the ferrule end and the second secure transmission key of the ferrule end may refer to the descriptions of the first secure transmission key of the ferrule end and the second secure transmission key generation process of the ferrule end. More details.
  • the card sleeve receives the data sent by the real card manager, performs the second processing on the received data by using the second secure transmission key of the card sleeve end, and performs the second processed data by using the first secure transmission key of the card sleeve end.
  • the first process is sent to the analog card;
  • the analog card receives the data sent by the card sleeve, and performs the second processing on the received data by using the analog card-side secure transmission key, and then sends the data to the payment platform; specifically, the simulated card sends the obtained card information of the first real card to the The payment platform ensures that the payment platform knows which real card to use for debit.
  • the card sleeve receives a confirmation instruction for indicating that the second processed data is correct, and performs the first processing on the second processed data by using the second secure transmission key of the card sleeve, and then sends the data to the real card manager; specifically, if The user confirms that there is no error, and confirms the operation on the card cover (for example, pressing the confirmation button, selecting the confirmation option in the menu, etc.) to generate a confirmation command for confirming that the debit request is correct, and the card sleeve receives the confirmation command, so that the card holder continues. Perform subsequent operations; of course, if the user confirms that there is a problem with the debit request, the cancel operation can be performed on the card sleeve to cancel the transaction.
  • the confirmation command received by the card sleeve for indicating the correctness of the data after the second processing may be generated by the confirmation physical button separately set on the card sleeve, or may be generated by the confirmation virtual button on the touch screen of the card sleeve, or
  • the menu displayed on the screen of the card set selects the function generated by the confirmation function, or may be a voice confirmation indication received by the voice collection device (such as a microphone) of the card sleeve and verified the fingerprint generation device generated after the passage, or may be a card sleeve
  • the fingerprint confirmation indication is received and the verification is generated
  • the iris collection device of the ferrule receives the iris confirmation indication and the verification is generated, of course, it may be generated by any other method, and is not used in the present invention. limit.
  • the real card manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected first real card;
  • the selected first real card receives the data sent by the real card manager, and performs transaction processing on the received data, and then sends the data obtained after the transaction processing to the real card manager; specifically, the selected first real card is received. After the real card server sends the real and complete data, the received data is processed and processed to confirm that the transaction can be completed.
  • the selected first real card for the transaction processing process can refer to the existing smart card for the transaction processing process. , will not be detailed here.
  • the analog card receives the data sent by the card sleeve, and performs the second processing on the received data by using the analog card terminal secure transmission key, and then sends the data to the payment platform for deduction operation; specifically, the payment platform receives the selected selection of the simulated card transmission.
  • the first real card transactions the processed data, and performs the deduction operation after the verification is passed.
  • the payment success information may also be generated to inform the user that the payment is successful.
  • the card sleeve prompts the card card to be a real card information list; specifically, after the recharge platform determines that the payment is successful, the user can select The recharge card (such as a bank card) is selected to recharge the card to be recharged.
  • the recharge card such as a bank card
  • the card sleeve receives the second real card selection instruction to determine the selected second real card; specifically, the card sleeve determines that the selected second real card is a card to be recharged, such as a bus card, etc., at this time, the simulation in the data interaction architecture Cards can be used as cards to be recharged (eg bus cards).
  • the analog card receives the second card information acquisition request sent by the recharge platform, and the second card information acquisition request includes at least the selected second real card card number and card authentication information; specifically, the user simulates the card through contact or non-contact mode
  • the recharge platform may be connected to the recharge platform, and the recharge platform may include a front-end recharge machine and a background recharge processing platform, for example, a bus card recharge platform, and the second card information acquisition request sent by the analog card receiving recharge platform to obtain the selected second real card. Real card information.
  • the card sleeve receives the data sent by the analog card, performs the second processing on the received data by using the first secure transmission key of the card sleeve end, and then performs the second processed data by using the second secure transmission key of the card sleeve end.
  • the method is sent to the real card manager, wherein the first secure transmission key of the card sleeve is generated when the card sleeve establishes a secure connection with the analog card, and the second secure transmission key of the card sleeve is the card sleeve and the real card management.
  • the card sets the second processing of the data sent by the analog card, and performs the first processing and then sends the data to the real card manager to provide data transmission security, and the real card manager is provided.
  • the first secure transmission key of the ferrule end and the second secure transmission key of the ferrule end may refer to the descriptions of the first secure transmission key of the ferrule end and the second secure transmission key generation process of the ferrule end. More details.
  • the real card manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected second real card, wherein the real card manager end securely transmits the key.
  • the key is generated when the card set establishes a secure connection with the real card manager; specifically, the real card manager performs the second processing on the data sent by the card set and then sends the data to the selected real card, so that the selected second real card obtains the card.
  • For the process of generating the real card manager security transmission key reference may be made to the description of the process of generating the secure transmission key of the real card manager, which will not be described in detail herein.
  • the selected second real card sends the card information of the selected real card to the real card manager;
  • the real card manager uses the real card manager-side secure transmission key to perform the first processing on the received card information of the selected second real card, and then sends the card information to the card sleeve;
  • the card sleeve receives the data sent by the real card manager, and uses the second secure transmission key pair of the card sleeve to receive the data. Performing a second process, and performing the first processing on the second processed data by using the first secure transmission key of the card sleeve end, and then sending the data to the analog card;
  • the analog card receives the data sent by the card sleeve, and performs the second processing on the received data by using the analog card end secure transmission key, and then sends the data to the recharge platform; specifically, the simulation card sends the acquired card information of the second real card to the card. Recharge the platform to ensure that the recharge platform knows which real card to recharge.
  • the analog card uses the analog card-side secure transmission key to perform the first processing on the refill package and then sends it to the ferrule;
  • the card sleeve receives the data sent by the analog card, and performs the second processing on the received data by using the first secure transmission key of the card sleeve end, and prompts the second processed data;
  • the card sleeve receives the confirmation instruction for indicating that the second processed data is correct, and performs the first processing on the second processed data by using the second secure transmission key of the card sleeve, and then sends the data to the real card manager;
  • the real card manager receives the data sent by the card sleeve, performs the second processing on the received data by using the real card manager security transmission key, and sends the received data to the selected second real card;
  • the selected second real card receives the second processed data sent by the real card manager, and performs a refill operation. Specifically, after the selected second real card obtains the refill package, the refill operation is performed according to the refill package, thereby completing the refill.
  • the data interaction architecture of the present invention can complete the recharging of the real card, and expands the application of the data interaction architecture of the present invention, which is convenient for the user to use.
  • the second real card is used to recharge the first real card:
  • the user can perform real-time card recharging of the real card based on the data interaction architecture, for example, by using a bank card to recharge the bus card or by using a bank card to recharge the card.
  • the second real card is different from the first real card type, and the second real card is a real card that can be deducted, and the first real card is a real card to be recharged.
  • the card sleeve determines the selected first real card from the real card connected to the real card manager;
  • the recharge platform obtains the card information of the selected first real card by using an analog card, a card sleeve and a real card manager, wherein the card information includes: a card number of the selected first real card, and card authentication information;
  • the card sleeve determines the selected second real card from the real card connected to the real card manager;
  • the payment platform performs deduction processing through the card holder, the real card manager and the selected second real card;
  • the card sleeve determines the selected first real card from the real card connected to the real card manager;
  • the recharge platform generates a refill package and sends it to the selected real card through the analog card, the card holder and the real card manager. a piece, wherein the refill package is prompted and confirmed by the card sleeve;
  • the selected real card receives the data sent by the real card manager and performs the refill operation.
  • the card set is registered in the real card manager, wherein the real card manager is connected with at least one real card, and the real card manager side real card information list is stored, and the real card manager side real card information list includes the real card manager.
  • the real card information of the connected real card specifically, the step of registering the above-mentioned card sleeve can refer to the related description of the above-mentioned card sleeve registration, and will not be described in detail herein.
  • the real card manager may be configured to save real card information of all or part of the real cards in the real card connected thereto, and form a real card information list of the real card manager, so that the user can meet the security requirements of the real card. Make different settings, for example, you can set real card information on the real card manager that does not allow you to get some real cards, thus ensuring the security of these real cards.
  • the card sleeve obtains a real card information list of the card sleeve end, wherein the real card information list of the card sleeve end is a real card manager end real card information list obtained from the real card manager; specifically, how the card sleeve obtains the real card information list
  • the related description of the real card information list can be obtained by referring to the above card sleeve, and will not be described in detail herein.
  • the card sleeve receives the first real card selection instruction to determine the selected first real card; specifically, the card sleeve determines that the selected first real card is a card to be recharged, such as a bus card, etc., at this time, the simulation in the data interaction architecture Cards can be used as cards to be recharged (eg bus cards).
  • the analog card receives the first card information acquisition request sent by the recharge platform, and the first card information acquisition request includes at least the selected first real card card number and the card authentication information; specifically, the user simulates the card through contact or non-contact mode Connected with the recharge platform, the recharge platform may include a front-end recharge machine and a background recharge processing platform, such as a bus card recharge platform or a card recharge platform, etc., and the analog card is connected to the front-end recharge machine, and the simulated card is received by the recharge platform.
  • the first card information acquisition request is to obtain the real card information of the selected first real card.
  • the analog card uses the analog card-side secure transmission key to perform the first processing on the first card information acquisition request and then sends it to the card sleeve, wherein the simulated card-side secure transmission key is generated when the card sleeve and the analog card establish a secure connection; After receiving the first card information acquisition request, the analog card performs the first processing on the first card information acquisition request by using the secure transmission key with the card sleeve, and then sends the message to the card holder to improve data transmission security.
  • the process of generating the secure transmission key of the analog card end reference may be made to the description of the process of generating the secure transmission key of the analog card end, which will not be described in detail herein.
  • the card sleeve receives the data sent by the analog card, performs the second processing on the received data by using the first secure transmission key of the card sleeve end, and then performs the second processed data by using the second secure transmission key of the card sleeve end.
  • the method is sent to the real card manager, wherein the first secure transmission key of the card sleeve is generated when the card sleeve establishes a secure connection with the analog card,
  • the second secure transmission key of the card sleeve is generated when the card sleeve establishes a secure connection with the real card manager; specifically, the card sleeve performs the second processing on the data sent by the analog card, and performs the first processing and then sends the message to the real
  • the card manager provides data transmission security and allows the real card manager to obtain the first card information acquisition request.
  • the first secure transmission key of the ferrule end and the second secure transmission key of the ferrule end may refer to the descriptions of the first secure transmission key of the ferrule end and the second secure transmission key generation process of the ferrule end. More details.
  • the real card manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected first real card, wherein the real card manager end securely transmits the key.
  • the key is generated when the card sleeve establishes a secure connection with the real card manager; specifically, the real card manager performs the second processing on the data sent by the card sleeve and sends the data to the selected first real card, so that the selected first real card is selected.
  • the first card information acquisition request is obtained, thereby returning the card information.
  • the selected first real card sends the card information of the selected first real card to the real card manager;
  • the real card manager uses the real card manager security transmission key to perform the first processing on the received card information of the selected first real card, and then sends the card information to the card sleeve;
  • the card sleeve receives the data sent by the real card manager, performs the second processing on the received data by using the second secure transmission key of the card sleeve end, and performs the second processed data by using the first secure transmission key of the card sleeve end.
  • the first process is sent to the analog card;
  • the analog card receives the data sent by the card sleeve, and performs the second processing on the received data by using the analog card end secure transmission key, and then sends the data to the recharge platform; specifically, the analog card sends the obtained card information of the first real card to the card. Recharge the platform to ensure that the recharge platform knows which real card to recharge.
  • the card sleeve receives the recharge identifier sent by the recharge platform, and displays a real card information list of the card sleeve end; specifically, the card sleeve receives the recharge identifier sent by the recharge platform to indicate which card is recharged, and prompts the user to select the first real card ( The second real card (debit card) to be recharged.
  • the refill identifier may include one or a combination of the first real card number, the order number, the refill amount, and the like to be recharged.
  • the card sleeve receives the second real card selection instruction to determine the selected second real card; specifically, the card sleeve determines that the selected second real card is a debit card, such as a bank card.
  • the simulated card receives the second card information acquisition request sent by the payment platform, and the second card information acquisition request includes at least the selected second real card card number and the card authentication information; specifically, the user simulates the card through contact or non-contact mode Connected with a payment platform, the payment platform includes a debit terminal (such as a POS machine, etc.) and a payment processing platform (such as a bank back office), and the analog card is connected to the debit terminal for deduction, and the analog card receiving payment platform sends
  • the second card information acquisition request is to obtain the real card information of the selected second real card.
  • the analog card uses the analog card-side secure transmission key to perform the first processing and then send the second card information acquisition request.
  • the analog card end secure transmission key is generated when the card sleeve establishes a secure connection with the analog card; specifically, after the analog card receives the second card information acquisition request, the secure transmission between the card and the card sleeve is utilized
  • the key performs the first processing on the second card information acquisition request and then sends the request to the card sleeve to improve data transmission security.
  • the process of generating the secure transmission key of the analog card end reference may be made to the description of the process of generating the secure transmission key of the analog card end, which will not be described in detail herein.
  • the card sleeve receives the data sent by the analog card, performs the second processing on the received data by using the first secure transmission key of the card sleeve end, and then performs the second processed data by using the second secure transmission key of the card sleeve end.
  • the method is sent to the real card manager, wherein the first secure transmission key of the card sleeve is generated when the card sleeve establishes a secure connection with the analog card, and the second secure transmission key of the card sleeve is the card sleeve and the real card management.
  • the card sets the second processing of the data sent by the analog card, and performs the first processing and then sends the data to the real card manager to provide data transmission security, and the real card manager is provided.
  • the first secure transmission key of the ferrule end and the second secure transmission key of the ferrule end may refer to the descriptions of the first secure transmission key of the ferrule end and the second secure transmission key generation process of the ferrule end. More details.
  • the real card manager receives the data sent by the card sleeve, and performs the second processing on the received data by using the real card manager secure transmission key, and then sends the data to the selected second real card, wherein the real card manager end securely transmits the key.
  • the key is generated when the card holder establishes a secure connection with the real card manager; specifically, the real card manager performs the second processing on the data sent by the card sleeve and sends the data to the selected second real card, so that the selected second real card is selected.
  • the second card information acquisition request is obtained, thereby returning the card information.
  • the selected second real card sends the card information of the selected second real card to the real card manager;
  • the card sleeve receives the data sent by the real card manager, performs the second processing on the received data by using the second secure transmission key of the card sleeve end, and performs the second processed data by using the first secure transmission key of the card sleeve end.
  • the first process is sent to the analog card;
  • the analog card receives the data sent by the card sleeve, and performs the second processing on the received data by using the analog card end secure transmission key, and then sends the data to the payment platform; specifically, the analog card sends the obtained card information of the second real card to the The payment platform ensures that the payment platform knows which real card to use for debit.
  • the analog card receives the debit request sent by the payment platform, and uses the analog card end secure transmission key to perform the first processing on the debit request and then sends the card to the card sleeve; specifically, the debit request may include at least the deduction amount and the first real card. card number.
  • the card sleeve receives the data sent by the analog card, and uses the first secure transmission key of the card sleeve to perform the first data received. Second processing, and prompting the second processed data; specifically, the card sleeve can display or voice play the debit request, so that the user can confirm the information in the debit request.
  • the card sleeve receives a confirmation instruction for indicating that the second processed data is correct, and performs the first processing on the second processed data by using the second secure transmission key of the card sleeve, and then sends the data to the real card manager; specifically, if The user confirms that there is no error, and confirms the operation on the card cover (for example, pressing the confirmation button, selecting the confirmation option in the menu, etc.) to generate a confirmation command for confirming that the debit request is correct, and the card sleeve receives the confirmation command, so that the card holder continues. Perform subsequent operations; of course, if the user confirms that there is a problem with the debit request, the cancel operation can be performed on the card sleeve to cancel the transaction.
  • the confirmation command received by the card sleeve for indicating the correctness of the data after the second processing may be generated by the confirmation physical button separately set on the card sleeve, or may be generated by the confirmation virtual button on the touch screen of the card sleeve, or
  • the menu displayed on the screen of the card set selects the function generated by the confirmation function, or may be a voice confirmation indication received by the voice collection device (such as a microphone) of the card sleeve and verified the fingerprint generation device generated after the passage, or may be a card sleeve
  • the fingerprint confirmation indication is received and the verification is generated
  • the iris collection device of the ferrule receives the iris confirmation indication and the verification is generated, of course, it may be generated by any other method, and is not used in the present invention. limit.
  • the real card manager receives the data sent by the card sleeve, performs the second processing on the received data by using the real card manager security transmission key, and sends the received data to the selected second real card;
  • the selected second real card receives the data sent by the real card manager, and performs transaction processing on the received data, and then sends the data obtained after the transaction processing to the real card manager; specifically, the selected second real card is received.
  • the real card server sends the real and complete data
  • the received data is processed and processed to confirm that the transaction can be completed.
  • the selected second real card can be processed by the existing smart card. , will not be detailed here.
  • the real card manager receives the data sent by the selected second real card, and performs the first processing on the received data by using the real card manager secure transmission key, and then sends the data to the card sleeve;
  • the card sleeve receives the data sent by the real card manager, and performs the second processing on the received data by using the second secure transmission key of the card sleeve, and then uses the first secure transmission key of the card sleeve to process the second processed
  • the data is sent to the analog card after the first processing
  • the analog card receives the data sent by the card sleeve, and performs the second processing on the received data by using the analog card end secure transmission key, and then sends the data to the payment platform;
  • the simulated card uses the simulated card-side secure transmission key to perform the first processing on the payment success information and then sends the information to the card set, wherein the payment success information is generated after the payment platform successfully performs the payment; specifically, the payment platform receives the selected first After the real card transaction processing data, after the verification is passed, the deduction operation is performed, and after the deduction operation is performed, the payment success information is generated, and the payment success information may include the selected first real card number or other representations.
  • Card recharge information as long as the recharge platform subsequently knows which card recharge debit is successfully executed.
  • the card sleeve receives the data sent by the analog card, and performs the second processing on the received data by using the first secure transmission key of the card sleeve end, and prompts the card card to end the real card information list;
  • the card sleeve receives the first real card selection instruction to determine the selected first real card; specifically, the user selects the first real card again to complete the refilling operation of the first real card.
  • the card sleeve receives the confirmation instruction for indicating that the second processed data is correct, and performs the first processing on the second processed data by using the second secure transmission key of the card sleeve, and then sends the data to the real card manager;
  • the first real card receives the data sent by the real card manager and performs a refill operation. Specifically, after the selected first real card obtains the refill package, the refill operation is performed according to the refill package, thereby completing the refill.
  • the user can recharge the real card by using the data interaction architecture, for example, by using Alipay or online banking to recharge the bus card.
  • the card sleeve determines the selected real card from the real card connected to the real card manager;
  • the recharge platform obtains the card information of the selected real card through the analog card, the card sleeve and the real card manager, wherein the card information includes: the card number of the selected real card and the card authentication information;
  • the card set is used to log in to the payment platform, and the payment platform obtains the refilling identifier and performs deduction processing;
  • the recharge platform After receiving the payment success information generated by the payment platform, the recharge platform generates a refill package and sends it to the selected real card through the simulation card, the card sleeve and the real card manager, wherein the refill package is prompted and confirmed by the card sleeve;
  • the selected real card receives the data sent by the real card manager and performs the refill operation.
  • the card set is registered in the real card manager, wherein the real card manager is connected to at least one real card and coexist
  • the real card manager side real card information list is stored, and the real card manager side real card information list includes real card information of the real card connected with the real card manager; specifically, the card set registration step can refer to the above card set login
  • the real card manager may be configured to save real card information of all or part of the real cards in the real card connected thereto, and form a real card information list of the real card manager, so that the user can meet the security requirements of the real card. Make different settings, for example, you can set real card information on the real card manager that does not allow you to get some real cards, thus ensuring the security of these real cards.
  • the card sleeve obtains a real card information list of the card sleeve end, wherein the real card information list of the card sleeve end is a real card manager end real card information list obtained from the real card manager; specifically, how the card sleeve obtains the real card information list
  • the related description of the real card information list can be obtained by referring to the above card sleeve, and will not be described in detail herein.
  • the card sleeve receives the real card selection instruction and determines the selected real card; specifically, the card sleeve determines that the selected real card is a card to be recharged, such as a bus card, etc., at this time, the analog card in the data interaction architecture can be used as a card to be recharged. (for example, bus card) use.
  • the analog card receives the card information acquisition request sent by the recharge platform, and the card information acquisition request at least includes the card number of the selected real card and the card authentication information; specifically, the user connects the analog card to the recharge platform through contact or non-contact mode
  • the recharge platform may include a front-end recharge machine and a background recharge processing platform, for example, a bus card recharge platform, etc., and the card receiving request of the card receiving recharge platform is sent to obtain real card information of the selected real card.
  • the analog card uses the analog card-side secure transmission key to perform the first processing on the card information acquisition request and then sends the card to the ferrule, wherein the simulated card-side secure transmission key is generated when the ferrule and the analog card establish a secure connection; specifically, After receiving the card information acquisition request, the analog card performs the first processing on the card information acquisition request by using the secure transmission key with the card sleeve, and then sends the card information to the card holder to improve the data transmission security.
  • the process of generating the secure transmission key of the analog card end reference may be made to the description of the process of generating the secure transmission key of the analog card end, which will not be described in detail herein.
  • the card sleeve receives the data sent by the analog card, performs the second processing on the received data by using the first secure transmission key of the card sleeve end, and then performs the second processed data by using the second secure transmission key of the card sleeve end.
  • the method is sent to the real card manager, wherein the first secure transmission key of the card sleeve is generated when the card sleeve establishes a secure connection with the analog card, and the second secure transmission key of the card sleeve is the card sleeve and the real card management.
  • the card sets the second processing of the data sent by the analog card, and performs the first processing and then sends the data to the real card manager to provide data transmission security, and the real card manager is provided.
  • the first secure transmission key of the ferrule end and the second secure transmission key of the ferrule end may refer to the descriptions of the first secure transmission key of the ferrule end and the second secure transmission key generation process of the ferrule end. More details.
  • the real card manager receives the data sent by the card set and receives it using the real card manager secure transmission key pair.
  • the data is sent to the selected real card after the second processing, wherein the real card manager secure transmission key is generated when the card holder establishes a secure connection with the real card manager; specifically, the real card manager pairs the card holder
  • the sent data is sent to the selected real card after the second processing, so that the selected real card obtains the card information obtaining request, thereby returning the card information.
  • the process of generating the real card manager security transmission key reference may be made to the description of the process of generating the secure transmission key of the real card manager, which will not be described in detail herein.
  • the selected real card sends the card information of the selected real card to the real card manager;
  • the real card manager uses the real card manager-side secure transmission key to perform the first processing on the received card information of the selected real card, and then sends the card information to the card sleeve;
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or may be each Units exist physically separately, or two or more units can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

一种数据安全交互方法和系统,其中所述方法包括:卡套获取卡套端真实卡片信息列表,卡套提示卡套端真实卡片信息列表;卡套接收真实卡片选择指令,确定选中的真实卡片;以及模拟卡片接收交易终端发送的第一数据,并将第一数据发送至卡套;卡套提示第一数据,接收用于确认第一数据正确的确认指令,将第一数据发送至真实卡片管理器;真实卡片管理器接收卡套发送的第一数据,并发送至选中的真实卡片。通过该数据交互方法可以实现模拟卡片、卡套与真实卡片管理器之间的数据交互,以提供一种既方便用户携带,且安全性较高的数据交互解决方案。

Description

数据交互方法和系统 技术领域
本发明涉及电子信息安全技术领域,尤其涉及一种数据交互方法和系统。
背景技术
现有交易流程中,例如:取款或者购物刷卡,通常用户需要随身携带从银行办理的银行卡,用户随身携带银行卡存在一定的安全风险,一旦丢失,则容易对用户的资产造成损失。另外,由于银行卡种类多种多样,一个用户可能同时拥有多张不同银行的银行卡,如需随身携带多张不同银行的银行卡,也不够便携,如果为了方便携带,仅携带了多张银行卡中的某些银行卡时,在使用这些银行卡进行取款或者购物刷卡时,可能存在跨行交易,导致交易中发生不必要的费用。
因此,现有技术中急需提供一种既方便用户携带,且安全性较高的交易解决方案。
发明内容
本发明旨在解决上述问题。
本发明的一个主要目的在于提供一种数据交互方法。
为达到上述目的,本发明的技术方案具体是这样实现的:
本发明一方面提供了一种数据交互方法,包括:卡套获取卡套端真实卡片信息列表,其中,卡套端真实卡片信息列表为卡套从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息;卡套提示卡套端真实卡片信息列表;卡套接收真实卡片选择指令,确定选中的真实卡片;以及模拟卡片接收交易终端发送的第一数据,并将第一数据发送至卡套;卡套提示第一数据,接收用于确认第一数据正确的确认指令,将第一数据发送至真实卡片管理器;真实卡片管理器接收卡套发送的第一数据,并发送至选中的真实卡片。
此外,数据交互方法还包括:卡套与模拟卡片建立安全连接,获得卡套与模拟卡片之间进行数据安全传输的卡套端第一安全传输密钥和模拟卡片端安全传输密钥。
此外,卡套与模拟卡片建立安全连接包括:卡套向模拟卡片发送用于指示建立安全连接的第一安全连接指令,其中,第一安全连接指令包括:卡套利用模拟卡片证书中的模拟卡片公钥对卡套端第一绑定因子以及生成的第一连接随机因子进行加密获得的第一连接密文,卡套利用卡套私钥对卡套端第一绑定因子以及第一连接随机因子进行签名获得的第一 连接签名;模拟卡片接收第一安全连接指令,利用模拟卡片私钥对第一连接密文进行解密,获得卡套端第一绑定解密因子以及第一连接随机解密因子;模拟卡片利用卡套证书中的卡套公钥、卡套端第一绑定解密因子以及第一连接随机解密因子对第一连接签名进行验证;模拟卡片验证第一连接签名正确后,验证卡套端第一绑定解密因子与模拟卡片端绑定因子是否相同;模拟卡片验证卡套端第一绑定解密因子与模拟卡片端绑定因子相同后,生成第二连接随机因子;模拟卡片利用卡套证书中的卡套公钥对第一连接随机解密因子以及第二连接随机因子进行加密获得第二连接密文,利用模拟卡片私钥对第一连接随机解密因子以及第二连接随机因子进行签名获得第二连接签名;模拟卡片向卡套发送第一安全连接响应,其中,第一安全连接响应包括:第二连接密文以及第二连接签名;卡套接收第一安全连接响应,利用卡套私钥对第二连接密文进行解密,获得解密后的第一连接随机解密因子和第二连接随机解密因子;卡套利用模拟卡片证书中的模拟卡片公钥、解密后的第一连接随机解密因子和第二连接随机解密因子对第二连接签名进行验证;卡套验证第二连接签名正确后,验证解密后的第一连接随机解密因子与第一连接随机因子是否相同;卡套验证解密后的第一连接随机解密因子与第一连接随机因子相同后,至少利用第二连接随机解密因子生成卡套与模拟卡片间的卡套端第一安全传输密钥;模拟卡片至少利用第二连接随机因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥。
此外,卡套与模拟卡片建立安全连接包括:卡套接收模拟卡片发送的模拟卡片生成的第三连接随机因子以及模拟卡片唯一标识;卡套向模拟卡片发送用于指示建立安全连接的第二安全连接指令,其中,第二安全连接指令包括:卡套唯一标识、卡套利用模拟卡片证书中的模拟卡片公钥对第三连接随机因子以及生成的第四连接随机因子进行加密获得的第三连接密文、卡套利用卡套私钥对第三连接随机因子以及第四连接随机因子进行签名获得的第三连接签名;模拟卡片接收第二安全连接指令,判断卡套唯一标识是否在模拟卡片端绑定列表中;如果卡套唯一标识在模拟卡片端绑定列表中,模拟卡片利用模拟卡片私钥对第三连接密文进行解密,获得第三连接随机解密因子以及第四连接随机解密因子;模拟卡片利用卡套证书中的卡套公钥、第三连接随机解密因子以及第四连接随机解密因子对第三连接签名进行验证;模拟卡片验证第三连接签名正确后,验证第三连接随机解密因子与第三连接随机因子是否相同;如果第三连接随机解密因子与第三连接随机因子相同,模拟卡片利用模拟卡片私钥对第三连接随机解密因子以及第四连接随机解密因子进行签名获得第四连接签名;模拟卡片向卡套发送第二安全连接响应,其中,第二安全连接响应包括:第四连接签名;卡套接收第二安全连接响应,利用模拟卡片证书中的模拟卡片公钥、第三连接随机因子和第四连接随机因子对第四连接签名进行验证;卡套验证第四连接签名正确后, 至少利用第四连接随机因子以及卡套端第一绑定因子生成卡套与模拟卡片间的卡套端第一安全传输密钥;模拟卡片至少利用第四连接随机解密因子以及模拟卡片端绑定因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥;卡套利用卡套端第一安全传输密钥对第三连接随机因子以及第四连接随机因子进行第一处理后发送至模拟卡片;模拟卡片利用模拟卡片端安全传输密钥对第三连接随机解密因子以及第四连接随机解密因子进行第一处理后发送至卡套;卡套接收模拟卡片发送的数据,并利用卡套端第一安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第三连接随机因子以及第四连接随机因子是否相同;模拟卡片接收卡套发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第三连接随机解密因子以及第四连接随机解密因子是否相同。
此外,数据交互方法还包括:卡套与真实卡片管理器建立安全连接,获得卡套与真实卡片管理器之间进行数据安全传输的卡套端第二安全传输密钥和真实卡片管理器端安全传输密钥。
此外,卡套与真实卡片管理器建立安全连接包括:卡套向真实卡片管理器发送用于指示建立安全连接的第三安全连接指令,其中,第三安全连接指令包括:卡套利用真实卡片管理器证书中的真实卡片管理器公钥对卡套端第二绑定因子以及生成的第五连接随机因子进行加密获得的第五连接密文,卡套利用卡套私钥对卡套端第二绑定因子以及第五连接随机因子进行签名获得的第五连接签名;真实卡片管理器接收第三安全连接指令,利用真实卡片管理器私钥对第五连接密文进行解密,获得卡套端第二绑定解密因子以及第五连接随机解密因子;真实卡片管理器利用卡套证书中的卡套公钥、卡套端第二绑定解密因子以及第五连接随机解密因子对第五连接签名进行验证;真实卡片管理器验证第五连接签名正确后,验证卡套端第二绑定解密因子与真实卡片管理器端绑定因子是否相同;真实卡片管理器验证卡套端第二绑定解密因子与真实卡片管理器端绑定因子相同后,生成第六连接随机因子;真实卡片管理器利用卡套证书中的卡套公钥对第五连接随机解密因子以及第六连接随机因子进行加密获得第六连接密文,利用真实卡片管理器私钥对第五连接随机解密因子以及第六连接随机因子进行签名获得第六连接签名;真实卡片管理器向卡套发送第三安全连接响应,其中,第三安全连接响应包括:第六连接密文以及第六连接签名;卡套接收第三安全连接响应,利用卡套私钥对第六连接密文进行解密,获得解密后的第五连接随机解密因子和第六连接随机解密因子;卡套利用真实卡片管理器证书中的真实卡片管理器公钥、解密后的第五连接随机解密因子和第六连接随机解密因子对第六连接签名进行验证;卡套验证第六连接签名正确后,验证解密后的第五连接随机解密因子与第五连接随机因子是否 相同;卡套验证解密后的第五连接随机解密因子与第五连接随机因子相同后,至少利用第六连接随机解密因子生成卡套与真实卡片管理器间的卡套端第二安全传输密钥;真实卡片管理器至少利用第六连接随机因子生成卡套与真实卡片管理器间的真实卡片管理器端安全传输密钥。
此外,卡套与真实卡片管理器建立安全连接包括:卡套接收真实卡片管理器发送的真实卡片管理器生成的第七连接随机因子和真实卡片管理器唯一标识;卡套向真实卡片管理器发送用于指示建立安全连接的第四安全连接指令,其中,第四安全连接指令包括:卡套唯一标识、卡套利用真实卡片管理器证书中的真实卡片管理器公钥对第七连接随机因子以及生成的第八连接随机因子进行加密获得的第七连接密文、卡套利用卡套私钥对第七连接随机因子以及第八连接随机因子进行签名获得的第七连接签名;真实卡片管理器接收第四安全连接指令,判断卡套唯一标识是否在真实卡片管理器端绑定列表中;如果卡套唯一标识在真实卡片管理器端绑定列表中,真实卡片管理器利用真实卡片管理器私钥对第七连接密文进行解密,获得第七连接随机解密因子以及第八连接随机解密因子;真实卡片管理器利用卡套证书中的卡套公钥、第七连接随机解密因子以及第八连接随机解密因子对第七连接签名进行验证;真实卡片管理器验证第七连接签名正确后,验证第七连接随机解密因子与第七连接随机因子是否相同;如果第七连接随机解密因子与第七连接随机因子相同,真实卡片管理器利用真实卡片管理器私钥对第七连接随机解密因子以及第八连接随机解密因子进行签名获得第八连接签名;真实卡片管理器向卡套发送第四安全连接响应,其中,第四安全连接响应包括:第八连接签名;卡套接收第四安全连接响应,利用真实卡片管理器证书中的真实卡片管理器公钥、第七连接随机因子和第八连接随机因子对第八连接签名进行验证;卡套验证第八连接签名正确后,至少利用第八连接随机因子以及卡套端第二绑定因子生成卡套与真实卡片管理器间的卡套端第二安全传输密钥;真实卡片管理器至少利用第八连接随机解密因子以及真实卡片管理器端绑定因子生成卡套与真实卡片管理器间的真实卡片管理器端安全传输密钥;卡套利用卡套端第二安全传输密钥对第七连接随机因子以及第八连接随机因子进行第一处理后发送至真实卡片管理器;真实卡片管理器利用真实卡片管理器端安全传输密钥对第七连接随机解密因子以及第八连接随机解密因子进行第一处理后发送至卡套;卡套接收真实卡片管理器发送的数据,并利用卡套端第二安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第七连接随机因子以及第八连接随机因子是否相同;真实卡片管理器接收卡套发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第七连接随机解密因子以及第八连接随机解密因子是否相同。
此外,在卡套与模拟卡片建立安全连接之前,数据交互方法还包括:卡套与模拟卡片执行绑定操作。
此外,卡套与模拟卡片执行绑定操作包括:卡套接收用于指示与模拟卡片进行绑定的触发命令;卡套向模拟卡片发送第一绑定指令,其中,第一绑定指令包括:卡套生成的第一绑定随机因子、卡套证书以及卡套唯一标识;模拟卡片接收第一绑定指令,利用根证书对卡套证书进行验证;模拟卡片验证卡套证书合法后,生成第二绑定随机因子;模拟卡片利用卡套证书中的卡套公钥对第一绑定随机因子以及第二绑定随机因子进行加密获得第一绑定密文,利用模拟卡片私钥对第一绑定随机因子以及第二绑定随机因子进行签名获得第一绑定签名;模拟卡片向卡套发送第一绑定响应,其中,第一绑定响应包括:第一绑定密文、第一绑定签名、模拟卡片证书以及模拟卡片唯一标识;卡套接收第一绑定响应,利用根证书对模拟卡片证书进行验证;卡套验证模拟卡片证书合法后,利用卡套私钥对第一绑定密文进行解密,获得第一绑定随机解密因子和第二绑定随机解密因子;卡套利用模拟卡片证书中的模拟卡片公钥、第一绑定随机解密因子以及第二绑定随机解密因子对第一绑定签名进行验证;卡套验证第一绑定签名正确后,验证第一绑定随机解密因子与第一绑定随机因子是否相同;卡套验证第一绑定随机解密因子与第一绑定随机因子相同后,提示模拟卡片唯一标识;卡套接收用于确认模拟卡片唯一标识正确的触发命令,利用卡套私钥对第一绑定随机因子以及第二绑定随机解密因子进行签名,获得第二绑定签名,以及存储模拟卡片唯一标识、模拟卡片证书以及卡套端第一绑定因子至卡套端第一绑定列表,其中,卡套端第一绑定因子为第二绑定随机解密因子;卡套向模拟卡片发送第二绑定签名;模拟卡片接收第二绑定签名,利用卡套证书中的卡套公钥、第一绑定随机因子以及第二绑定随机因子对第二绑定签名进行验证;模拟卡片验证第二绑定签名正确后,存储卡套唯一标识、卡套证书以及模拟卡片端绑定因子至模拟卡片端绑定列表,其中,模拟卡片端绑定因子为第二绑定随机因子。
此外,在卡套与真实卡片管理器建立安全连接之前,数据交互方法还包括:卡套与真实卡片管理器执行绑定操作。
此外,卡套与真实卡片管理器执行绑定操作包括:卡套接收用于指示与真实卡片管理器进行绑定的触发命令;卡套通过无线网络向真实卡片管理器发送第二绑定指令,其中,第二绑定指令包括:卡套生成的第三绑定随机因子、卡套证书以及卡套唯一标识;真实卡片管理器接收第二绑定指令,利用根证书对卡套证书进行验证;真实卡片管理器验证卡套证书合法后,生成第四绑定随机因子;真实卡片管理器利用卡套证书中的卡套公钥对第三绑定随机因子以及第四绑定随机因子进行加密获得第二绑定密文,利用真实卡片管理器私 钥对第三绑定随机因子以及第四绑定随机因子进行签名获得第三绑定签名;真实卡片管理器通过无线网络向卡套发送第二绑定响应,其中,第二绑定响应包括:第二绑定密文、第三绑定签名、真实卡片管理器证书以及真实卡片管理器唯一标识;卡套接收第二绑定响应,利用根证书对真实卡片管理器证书进行验证;卡套验证真实卡片管理器证书合法后,利用卡套私钥对第二绑定密文进行解密,获得第三绑定随机解密因子和第四绑定随机解密因子;卡套利用真实卡片管理器证书中的真实卡片管理器公钥、第三绑定随机解密因子以及第四绑定随机解密因子对第三绑定签名进行验证;卡套验证第三绑定签名正确后,验证第三绑定随机解密因子与第三绑定随机因子是否相同;卡套验证第三绑定随机解密因子与第三绑定随机因子相同后,提示真实卡片管理器唯一标识;卡套接收用于确认真实卡片管理器唯一标识正确的触发命令,利用卡套私钥对第三绑定随机因子以及第四绑定随机解密因子进行签名,获得第四绑定签名,以及存储真实卡片管理器唯一标识、真实卡片管理器证书以及卡套端第二绑定因子至卡套端第二绑定列表,其中,卡套端第二绑定因子为第四绑定随机解密因子;卡套向真实卡片管理器发送第四绑定签名;真实卡片管理器接收第四绑定签名,利用卡套证书中的卡套公钥、第三绑定随机因子以及第四绑定随机因子对第四绑定签名进行验证;真实卡片管理器验证第四绑定签名正确后,存储卡套唯一标识、卡套证书以及真实卡片管理器端绑定因子至真实卡片管理器端绑定列表,其中,真实卡片管理器端绑定因子为第四绑定随机因子。
此外,在卡套与真实卡片管理器建立安全连接之前,数据交互方法还包括:卡套向真实卡片管理器发送登录请求;在卡套与真实卡片管理器建立安全连接之后,数据交互方法还包括:卡套通过卡套端第二安全传输密钥对接收到的登录密码进行第一处理后发送至真实卡片管理器;真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后验证第二处理后的数据的正确性;真实卡片管理器在验证第二处理后的数据通过后,卡套登录真实卡片管理器。
此外,真实卡片管理器利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后验证第二处理后的数据的正确性包括:真实卡片管理器利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,获得待验证密码;真实卡片管理器判断待验证密码是否为报警密码;如果待验证密码为报警密码,则真实卡片管理器确定待验证密码验证通过,并执行报警操作;如果待验证密码不是报警密码且为登录密码,则真实卡片管理器确定待验证密码验证通过。
此外,数据交互方法还包括:真实卡片管理器对与真实卡片管理器连接的真实卡片进行检测;真实卡片管理器在检测到与真实卡片管理器连接的真实卡片后,获取真实卡片的 真实卡片信息,其中,真实卡片信息至少包括:卡号;真实卡片管理器获取真实卡片的真实卡片信息后,生成真实卡片管理器端真实卡片信息列表。
此外,数据交互方法还包括:真实卡片管理器还生成真实卡片管理器端标识列表,真实卡片管理器端标识列表中的标识与真实卡片管理器端真实卡片信息列表中的真实卡片信息一一对应。
此外,卡套登录真实卡片管理器后,数据交互方法还包括:卡套查找卡套端标识列表;如果卡套查找到卡套端标识列表,则利用卡套端第二安全传输密钥对卡套端标识列表进行第一处理后发送至真实卡片管理器,真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与真实卡片管理器存储的真实卡片管理器端标识列表是否相同,如果不相同,则真实卡片管理器利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套,卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表;如果卡套未查找到卡套端标识列表,则利用卡套端第二安全传输密钥对预设标识进行第一处理后发送至真实卡片管理器,真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,真实卡片管理器确定第二处理后的数据用于指示卡套端未存储卡套端标识列表时,利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套,卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。
此外,卡套登录真实卡片管理器后,数据交互方法还包括:真实卡片管理器利用真实卡套管理器端安全传输密钥对真实卡片管理器端标识列表进行第一处理后发送至卡套;卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与卡套存储的卡套端标识列表是否相同;如果不相同,则卡套向真实卡片管理器发送更新请求;真实卡片管理器接收更新请求,利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。
此外,卡套还包括心跳休眠模式,其中,心跳休眠模式为低功耗的非工作模式,数据交互方法还包括:卡套在心跳休眠模式下,每隔第一预设时间向真实卡片管理器发送检测信息;真实卡片管理器接收到检测信息,向卡套发送响应信息;如果卡套在第二预设时间内未收到响应信息,则断开卡套与真实卡片管理器之间的安全连接;如果卡套在第二预设 时间内收到响应信息,则保持卡套与真实卡片管理器建立的安全连接。
此外,如果卡套在第二预设时间内收到响应信息,且响应信息中还包含更新提示信息,数据交互方法还包括:卡套存储更新提示信息;在卡套由心跳休眠模式进入工作模式后,卡套向真实卡片管理器发送更新触发请求;真实卡片管理器接收更新触发请求,利用真实卡片管理器端安全传输密钥对真实卡片管理器端标识列表进行第一处理后发送至卡套;卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与卡套存储的卡套端标识列表是否相同;如果不相同,则卡套向真实卡片管理器发送更新请求;真实卡片管理器接收更新请求,利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。
此外,如果卡套在第二预设时间内收到响应信息,且响应信息中还包含更新提示信息,数据交互方法还包括:卡套存储更新提示信息;在卡套由心跳休眠模式进入工作模式后,卡套利用卡套端第二安全传输密钥对卡套端标识列表进行第一处理后发送至真实卡片管理器;真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与真实卡片管理器存储的真实卡片管理器端标识列表是否相同;如果不相同,则真实卡片管理器利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。
此外,卡套接收真实卡片选择指令,确定选中的真实卡片;包括:卡套接收真实卡片选择指令,获取选中标识,其中,选中标识用于指示选中的真实卡片;卡套将选中标识发送至真实卡片管理器;真实卡片管理器根据选中标识从与真实卡片管理器连接的真实卡片中,确定与选中标识对应的选中的真实卡片。
此外,数据交互方法还包括:卡套至少将卡套证书发送至更新平台;更新平台生成第一更新加密密钥;更新平台利用第一更新加密密钥对卡套应用程序安装包进行加密获得第一安装包密文;更新平台利用更新平台私钥对第一安装包密文进行签名获得第一安装包签名;更新平台利用卡套证书中的卡套公钥加密第一更新加密密钥,获得第一更新加密密钥密文;更新平台将卡套更新信息发送至卡套,其中,卡套更新信息包括:更新平台证书、第一安装包密文、第一安装包签名以及第一更新加密密钥密文;卡套接收卡套更新信息,利用根证书验证更新平台证书;卡套验证更新平台证书通过后,利用更新平台证书中的更 新平台公钥对第一安装包签名进行验签;卡套验证第一安装包签名正确后,利用卡套私钥解密第一更新加密密钥密文,获得第一解密密钥;卡套利用第一解密密钥解密第一安装包密文,获得卡套应用程序安装包;卡套验证卡套应用程序安装包的数据格式是否正确;如果卡套验证卡套应用程序安装包的数据格式正确,卡套根据卡套应用程序安装包进行安装。
此外,数据交互方法还包括:卡套从模拟卡片中获取模拟卡片证书,至少将模拟卡片证书发送至更新平台;更新平台生成第二更新加密密钥;更新平台利用第二更新加密密钥对模拟卡片应用程序安装包进行加密获得第二安装包密文;更新平台利用更新平台私钥对第二安装包密文进行签名获得第二安装包签名;更新平台利用模拟卡片证书中的模拟卡片公钥加密第二更新加密密钥,获得第二更新加密密钥密文;更新平台将模拟卡片更新信息发送至卡套,其中,模拟卡片更新信息包括:更新平台证书、第二安装包密文、第二安装包签名以及第二更新加密密钥密文;卡套接收模拟卡片更新信息,并发送至模拟卡片;模拟卡片接收卡套发送的模拟卡片更新信息,利用根证书验证更新平台证书;模拟卡片验证更新平台证书通过后,利用更新平台证书中的更新平台公钥对第二安装包签名进行验签;模拟卡片验证第二安装包签名正确后,利用模拟卡片私钥解密第二更新加密密钥密文,获得第二解密密钥;模拟卡片利用第二解密密钥解密第二安装包密文,获得模拟卡片应用程序安装包;模拟卡片验证模拟卡片应用程序安装包的数据格式是否正确;如果模拟卡片验证模拟卡片应用程序安装包的数据格式正确,模拟卡片根据模拟卡片应用程序安装包进行安装。
此外,数据交互方法还包括:真实卡片管理器至少将真实卡片管理器证书发送至更新平台;更新平台生成第三更新加密密钥;更新平台利用第三更新加密密钥对真实卡片管理器应用程序安装包进行加密获得第三安装包密文;更新平台利用更新平台私钥对第三安装包密文进行签名获得第三安装包签名;更新平台利用真实卡片管理器证书中的真实卡片管理器公钥加密第三更新加密密钥,获得第三更新加密密钥密文;更新平台将真实卡片管理器更新信息发送至真实卡片管理器,其中,真实卡片管理器更新信息包括:更新平台证书、第三安装包密文、第三安装包签名以及第三更新加密密钥密文;真实卡片管理器接收真实卡片管理器更新信息,利用根证书验证更新平台证书;真实卡片管理器验证更新平台证书通过后,利用更新平台证书中的更新平台公钥对第三安装包签名进行验签;真实卡片管理器验证第三安装包签名正确后,利用真实卡片管理器私钥解密第三更新加密密钥密文,获得第三解密密钥;真实卡片管理器利用第三解密密钥解密第三安装包密文,获得真实卡片管理器应用程序安装包;真实卡片管理器验证真实卡片管理器应用程序安装包的数据格式是否正确;如果真实卡片管理器验证真实卡片管理器应用程序安装包的数据格式正确,真 实卡片管理器根据真实卡片管理器应用程序安装包进行安装。
此外,在卡套与模拟卡片建立安全连接之后,模拟卡片向卡套发送的第一数据利用模拟卡片端安全传输密钥进行第一处理后发送,卡套接收到第一处理后的第一数据,利用卡套端安全传输密钥进行第二处理;卡套向模拟卡片发送的第二数据利用卡套端安全传输密钥进行第一处理后发送,模拟卡片接收到第一处理后的第二数据,利用模拟卡片端安全传输密钥进行第二处理。
此外,在卡套与真实卡片管理器建立安全连接之后,卡套向真实卡片管理器发送的第一数据利用卡套端安全传输密钥进行第一处理后发送,真实卡片管理器接收到第一处理后的第一数据,利用真实卡片管理器端安全传输密钥进行第二处理;真实卡片管理器向卡套发送的第二数据利用真实卡片管理器端安全传输密钥进行第一处理后发送,卡套接收到第一处理后的第二数据,利用卡套端安全传输密钥进行第二处理。
此外,第一处理包括:加密处理,第二处理包括:解密处理;或者第一处理包括:校验计算处理,第二处理包括:校验验证计算处理;或者第一处理包括:加密和校验计算处理,第二处理包括:解密和校验验证计算处理。
此外,真实卡片管理器根据真实卡片的安全性等级,对与真实卡片管理器连接的真实卡片的真实卡片信息的读写权限进行开启和/或关闭的设置。
此外,卡套检测出模拟卡片超出卡套的有效通信范围时,进行安全提示。
此外,卡套为移动设备。
此外,卡套为移动设备和电子签名设备,或者卡套为电子签名设备。
本发明的另一主要目的在于提供一种数据交互系统。
为达到上述目的,本发明的技术方案具体是这样实现的:
本发明一方面提供了一种数据交互系统,包括:模拟卡片、卡套以及真实卡片管理器;卡套,用于获取卡套端真实卡片信息列表;提示卡套端真实卡片信息列表;接收真实卡片选择指令,确定选中的真实卡片,其中,卡套端真实卡片信息列表为卡套从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息;模拟卡片,用于接收交易终端发送的第一数据,并将第一数据发送至卡套;卡套,还用于提示第一数据,接收用于确认第一数据正确的确认指令,将第一数据发送至真实卡片管理器;真实卡片管理器,用于接收卡套发送的第一数据,并发送至选中的真实卡片。
此外,卡套,还用于与模拟卡片建立安全连接,获得卡套与模拟卡片之间进行数据安全传输的卡套端第一安全传输密钥;模拟卡片,还用于与卡套建立安全连接,获得卡套与 模拟卡片之间进行数据安全传输的模拟卡片端安全传输密钥。
此外,卡套,具体用于向模拟卡片发送用于指示建立安全连接的第一安全连接指令,其中,第一安全连接指令包括:卡套利用模拟卡片证书中的模拟卡片公钥对卡套端第一绑定因子以及生成的第一连接随机因子进行加密获得的第一连接密文,卡套利用卡套私钥对卡套端第一绑定因子以及第一连接随机因子进行签名获得的第一连接签名;模拟卡片,具体用于接收第一安全连接指令,利用模拟卡片私钥对第一连接密文进行解密,获得卡套端第一绑定解密因子以及第一连接随机解密因子;利用卡套证书中的卡套公钥、卡套端第一绑定解密因子以及第一连接随机解密因子对第一连接签名进行验证;验证第一连接签名正确后,验证卡套端第一绑定解密因子与模拟卡片端绑定因子是否相同;验证卡套端第一绑定解密因子与模拟卡片端绑定因子相同后,生成第二连接随机因子;利用卡套证书中的卡套公钥对第一连接随机解密因子以及第二连接随机因子进行加密获得第二连接密文,利用模拟卡片私钥对第一连接随机解密因子以及第二连接随机因子进行签名获得第二连接签名;向卡套发送第一安全连接响应,其中,第一安全连接响应包括:第二连接密文以及第二连接签名;卡套,具体还用于接收第一安全连接响应,利用卡套私钥对第二连接密文进行解密,获得解密后的第一连接随机解密因子和第二连接随机解密因子;利用模拟卡片证书中的模拟卡片公钥、解密后的第一连接随机解密因子和第二连接随机解密因子对第二连接签名进行验证;验证第二连接签名正确后,验证解密后的第一连接随机解密因子与第一连接随机因子是否相同;验证解密后的第一连接随机解密因子与第一连接随机因子相同后,至少利用第二连接随机解密因子生成卡套与模拟卡片间的卡套端第一安全传输密钥;模拟卡片,具体还用于至少利用第二连接随机因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥。
此外,卡套,具体用于接收模拟卡片发送的模拟卡片生成的第三连接随机因子以及模拟卡片唯一标识;向模拟卡片发送用于指示建立安全连接的第二安全连接指令,其中,第二安全连接指令包括:卡套唯一标识、卡套利用模拟卡片证书中的模拟卡片公钥对第三连接随机因子以及生成的第四连接随机因子进行加密获得的第三连接密文、卡套利用卡套私钥对第三连接随机因子以及第四连接随机因子进行签名获得的第三连接签名;模拟卡片,具体用于接收第二安全连接指令,判断卡套唯一标识是否在模拟卡片端绑定列表中;如果卡套唯一标识在模拟卡片端绑定列表中,利用模拟卡片私钥对第三连接密文进行解密,获得第三连接随机解密因子以及第四连接随机解密因子;利用卡套证书中的卡套公钥、第三连接随机解密因子以及第四连接随机解密因子对第三连接签名进行验证;验证第三连接签名正确后,验证第三连接随机解密因子与第三连接随机因子是否相同;如果第三连接随机 解密因子与第三连接随机因子相同,利用模拟卡片私钥对第三连接随机解密因子以及第四连接随机解密因子进行签名获得第四连接签名;向卡套发送第二安全连接响应,其中,第二安全连接响应包括:第四连接签名;卡套,具体还用于接收第二安全连接响应,利用模拟卡片证书中的模拟卡片公钥、第三连接随机因子和第四连接随机因子对第四连接签名进行验证;验证第四连接签名正确后,至少利用第四连接随机因子以及卡套端第一绑定因子生成卡套与模拟卡片间的卡套端第一安全传输密钥;模拟卡片,具体还用于至少利用第四连接随机解密因子以及模拟卡片端绑定因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥;卡套,具体还用于利用卡套端第一安全传输密钥对第三连接随机因子以及第四连接随机因子进行第一处理后发送至模拟卡片;模拟卡片,具体还用于利用模拟卡片端安全传输密钥对第三连接随机解密因子以及第四连接随机解密因子进行第一处理后发送至卡套;卡套,具体还用于接收模拟卡片发送的数据,并利用卡套端第一安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第三连接随机因子以及第四连接随机因子是否相同;模拟卡片,具体还用于接收卡套发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第三连接随机解密因子以及第四连接随机解密因子是否相同。
此外,卡套,还用于与真实卡片管理器建立安全连接,获得卡套与真实卡片管理器之间进行数据安全传输的卡套端第二安全传输密钥;真实卡片管理器,还用于与卡套建立安全连接,获得卡套与真实卡片管理器之间进行数据安全传输的真实卡片管理器端安全传输密钥。
此外,卡套,具体用于向真实卡片管理器发送用于指示建立安全连接的第三安全连接指令,其中,第三安全连接指令包括:卡套利用真实卡片管理器证书中的真实卡片管理器公钥对卡套端第二绑定因子以及生成的第五连接随机因子进行加密获得的第五连接密文,卡套利用卡套私钥对卡套端第二绑定因子以及第五连接随机因子进行签名获得的第五连接签名;真实卡片管理器,具体用于接收第三安全连接指令,利用真实卡片管理器私钥对第五连接密文进行解密,获得卡套端第二绑定解密因子以及第五连接随机解密因子;利用卡套证书中的卡套公钥、卡套端第二绑定解密因子以及第五连接随机解密因子对第五连接签名进行验证;验证第五连接签名正确后,验证卡套端第二绑定解密因子与真实卡片管理器端绑定因子是否相同;验证卡套端第二绑定解密因子与真实卡片管理器端绑定因子相同后,生成第六连接随机因子;利用卡套证书中的卡套公钥对第五连接随机解密因子以及第六连接随机因子进行加密获得第六连接密文,利用真实卡片管理器私钥对第五连接随机解密因子以及第六连接随机因子进行签名获得第六连接签名;向卡套发送第三安全连接响应,其 中,第三安全连接响应包括:第六连接密文以及第六连接签名;卡套,具体还用于接收第三安全连接响应,利用卡套私钥对第六连接密文进行解密,获得解密后的第五连接随机解密因子和第六连接随机解密因子;利用真实卡片管理器证书中的真实卡片管理器公钥、解密后的第五连接随机解密因子和第六连接随机解密因子对第六连接签名进行验证;验证第六连接签名正确后,验证解密后的第五连接随机解密因子与第五连接随机因子是否相同;验证解密后的第五连接随机解密因子与第五连接随机因子相同后,至少利用第六连接随机解密因子生成卡套与真实卡片管理器间的卡套端第二安全传输密钥;真实卡片管理器,具体还用于至少利用第六连接随机因子生成卡套与真实卡片管理器间的真实卡片管理器端安全传输密钥。
此外,卡套,具体用于接收真实卡片管理器发送的真实卡片管理器生成的第七连接随机因子和真实卡片管理器唯一标识;向真实卡片管理器发送用于指示建立安全连接的第四安全连接指令,其中,第四安全连接指令包括:卡套唯一标识、卡套利用真实卡片管理器证书中的真实卡片管理器公钥对第七连接随机因子以及生成的第八连接随机因子进行加密获得的第七连接密文、卡套利用卡套私钥对第七连接随机因子以及第八连接随机因子进行签名获得的第七连接签名;真实卡片管理器,具体用于接收第四安全连接指令,判断卡套唯一标识是否在真实卡片管理器端绑定列表中;如果卡套唯一标识在真实卡片管理器端绑定列表中,利用真实卡片管理器私钥对第七连接密文进行解密,获得第七连接随机解密因子以及第八连接随机解密因子;利用卡套证书中的卡套公钥、第七连接随机解密因子以及第八连接随机解密因子对第七连接签名进行验证;验证第七连接签名正确后,验证第七连接随机解密因子与第七连接随机因子是否相同;如果第七连接随机解密因子与第七连接随机因子相同,利用真实卡片管理器私钥对第七连接随机解密因子以及第八连接随机解密因子进行签名获得第八连接签名;向卡套发送第四安全连接响应,其中,第四安全连接响应包括:第八连接签名;卡套,具体还用于接收第四安全连接响应,利用真实卡片管理器证书中的真实卡片管理器公钥、第七连接随机因子和第八连接随机因子对第八连接签名进行验证;验证第八连接签名正确后,至少利用第八连接随机因子以及卡套端第二绑定因子生成卡套与真实卡片管理器间的卡套端第二安全传输密钥;真实卡片管理器,具体还用于至少利用第八连接随机解密因子以及真实卡片管理器端绑定因子生成卡套与真实卡片管理器间的真实卡片管理器端安全传输密钥;卡套,具体还用于利用卡套端第二安全传输密钥对第七连接随机因子以及第八连接随机因子进行第一处理后发送至真实卡片管理器;真实卡片管理器,具体还用于利用真实卡片管理器端安全传输密钥对第七连接随机解密因子以及第八连接随机解密因子进行第一处理后发送至卡套;卡套,具体还用于接收真实卡片管理 器发送的数据,并利用卡套端第二安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第七连接随机因子以及第八连接随机因子是否相同;真实卡片管理器,具体还用于接收卡套发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第七连接随机解密因子以及第八连接随机解密因子是否相同。
此外,卡套,还用于在卡套与模拟卡片建立安全连接之前,与模拟卡片执行绑定操作。
此外,卡套,具体用于接收用于指示与模拟卡片进行绑定的触发命令;向模拟卡片发送第一绑定指令,其中,第一绑定指令包括:卡套生成的第一绑定随机因子、卡套证书以及卡套唯一标识;模拟卡片,具体用于接收第一绑定指令,利用根证书对卡套证书进行验证;验证卡套证书合法后,生成第二绑定随机因子;利用卡套证书中的卡套公钥对第一绑定随机因子以及第二绑定随机因子进行加密获得第一绑定密文,利用模拟卡片私钥对第一绑定随机因子以及第二绑定随机因子进行签名获得第一绑定签名;向卡套发送第一绑定响应,其中,第一绑定响应包括:第一绑定密文、第一绑定签名、模拟卡片证书以及模拟卡片唯一标识;卡套,具体还用于接收第一绑定响应,利用根证书对模拟卡片证书进行验证;验证模拟卡片证书合法后,利用卡套私钥对第一绑定密文进行解密,获得第一绑定随机解密因子和第二绑定随机解密因子;利用模拟卡片证书中的模拟卡片公钥、第一绑定随机解密因子以及第二绑定随机解密因子对第一绑定签名进行验证;验证第一绑定签名正确后,验证第一绑定随机解密因子与第一绑定随机因子是否相同;验证第一绑定随机解密因子与第一绑定随机因子相同后,提示模拟卡片唯一标识;接收用于确认模拟卡片唯一标识正确的触发命令,利用卡套私钥对第一绑定随机因子以及第二绑定随机解密因子进行签名,获得第二绑定签名,以及存储模拟卡片唯一标识、模拟卡片证书以及卡套端第一绑定因子至卡套端第一绑定列表,其中,卡套端第一绑定因子为第二绑定随机解密因子;向模拟卡片发送第二绑定签名;模拟卡片,具体还用于接收第二绑定签名,利用卡套证书中的卡套公钥、第一绑定随机因子以及第二绑定随机因子对第二绑定签名进行验证;验证第二绑定签名正确后,存储卡套唯一标识、卡套证书以及模拟卡片端绑定因子至模拟卡片端绑定列表,其中,模拟卡片端绑定因子为第二绑定随机因子。
此外,卡套,还用于在卡套与真实卡片管理器建立安全连接之前,与真实卡片管理器执行绑定操作。
此外,卡套,具体用于接收用于指示与真实卡片管理器进行绑定的触发命令;通过无线网络向真实卡片管理器发送第二绑定指令,其中,第二绑定指令包括:卡套生成的第三绑定随机因子、卡套证书以及卡套唯一标识;真实卡片管理器,具体用于接收第二绑定指 令,利用根证书对卡套证书进行验证;验证卡套证书合法后,生成第四绑定随机因子;利用卡套证书中的卡套公钥对第三绑定随机因子以及第四绑定随机因子进行加密获得第二绑定密文,利用真实卡片管理器私钥对第三绑定随机因子以及第四绑定随机因子进行签名获得第三绑定签名;通过无线网络向卡套发送第二绑定响应,其中,第二绑定响应包括:第二绑定密文、第三绑定签名、真实卡片管理器证书以及真实卡片管理器唯一标识;卡套,具体还用于接收第二绑定响应,利用根证书对真实卡片管理器证书进行验证;验证真实卡片管理器证书合法后,利用卡套私钥对第二绑定密文进行解密,获得第三绑定随机解密因子和第四绑定随机解密因子;利用真实卡片管理器证书中的真实卡片管理器公钥、第三绑定随机解密因子以及第四绑定随机解密因子对第三绑定签名进行验证;验证第三绑定签名正确后,验证第三绑定随机解密因子与第三绑定随机因子是否相同;验证第三绑定随机解密因子与第三绑定随机因子相同后,提示真实卡片管理器唯一标识;接收用于确认真实卡片管理器唯一标识正确的触发命令,利用卡套私钥对第三绑定随机因子以及第四绑定随机解密因子进行签名,获得第四绑定签名,以及存储真实卡片管理器唯一标识、真实卡片管理器证书以及卡套端第二绑定因子至卡套端第二绑定列表,其中,卡套端第二绑定因子为第四绑定随机解密因子;向真实卡片管理器发送第四绑定签名;真实卡片管理器,具体还用于接收第四绑定签名,利用卡套证书中的卡套公钥、第三绑定随机因子以及第四绑定随机因子对第四绑定签名进行验证;验证第四绑定签名正确后,存储卡套唯一标识、卡套证书以及真实卡片管理器端绑定因子至真实卡片管理器端绑定列表,其中,真实卡片管理器端绑定因子为第四绑定随机因子。
此外,卡套,还用于在卡套与真实卡片管理器建立安全连接之前,向真实卡片管理器发送登录请求;在卡套与真实卡片管理器建立安全连接之后,通过卡套端第二安全传输密钥对接收到的登录密码进行第一处理后发送至真实卡片管理器;真实卡片管理器,还用于接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后验证第二处理后的数据的正确性;在验证第二处理后的数据通过后,卡套登录真实卡片管理器。
此外,真实卡片管理器,具体用于利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,获得待验证密码;判断待验证密码是否为报警密码;如果待验证密码为报警密码,则确定待验证密码验证通过,并执行报警操作;如果待验证密码不是报警密码且为登录密码,则确定待验证密码验证通过。
此外,真实卡片管理器,还用于对与真实卡片管理器连接的真实卡片进行检测;在检测到与真实卡片管理器连接的真实卡片后,获取真实卡片的真实卡片信息;获取真实卡片 的真实卡片信息后,生成真实卡片管理器端真实卡片信息列表,其中,真实卡片信息至少包括:卡号。
此外,真实卡片管理器,还用于生成真实卡片管理器端标识列表,真实卡片管理器端标识列表中的标识与真实卡片管理器端真实卡片信息列表中的真实卡片信息一一对应。
此外,卡套,还用于在卡套登录真实卡片管理器后,查找卡套端标识列表;如果卡套查找到卡套端标识列表,则利用卡套端第二安全传输密钥对卡套端标识列表进行第一处理后发送至真实卡片管理器;如果卡套未查找到卡套端标识列表,则利用卡套端第二安全传输密钥对预设标识进行第一处理后发送至真实卡片管理器;真实卡片管理器,还用于接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与真实卡片管理器存储的真实卡片管理器端标识列表是否相同,如果不相同,则利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;或者接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,确定第二处理后的数据用于指示卡套端未存储卡套端标识列表时,利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;卡套,还用于接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。
此外,真实卡片管理器,还用于在卡套登录真实卡片管理器后,利用真实卡套管理器端安全传输密钥对真实卡片管理器端标识列表进行第一处理后发送至卡套;卡套,还用于接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与卡套存储的卡套端标识列表是否相同;如果不相同,则向真实卡片管理器发送更新请求;真实卡片管理器,还用于接收更新请求,利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;卡套,还用于接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。
此外,卡套还包括心跳休眠模式,其中,心跳休眠模式为低功耗的非工作模式;卡套,还用于在心跳休眠模式下,每隔第一预设时间向真实卡片管理器发送检测信息;真实卡片管理器,还用于接收到检测信息,向卡套发送响应信息;卡套,还用于如果在第二预设时间内未收到响应信息,则断开卡套与真实卡片管理器之间的安全连接;如果在第二预设时间内收到响应信息,则保持卡套与真实卡片管理器建立的安全连接。
此外,卡套,还用于如果在第二预设时间内收到响应信息,且响应信息中还包含更新提示信息时,存储更新提示信息;在卡套由心跳休眠模式进入工作模式后,向真实卡片管 理器发送更新触发请求;真实卡片管理器,还用于接收更新触发请求,利用真实卡片管理器端安全传输密钥对真实卡片管理器端标识列表进行第一处理后发送至卡套;卡套,还用于接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与卡套存储的卡套端标识列表是否相同;如果不相同,则向真实卡片管理器发送更新请求;真实卡片管理器,还用于接收更新请求,利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;卡套,还用于接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。
此外,卡套,还用于如果在第二预设时间内收到响应信息,且响应信息中还包含更新提示信息时,存储更新提示信息;在卡套由心跳休眠模式进入工作模式后,利用卡套端第二安全传输密钥对卡套端标识列表进行第一处理后发送至真实卡片管理器;真实卡片管理器,还用于接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与真实卡片管理器存储的真实卡片管理器端标识列表是否相同;如果不相同,则利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;卡套,还用于接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。
此外,卡套,具体用于接收真实卡片选择指令,获取选中标识,其中,选中标识用于指示选中的真实卡片;将选中标识发送至真实卡片管理器;真实卡片管理器,具体用于根据选中标识从与真实卡片管理器连接的真实卡片中,确定与选中标识对应的选中的真实卡片。
此外,数据交互系统还包括:更新平台;卡套,还用于至少将卡套证书发送至更新平台;
更新平台,用于生成第一更新加密密钥;利用第一更新加密密钥对卡套应用程序安装包进行加密获得第一安装包密文;利用更新平台私钥对第一安装包密文进行签名获得第一安装包签名;利用卡套证书中的卡套公钥加密第一更新加密密钥,获得第一更新加密密钥密文;将卡套更新信息发送至卡套,其中,卡套更新信息包括:更新平台证书、第一安装包密文、第一安装包签名以及第一更新加密密钥密文;卡套,还用于接收卡套更新信息,利用根证书验证更新平台证书;验证更新平台证书通过后,利用更新平台证书中的更新平台公钥对第一安装包签名进行验签;验证第一安装包签名正确后,利用卡套私钥解密第一更新加密密钥密文,获得第一解密密钥;利用第一解密密钥解密第一安装包密文,获得卡套应用程序安装包;验证卡套应用程序安装包的数据格式是否正确;如果卡套验证卡套应 用程序安装包的数据格式正确,根据卡套应用程序安装包进行安装。
此外,数据交互系统还包括:更新平台;卡套,还用于从模拟卡片中获取模拟卡片证书,至少将模拟卡片证书发送至更新平台;更新平台,用于生成第二更新加密密钥;利用第二更新加密密钥对模拟卡片应用程序安装包进行加密获得第二安装包密文;利用更新平台私钥对第二安装包密文进行签名获得第二安装包签名;利用模拟卡片证书中的模拟卡片公钥加密第二更新加密密钥,获得第二更新加密密钥密文;将模拟卡片更新信息发送至卡套,其中,模拟卡片更新信息包括:更新平台证书、第二安装包密文、第二安装包签名以及第二更新加密密钥密文;卡套,还用于接收模拟卡片更新信息,并发送至模拟卡片;模拟卡片,还用于接收卡套发送的模拟卡片更新信息,利用根证书验证更新平台证书;验证更新平台证书通过后,利用更新平台证书中的更新平台公钥对第二安装包签名进行验签;验证第二安装包签名正确后,利用模拟卡片私钥解密第二更新加密密钥密文,获得第二解密密钥;利用第二解密密钥解密第二安装包密文,获得模拟卡片应用程序安装包;验证模拟卡片应用程序安装包的数据格式是否正确;如果模拟卡片验证模拟卡片应用程序安装包的数据格式正确,根据模拟卡片应用程序安装包进行安装。
此外,数据交互系统还包括:更新平台;真实卡片管理器,还用于至少将真实卡片管理器证书发送至更新平台;更新平台,用于生成第三更新加密密钥;利用第三更新加密密钥对真实卡片管理器应用程序安装包进行加密获得第三安装包密文;利用更新平台私钥对第三安装包密文进行签名获得第三安装包签名;利用真实卡片管理器证书中的真实卡片管理器公钥加密第三更新加密密钥,获得第三更新加密密钥密文;将真实卡片管理器更新信息发送至真实卡片管理器,其中,真实卡片管理器更新信息包括:更新平台证书、第三安装包密文、第三安装包签名以及第三更新加密密钥密文;真实卡片管理器,还用于接收真实卡片管理器更新信息,利用根证书验证更新平台证书;验证更新平台证书通过后,利用更新平台证书中的更新平台公钥对第三安装包签名进行验签;验证第三安装包签名正确后,利用真实卡片管理器私钥解密第三更新加密密钥密文,获得第三解密密钥;利用第三解密密钥解密第三安装包密文,获得真实卡片管理器应用程序安装包;验证真实卡片管理器应用程序安装包的数据格式是否正确;如果真实卡片管理器验证真实卡片管理器应用程序安装包的数据格式正确,根据真实卡片管理器应用程序安装包进行安装。
此外,模拟卡片,还用于在卡套与模拟卡片建立安全连接之后,向卡套发送的第一数据利用模拟卡片端安全传输密钥进行第一处理后发送,卡套,还用于接收到第一处理后的第一数据,利用卡套端安全传输密钥进行第二处理;卡套,还用于在卡套与模拟卡片建立安全连接之后,向模拟卡片发送的第二数据利用卡套端安全传输密钥进行第一处理后发送, 模拟卡片,还用于接收到第一处理后的第二数据,利用模拟卡片端安全传输密钥进行第二处理。
此外,卡套,还用于在卡套与真实卡片管理器建立安全连接之后,向真实卡片管理器发送的第一数据利用卡套端安全传输密钥进行第一处理后发送,真实卡片管理器,还用于接收到第一处理后的第一数据,利用真实卡片管理器端安全传输密钥进行第二处理;真实卡片管理器,还用于在卡套与真实卡片管理器建立安全连接之后,向卡套发送的第二数据利用真实卡片管理器端安全传输密钥进行第一处理后发送,卡套,还用于接收到第一处理后的第二数据,利用卡套端安全传输密钥进行第二处理。
此外,第一处理包括:加密处理,第二处理包括:解密处理;或者第一处理包括:校验计算处理,第二处理包括:校验验证计算处理;或者第一处理包括:加密和校验计算处理,第二处理包括:解密和校验验证计算处理。
此外,真实卡片管理器,还用于根据真实卡片的安全性等级,对与真实卡片管理器连接的真实卡片的真实卡片信息的读写权限进行开启和/或关闭的设置。
此外,卡套,还用于检测出模拟卡片超出卡套的有效通信范围时,进行安全提示。
此外,卡套为移动设备。
此外,卡套为移动设备和电子签名设备,或者卡套为电子签名设备。
由上述本发明提供的技术方案可以看出,通过本发明的数据交互方法和系统可以实现模拟卡片、卡套与真实卡片管理器之间的数据交互,以提供一种新型的既方便用户携带,且安全性较高的交易解决方案。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他附图。
图1为本发明实施例提供的数据交互方法的流程图;
图2示出了本发明实施例提供的数据交互系统的结构示意图;
图3为本发明实施例的数据更新方法方式一的流程图;
图4为本发明实施例的数据更新方法方式二的流程图;
图5为本发明实施例的数据更新方法方式三的流程图;
图6为本发明实施例的数据更新方法方式四的流程图;
图7为本发明实施例的卡套与模拟卡片建立安全连接方式一的流程图;
图8为本发明实施例的卡套与模拟卡片建立安全连接方式二的流程图;
图9为本发明实施例的卡套与真实卡片管理器建立安全连接方式一的流程图;
图10为本发明实施例的卡套与真实卡片管理器建立安全连接方式二的流程图;
图11为本发明实施例的卡套与模拟卡片执行绑定操作的流程图;
图12为本发明实施例的卡套与真实卡片管理器执行绑定操作的流程图;
图13为本发明实施例的卡套应用程序更新的流程图;
图14为本发明实施例的模拟卡片应用程序更新的流程图;
图15为本发明实施例的真实卡片管理器应用程序更新的流程图。
具体实施方式
下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明的保护范围。
在本发明的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或数量或位置。
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。
下面将结合附图对本发明实施例作进一步地详细描述。
本发明提供了一种数据交互的架构,以提供既方便用户携带,且安全性较高的交易解决方案。该数据交互架构包括:模拟卡片、卡套以及真实卡片管理器。
其中:
模拟卡片,可以包括一张或多张,且该模拟卡片可以为单独制造的卡片也可以为预留 有模拟卡片功能的真实卡片。该模拟卡片与现有银行卡片大小相同,在本数据交互架构中,替代真实卡片完成交易。模拟卡片具有接触式和/或非接触式接口,以便配合现有的交易终端(例如ATM机、POS机、公交卡充值机等)完成交易。模拟卡片还具有无线接口,模拟卡片可以通过该无线接口与卡套进行数据交互。其中,接触式接口可以为触点等,非接触式接口可以为NFC接口等,该无线接口可以为蓝牙接口、红外接口、2.4GHz接口、WIFI接口、RFID接口等。
卡套,可以包括一个或多个卡套,且该卡套可以管理一张或多张模拟卡片,每张模拟卡片只能属于一个卡套并被其管理。该卡套可以为单独制造为卡片外套形状的设备,也可以为具有本数据架构中提供的卡套功能的移动设备,包括:智能手机、平板电脑(PAD)、PDA(例如掌上电脑、学习机)、笔记本电脑、电子书阅读装置、可穿戴设备(例如智能腕表、智能眼镜等)等。卡套可以具有接触式和/或非接触式接口,以便配合模拟卡片的接触式和/或非接触式接口进行数据交互,卡套也可以具有无线接口,以便通过该无线接口与模拟卡片相应的接口进行数据交互,其中,接触式接口可以为触点等,非接触式接口可以为NFC接口等,该无线接口可以为蓝牙接口、红外接口、2.4GHz接口、WIFI接口、RFID接口等;卡套还具有网络接口,以便通过该网络接口与真实卡片管理器相应的网络接口进行数据交互,其中,该网络接口可以为WIFI接口、移动互联网接口(例如3G、4G网络)等。另外,卡套还可以为移动设备和电子签名设备的组合,其中卡套的网络接口借助于移动设备的网络接口实现,其他接口(例如无线接口、接触式和/或非接触式接口等)可以均位于电子签名设备上,或者该其他接口也可以均位于移动设备上,或者该其他接口中部分接口位于电子签名设备上,部分接口位于移动设备上;卡套执行的处理操作均在电子签名设备上执行;卡套还可以仅为电子签名设备。其中,电子签名设备可以为key设备,例如工行U盾,农行K宝等。
真实卡片管理器,可以管理多个卡套,且该真实卡片管理器具有多个接触式(例如卡槽等)接口和/或非接触式(例如NFC等)接口,以方便真实卡片管理器可以通过不同方式连接不同种类的真实卡片,其中,真实卡片管理器与至少一个真实卡片相连接,并存储有真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息,该真实卡片信息可以包括:卡号、卡片认证信息等信息,该卡片认证信息为认证真实卡片是否为正规渠道(例如银行、公交公司等)发行的卡片信息;该真实卡片可以为功能卡(例如公交卡、饭卡、购物卡、会员卡、积分卡等)或者银行颁发的银行卡;可选的,真实卡片管理器可以设置为保存与其连接的真实卡片中的全部或部分真实卡片的真实卡片信息,以便用户根据对真实卡片的安全性要求做出不同设置,例如可以在真实卡片管理器上设置不允许获取某些真实卡片的真实卡片信息, 从而保证这些真实卡片的安全性。真实卡片管理器还具有网络接口,以便通过该网络接口与卡套相应的网络接口进行数据交互,其中,该网络接口可以为WIFI接口、移动互联网接口(例如3G、4G网络)等。
在本数据交互架构中,模拟卡片以及真实卡片为智能芯片卡。
以下,对本发明中的术语进行说明:
第一处理包括:加密处理,第二处理包括:解密处理;具体地,单纯加密保证数据传输安全性,在待传输数据安全级别要求较高时,可以采用此种方式进行处理。或者
第一处理包括:校验计算处理,第二处理包括:校验验证计算处理;具体地,单纯校验保证数据传输完整性,防止篡改,在对待传输数据完整性要求较高时,可以采用此种方式进行处理。或者
第一处理包括:加密和校验计算处理,第二处理包括:解密和校验验证计算处理。具体地,采用加密和校验混合方式保证数据传输安全及完整,在对待传输数据安全级别要求最高时,可以采用此种方式进行处理。
基于上述数据交互架构,通过本发明的数据交互方法,可以实现模拟卡片、卡套与真实卡片管理器之间的数据交互,以提供一种新型的既方便用户携带,且安全性较高的交易解决方案。
图1示出了本发明实施例提供的数据交互方法的流程图,参见图1,本发明的数据交互方法,包括:
卡套获取卡套端真实卡片信息列表,其中,卡套端真实卡片信息列表为卡套从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息;
卡套提示卡套端真实卡片信息列表;
卡套接收真实卡片选择指令,确定选中的真实卡片;以及模拟卡片接收交易终端发送的第一数据,并将第一数据发送至卡套;
卡套提示第一数据,接收用于确认第一数据正确的确认指令,将第一数据发送至真实卡片管理器;
真实卡片管理器接收卡套发送的第一数据,并发送至选中的真实卡片。
图2示出了本发明实施例提供的数据交互系统的结构示意图,参见图2,本发明的数据交互系统,包括:模拟卡片、卡套以及真实卡片管理器;
卡套,用于获取卡套端真实卡片信息列表;提示卡套端真实卡片信息列表;接收真实卡片选择指令,确定选中的真实卡片,其中,卡套端真实卡片信息列表为卡套从真实卡片 管理器中获取的真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息;
模拟卡片,用于接收交易终端发送的第一数据,并将第一数据发送至卡套;
卡套,还用于提示第一数据,接收用于确认第一数据正确的确认指令,将第一数据发送至真实卡片管理器;
真实卡片管理器,用于接收卡套发送的第一数据,并发送至选中的真实卡片。
以下,针对上述数据交互方法或系统,进行详细说明,应当理解的是,下述的实施例均适用于方法或系统实施例。具体地,该数据交互方法或系统可以包含以下几个方面:
一、真实卡片管理器端真实卡片信息列表生成及更新:
在卡套获取卡套端真实卡片信息列表之前,真实卡片管理器通过如下方式进行真实卡片管理器端真实卡片信息列表的生成,当然,本发明并不局限于此:
真实卡片管理器对与真实卡片管理器连接的真实卡片进行检测;具体地,真实卡片管理器对其上设置的接触式接口和/或非接触式接口进行检测,以确定是否有真实卡片与真实卡片管理器进行连接,可以依次检测是否有与其连接的真实卡片,也可以同时检测是否有与其连接的真实卡片。可选的,真实卡片管理器可以设置为保存与其连接的真实卡片中的全部或部分真实卡片的真实卡片信息,以便用户根据对真实卡片的安全性要求做出不同设置,例如可以在真实卡片管理器上设置不允许获取某些真实卡片的真实卡片信息,从而保证这些真实卡片的安全性。
真实卡片管理器在检测到与真实卡片管理器连接的真实卡片后,获取真实卡片的真实卡片信息,其中,真实卡片信息至少包括:卡号;具体地,真实卡片管理器在检测到有真实卡片与其进行连接时,读取与其连接的真实卡片中存储的真实卡片信息,并最终获取全部与真实卡片管理器连接的真实卡片的真实卡片信息。此外,真实卡片信息除了包含卡号外,还可以包含卡片认证信息、真实卡片的颁发者标识等信息。
真实卡片管理器获取真实卡片的真实卡片信息后,生成真实卡片管理器端真实卡片信息列表。具体地,在真实卡片管理器获取了与其连接的真实卡片的真实卡片信息后,生成真实卡片管理器端真实卡片信息列表,以便后续卡套可以获取该真实卡片管理器端真实卡片信息列表,方便后续使用。可选的,真实卡片管理器可以获取到的是用户设置为允许被获取的真实卡片的真实卡片信息。
此外,真实卡片管理器除了生成真实卡片管理器端真实卡片信息列表外,还生成真实卡片管理器端标识列表,该真实卡片管理器端标识列表中的标识与真实卡片管理器端真实卡片信息列表中的真实卡片信息一一对应。具体地,该真实卡片管理器标识列表中的标识 可以唯一标识相应的真实卡片,该标识可以为:表明接触式接口和/或非接触式接口处是否有真实卡片连接的标识(例如1代表有真实卡片,0代表无真实卡片),或者该标识可以为真实卡片的颁发者编码(例如真实卡片为银行卡时,该编码为银行编码)、真实卡片的卡号的尾号、真实卡片的卡号的校验值(例如CRC校验值等)等信息中的一种或其任意组合。真实卡片管理器生成该真实卡片管理器端标识列表,可以方便后续卡套进行真实卡片信息列表的更新。
当然,真实卡片管理器可以在每次真实卡片管理器开机后,均重新检测并生成真实卡片管理器端真实卡片信息列表;或者也可以通过真实卡片管理器提供的功能按键(物理按键或者虚拟按键)触发对真实卡片检测后,重新生成真实卡片管理器端真实卡片信息列表;或者还可以在真实卡片管理器每次检测到有真实卡片进行插拔或者进行入场出场时,对真实卡片信息列表执行增加和/或删除真实卡片信息的操作。
可选的,真实卡片管理器可以设置为保存与其连接的真实卡片中的全部或部分真实卡片的真实卡片信息,以便用户根据对真实卡片的安全性要求做出不同设置,例如可以在真实卡片管理器上设置不允许获取某些真实卡片的真实卡片信息,从而保证这些真实卡片的安全性。
具体地,真实卡片管理器可以将接触式接口和/或非接触式接口进行分区,根据对使用安全系数的不同分为普通卡片区域和重要卡片区域。例如:将用户的小额卡、副卡、公交卡等涉及金额较小的真实卡片放置在普通卡片区域,而将用户的大额卡、信用卡主卡等涉及金额较大的真实卡片放置在重要卡片区域。
在真实卡片管理器对接触式接口和/或非接触式接口进行分区后,可以对允许获取真实卡片的真实卡片信息的普通卡片区域进行读取,以获取在普通卡片区域进行连接的真实卡片的真实卡片信息;并无法对不允许获取真实卡片的真实卡片信息的重要卡片区域进行读取,无法获取在重要卡片区域进行连接的真实卡片的真实卡片信息。由此,真实卡片管理器生成的真实卡片管理器端真实卡片信息列表中只能包含在普通卡片区域连接的真实卡片的真实卡片信息,卡套可以获取在普通卡片区域连接的真实卡片的真实卡片信息,无法获取在重要卡片区域连接的真实卡片的真实卡片信息,例如:在普通卡片区域内的真实卡片对于卡套可见,卡套可以与其直接进行连接使用;在重要卡片区域内的真实卡片对于卡套不可见,卡套不可以与其直接进行连接使用,如需对重要卡片区域内的真实卡片进行连接使用,则需要采用如下方式之一对该重要卡片区域内的卡片进行设置,以便卡套可以与该重要卡片区域内的全部或部分真实卡片进行连接使用:
方式一、用户在输入登录密码后,卡套仅具有对普通卡片区域内的全部真实卡片进行连接使用的权限,不具有对重要卡片区域内的真实卡片进行连接使用的权限,如需对重要 卡片区域内的真实卡片进行连接使用,则可以在真实卡片管理器上设置物理按键、或者在真实卡片管理器上设置虚拟按键、或者在真实卡片管理器上设置功能菜单,以便用户可以在真实卡片管理器上设置卡套对重要卡片区域内的真实卡片进行连接使用的权限。例如:用户可以通过手动方式,按下物理按键、虚拟按键或者功能菜单中的选项,启动卡套对该重要卡片区域内的全部或者部分真实卡片进行连接使用的权限,从而使得卡套可以与该重要卡片区域内开放权限的真实卡片进行连接使用。
方式二、用户在输入登录密码后,卡套仅具有对普通卡片区域内的全部真实卡片进行连接使用的权限,不具有对重要卡片区域内的真实卡片进行连接使用的权限,如需对重要卡片区域内的真实卡片进行连接使用,则可以在真实卡片管理器上设置客户端,或者设置与真实卡片管理器连接的控制终端(例如:PC机、智能手机、平板电脑等),并在控制终端上设置客户端,用户通过登录客户端进行权限设置,以开放或关闭卡套对重要卡片区域内的全部或者部分真实卡片进行连接使用的权限,以便使得卡套可以与该重要卡片区域内开放权限的真实卡片进行连接使用。
方式三、用户在输入登录密码后,卡套仅具有对普通卡片区域内的全部真实卡片进行连接使用的权限,不具有对重要卡片区域内的真实卡片进行连接使用的权限,如需对重要卡片区域内的真实卡片进行连接使用,则可以在真实卡片管理器上设置权限密码,用户可以通过卡套对真实卡片管理器发起权限设置请求,真实卡片管理器只有在接收到权限设置请求以及接收到用户输入的权限密码,并在验证用户输入的权限密码正确后,才可以开放或关闭卡套对重要卡片区域内的全部或者部分真实卡片进行连接使用的权限,以便使得卡套可以与该重要卡片区域内开放权限的真实卡片进行连接使用。其中,权限密码与登录密码以及报警密码不同。当然,如果真实卡片管理器验证用户输入的权限密码不正确,则不执行对重要卡片区域内的全部或者部分真实卡片进行连接使用的权限的设置。
二、卡套端真实卡片信息列表的获取和更新:
本发明中,卡套获取的卡套端真实卡片信息列表为从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表。
卡套端真实卡片信息列表更新可以包括如下方式:
方式一、真实卡片管理器判断是否需要进行卡套端真实卡片信息列表的更新操作:
图3示出了本发明的数据更新方法中的方式一的方案,应当理解的是,该数据更新方法的方式一可以通过数据交互方法或数据交互系统实现。参见图3,本发明的数据更新方法包括:
卡套查找卡套端标识列表;具体地,卡套端标识列表为卡套从真实卡片管理器中获取 的真实卡片管理器端标识列表。
如果卡套查找到卡套端标识列表,则将卡套端标识列表发送至真实卡片管理器,真实卡片管理器接收卡套发送的卡套端标识列表后,判断接收到的卡套端标识列表与真实卡片管理器存储的真实卡片管理器端标识列表是否相同,如果不相同,则真实卡片管理器将更新指令和更新数据发送至卡套,卡套接收到更新指令和更新数据后,更新卡套端真实卡片信息列表;具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加或者删除的真实卡片信息,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加真实卡片信息或者需要删除的真实卡片信息对应的标识,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者,真实卡片管理器发送的更新指令包括替换指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行替换操作。
如果卡套未查找到卡套端标识列表,则将预设标识发送至真实卡片管理器,真实卡片管理器接收卡套发送的预设标识,确定预设标识用于指示卡套端未存储卡套端标识列表时,将更新指令和更新数据发送至卡套,卡套接收到更新指令和更新数据后,更新卡套端真实卡片信息列表。具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括存储指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行存储操作。
基于本发明的上述方案,卡套通过将卡套端标识列表发送至真实卡片管理器进行判断是否一致,由于卡套端标识列表数据量远小于卡套端真实卡片信息列表,因此,减小了数据传输的数据量,提高了数据传输速率,也提高了真实卡片管理器的判断速率。如果卡套为第一次使用,则卡套本身并未存储卡套端标识列表,此时,发送预设标识至真实卡片管理器,以便真实卡片管理器下发真实卡片管理器端标识列表以及真实卡片管理器端真实卡片信息列表至卡套,该预设标识可以为空标识、预定义数值、或者预定义字符等。
当然,本发明并不局限于方式一的上述实现方案,还可以在卡套和真实卡片管理器并不存储标识列表时,通过如下方式之一实现卡套端真实卡片信息列表的更新:
由卡套向真实卡片管理器直接发送卡套端真实卡片信息列表,以便真实卡片管理器进行比对后判断是否更新;或者
由卡套向真实卡片管理器发送卡套端真实卡片信息列表的列表编号,以便真实卡片管 理器比对列表编号是否相同判断是否更新;或者
由真实卡片管理器接收到用户输入的更新指令后,真实卡片管理器将真实卡片管理器端真实卡片信息列表发送至卡套。
当然,在真实卡片管理器判断出需要进行更新后,还可以发送更新询问请求至卡套,卡套提示该更新询问请求给用户,以便用户确认是否进行更新。
方式二、卡套判断是否需要进行卡套端真实卡片信息列表更新操作的流程:
图4示出了本发明的数据更新方法的方式二的方案,应当理解的是,该数据更新方法的方式二可以通过数据交互方法或数据交互系统实现。参见图4,本发明的数据更新方法包括:
真实卡片管理器将真实卡片管理器端标识列表发送至卡套;
卡套接收真实卡片管理器发送的真实卡片管理器端标识列表,判断接收到的真实卡片管理器端标识列表与卡套存储的卡套端标识列表是否相同;具体地,如果卡套第一次使用或从未成功下载真实卡片管理器端标识列表,并未存储卡套端标识列表,则直接判定为不同即可。
如果不相同,则卡套向真实卡片管理器发送更新请求;
真实卡片管理器接收更新请求,将更新指令和更新数据发送至卡套;
卡套接收到真实卡片管理器发送的更新指令和更新数据后,更新卡套端真实卡片信息列表。具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加或者删除的真实卡片信息,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加真实卡片信息或者需要删除的真实卡片信息对应的标识,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者,真实卡片管理器发送的更新指令包括替换指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行替换操作。
基于本发明的上述方案,真实卡片管理器通过将真实卡片管理器端标识列表发送至卡套进行判断是否一致,由于真实卡片管理器端标识列表数据量远小于真实卡片管理器端真实卡片信息列表,因此,减小了数据传输的数据量,提高了数据传输速率,也提高了卡套的判断速率。如果卡套为第一次使用,则卡套本身并未存储卡套端标识列表,此时,接收到真实卡片管理器下发真实卡片管理器端标识列表后,直接发送更新请求以便真实卡片管理器发送真实卡片管理器端真实卡片信息列表至卡套。
当然,本发明并不局限于方式二的上述实现方案,还可以在卡套和真实卡片管理器并不存储标识列表时,通过如下方式之一实现卡套端真实卡片信息列表的更新:
由真实卡片管理器直接向卡套发送真实卡片管理器端真实卡片信息列表,以便卡套直接存储;或者
由真实卡片管理器向卡套发送真实卡片管理器端真实卡片信息列表的列表编号,以便卡套比对列表编号是否相同判断是否更新;或者
由卡套接收到用户输入的更新指令后,卡套发送更新请求至真实卡片管理器,以便真实卡片管理器直接下发真实卡片管理器端真实卡片信息列表发送至卡套。
当然,在卡套判断出需要进行更新后,还可以提示用户确认是否进行更新,并在用户确认进行更新后,执行后续更新操作。
本发明的卡套除了具备正常工作模式之外,还具有心跳休眠模式,其中,心跳休眠模式为低功耗的非工作模式,即关闭一些不必要的耗电程序等。具体地,卡套可以在预设时间内没有操作后进入心跳休眠模式,也可以由用户的操作控制进入心跳休眠模式。
方式三、卡套处于心跳休眠模式下,卡套判断是否需要进行卡套端真实卡片信息列表更新操作的流程:
图5示出了本发明的数据更新方法方式三的方案,应当理解的是,该数据更新方法的方式三可以通过数据交互方法或数据交互系统实现。参见图5,本发明的数据更新方法包括:
卡套在心跳休眠模式下,每隔第一预设时间向真实卡片管理器发送检测信息;
真实卡片管理器接收到检测信息,向卡套发送响应信息;
如果卡套在第二预设时间内收到响应信息,且响应信息中还包含更新提示信息,则卡套存储更新提示信息;其中,更新提示信息为真实卡片管理器告知卡套真实卡片管理器有真实卡片管理器端真实卡片信息列表更新的提示信息。
在卡套由心跳休眠模式进入工作模式后,卡套向真实卡片管理器发送更新触发请求;具体地,卡套可以通过如下方式由心跳休眠模式进入工作模式:卡套收到更新提示信息后自动进入工作模式,或者卡套接收用户输入的操作指令(例如用户进行按键输入的操作指令等)后,进入工作模式。
真实卡片管理器接收更新触发请求,将真实卡片管理器端标识列表发送至卡套;
卡套接收真实卡片管理器发送的真实卡片管理器端标识列表,判断接收到的真实卡片管理器端标识列表与卡套存储的卡套端标识列表是否相同;具体地,如果卡套第一次使用或从未成功下载真实卡片管理器端标识列表,并未存储卡套端标识列表,则直接判定为不同即可。
如果不相同,则卡套向真实卡片管理器发送更新请求;
真实卡片管理器接收更新请求,将更新指令和更新数据发送至卡套;
卡套接收到真实卡片管理器发送的更新指令和更新数据后,更新卡套端真实卡片信息列表。具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加或者删除的真实卡片信息,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加真实卡片信息或者需要删除的真实卡片信息对应的标识,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者,真实卡片管理器发送的更新指令包括替换指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行替换操作。
其中的第一预设时间可以与第二预设时间相同或者不同。
基于本发明的上述方案,真实卡片管理器通过将真实卡片管理器端标识列表发送至卡套进行判断是否一致,由于真实卡片管理器端标识列表数据量远小于真实卡片管理器端真实卡片信息列表,因此,减小了数据传输的数据量,提高了数据传输速率,也提高了卡套的判断速率。如果卡套为第一次使用,则卡套本身并未存储卡套端标识列表,此时,接收到真实卡片管理器下发真实卡片管理器端标识列表后,直接发送更新请求以便真实卡片管理器发送真实卡片管理器端真实卡片信息列表至卡套。
当然,本发明并不局限于方式三的上述实现方案,还可以在卡套和真实卡片管理器并不存储标识列表时,通过如下方式之一实现卡套端真实卡片信息列表的更新:
由真实卡片管理器直接向卡套发送真实卡片管理器端真实卡片信息列表,以便卡套直接存储;或者
由真实卡片管理器向卡套发送真实卡片管理器端真实卡片信息列表的列表编号,以便卡套比对列表编号是否相同判断是否更新;或者
由卡套接收到用户输入的更新指令后,卡套发送更新请求至真实卡片管理器,以便真实卡片管理器直接下发真实卡片管理器端真实卡片信息列表发送至卡套。
当然,在真实卡片管理器判断出需要进行更新后,还可以发送更新询问请求至卡套,卡套提示该更新询问请求给用户,以便用户确认是否进行更新。
方式四、卡套处于心跳休眠模式下,真实卡片管理器判断是否需要进行卡套端真实卡片信息列表更新操作的流程:
图6示出了本发明的数据更新方法方式四的方案,应当理解的是,该数据更新方法的 方式四可以通过数据交互方法或数据交互系统实现。参见图6,本发明的数据更新方法包括:
卡套在心跳休眠模式下,每隔第一预设时间向真实卡片管理器发送检测信息;
真实卡片管理器接收到检测信息,向卡套发送响应信息;
如果卡套在第二预设时间内收到响应信息,且响应信息中还包含更新提示信息,则卡套存储更新提示信息;其中,更新提示信息为真实卡片管理器告知卡套真实卡片管理器有真实卡片管理器端真实卡片信息列表更新的提示信息。
在卡套由心跳休眠模式进入工作模式后,卡套将卡套端标识列表发送至真实卡片管理器;具体地,卡套可以通过如下方式由心跳休眠模式进入工作模式:卡套收到更新提示信息后自动进入工作模式,或者卡套接收用户输入的操作指令(例如用户进行按键输入的操作指令等)后,进入工作模式。如果卡套为第一次使用或者从未成功下载真实卡片管理器端标识列表,则卡套中并未存储卡套端标识列表,此时,卡套利用卡套端第二安全传输密钥对预设标识进行第一处理后发送至真实卡片管理器。
真实卡片管理器接收卡套发送的卡套端标识列表,判断接收到的卡套端标识列表与真实卡片管理器存储的真实卡片管理器端标识列表是否相同;具体地,真实卡片管理器接收到预设标识,也判断为不相同。
如果不相同,则真实卡片管理器将更新指令和更新数据发送至卡套;
卡套接收到真实卡片管理器发送的更新指令和更新数据后,更新卡套端真实卡片信息列表。具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加或者删除的真实卡片信息,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加真实卡片信息或者需要删除的真实卡片信息对应的标识,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者,真实卡片管理器发送的更新指令包括替换指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行替换操作。
其中的第一预设时间可以与第二预设时间相同或者不同。
基于本发明的上述方案,卡套通过将卡套端标识列表发送至真实卡片管理器进行判断是否一致,由于卡套端标识列表数据量远小于卡套端真实卡片信息列表,因此,减小了数据传输的数据量,提高了数据传输速率,也提高了真实卡片管理器的判断速率。如果卡套为第一次使用,则卡套本身并未存储卡套端标识列表,此时,发送预设标识至真实卡片管 理器,以便真实卡片管理器下发真实卡片管理器端标识列表以及真实卡片管理器端真实卡片信息列表至卡套,该预设标识可以为空标识、预定义数值、或者预定义字符等。
当然,本发明并不局限于方式四的上述实现方案,还可以在卡套和真实卡片管理器并不存储标识列表时,通过如下方式之一实现卡套端真实卡片信息列表的更新:
由卡套向真实卡片管理器直接发送卡套端真实卡片信息列表,以便真实卡片管理器进行比对后判断是否更新;或者
由卡套向真实卡片管理器发送卡套端真实卡片信息列表的列表编号,以便真实卡片管理器比对列表编号是否相同判断是否更新;或者
由真实卡片管理器接收到用户输入的更新指令后,真实卡片管理器将真实卡片管理器端真实卡片信息列表发送至卡套。
当然,在卡套判断出需要进行更新后,还可以提示用户确认是否进行更新,并在用户确认进行更新后,执行后续更新操作。
可选的,在真实卡片管理器开放或关闭卡套对重要卡片区域内的全部或者部分真实卡片进行连接使用的权限后,由于真实卡片管理器端真实卡片信息列表进行了更新,因此,真实卡片管理器会将开放了卡套对重要卡片区域内的全部或者部分真实卡片进行连接使用的权限的真实卡片信息发送至卡套,以便卡套更新卡套端真实卡片信息列表;或者在真实卡片管理器开放或关闭卡套对重要卡片区域内的全部或者部分真实卡片进行连接使用的权限后,触发卡套端真实卡片信息列表更新的流程,更新方式可以参照上述方式一和方式二的更新方式,在此不再详述。
以上真实卡片管理器发送的更新数据中除了包含真实卡片管理器端真实卡片信息列表之外,还包含真实卡片管理器端标识列表,以便卡套获取最新的标识列表。
三、确定选中的真实卡片:
卡套获取卡套端真实卡片信息列表,其中,卡套端真实卡片信息列表为从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表;具体地,可选的,在本步骤之前,还可以执行卡套开机、卡套登录真实卡片管理器的操作,在此不再赘述,具体可以参见上述有关卡套开机和卡套登录真实卡片管理器的相关描述。在本步骤中,卡套获取卡套端真实卡片信息列表,还可以包括卡套更新卡套端真实卡片信息列表的步骤,在此也不再赘述,具体可以参见上述卡套更新卡套端真实卡片信息列表的相关描述。卡套从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表后,将其存储在卡套的存储区域中,作为卡套端真实卡片信息列表,在卡套需要提示(例如显示或者语音播放等)卡套端真实卡片信 息列表时,可以从本地直接获取该卡套端真实卡片信息列表,提高卡套的处理速度。
卡套提示卡套端真实卡片信息列表;具体地,卡套利用自身的显示装置或者借助外部显示装置显示卡套端真实卡片信息列表,或者卡套利用自身的语音播放装置或者借助外部语音播放装置语音播放(例如喇叭播放或者通过耳机听筒播放等)卡套端真实卡片信息列表,以供用户根据卡套端真实卡片信息列表来选择进行交易时需要使用的真实卡片,方便用户选择,增强用户体验。
卡套接收真实卡片选择指令,确定选中的真实卡片;具体地,卡套接收的真实卡片选择指令可以为单独设置在卡套上的选择物理按键生成的,或者可以为卡套的触屏上的选择虚拟按键生成的,或者可以为在卡套屏幕上显示的菜单中选中表示选择功能的菜单项生成的。卡套接收真实卡片选择指令,确定选中的真实卡片,卡套经由真实卡片管理器与选中的真实卡片实现数据传输。另外,可以通过如下方式实现确定选中的真实卡片:卡套接收真实卡片选择指令,获取选中标识,其中,选中标识用于指示选中的真实卡片;卡套将选中标识发送至真实卡片管理器;真实卡片管理器根据选中标识从与真实卡片管理器连接的真实卡片中,确定与选中标识对应的选中的真实卡片;其中,选中标识可以为真实卡片信息中的部分或全部信息,例如:卡号和/或真实卡片管理器读写端口标识;真实卡片管理器接收到选中标识后,可以在真实卡片管理器端真实卡片信息列表中查找到与选中标识对应的真实卡片管理器读写端口标识,以便真实卡片管理器确定其读写端口,从而通过该读写端口与选中的真实卡片进行数据交互。
四、数据交互:
模拟卡片接收交易终端发送的第一数据,并将第一数据发送至卡套;具体地,在数据交互过程中,将模拟卡片与交易终端(例如ATM机、POS机、公交卡充值机等)进行连接(接触式接口或者非接触式接口),模拟卡片接收交易终端发送的第一数据,该第一数据可以为待处理的数据(例如取款金额、扣款金额、真实卡片信息获取请求等)。
卡套提示第一数据,接收用于确认第一数据正确的确认指令,将第一数据发送至真实卡片管理器;具体地,卡套可以显示第一数据,也可以语音播放(例如喇叭播放或者通过耳机听筒播放等)第一数据,以供用户确认该第一数据是否正确,只有在正确后,接收用户输入的确认第一数据正确的确认指令后,才将该第一数据发送至真实卡片管理器;如果用户确认该第一数据不正确,则可以直接取消该次数据交互,以此,提高数据交互的安全性。卡套接收的用于确认第一数据正确的确认指令可以为单独设置在卡套上的确认物理按键生成的,或者可以为卡套的触屏上的确认虚拟按键生成的,或者在卡套屏幕上显示的菜单中选择确认功能生成的,或者可以为卡套的语音采集装置(例如麦克)接收到的语音确 认指示并验证通过后时生成的,或者可以为卡套的指纹采集装置接收到指纹确认指示并验证通过后生成的,或者可以为卡套的虹膜采集装置接收到虹膜确认指示并验证通过后生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制。
真实卡片管理器接收卡套发送的第一数据,并发送至选中的真实卡片。具体地,真实卡片管理器将第一数据发送至选中的真实卡片,以便选中的真实卡片对第一数据进行处理。选中的真实卡片接收到第一数据后,可以对第一数据进行处理,该处理为现有智能卡的处理的方案,在此不再赘述。
基于上述数据交互流程,可以通过一张模拟卡片可以实现多种不同种类的真实卡片的功能,用户进行数据交互时,只需携带模拟卡片及卡套,无需携带真实卡片即可以完成,提高便捷性和安全性。
卡套可以将数据交互过程中需要确认的信息进行提示,由此,用户可以对数据交互过程中的需要确认的信息进行确认后再执行交互,从而保证数据交互的真实性,提高安全性。
此外,由于可以选择使用与交易终端匹配的真实卡片,可以解决现有技术中用户未携带与交易终端匹配的真实卡片而产生的不必要的费用支出(例如银行跨行取款手续费等)。
当然,上述具体实现仅公开了从交易终端至真实卡片的单次数据交互,在实际应用中,可能存在多次数据交互,交互流程与上述单次数据交互相似,在多次数据交互中,可以根据交互的数据是否需要确认来设置在卡套处是否提示交互的数据来保证交互数据的真实性。
五、安全连接建立:
卡套获取卡套端真实卡片信息列表之前,本发明还可以包括卡套与模拟卡片建立安全连接,获得卡套与模拟卡片之间进行数据安全传输的卡套端第一安全传输密钥和模拟卡片端安全传输密钥的流程。
当然,也可以包括卡套与真实卡片管理器建立安全连接,获得卡套与真实卡片管理器之间进行数据安全传输的卡套端第二安全传输密钥和真实卡片管理器端安全传输密钥的流程。
当然,上述两个流程可以同时执行,也可以不同时执行,可以仅执行一个流程,也可以两个流程均执行。
1、卡套与模拟卡片建立安全连接,获得卡套与模拟卡片之间进行数据安全传输的卡套端第一安全传输密钥和模拟卡片端安全传输密钥:
在本发明中,卡套与模拟卡片可以通过如下方式建立安全连接:
方式一、卡套与模拟卡片互相认证对方身份(例如互相认证对方签名数据),并在互相 认证对方身份的过程中,比较双方存储的绑定因子是否相同,在比较双方存储的绑定因子相同且互相认证对方身份通过后,生成卡套与模拟卡片之间进行数据安全传输的安全传输密钥(卡套端第一安全传输密钥和模拟卡片端安全传输密钥)。
值得说明的是,如果在卡套与模拟卡片建立安全连接之前,执行了上述卡套与模拟卡片互相认证对方证书及对方身份,并在双方均认证通过后,各自存储在认证过程中生成的绑定因子的绑定操作,则在本方式一中,卡套与模拟卡片互相认证对方身份即为卡套与模拟卡片再次互相认证对方身份。
以下,本发明提供方式一的一种具体实现:
图7示出了本发明实施例中卡套与模拟卡片建立安全连接方式一的流程图,应当理解的是,该建立安全连接方式一可以通过数据交互方法或数据交互系统实现。参见图7,卡套与模拟卡片建立安全连接包括:
卡套向模拟卡片发送用于指示建立安全连接的第一安全连接指令,其中,第一安全连接指令包括:卡套利用模拟卡片证书中的模拟卡片公钥对卡套端第一绑定因子以及生成的第一连接随机因子进行加密获得的第一连接密文,卡套利用卡套私钥对卡套端第一绑定因子以及第一连接随机因子进行签名获得的第一连接签名;具体地,在使用卡套与模拟卡片进行数据交互之前,可选的,在卡套与模拟卡片之间建立安全连接,以提高后续数据交互的安全性。其中,卡套接收的用于指示建立安全连接的第一安全连接指令可以为单独设置在卡套上的连接物理按键生成的,或者可以为卡套的触屏上的连接虚拟按键生成的,或者可以为开机密码验证正确后生成的,或者可以为将模拟卡片从卡套拔出后生成的,或者可以为在卡套屏幕上显示的菜单中选择连接功能生成的,或者可以为在卡套获得卡套端真实卡片信息列表,用户从中选择真实卡片后生成的。当然,还可以为其他任何方式生成的,在本发明中并不作限制。其中,第一连接随机因子可以为卡套生成的随机数、随机字符或其组合,当然,在生成第一连接随机因子后,还可以对第一连接随机因子的随机性进行验证,以提高第一连接随机因子的随机性,防止被破解;具体地,卡套利用模拟卡片公钥对卡套端第一绑定因子以及第一连接随机因子进行加密以保证卡套端第一绑定因子以及第一连接随机因子传输的安全性,卡套利用卡套私钥对卡套端第一绑定因子以及第一连接随机因子进行签名,以保证后续模拟卡片可以对卡套身份的合法性进行认证。将卡套端第一绑定因子发送至模拟卡片,以便后续模拟卡片对卡套端第一绑定因子是否与其存储的绑定因子相同进行判断,从而判断该卡套是否与该模拟卡片进行绑定。可选的,在本步骤之前,卡套检测到模拟卡片之后,卡套可以判断模拟卡片是否在卡套端第一绑定列表中,例如:可通过如下方式进行判断:卡套在检测到模拟卡片后,接收模拟卡片发送的模拟卡片信息(例如模拟卡片唯一标识和/或模拟卡片证书等),根据接收到的模拟卡片信息,判断该模 拟卡片是否在卡套端第一绑定列表中;和/或也可以由模拟卡片判断卡套是否在模拟卡片端绑定列表中,例如:可通过如下方式进行判断:卡套在检测到模拟卡片后,将卡套信息(例如卡套唯一标识和/或卡套证书等)发送至模拟卡片,模拟卡片根据接收到的卡套信息,判断该卡套是否在模拟卡片端绑定列表中;只有在判断对方在自身的绑定列表中后,才执行后续流程,优化了流程,提高了效率。
模拟卡片接收第一安全连接指令,利用模拟卡片私钥对第一连接密文进行解密,获得卡套端第一绑定解密因子以及第一连接随机解密因子;具体地,利用模拟卡片私钥对第一连接密文进行解密,如果在数据传输中发生了数据传输错误,或者在数据传输中发生了篡改,则将导致无法成功解密,或者解密出的卡套端第一绑定解密因子以及第一连接随机解密因子与卡套端第一绑定因子以及第一连接随机因子不同。而通过模拟卡片公钥进行加密,只有模拟卡片私钥可以成功解密,从而也可以保证数据解密的安全性。
模拟卡片利用卡套证书中的卡套公钥、卡套端第一绑定解密因子以及第一连接随机解密因子对第一连接签名进行验证;具体地,模拟卡片利用卡套公钥对卡套发送的签名进行验证,以确保数据的合法来源。
模拟卡片验证第一连接签名正确后,验证卡套端第一绑定解密因子与模拟卡片端绑定因子是否相同;具体地,模拟卡片还验证解密出的卡套端第一绑定解密因子是否与模拟卡片自身存储的模拟卡片端绑定因子是否相同,如果相同,则说明该卡套在与模拟卡片建立安全连接之前,已经完成了绑定的操作,基于此,模拟卡片可以判断卡套是否与模拟卡片进行了绑定。
模拟卡片验证卡套端第一绑定解密因子与模拟卡片端绑定因子相同后,生成第二连接随机因子;具体地,第二连接随机因子可以为模拟卡片生成的随机数、随机字符或其组合,当然,在生成第二连接随机因子后,还可以对第二连接随机因子的随机性进行验证,以提高第二连接随机因子的随机性,防止被破解。
模拟卡片利用卡套证书中的卡套公钥对第一连接随机解密因子以及第二连接随机因子进行加密获得第二连接密文,利用模拟卡片私钥对第一连接随机解密因子以及第二连接随机因子进行签名获得第二连接签名;具体地,模拟卡片利用卡套公钥对第一连接随机解密因子以及第二连接随机因子进行加密以保证第一连接随机解密因子以及第二连接随机因子传输的安全性,模拟卡片利用模拟卡片私钥对第一连接随机解密因子以及第二连接随机因子进行签名,以保证后续卡套可以对模拟卡片身份的合法性进行认证。
模拟卡片向卡套发送第一安全连接响应,其中,第一安全连接响应包括:第二连接密文以及第二连接签名;具体地,模拟卡片将第二连接密文和第二连接签名发送至卡套,以便卡套对接收到的数据进行解密和验证。
卡套接收第一安全连接响应,利用卡套私钥对第二连接密文进行解密,获得解密后的第一连接随机解密因子和第二连接随机解密因子;具体地,利用卡套私钥对第二连接密文进行解密,如果在数据传输中发生了数据传输错误,或者在数据传输中发生了篡改,则将导致无法成功解密,或者解密后的第一连接随机解密因子和第二连接随机解密因子与第一连接随机因子和第二连接随机因子不同。而通过卡套公钥进行加密,只有卡套私钥可以成功解密,从而也可以保证数据解密的安全性。
卡套利用模拟卡片证书中的模拟卡片公钥、解密后的第一连接随机解密因子和第二连接随机解密因子对第二连接签名进行验证;具体地,卡套利用模拟卡片公钥对模拟卡片发送的签名进行验证,以确保数据的合法来源。
卡套验证第二连接签名正确后,验证解密后的第一连接随机解密因子与第一连接随机因子是否相同;具体地,卡套验证自身生成的第一连接随机因子与解密后的第一连接随机解密因子相同,可以保证数据并未被篡改,且加密的数据来源确实为卡套发送第一连接随机因子的对象。
卡套验证解密后的第一连接随机解密因子与第一连接随机因子相同后,至少利用第二连接随机解密因子生成卡套与模拟卡片间的卡套端第一安全传输密钥;模拟卡片至少利用第二连接随机因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥。具体地,卡套可以利用第二连接随机解密因子生成卡套与模拟卡片间的卡套端第一安全传输密钥,也可以利用第一连接随机因子、第二连接随机解密因子生成卡套与模拟卡片间的卡套端第一安全传输密钥,还可以利用第一连接随机因子、第二连接随机解密因子以及卡套端第一绑定因子生成卡套与模拟卡片间的卡套端第一安全传输密钥;同样的,模拟卡片也可以利用第二连接随机因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥,也可以利用第一连接随机解密因子、第二连接随机因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥,还可以利用第一连接随机解密因子、第二连接随机因子以及模拟卡片端绑定因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥;只要卡套与模拟卡片采用相同的参数相同的算法生成安全传输密钥即可。由此可见,在本发明中,安全传输密钥因子在卡套端可以为第二连接随机解密因子,或者第二连接随机解密因子以及第一连接随机因子;安全传输密钥因子在模拟卡片端可以为第二连接随机因子,或者第二连接随机因子以及第一连接随机解密因子。另外,安全传输密钥可以包括加解密密钥和/或校验密钥,使用加解密密钥可以参与数据传输可以保证数据传输的安全性,使用校验密钥参与数据传输可以保证数据传输的完整性,在本发明中,可以根据传输数据的安全性等级选择性地使用安全传输密钥。
当然,本发明中,模拟卡片至少利用第二连接随机因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥的步骤并不局限于本方式一中的步骤,还可以在模拟卡片生成第二连 接随机因子之后生成模拟卡片端安全传输密钥,也可以在卡套验证解密后的第一连接随机解密因子与第一连接随机因子相同后,接收卡套发送的成功信息后生成模拟卡片端安全传输密钥。
由此可见,基于上述卡套与模拟卡片建立的安全连接,可以提高数据传输的安全性,同时,还可以验证双方是否进行了绑定,进一步提高了安全性。
如果卡套与模拟卡片建立安全连接之前,执行了上述手动绑定并存储绑定因子等操作,则在本方式一中,卡套与模拟卡片除了互相认证对方身份之外,还需要互相认证对方证书。
此外,本发明并不局限于上述卡套发起安全连接的建立,还可以由卡套触发模拟卡片发起安全连接的建立,此时,由模拟卡片发送第一安全连接指令至卡套,其他流程与上述流程实施主体相反即可实现,在此不再一一赘述。
方式二、卡套与模拟卡片互相认证对方身份(例如互相认证对方签名数据),并在互相认证对方身份过程中生成安全传输密钥因子,在互相认证对方身份通过后,至少利用存储的绑定因子和安全传输密钥因子生成卡套与模拟卡片之间进行数据安全传输的安全传输密钥(卡套端第一安全传输密钥和模拟卡片端安全传输密钥),并验证双方生成的安全传输密钥是否相同。
值得说明的是,如果在卡套与模拟卡片建立安全连接之前,执行了上述卡套与模拟卡片互相认证对方证书及对方身份,并在双方均认证通过后,各自存储在认证过程中生成的绑定因子的绑定操作,则在本方式二中,卡套与模拟卡片互相认证对方身份即为卡套与模拟卡片再次互相认证对方身份。
以下,本发明提供方式二的一种具体实现:
图8示出了本发明实施例中卡套与模拟卡片建立安全连接方式二的流程图,应当理解的是,该建立安全连接方式二可以通过数据交互方法或数据交互系统实现。参见图8,卡套与模拟卡片建立安全连接包括:
卡套接收模拟卡片发送的模拟卡片生成的第三连接随机因子以及模拟卡片唯一标识;具体地,第三连接随机因子可以为模拟卡片生成的随机数、随机字符或其组合,当然,在生成第三连接随机因子后,还可以对第三连接随机因子的随机性进行验证,以提高第三连接随机因子的随机性,防止被破解。在本步骤之前,模拟卡片生成第三连接随机因子,在卡套检测到该模拟卡片后,模拟卡片将该第三连接随机因子以及模拟卡片唯一标识发送至卡套。
卡套向模拟卡片发送用于指示建立安全连接的第二安全连接指令,其中,第二安全连接指令包括:卡套唯一标识、卡套利用模拟卡片证书中的模拟卡片公钥对第三连接随机因子以及生成的第四连接随机因子进行加密获得的第三连接密文、卡套利用卡套私钥对第三 连接随机因子以及第四连接随机因子进行签名获得的第三连接签名;具体地,在使用卡套与模拟卡片进行数据交互之前,可选的,在卡套与模拟卡片之间建立安全连接,以提高后续数据交互的安全性。其中,卡套接收的用于指示建立安全连接的第二安全连接指令可以为单独设置在卡套上的连接物理按键生成的,或者可以为卡套的触屏上的连接虚拟按键生成的,或者可以为开机密码验证正确后生成的,或者可以为将模拟卡片从卡套拔出后生成的,或者可以为在卡套屏幕上显示的菜单中选择连接功能生成的,或者可以为在卡套获得卡套端真实卡片信息列表,用户从中选择真实卡片后生成的。当然,还可以为其他任何方式生成的,在本发明中并不作限制。具体地,卡套利用模拟卡片公钥对第三连接随机因子以及生成的第四连接随机因子进行加密以保证第三连接随机因子以及生成的第四连接随机因子传输的安全性,卡套利用卡套私钥对第三连接随机因子以及生成的第四连接随机因子进行签名,以保证后续模拟卡片可以对卡套身份的合法性进行认证。另外,第四连接随机因子可以为卡套生成的随机数、随机字符或其组合,当然,在生成第四连接随机因子后,还可以对第四连接随机因子的随机性进行验证,以提高第四连接随机因子的随机性,防止被破解;可选的,在本步骤之前,卡套接收到模拟卡片唯一标识之后,卡套可以根据模拟卡片唯一标识判断模拟卡片是否在卡套端第一绑定列表中,只有在判断模拟卡片在卡套端第一绑定列表中后,才执行后续流程,优化了流程,提高了效率。
模拟卡片接收第二安全连接指令,判断卡套唯一标识是否在模拟卡片端绑定列表中;具体地,模拟卡片根据接收到的卡套唯一标识,判断该卡套是否在模拟卡片端绑定列表中;只有在判断卡套在模拟卡片端绑定列表中后,才执行后续流程,优化了流程,提高了效率。
如果卡套唯一标识在模拟卡片端绑定列表中,模拟卡片利用模拟卡片私钥对第三连接密文进行解密,获得第三连接随机解密因子以及第四连接随机解密因子;具体地,利用模拟卡片私钥对第三连接密文进行解密,如果在数据传输中发生了数据传输错误,或者在数据传输中发生了篡改,则将导致无法成功解密,或者获得的第三连接随机解密因子以及第四连接随机解密因子与第三连接随机因子以及第四连接随机因子不同。而通过模拟卡片公钥进行加密,只有模拟卡片私钥可以成功解密,从而也可以保证数据解密的安全性。
模拟卡片利用卡套证书中的卡套公钥、第三连接随机解密因子以及第四连接随机解密因子对第三连接签名进行验证;具体地,模拟卡片利用卡套公钥对卡套发送的签名进行验证,以确保数据的合法来源。
模拟卡片验证第三连接签名正确后,验证第三连接随机解密因子与第三连接随机因子是否相同;具体地,模拟卡片验证自身生成的第三连接随机因子与第三连接随机解密因子相同,可以保证数据并未被篡改,且加密的数据来源确实为模拟卡片发送第三连接随机因子的对象。
如果第三连接随机解密因子与第三连接随机因子相同,模拟卡片利用模拟卡片私钥对第三连接随机解密因子以及第四连接随机解密因子进行签名获得第四连接签名;具体地,模拟卡片利用模拟卡片私钥对第三连接随机解密因子以及第四连接随机解密因子进行签名,以保证后续卡套可以对模拟卡片身份的合法性进行认证。
模拟卡片向卡套发送第二安全连接响应,其中,第二安全连接响应包括:第四连接签名;具体地,模拟卡片将第四连接签名发送至卡套,以便卡套对接收到的数据进行验证。
卡套接收第二安全连接响应,利用模拟卡片证书中的模拟卡片公钥、第三连接随机因子和第四连接随机因子对第四连接签名进行验证;具体地,卡套利用模拟卡片公钥对模拟卡片发送的签名进行验证,以确保数据的合法来源。
卡套验证第四连接签名正确后,至少利用第四连接随机因子以及卡套端第一绑定因子生成卡套与模拟卡片间的卡套端第一安全传输密钥;模拟卡片至少利用第四连接随机解密因子以及模拟卡片端绑定因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥;具体地,卡套可以利用第四连接随机因子以及卡套端第一绑定因子生成卡套与模拟卡片间的卡套端第一安全传输密钥,也可以利用第三连接随机因子、第四连接随机因子以及卡套端第一绑定因子生成卡套与模拟卡片间的卡套端第一安全传输密钥;同样的,模拟卡片也可以利用第四连接随机解密因子以及模拟卡片端绑定因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥,也可以利用第三连接随机因子、第四连接随机解密因子以及模拟卡片端绑定因子生成卡套与模拟卡片间的模拟卡片端安全传输密钥;只要卡套与模拟卡片采用相同的参数相同的算法生成安全传输密钥即可。由此可见,在本发明中,安全传输密钥因子在卡套端可以为第四连接随机因子,或者第三连接随机因子以及第四连接随机因子;安全传输密钥因子在模拟卡片端可以为第四连接随机解密因子,或者第三连接随机因子以及第四连接随机解密因子。另外,安全传输密钥可以包括加解密密钥和/或校验密钥,使用加解密密钥可以参与数据传输可以保证数据传输的安全性,使用校验密钥参与数据传输可以保证数据传输的完整性,在本发明中,可以根据传输数据的安全性等级选择性地使用安全传输密钥。
卡套利用卡套端第一安全传输密钥对第三连接随机因子以及第四连接随机因子进行第一处理后发送至模拟卡片;模拟卡片利用模拟卡片端安全传输密钥对第三连接随机解密因子以及第四连接随机解密因子进行第一处理后发送至卡套;具体地,双方利用各自生成的安全传输密钥对数据进行第一处理后发送至对方,以便对方验证双方生成的安全传输密钥是否相同。
卡套接收模拟卡片发送的数据,并利用卡套端第一安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第三连接随机因子以及第四连接随机因子是否相同;模拟卡片接收卡套发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第二 处理,比较第二处理后的数据与第三连接随机解密因子以及第四连接随机解密因子是否相同。具体地,双方利用各自生成的安全传输密钥对接收到的数据进行第二处理后,各自比较第二处理后的数据是否与各自发送的数据相同,如果相同,则说明双方生成的安全传输密钥相同,以便保证双方后续可以利用各自生成的安全传输密钥进行数据安全传输。另外,在验证双方生成的安全传输密钥相同的同时,也可以验证各自存储的绑定因子相同,进一步验证对方为真实的绑定对象,进一步提高后续数据传输的安全性。
当然,本发明中,模拟卡片生成模拟卡片端安全传输密钥的步骤并不局限于本方式二中的步骤,还可以在解密获得第四连接随机解密因子后生成模拟卡片端安全传输密钥,也可以在卡套验证模拟卡片发送的第四连接签名无误后,接收卡套发送的成功信息后生成模拟卡片端安全传输密钥;卡套生成卡套端第一安全传输密钥的步骤也不局限于本方式二中的步骤,还可以在卡套生成第四连接随机因子后生成卡套端第一安全传输密钥。
由此可见,基于上述卡套与模拟卡片建立的安全连接,可以提高数据传输的安全性,同时,还可以验证双方是否进行了绑定,进一步提高了安全性。
如果卡套与模拟卡片建立安全连接之前,执行了上述手动绑定并存储绑定因子等操作,则在本方式二中,卡套与模拟卡片除了互相认证对方身份之外,还需要互相认证对方证书。
此外,本发明并不局限于上述卡套发起安全连接的建立,还可以由卡套触发模拟卡片发起安全连接的建立,此时,由模拟卡片发送第二安全连接指令至卡套,其他流程与上述流程实施主体相反即可实现,在此不再一一赘述。
当然,在上述方式一和方式二中生成卡套与模拟卡片之间进行数据安全传输的安全传输密钥的过程中,采用的绑定因子为卡套与模拟卡片在绑定过程中生成并保存的绑定因子,该绑定因子可以为通过上述卡套与模拟卡片互相认证对方证书及对方身份,并在双方均认证通过后,各自存储在认证过程中生成的绑定因子,或者可以为通过手动绑定的方式输入并存储的绑定因子。
另外,如果卡套与模拟卡片之间并未执行绑定操作,则上述方式一和方式二中采用的绑定因子可以为在建立安全连接过程中手动输入的随机值;或者在建立安全连接过程中,仅通过随机因子生成安全传输密钥,不予对绑定因子进行验证或者不采用绑定因子生成安全传输密钥。
2、卡套与真实卡片管理器建立安全连接,获得卡套与真实卡片管理器之间进行数据安全传输的卡套端第二安全传输密钥和真实卡片管理器端安全传输密钥:
在本发明中,卡套与真实卡片管理器可以通过如下方式建立安全连接:
方式一、卡套与真实卡片管理器互相认证对方身份,并在互相认证对方身份的过程中,比较双方存储的绑定因子是否相同,在比较双方存储的绑定因子相同且互相认证对方身份 通过后,生成卡套与真实卡片管理器之间进行数据安全传输的安全传输密钥(卡套端第二安全传输密钥和真实卡片管理器端安全传输密钥)。
值得说明的是,如果在卡套与真实卡片管理器建立安全连接之前,执行了上述卡套与真实卡片管理器互相认证对方证书及对方身份,并在双方均认证通过后,各自存储在认证过程中生成的绑定因子的绑定操作,则在本方式一中,卡套与真实卡片管理器互相认证对方身份即为卡套与真实卡片管理器再次互相认证对方身份。
卡套与真实卡片管理器采用方式一建立安全连接的方案与卡套与模拟卡片采用方式一建立安全连接的方案区别仅在于:
一是执行主体不同:在卡套与真实卡片管理器采用方式一建立安全连接的方案中,执行主体为卡套和真实卡片管理器;在卡套与模拟卡片采用方式一建立安全连接的方案中,执行主体为卡套和模拟卡片。其中,卡套在该两种方案中执行操作相同,真实卡片管理器和模拟卡片在该两种方案中执行操作相同。
二是安全连接指令的生成方式不同:在卡套与真实卡片管理器采用方式一建立安全连接的方案中,第三安全连接指令可以为单独设置在卡套上的连接物理按键生成的,或者可以为卡套的触屏上的连接虚拟按键生成的,或者可以为开机密码验证正确后生成的,或者可以为卡套向真实卡片管理器发送登录请求时生成的,或者可以为在卡套屏幕上显示的菜单中选择连接功能生成的。
以下,仅对卡套与真实卡片管理器采用方式一建立安全连接的方案进行简单说明如下,在此不再详述。
图9示出了本发明实施例中卡套与真实卡片管理器建立安全连接方式一的流程图,应当理解的是,该建立安全连接方式一可以通过数据交互方法或数据交互系统实现。参见图9,卡套与真实卡片管理器建立安全连接包括:
卡套向真实卡片管理器发送用于指示建立安全连接的第三安全连接指令,其中,第三安全连接指令包括:卡套利用真实卡片管理器证书中的真实卡片管理器公钥对卡套端第二绑定因子以及生成的第五连接随机因子进行加密获得的第五连接密文,卡套利用卡套私钥对卡套端第二绑定因子以及第五连接随机因子进行签名获得的第五连接签名;
真实卡片管理器接收第三安全连接指令,利用真实卡片管理器私钥对第五连接密文进行解密,获得卡套端第二绑定解密因子以及第五连接随机解密因子;
真实卡片管理器利用卡套证书中的卡套公钥、卡套端第二绑定解密因子以及第五连接随机解密因子对第五连接签名进行验证;
真实卡片管理器验证第五连接签名正确后,验证卡套端第二绑定解密因子与真实卡片管理器端绑定因子是否相同;
真实卡片管理器验证卡套端第二绑定解密因子与真实卡片管理器端绑定因子相同后,生成第六连接随机因子;
真实卡片管理器利用卡套证书中的卡套公钥对第五连接随机解密因子以及第六连接随机因子进行加密获得第六连接密文,利用真实卡片管理器私钥对第五连接随机解密因子以及第六连接随机因子进行签名获得第六连接签名;
真实卡片管理器向卡套发送第三安全连接响应,其中,第三安全连接响应包括:第六连接密文以及第六连接签名;
卡套接收第三安全连接响应,利用卡套私钥对第六连接密文进行解密,获得解密后的第五连接随机解密因子和第六连接随机解密因子;
卡套利用真实卡片管理器证书中的真实卡片管理器公钥、解密后的第五连接随机解密因子和第六连接随机解密因子对第六连接签名进行验证;
卡套验证第六连接签名正确后,验证解密后的第五连接随机解密因子与第五连接随机因子是否相同;
卡套验证解密后的第五连接随机解密因子与第五连接随机因子相同后,至少利用第六连接随机解密因子生成卡套与真实卡片管理器间的卡套端第二安全传输密钥;真实卡片管理器至少利用第六连接随机因子生成卡套与真实卡片管理器间的真实卡片管理器端安全传输密钥。
当然,本发明中,真实卡片管理器至少利用第六连接随机因子生成卡套与真实卡片管理器间的真实卡片管理器端安全传输密钥的步骤并不局限于本方式一中的步骤,还可以在真实卡片管理器生成第六连接随机因子之后生成真实卡片管理器端安全传输密钥,也可以在卡套验证解密后的第五连接随机解密因子与第五连接随机因子相同后,接收卡套发送的成功信息后生成真实卡片管理器端安全传输密钥。
由此可见,基于上述卡套与真实卡片管理器建立的安全连接,可以提高数据传输的安全性,同时,还可以验证双方是否进行了绑定,进一步提高了安全性。
如果卡套与真实卡片管理器建立安全连接之前,执行了上述手动绑定并存储绑定因子等操作,则在本方式一中,卡套与真实卡片管理器除了互相认证对方身份之外,还需要互相认证对方证书。
此外,本发明并不局限于上述卡套发起安全连接的建立,还可以由卡套触发真实卡片管理器发起安全连接的建立,此时,由真实卡片管理器发送第三安全连接指令至卡套,其他流程与上述流程实施主体相反即可实现,在此不再一一赘述。
方式二、卡套与真实卡片管理器互相认证对方身份,并在互相认证对方身份过程中生成安全传输密钥因子,在互相认证对方身份通过后,至少利用存储的绑定因子和安全传输 密钥因子生成卡套与真实卡片管理器之间进行数据安全传输的安全传输密钥(卡套端第二安全传输密钥和真实卡片管理器端安全传输密钥),并验证双方生成的安全传输密钥是否相同。
值得说明的是,如果在卡套与真实卡片管理器建立安全连接之前,执行了上述卡套与真实卡片管理器互相认证对方证书及对方身份,并在双方均认证通过后,各自存储在认证过程中生成的绑定因子的绑定操作,则在本方式二中,卡套与真实卡片管理器互相认证对方身份即为卡套与真实卡片管理器再次互相认证对方身份。
卡套与真实卡片管理器采用方式二建立安全连接的方案与卡套与模拟卡片采用方式二建立安全连接的方案区别仅在于:
一是执行主体不同:在卡套与真实卡片管理器采用方式二建立安全连接的方案中,执行主体为卡套和真实卡片管理器;在卡套与模拟卡片采用方式二建立安全连接的方案中,执行主体为卡套和模拟卡片。其中,卡套在该两种方案中执行操作相同,真实卡片管理器和模拟卡片在该两种方案中执行操作相同。
二是安全连接指令的生成方式不同:在卡套与真实卡片管理器采用方式二建立安全连接的方案中,第四安全连接指令可以为单独设置在卡套上的连接物理按键生成的,或者可以为卡套的触屏上的连接虚拟按键生成的,或者可以为开机密码验证正确后生成的,或者可以为卡套向真实卡片管理器发送登录请求时生成的,或者可以为在卡套屏幕上显示的菜单中选择连接功能生成的。
以下,仅对卡套与真实卡片管理器采用方式二建立安全连接的方案进行简单说明如下,在此不再详述。
图10示出了本发明实施例提供的数据交互方法中卡套与真实卡片管理器建立安全连接方式二的流程图,应当理解的是,该建立安全连接方式二可以通过数据交互方法或数据交互系统实现。参见图10,卡套与真实卡片管理器建立安全连接包括:
卡套接收真实卡片管理器发送的真实卡片管理器生成的第七连接随机因子和真实卡片管理器唯一标识;
卡套向真实卡片管理器发送用于指示建立安全连接的第四安全连接指令,其中,第四安全连接指令包括:卡套唯一标识、卡套利用真实卡片管理器证书中的真实卡片管理器公钥对第七连接随机因子以及生成的第八连接随机因子进行加密获得的第七连接密文、卡套利用卡套私钥对第七连接随机因子以及第八连接随机因子进行签名获得的第七连接签名;
真实卡片管理器接收第四安全连接指令,判断卡套唯一标识是否在真实卡片管理器端绑定列表中;
如果卡套唯一标识在真实卡片管理器端绑定列表中,真实卡片管理器利用真实卡片管 理器私钥对第七连接密文进行解密,获得第七连接随机解密因子以及第八连接随机解密因子;
真实卡片管理器利用卡套证书中的卡套公钥、第七连接随机解密因子以及第八连接随机解密因子对第七连接签名进行验证;
真实卡片管理器验证第七连接签名正确后,验证第七连接随机解密因子与第七连接随机因子是否相同;
如果第七连接随机解密因子与第七连接随机因子相同,真实卡片管理器利用真实卡片管理器私钥对第七连接随机解密因子以及第八连接随机解密因子进行签名获得第八连接签名;
真实卡片管理器向卡套发送第四安全连接响应,其中,第四安全连接响应包括:第八连接签名;
卡套接收第四安全连接响应,利用真实卡片管理器证书中的真实卡片管理器公钥、第七连接随机因子和第八连接随机因子对第八连接签名进行验证;
卡套验证第八连接签名正确后,至少利用第八连接随机因子以及卡套端第二绑定因子生成卡套与真实卡片管理器间的卡套端第二安全传输密钥;真实卡片管理器至少利用第八连接随机解密因子以及真实卡片管理器端绑定因子生成卡套与真实卡片管理器间的真实卡片管理器端安全传输密钥;
卡套利用卡套端第二安全传输密钥对第七连接随机因子以及第八连接随机因子进行第一处理后发送至真实卡片管理器;真实卡片管理器利用真实卡片管理器端安全传输密钥对第七连接随机解密因子以及第八连接随机解密因子进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,并利用卡套端第二安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第七连接随机因子以及第八连接随机因子是否相同;真实卡片管理器接收卡套发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理,比较第二处理后的数据与第七连接随机解密因子以及第八连接随机解密因子是否相同。
由此可见,基于上述卡套与真实卡片管理器建立的安全连接,可以提高数据传输的安全性,同时,还可以验证双方是否进行了绑定,进一步提高了安全性。
当然,本发明中,真实卡片管理器生成真实卡片管理器端安全传输密钥的步骤并不局限于本方式二中的步骤,还可以在解密获得第八连接随机解密因子后生成真实卡片管理器端安全传输密钥,也可以在卡套验证真实卡片管理器发送的第八连接签名无误后,接收卡套发送的成功信息后生成真实卡片管理器端安全传输密钥;卡套生成卡套端第二安全传输密钥的步骤也不局限于本方式二中的步骤,还可以在卡套生成第八连接随机因子后生成卡 套端第二安全传输密钥。
如果卡套与真实卡片管理器建立安全连接之前,执行了上述手动绑定并存储绑定因子等操作,则在本方式二中,卡套与真实卡片管理器除了互相认证对方身份之外,还需要互相认证对方证书。
此外,本发明并不局限于上述卡套发起安全连接的建立,还可以由卡套触发真实卡片管理器发起安全连接的建立,此时,由真实卡片管理器发送第四安全连接指令至卡套,其他流程与上述流程实施主体相反即可实现,在此不再一一赘述。
当然,在上述方式一和方式二中生成卡套与真实卡片管理器之间进行数据安全传输的安全传输密钥的过程中,采用的绑定因子为卡套与真实卡片管理器在绑定过程中生成并保存的绑定因子,该绑定因子可以为通过上述卡套与真实卡片管理器互相认证对方证书及对方身份,并在双方均认证通过后,各自存储在认证过程中生成的绑定因子,或者可以为通过手动绑定的方式输入并存储的绑定因子。
另外,如果卡套与真实卡片管理器之间并未执行绑定操作,则上述方式一和方式二中采用的绑定因子可以为在建立安全连接过程中手动输入的随机值;或者在建立安全连接过程中,仅通过随机因子生成安全传输密钥,不予对绑定因子进行验证或者不采用绑定因子生成安全传输密钥。
另外,在本发明卡套与真实卡片管理器建立安全连接,获得卡套与真实卡片管理器之间进行数据安全传输的卡套端第二安全传输密钥和真实卡片管理器端安全传输密钥之前,卡套向真实卡片管理器发送登录请求;具体地,登录请求可以为单独设置在卡套上的登录物理按键生成的,或者可以为卡套的触屏上的登录虚拟按键生成的,或者可以为开机密码验证正确后生成的,或者可以为在卡套屏幕上显示的菜单中选择登录功能生成的;登录请求可以包括卡套唯一标识,以便真实卡片管理器知晓哪个卡套请求进行登录。
在卡套向真实卡片管理器发送登录请求,卡套与真实卡片管理器建立安全连接,获得卡套与真实卡片管理器之间进行数据安全传输的卡套端第二安全传输密钥和真实卡片管理器端安全传输密钥之后:
卡套通过卡套端第二安全传输密钥对接收到的登录密码进行第一处理后发送至真实卡片管理器;具体地,卡套还可以提示用户输入登录密码,在用户输入了登录密码后,利用卡套端第二安全传输密钥对登录密码进行第一处理后发送至真实卡片管理器,可以提高登录密码传输的安全性。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后验证第二处理后的数据的正确性;具体地,真实卡片管理器利用真实卡片管理器端安全传输密钥对卡套发送的数据进行第二处理后,获得用户输入的登录密 码,与其存储的合法登录密码进行比较,只有在用户输入的登录密码与其存储的合法登录密码相同时,才允许卡套登录真实卡片管理器,提高登录安全性,保证后续数据传输的安全性。如果本发明中真实卡片管理器具备报警功能,则可以预先在真实卡片管理器中设置合法登录密码和合法报警密码,此时,真实卡片管理器利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,获得待验证密码;真实卡片管理器判断待验证密码是否为报警密码;如果待验证密码为报警密码,则真实卡片管理器确定待验证密码验证通过,并执行报警操作;如果待验证密码不是报警密码且为登录密码,则真实卡片管理器确定待验证密码验证通过。由于设置了报警密码,当用户输入的登录密码为报警密码时,真实卡片管理器可以识别出当前登录存在安全风险,并执行报警操作(例如真实卡片管理器发送报警短信、拨打报警电话至执法部门等)。
真实卡片管理器在验证第二处理后的数据通过后,卡套登录真实卡片管理器。
由此可见,在建立卡套与真实卡片管理器之间的安全连接前,卡套先行发起登录请求,并在卡套发送登录请求的同时触发安全连接的建立,并在安全连接建立后,对登录密码进行验证,可以节约流程,提高处理速度。
另外,为了保证卡套端真实卡片信息列表的有效性,在卡套与真实卡片管理器建立安全连接,且卡套登录真实卡片管理器之后,卡套端真实卡片信息列表还可以通过如下方式进行更新:
方式一、卡套登录真实卡片管理器后,真实卡片管理器判断是否需要进行卡套端真实卡片信息列表的更新操作:
以下提供方式一的一种实现方案:
卡套查找卡套端标识列表;具体地,卡套端标识列表为卡套从真实卡片管理器中获取的真实卡片管理器端标识列表。
如果卡套查找到卡套端标识列表,则利用卡套端第二安全传输密钥对卡套端标识列表进行第一处理后发送至真实卡片管理器,真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与真实卡片管理器存储的真实卡片管理器端标识列表是否相同,如果不相同,则真实卡片管理器利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套,卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表;具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加或者删除的真实卡片信息,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者真实卡片管 理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加真实卡片信息或者需要删除的真实卡片信息对应的标识,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者,真实卡片管理器发送的更新指令包括替换指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行替换操作。
如果卡套未查找到卡套端标识列表,则利用卡套端第二安全传输密钥对预设标识进行第一处理后发送至真实卡片管理器,真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,真实卡片管理器确定第二处理后的数据用于指示卡套端未存储卡套端标识列表时,利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套,卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括存储指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行存储操作。
基于方式一的上述实现方案,卡套通过将卡套端标识列表发送至真实卡片管理器进行判断是否一致,由于卡套端标识列表数据量远小于卡套端真实卡片信息列表,因此,减小了数据传输的数据量,提高了数据传输速率,也提高了真实卡片管理器的判断速率。如果卡套为第一次使用,则卡套本身并未存储卡套端标识列表,此时,发送预设标识至真实卡片管理器,以便真实卡片管理器下发真实卡片管理器端标识列表以及真实卡片管理器端真实卡片信息列表至卡套,该预设标识可以为空标识、预定义数值、或者预定义字符等。
当然,本发明并不局限于方式一的上述实现方案,还可以在卡套和真实卡片管理器并不存储标识列表时,通过如下方式之一实现卡套端真实卡片信息列表的更新:
由卡套向真实卡片管理器直接发送卡套端真实卡片信息列表,以便真实卡片管理器进行比对后判断是否更新;或者
由卡套向真实卡片管理器发送卡套端真实卡片信息列表的列表编号,以便真实卡片管理器比对列表编号是否相同判断是否更新;或者
由真实卡片管理器接收到用户输入的更新指令后,真实卡片管理器将真实卡片管理器端真实卡片信息列表发送至卡套。
当然,在真实卡片管理器判断出需要进行更新后,还可以发送更新询问请求至卡套,卡套提示该更新询问请求给用户,以便用户确认是否进行更新。
方式二、卡套登录真实卡片管理器后,卡套判断是否需要进行卡套端真实卡片信息列表更新操作:
真实卡片管理器利用真实卡套管理器端安全传输密钥对真实卡片管理器端标识列表进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与卡套存储的卡套端标识列表是否相同;具体地,如果卡套第一次使用或从未成功下载真实卡片管理器端标识列表,并未存储卡套端标识列表,则直接判定为不同即可。
如果不相同,则卡套向真实卡片管理器发送更新请求;
真实卡片管理器接收更新请求,利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;
卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加或者删除的真实卡片信息,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加真实卡片信息或者需要删除的真实卡片信息对应的标识,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者,真实卡片管理器发送的更新指令包括替换指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行替换操作。
基于方式二的上述实现方案,真实卡片管理器通过将真实卡片管理器端标识列表发送至卡套进行判断是否一致,由于真实卡片管理器端标识列表数据量远小于真实卡片管理器端真实卡片信息列表,因此,减小了数据传输的数据量,提高了数据传输速率,也提高了卡套的判断速率。如果卡套为第一次使用,则卡套本身并未存储卡套端标识列表,此时,接收到真实卡片管理器下发真实卡片管理器端标识列表后,直接发送更新请求以便真实卡片管理器发送真实卡片管理器端真实卡片信息列表至卡套。
当然,本发明并不局限于方式二的上述实现方案,还可以在卡套和真实卡片管理器并不存储标识列表时,通过如下方式之一实现卡套端真实卡片信息列表的更新:
由真实卡片管理器直接向卡套发送真实卡片管理器端真实卡片信息列表,以便卡套直接存储;或者
由真实卡片管理器向卡套发送真实卡片管理器端真实卡片信息列表的列表编号,以便卡套比对列表编号是否相同判断是否更新;或者
由卡套接收到用户输入的更新指令后,卡套发送更新请求至真实卡片管理器,以便真实卡片管理器直接下发真实卡片管理器端真实卡片信息列表发送至卡套。
当然,在卡套判断出需要进行更新后,还可以提示用户确认是否进行更新,并在用户确认进行更新后,执行后续更新操作。
本发明的卡套除了具备正常工作模式之外,还具有心跳休眠模式,其中,心跳休眠模式为低功耗的非工作模式,即关闭一些不必要的耗电程序等。具体地,卡套可以在预设时间内没有操作后进入心跳休眠模式,也可以由用户的操作控制进入心跳休眠模式。
卡套在心跳休眠模式下,还可以判断是否保持卡套与真实卡片管理器之间建立的安全连接,以便在卡套由心态休眠模式下恢复至工作模式时,无需再次与真实卡片管理器建立安全连接,提高便捷性。
以下提供一种卡套在心跳休眠模式下判断是否保持卡套与真实卡片管理器之间建立的安全连接的具体实现方式:
卡套在心跳休眠模式下,每隔第一预设时间向真实卡片管理器发送检测信息;
真实卡片管理器接收到检测信息,向卡套发送响应信息;
如果卡套在第二预设时间内未收到响应信息,则断开卡套与真实卡片管理器之间的安全连接;
如果卡套在第二预设时间内收到响应信息,则保持卡套与真实卡片管理器建立的安全连接。
卡套在第二预设时间内未收到响应信息,可能为卡套与真实卡片管理器之间的网络不稳定,或者真实卡片管理器工作异常,此时断开卡套与真实卡片管理器之间的安全连接保证了安全性;卡套在第二预设时间内收到响应信息,则卡套保持与真实卡片管理器之间的安全连接,在卡套恢复工作模式时,无需重新建立安全连接,方便使用。
当然,在心跳休眠模式下,用户也可以选择手动断开卡套与真实卡片管理器之间的安全连接,例如令卡套从真实卡片管理器中退出登录等操作,或者用户对卡套执行关机操作。
上述第一预设时间可以与第二预设时间相同或者不同。
以下提供在心跳休眠模式下,卡套端真实卡片信息列表更新的方式:
方式三、卡套登录真实卡片管理器后,卡套处于心跳休眠模式下,卡套判断是否需要进行卡套端真实卡片信息列表更新操作:
在心跳休眠模式下,如果卡套在第二预设时间内收到响应信息,且响应信息中还包含更新提示信息,则卡套存储更新提示信息;其中,更新提示信息为真实卡片管理器告知卡 套真实卡片管理器有真实卡片管理器端真实卡片信息列表更新的提示信息。
在卡套由心跳休眠模式进入工作模式后,卡套向真实卡片管理器发送更新触发请求;具体地,卡套可以通过如下方式由心跳休眠模式进入工作模式:卡套收到更新提示信息后自动进入工作模式,或者卡套接收用户输入的操作指令(例如用户进行按键输入的操作指令等)后,进入工作模式。
真实卡片管理器接收更新触发请求,利用真实卡片管理器端安全传输密钥对真实卡片管理器端标识列表进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与卡套存储的卡套端标识列表是否相同;具体地,如果卡套第一次使用或从未成功下载真实卡片管理器端标识列表,并未存储卡套端标识列表,则直接判定为不同即可。
如果不相同,则卡套向真实卡片管理器发送更新请求;
真实卡片管理器接收更新请求,利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;
卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加或者删除的真实卡片信息,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加真实卡片信息或者需要删除的真实卡片信息对应的标识,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者,真实卡片管理器发送的更新指令包括替换指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行替换操作。
基于方式三的上述实现方案,真实卡片管理器通过将真实卡片管理器端标识列表发送至卡套进行判断是否一致,由于真实卡片管理器端标识列表数据量远小于真实卡片管理器端真实卡片信息列表,因此,减小了数据传输的数据量,提高了数据传输速率,也提高了卡套的判断速率。如果卡套为第一次使用,则卡套本身并未存储卡套端标识列表,此时,接收到真实卡片管理器下发真实卡片管理器端标识列表后,直接发送更新请求以便真实卡片管理器发送真实卡片管理器端真实卡片信息列表至卡套。
当然,本发明并不局限于方式三的上述实现方案,还可以在卡套和真实卡片管理器并 不存储标识列表时,通过如下方式之一实现卡套端真实卡片信息列表的更新:
由真实卡片管理器直接向卡套发送真实卡片管理器端真实卡片信息列表,以便卡套直接存储;或者
由真实卡片管理器向卡套发送真实卡片管理器端真实卡片信息列表的列表编号,以便卡套比对列表编号是否相同判断是否更新;或者
由卡套接收到用户输入的更新指令后,卡套发送更新请求至真实卡片管理器,以便真实卡片管理器直接下发真实卡片管理器端真实卡片信息列表发送至卡套。
方式四、卡套登录真实卡片管理器后,卡套处于心跳休眠模式下,真实卡片管理器判断是否需要进行卡套端真实卡片信息列表更新操作:
卡套在心跳休眠模式下,如果卡套在第二预设时间内收到响应信息,且响应信息中还包含更新提示信息,则卡套存储更新提示信息;其中,更新提示信息为真实卡片管理器告知卡套真实卡片管理器有真实卡片管理器端真实卡片信息列表更新的提示信息。
在卡套由心跳休眠模式进入工作模式后,卡套利用卡套端第二安全传输密钥对卡套端标识列表进行第一处理后发送至真实卡片管理器;具体地,卡套可以通过如下方式由心跳休眠模式进入工作模式:卡套收到更新提示信息后自动进入工作模式,或者卡套接收用户输入的操作指令(例如用户进行按键输入的操作指令等)后,进入工作模式。如果卡套为第一次使用或者从未成功下载真实卡片管理器端标识列表,则卡套中并未存储卡套端标识列表,此时,卡套利用卡套端第二安全传输密钥对预设标识进行第一处理后发送至真实卡片管理器。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,判断第二处理后的数据与真实卡片管理器存储的真实卡片管理器端标识列表是否相同;具体地,真实卡片管理器接收到预设标识,也判断为不相同。
如果不相同,则真实卡片管理器利用真实卡片管理器端安全传输密钥对更新指令和更新数据进行第一处理后发送至卡套;
卡套接收到真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,更新卡套端真实卡片信息列表。具体地,更新卡套端真实卡片信息列表可以通过如下方式进行:真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加或者删除的真实卡片信息,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者真实卡片管理器发送的更新指令包括增加和/或删除指令,更新数据包括需要增加真实卡片信息或者需要删除的真实卡片信息对应的标识,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行增加和/或删除操作;或者,真实卡片管理器发 送的更新指令包括替换指令,更新数据包括最新的真实卡片管理器端真实卡片信息列表,卡套在接收到更新指令和更新数据后,根据更新指令和更新数据对卡套端真实卡片信息列表执行替换操作。
基于方式四的上述实现方案,卡套通过将卡套端标识列表发送至真实卡片管理器进行判断是否一致,由于卡套端标识列表数据量远小于卡套端真实卡片信息列表,因此,减小了数据传输的数据量,提高了数据传输速率,也提高了真实卡片管理器的判断速率。如果卡套为第一次使用,则卡套本身并未存储卡套端标识列表,此时,发送预设标识至真实卡片管理器,以便真实卡片管理器下发真实卡片管理器端标识列表以及真实卡片管理器端真实卡片信息列表至卡套,该预设标识可以为空标识、预定义数值、或者预定义字符等。
当然,本发明并不局限于方式四的上述实现方案,还可以在卡套和真实卡片管理器并不存储标识列表时,通过如下方式之一实现卡套端真实卡片信息列表的更新:
由卡套向真实卡片管理器直接发送卡套端真实卡片信息列表,以便真实卡片管理器进行比对后判断是否更新;或者
由卡套向真实卡片管理器发送卡套端真实卡片信息列表的列表编号,以便真实卡片管理器比对列表编号是否相同判断是否更新;或者
由真实卡片管理器接收到用户输入的更新指令后,真实卡片管理器将真实卡片管理器端真实卡片信息列表发送至卡套。
可选的,在真实卡片管理器开放或关闭卡套对重要卡片区域内的全部或者部分真实卡片进行连接使用的权限后,由于真实卡片管理器端真实卡片信息列表进行了更新,因此,真实卡片管理器会将开放了卡套对重要卡片区域内的全部或者部分真实卡片进行连接使用的权限的真实卡片信息发送至卡套,以便卡套更新卡套端真实卡片信息列表;或者在真实卡片管理器开放或关闭卡套对重要卡片区域内的全部或者部分真实卡片进行连接使用的权限后,触发卡套端真实卡片信息列表更新的流程,更新方式可以参照上述方式一和方式二的更新方式,在此不再详述。
六、绑定:
为了进一步提高数据交互的安全性,在卡套与模拟卡片建立安全连接之前,还可以包括:卡套与模拟卡片执行绑定操作的流程;
在卡套与真实卡片管理器建立安全连接之前,还可以包括:卡套与真实卡片管理器执行绑定操作的流程。
当然,上述两个流程可以同时执行,也可以不同时执行,可以仅执行其中一个流程,也可以两个流程均执行。
1、卡套与模拟卡片执行绑定操作:
在本发明中,卡套与模拟卡片可以通过如下方式进行绑定:
卡套与模拟卡片互相认证对方证书及对方身份,并在双方均认证通过后,各自存储在认证过程中生成的绑定因子。
以下,提供一种卡套与模拟卡片执行绑定操作的具体实现方式:
图11示出了本发明实施例中卡套与模拟卡片执行绑定操作的流程图,应当理解的是,该绑定操作可以通过数据交互方法或数据交互系统实现。参见图11,卡套与模拟卡片执行绑定操作包括:
卡套接收用于指示与模拟卡片进行绑定的触发命令;具体地,在卡套使用之前,可以先行对卡套执行开机操作,此时,可选的,卡套提示用户输入开机密码,并接收用户输入的开机密码,验证用户输入的开机密码的正确性,在验证用户输入的开机密码正确后,执行开机操作,卡套进入工作模式。在使用卡套与模拟卡片进行数据交互之前,可选的,将卡套与模拟卡片进行绑定,以提高后续数据交互的安全性。其中,卡套接收的用于指示卡套与模拟卡片进行绑定的触发命令可以为单独设置在卡套上的绑定物理按键生成的,或者可以为卡套的触屏上的绑定虚拟按键生成的,或者可以为开机密码验证正确后生成的,或者可以为将模拟卡片插入至卡套后生成的,或者可以为在卡套屏幕上显示的菜单中选择绑定功能生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制。
卡套向模拟卡片发送第一绑定指令,其中,第一绑定指令包括:卡套生成的第一绑定随机因子、卡套证书以及卡套唯一标识;具体地,卡套可以通过接触式连接(通过接触式接口)向模拟卡片发送第一绑定指令,卡套还可以通过非接触式连接(通过非接触式接口或者无线接口)向模拟卡片发送第一绑定指令,前者可以提高绑定安全性,后者可以提高绑定便捷性。第一绑定指令中携带第一绑定随机因子可以防止重放攻击,第一绑定指令中携带卡套证书以便模拟卡片对卡套进行认证,第一绑定指令中携带卡套唯一标识以便模拟卡片获知哪个卡套与其绑定;其中,第一绑定随机因子可以为卡套生成的随机数、随机字符或其组合,当然,在生成第一绑定随机因子后,还可以对第一绑定随机因子的随机性进行验证,以提高第一绑定随机因子的随机性,防止被破解;卡套唯一标识可以为卡套序列号、设备识别码、MAC地址等任一或其组合以唯一标识卡套的标识。
模拟卡片接收第一绑定指令,利用根证书对卡套证书进行验证;具体地,模拟卡片预先存储根证书,利用该根证书完成对卡套证书的验证,以保证后续使用卡套证书的安全性。
模拟卡片验证卡套证书合法后,生成第二绑定随机因子;具体地,第二绑定随机因子可以为模拟卡片生成的随机数、随机字符或其组合;当然,在生成第二绑定随机因子后,还可以对第二绑定随机因子的随机性进行验证,以提高第二绑定随机因子的随机性,防止 被破解。
模拟卡片利用卡套证书中的卡套公钥对第一绑定随机因子以及第二绑定随机因子进行加密获得第一绑定密文,利用模拟卡片私钥对第一绑定随机因子以及第二绑定随机因子进行签名获得第一绑定签名;具体地,模拟卡片利用卡套公钥对第一绑定随机因子以及第二绑定随机因子进行加密以保证第一绑定随机因子以及第二绑定随机因子传输的安全性,模拟卡片利用模拟卡片私钥对第一绑定随机因子以及第二绑定随机因子进行签名,以保证后续卡套可以对模拟卡片身份的合法性进行认证。
模拟卡片向卡套发送第一绑定响应,其中,第一绑定响应包括:第一绑定密文、第一绑定签名、模拟卡片证书以及模拟卡片唯一标识;具体地,模拟卡片发送的第一绑定响应中携带模拟卡片证书以便卡套对模拟卡片进行认证,第一绑定响应中携带模拟卡片唯一标识以便卡套获知哪个模拟卡片与其绑定;其中,模拟卡片唯一标识可以为模拟卡片序列号、设备识别码、MAC地址等任一或其组合以唯一标识模拟卡片的标识。
卡套接收第一绑定响应,利用根证书对模拟卡片证书进行验证;具体地,卡套预先存储根证书,利用该根证书完成对模拟卡片证书的验证,以保证后续使用模拟卡片证书的安全性。
卡套验证模拟卡片证书合法后,利用卡套私钥对第一绑定密文进行解密,获得第一绑定随机解密因子和第二绑定随机解密因子;具体地,利用卡套私钥对第一绑定密文进行解密,如果在数据传输中发生了数据传输错误,或者在数据传输中发生了篡改,则将导致无法成功解密,或者解密出的第一绑定随机解密因子以及第二绑定随机解密因子与第一绑定随机因子以及第二绑定随机因子不同。而通过卡套公钥进行加密,只有卡套私钥可以成功解密,从而也可以保证数据解密的安全性。
卡套利用模拟卡片证书中的模拟卡片公钥、第一绑定随机解密因子以及第二绑定随机解密因子对第一绑定签名进行验证;具体地,卡套利用验证通过后的模拟卡片公钥对模拟卡片发送的签名进行验证,以确保数据的合法来源。
卡套验证第一绑定签名正确后,验证第一绑定随机解密因子与第一绑定随机因子是否相同;具体地,卡套验证自身生成的第一绑定随机因子与第一绑定随机解密因子相同,可以保证数据并未被篡改,且加密的数据来源确实为卡套发送第一绑定随机因子的对象。
卡套验证第一绑定随机解密因子与第一绑定随机因子相同后,提示模拟卡片唯一标识;具体地,卡套可以显示模拟卡片唯一标识,也可以语音播放(例如喇叭播放或者通过耳机听筒播放等)模拟卡片唯一标识,以便用户对模拟卡片的真实性进行确认,提高绑定安全性。
卡套接收用于确认模拟卡片唯一标识正确的触发命令,利用卡套私钥对第一绑定随机 因子以及第二绑定随机解密因子进行签名,获得第二绑定签名,以及存储模拟卡片唯一标识、模拟卡片证书以及卡套端第一绑定因子至卡套端第一绑定列表,其中,卡套端第一绑定因子为第二绑定随机解密因子;具体地,卡套接收的用于确认模拟卡片唯一标识正确的触发命令可以为单独设置在卡套上的确认物理按键生成的,或者可以为卡套的触屏上的确认虚拟按键生成的,或者在卡套屏幕上显示的菜单中选择确认功能生成的,或者可以为卡套的语音采集装置(例如麦克)接收到的语音确认指示并验证通过后时生成的,或者可以为卡套的指纹采集装置接收到指纹确认指示并验证通过后生成的,或者可以为卡套的虹膜采集装置接收到虹膜确认指示并验证通过后生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制;利用卡套私钥对第一绑定随机因子以及第二绑定随机解密因子进行签名以便后续模拟卡片对卡套的身份进行认证;当然,卡套还可以存储卡套端第一绑定列表,该卡套端第一绑定列表用于记录与卡套绑定的模拟卡片的相关信息,例如:模拟卡片唯一标识、模拟卡片证书等,另外,卡套端第一绑定列表还用于存储卡套端第一绑定因子,该卡套端第一绑定因子为密文传输的第二绑定随机因子,基于第二绑定随机因子是密文传输的,因此,该卡套端第一绑定因子是安全且未被篡改的。
卡套向模拟卡片发送第二绑定签名;具体地,卡套向模拟卡片发送第二绑定签名,以便模拟卡片对卡套身份进行认证。
模拟卡片接收第二绑定签名,利用卡套证书中的卡套公钥、第一绑定随机因子以及第二绑定随机因子对第二绑定签名进行验证;具体地,模拟卡片利用验证通过后的卡套公钥对卡套发送的签名进行验证,以确保数据的合法来源。
模拟卡片验证第二绑定签名正确后,存储卡套唯一标识、卡套证书以及模拟卡片端绑定因子至模拟卡片端绑定列表,其中,模拟卡片端绑定因子为第二绑定随机因子。具体地,模拟卡片还可以存储模拟卡片端绑定列表,该模拟卡片端绑定列表用于记录与模拟卡片绑定的卡套的相关信息,例如:卡套唯一标识、卡套证书等,另外,模拟卡片端绑定列表还用于存储模拟卡片端绑定因子,该模拟卡片端绑定因子为模拟卡片生成的第二绑定随机因子。
由此可见,基于上述卡套和模拟卡片进行绑定,可以保证后续卡套和模拟卡片之间数据交互的安全性。
另外,上述卡套与模拟卡片执行绑定的操作并非必须的步骤,根据不同应用场景的需求,可以选择不执行上述卡套与模拟卡片执行绑定的操作。
当然,上述卡套与模拟卡片执行绑定的操作,并不局限于上述提供的实现方式,例如还可以采用手动绑定,即在可信环境下,在卡套上输入待绑定的模拟卡片的标识作为卡套端第一绑定因子,模拟卡片默认模拟卡片的标识作为模拟卡片端绑定因子;或者将卡套与 模拟卡片进行接触式连接,在卡套上输入任意随机值作为卡套端第一绑定因子,卡套通过接触式连接将输入的随机值发送至模拟卡片作为模拟卡片端绑定因子等等,只要可以使得卡套与模拟卡片均获得相同的绑定因子均应属于本发明的保护范围。
2、卡套与真实卡片管理器执行绑定操作:
在本发明中,卡套与真实卡片管理器可以通过如下方式进行绑定:
卡套与真实卡片管理器互相认证对方证书及对方身份,并在双方均认证通过后,各自存储在认证过程中生成的绑定因子。
以下,提供一种卡套与真实卡片管理器执行绑定操作的具体实现方式:
图12示出了本发明实施例中卡套与真实卡片管理器执行绑定操作的流程图,应当理解的是,该绑定操作可以通过数据交互方法或数据交互系统实现。参见图12,卡套与真实卡片管理器执行绑定操作包括:
卡套接收用于指示与真实卡片管理器进行绑定的触发命令;具体地,在卡套使用之前,可以先行对卡套执行开机操作,此时,可选的,卡套提示用户输入开机密码,并接收用户输入的开机密码,验证用户输入的开机密码的正确性,在验证用户输入的开机密码正确后,执行开机操作,卡套进入工作模式。在使用卡套与真实卡片管理器进行数据交互之前,可选的,将卡套与真实卡片管理器进行绑定,以提高后续数据交互的安全性。其中,卡套接收的用于指示卡套与真实卡片管理器进行绑定的触发命令可以为单独设置在卡套上的绑定物理按键生成的,或者可以为卡套的触屏上的绑定虚拟按键生成的,或者可以为开机密码验证正确后生成的,或者可以为在卡套屏幕上显示的菜单中选择绑定功能生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制。
卡套向真实卡片管理器发送第二绑定指令,其中,第二绑定指令包括:卡套生成的第三绑定随机因子、卡套证书以及卡套唯一标识;具体地,卡套可以通过无线方式(例如移动网络、WIFI等)向真实卡片管理器发送第二绑定指令。第二绑定指令中携带第三绑定随机因子可以防止重放攻击,第二绑定指令中携带卡套证书以便真实卡片管理器对卡套进行认证,第二绑定指令中携带卡套唯一标识以便真实卡片管理器获知哪个卡套与其绑定;其中,第三绑定随机因子可以为卡套生成的随机数、随机字符或其组合,当然,在生成第三绑定随机因子后,还可以对第三绑定随机因子的随机性进行验证,以提高第三绑定随机因子的随机性,防止被破解;卡套唯一标识可以为卡套序列号、设备识别码、MAC地址等任一或其组合以唯一标识卡套的标识。
真实卡片管理器接收第二绑定指令,利用根证书对卡套证书进行验证;具体地,真实卡片管理器预先存储根证书,利用该根证书完成对卡套证书的验证,以保证后续使用卡套证书的安全性。
真实卡片管理器验证卡套证书合法后,生成第四绑定随机因子;具体地,第四绑定随机因子可以为真实卡片管理器生成的随机数、随机字符或其组合;当然,在生成第四绑定随机因子后,还可以对第四绑定随机因子的随机性进行验证,以提高第四绑定随机因子的随机性,防止被破解。
真实卡片管理器利用卡套证书中的卡套公钥对第三绑定随机因子以及第四绑定随机因子进行加密获得第二绑定密文,利用真实卡片管理器私钥对第三绑定随机因子以及第四绑定随机因子进行签名获得第三绑定签名;具体地,真实卡片管理器利用卡套公钥对第三绑定随机因子以及第四绑定随机因子进行加密以保证第三绑定随机因子以及第四绑定随机因子传输的安全性,真实卡片管理器利用真实卡片管理器私钥对第三绑定随机因子以及第四绑定随机因子进行签名,以保证后续卡套可以对真实卡片管理器身份的合法性进行认证。
真实卡片管理器向卡套发送第二绑定响应,其中,第二绑定响应包括:第二绑定密文、第三绑定签名、真实卡片管理器证书以及真实卡片管理器唯一标识;具体地,真实卡片管理器发送的第二绑定响应中携带真实卡片管理器证书以便卡套对真实卡片管理器进行认证,第二绑定响应中携带真实卡片管理器唯一标识以便卡套获知哪个真实卡片管理器与其绑定;其中,真实卡片管理器唯一标识可以为真实卡片管理器序列号、设备识别码、MAC地址等任一或其组合以唯一标识真实卡片管理器的标识。
卡套接收第二绑定响应,利用根证书对真实卡片管理器证书进行验证;具体地,卡套预先存储根证书,利用该根证书完成对真实卡片管理器证书的验证,以保证后续使用真实卡片管理器证书的安全性。
卡套验证真实卡片管理器证书合法后,利用卡套私钥对第二绑定密文进行解密,获得第三绑定随机解密因子和第四绑定随机解密因子;具体地,利用卡套私钥对第二绑定密文进行解密,如果在数据传输中发生了数据传输错误,或者在数据传输中发生了篡改,则将导致无法成功解密,或者解密出的第三绑定随机解密因子以及第四绑定随机解密因子与第三绑定随机因子以及第四绑定随机因子不同。而通过卡套公钥进行加密,只有卡套私钥可以成功解密,从而也可以保证数据解密的安全性。
卡套利用真实卡片管理器证书中的真实卡片管理器公钥、第三绑定随机解密因子以及第四绑定随机解密因子对第三绑定签名进行验证;具体地,卡套利用验证通过后的真实卡片管理器公钥对真实卡片管理器发送的签名进行验证,以确保数据的合法来源。
卡套验证第三绑定签名正确后,验证第三绑定随机解密因子与第三绑定随机因子是否相同;具体地,卡套验证自身生成的第三绑定随机因子与第三绑定随机解密因子相同,可以保证数据并未被篡改,且加密的数据来源确实为卡套发送第三绑定随机因子的对象。
卡套验证第三绑定随机解密因子与第三绑定随机因子相同后,提示真实卡片管理器唯 一标识;具体地,卡套可以显示真实卡片管理器唯一标识,也可以语音播放(例如喇叭播放或者通过耳机听筒播放等)真实卡片管理器唯一标识,以便用户对真实卡片管理器的真实性进行确认,提高绑定安全性。
卡套接收用于确认真实卡片管理器唯一标识正确的触发命令,利用卡套私钥对第三绑定随机因子以及第四绑定随机解密因子进行签名,获得第四绑定签名,以及存储真实卡片管理器唯一标识、真实卡片管理器证书以及卡套端第二绑定因子至卡套端第二绑定列表,其中,卡套端第二绑定因子为第四绑定随机解密因子;具体地,卡套接收的用于确认真实卡片管理器唯一标识正确的触发命令可以为单独设置在卡套上的确认物理按键生成的,或者可以为卡套的触屏上的确认虚拟按键生成的,或者在卡套屏幕上显示的菜单中选择确认功能生成的,或者可以为卡套的语音采集装置(例如麦克)接收到的语音确认指示并验证通过后时生成的,或者可以为卡套的指纹采集装置接收到指纹确认指示并验证通过后生成的,或者可以为卡套的虹膜采集装置接收到虹膜确认指示并验证通过后生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制;利用卡套私钥对第三绑定随机因子以及第四绑定随机解密因子进行签名以便后续真实卡片管理器对卡套的身份进行认证;当然,卡套还可以存储卡套端第二绑定列表,该卡套端第二绑定列表用于记录与卡套绑定的真实卡片管理器的相关信息,例如:真实卡片管理器唯一标识、真实卡片管理器证书等,另外,卡套端第二绑定列表还用于存储卡套端第二绑定因子,该卡套端第二绑定因子为密文传输的第四绑定随机因子,基于第四绑定随机因子是密文传输的,因此,该卡套端第二绑定因子是安全且未被篡改的。
卡套向真实卡片管理器发送第四绑定签名;具体地,卡套向真实卡片管理器发送第四绑定签名,以便真实卡片管理器对卡套身份进行认证。
真实卡片管理器接收第四绑定签名,利用卡套证书中的卡套公钥、第三绑定随机因子以及第四绑定随机因子对第四绑定签名进行验证;具体地,真实卡片管理器利用验证通过后的卡套公钥对卡套发送的签名进行验证,以确保数据的合法来源。
真实卡片管理器验证第四绑定签名正确后,存储卡套唯一标识、卡套证书以及真实卡片管理器端绑定因子至真实卡片管理器端绑定列表,其中,真实卡片管理器端绑定因子为第四绑定随机因子。具体地,真实卡片管理器还可以存储真实卡片管理器端绑定列表,该真实卡片管理器端绑定列表用于记录与真实卡片管理器绑定的卡套的相关信息,例如:卡套唯一标识、卡套证书等,另外,真实卡片管理器端绑定列表还用于存储真实卡片管理器端绑定因子,该真实卡片管理器端绑定因子为真实卡片管理器生成的第四绑定随机因子。
由此可见,基于上述卡套和真实卡片管理器进行绑定,可以保证后续卡套和真实卡片管理器之间数据交互的安全性。
另外,上述卡套与真实卡片管理器执行绑定的操作并非必须的步骤,根据不同应用场景的需求,可以选择不执行上述卡套与真实卡片管理器执行绑定的操作。
当然,上述卡套与真实卡片管理器执行绑定的操作,并不局限于上述提供的实现方式,例如还可以采用手动绑定,即在可信环境下,在卡套上输入待绑定的真实卡片管理器的标识作为卡套端第一绑定因子,真实卡片管理器默认真实卡片管理器的标识作为真实卡片管理器端绑定因子;或者在真实卡片管理器上输入待绑定的卡套的标识作为真实卡片管理器端绑定因子,卡套默认卡套的标识作为卡套端第二绑定因子;或者在卡套上输入任意随机值作为卡套端第二绑定因子,在真实卡片管理器上输入相同的随机值作为真实卡片管理器端绑定因子等等,只要可以使得卡套与真实卡片管理器均获得相同的绑定因子均应属于本发明的保护范围。
当然,上述卡套与模拟卡片执行绑定的操作,以及上述卡套与真实卡片执行绑定的操作并非需要同时执行,根据不同应用场景的需求,可以选择仅执行卡套与模拟卡片的绑定操作,或者仅执行卡套与真实卡片管理器的绑定操作,或者上述绑定操作均不予执行。
七、数据交互:
在卡套与模拟卡片建立安全连接之后,模拟卡片向卡套发送的第一数据利用模拟卡片端安全传输密钥进行第一处理后发送,卡套接收到第一处理后的第一数据,利用卡套端安全传输密钥进行第二处理。
在卡套与真实卡片管理器建立安全连接之后,卡套向真实卡片管理器发送的第一数据利用卡套端安全传输密钥进行第一处理后发送,真实卡片管理器接收到第一处理后的第一数据,利用真实卡片管理器端安全传输密钥进行第二处理。
由此保证数据交互的安全性。
以下提供一种在卡套与模拟卡片建立安全连接,且卡套与真实卡片管理器建立安全连接之后,本发明的数据交互方法,但本发明并不局限于此:
模拟卡片接收交易终端发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第一处理后发送至卡套;具体地,在数据交互过程中,将模拟卡片与交易终端(例如ATM机、POS机、公交卡充值机等)进行连接(接触式接口或者非接触式接口),模拟卡片接收交易终端发送的数据,该数据可以为待处理的数据(例如取款金额、扣款金额、真实卡片信息获取请求等)。
卡套接收模拟卡片发送的数据,并利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,接收用于确认第二处理后的数据正确的确认指令后,利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器;具体地,卡套接收模 拟卡片发送的数据,并利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,还可以显示待处理的数据,也可以语音播放(例如喇叭播放或者通过耳机听筒播放等)待处理的数据,以供用户确认该待处理的数据是否正确,只有在正确后,接收用户输入的确认待处理的数据正确的确认指令后,才将该待处理的数据发送至真实卡片管理器;如果用户确认该待处理的数据不正确,则可以直接取消该次数据交互,以此,提高数据交互的安全性。卡套接收的用于确认第二处理后的数据正确的确认指令可以为单独设置在卡套上的确认物理按键生成的,或者可以为卡套的触屏上的确认虚拟按键生成的,或者在卡套屏幕上显示的菜单中选择确认功能生成的,或者可以为卡套的语音采集装置(例如麦克)接收到的语音确认指示并验证通过后时生成的,或者可以为卡套的指纹采集装置接收到指纹确认指示并验证通过后生成的,或者可以为卡套的虹膜采集装置接收到虹膜确认指示并验证通过后生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制。
真实卡片管理器接收卡套发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的真实卡片;具体地,真实卡片管理器将待处理的数据发送至选中的真实卡片,以便选中的真实卡片对待处理的数据进行处理。
基于上述数据交互流程,可以通过一张模拟卡片可以实现多种不同种类的真实卡片的功能,用户进行数据交互时,只需携带模拟卡片及卡套,无需携带真实卡片即可以完成,提高便捷性和安全性。
卡套可以将数据交互过程中需要确认的信息进行提示,由此,用户可以对数据交互过程中的需要确认的信息进行确认后再执行交互,从而保证数据交互的真实性,提高安全性。
在数据传输过程中,模拟卡片、卡套和真实卡片管理器之间进行数据交互均通过安全传输密钥进行加解密和/或校验操作,从而保证数据传输的安全性和完整性。
此外,由于可以选择使用与交易终端匹配的真实卡片,可以解决现有技术中用户未携带与交易终端匹配的真实卡片而产生的不必要的费用支出(例如银行跨行取款手续费等)。
八、充值:
利用本发明的数据交互架构,还可以实现充值(例如公交卡、水卡、电卡充值等)等操作,以方便用户仅携带本发明的卡套和模拟卡片即可以实现多种不同种类真实卡片的充值,方便用户携带,避免了真实卡片丢失造成的资产损失。
以下提供了一种具体充值流程,但本发明并不局限于此:
卡套获取卡套端真实卡片信息列表,其中,卡套端真实卡片信息列表为从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表;具体地,可选的,在本步骤之前,还可以执行卡套开机、卡套登录真实卡片管理器的操作,在此不再赘述,具体可以参见上述 有关卡套开机和卡套登录真实卡片管理器的相关描述。在本步骤中,卡套获取卡套端真实卡片信息列表,还可以包括卡套更新卡套端真实卡片信息列表的步骤,在此也不再赘述,具体可以参见上述卡套更新卡套端真实卡片信息列表的相关描述。卡套从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表后,将其存储在卡套的存储区域中,作为卡套端真实卡片信息列表,在卡套需要提示(例如显示或者语音播放等)卡套端真实卡片信息列表时,可以从本地直接获取该卡套端真实卡片信息列表,提高卡套的处理速度。
卡套提示卡套端真实卡片信息列表;具体地,卡套利用自身的显示装置或者借助外部显示装置显示卡套端真实卡片信息列表,或者卡套利用自身的语音播放装置或者借助外部语音播放装置语音播放(例如喇叭播放或者通过耳机听筒播放等)卡套端真实卡片信息列表,以供用户根据卡套端真实卡片信息列表来选择进行充值时需要使用的真实卡片,方便用户选择,增强用户体验。
卡套接收真实卡片选择指令,确定选中的真实卡片;以及模拟卡片接收充值终端发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第一处理后发送至卡套;具体地,卡套接收的真实卡片选择指令可以为单独设置在卡套上的选择物理按键生成的,或者可以为卡套的触屏上的选择虚拟按键生成的,或者可以为在卡套屏幕上显示的菜单中选中表示选择功能的菜单项生成的。卡套接收真实卡片选择指令,确定选中的真实卡片,卡套经由真实卡片管理器与选中的真实卡片实现数据传输。另外,在充值过程中,将模拟卡片与充值终端(例如充值机等)进行连接(接触式接口或者非接触式接口),模拟卡片接收充值终端发送的数据,该数据可以为待处理的充值数据(例如充值金额等),以便后续用户确认该待处理的充值数据是否正确。此外,在模拟卡片接收充值终端发送的待处理的充值数据之前,模拟卡片还可以接收充值终端发送的获取选中的真实卡片的真实卡片信息请求,卡套接收模拟卡片发送的数据,并利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器,真实卡片管理器接收卡套发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的真实卡片,选中的真实卡片接收真实卡片管理器端发送的数据,并将获取的真实卡片信息发送至真实卡片管理器,真实卡片管理器接收选中的真实卡片发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第一处理后发送至卡套,卡套接收真实卡片管理器发送的数据,并利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片,模拟卡片接收卡套发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至充值终端,由此,充值终端获取到选中的真实卡片的真实卡片信息,以便后续针对该真实卡片进行充值。
卡套接收模拟卡片发送的数据,并利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,提示第二处理后的数据,并接收用于指示第二处理后的数据正确的确认指令后,利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器;具体地,卡套可以显示待处理的充值数据,也可以语音播放(例如喇叭播放或者通过耳机听筒播放等)待处理的充值数据,以供用户确认该待处理的充值数据是否正确,只有在正确后,接收用户输入的指示待处理的充值数据正确的确认指令后,才将该待处理的充值数据发送至真实卡片管理器;如果用户确认该待处理的充值数据不正确,则可以直接取消该笔充值,以此,提高充值的安全性。卡套接收的用于指示第二处理后的数据正确的确认指令可以为单独设置在卡套上的确认物理按键生成的,或者可以为卡套的触屏上的确认虚拟按键生成的,或者在卡套屏幕上显示的菜单中选择确认功能生成的,或者可以为卡套的语音采集装置(例如麦克)接收到的语音确认指示并验证通过后时生成的,或者可以为卡套的指纹采集装置接收到指纹确认指示并验证通过后生成的,或者可以为卡套的虹膜采集装置接收到虹膜确认指示并验证通过后生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制。
真实卡片管理器接收卡套发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的真实卡片;具体地,真实卡片管理器将待处理的充值数据发送至选中的真实卡片,以便选中的真实卡片对待处理的充值数据进行处理(例如执行充值操作)。
基于上述充值流程,可以通过一张模拟卡片可以实现多种不同种类的真实卡片的功能,用户进行充值时,只需携带模拟卡片及卡套,无需携带真实卡片即可以完成充值,提高充值便捷性和安全性。
卡套可以将充值过程中需要确认的信息进行提示,由此,用户可以对充值过程中的需要确认的信息进行确认后再执行充值,从而保证充值的真实性,提高安全性。
在数据传输过程中,模拟卡片、卡套和真实卡片管理器之间进行数据交互均通过安全传输密钥进行加解密和/或校验操作,从而保证数据传输的安全性和完整性。
此外,由于可以选择使用与充值终端匹配的真实卡片,可以解决现有技术中用户未携带与充值终端匹配的真实卡片而产生的不必要的费用支出(例如银行跨行取款手续费等)。
九、交易:
利用本发明的数据交互架构,还可以实现交易(例如ATM机取款转账、POS机刷卡等)等操作,以方便用户仅携带本发明的卡套和模拟卡片即可以实现多种不同种类真实卡片的交易,方便用户携带,避免了真实卡片丢失造成的资产损失。
以下提供了一种具体交易流程,但本发明并不局限于此:
卡套获取卡套端真实卡片信息列表,其中,卡套端真实卡片信息列表为从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表;具体地,可选的,在本步骤之前,还可以执行卡套开机、卡套登录真实卡片管理器的操作,在此不再赘述,具体可以参见上述有关卡套开机和卡套登录真实卡片管理器的相关描述。在本步骤中,卡套获取卡套端真实卡片信息列表,还可以包括卡套更新卡套端真实卡片信息列表的步骤,在此也不再赘述,具体可以参见上述卡套更新卡套端真实卡片信息列表的相关描述。卡套从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表后,将其存储在卡套的存储区域中,作为卡套端真实卡片信息列表,在卡套需要提示(例如显示或者语音播放等)卡套端真实卡片信息列表时,可以从本地直接获取该卡套端真实卡片信息列表,提高卡套的处理速度。
卡套提示卡套端真实卡片信息列表;具体地,卡套利用自身的显示装置或者借助外部显示装置显示卡套端真实卡片信息列表,或者卡套利用自身的语音播放装置或者借助外部语音播放装置语音播放(例如喇叭播放或者通过耳机听筒播放等)卡套端真实卡片信息列表,以供用户根据卡套端真实卡片信息列表来选择进行交易时需要使用的真实卡片,方便用户选择,增强用户体验。
卡套接收真实卡片选择指令,确定选中的真实卡片;以及模拟卡片接收交易终端发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第一处理后发送至卡套;具体地,卡套接收的真实卡片选择指令可以为单独设置在卡套上的选择物理按键生成的,或者可以为卡套的触屏上的选择虚拟按键生成的,或者可以为在卡套屏幕上显示的菜单中选中表示选择功能的菜单项生成的。卡套接收真实卡片选择指令,确定选中的真实卡片,卡套经由真实卡片管理器与选中的真实卡片实现数据传输。另外,在交易过程中,将模拟卡片与交易终端(例如ATM机、POS机等)进行连接(接触式接口或者非接触式接口),模拟卡片接收交易终端发送的数据,该数据可以为待处理的交易数据(例如取款金额、扣款金额等),以便后续用户确认该待处理的交易数据是否正确。此外,在模拟卡片接收交易终端发送的待处理的交易数据之前,模拟卡片还可以接收交易终端发送的获取选中的真实卡片的真实卡片信息请求,卡套接收模拟卡片发送的数据,并利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器,真实卡片管理器接收卡套发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的真实卡片,选中的真实卡片接收真实卡片管理器端发送的数据,并将获取的真实卡片信息发送至真实卡片管理器,真实卡片管理器接收选中的真实卡片发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第一处理后发送至卡套,卡套接收真实卡片管理器发送的数 据,并利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片,模拟卡片接收卡套发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至交易终端,由此,交易终端获取到选中的真实卡片的真实卡片信息,以便后续针对该真实卡片进行交易。
卡套接收模拟卡片发送的数据,并利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,提示第二处理后的数据,并接收用于指示第二处理后的数据正确的确认指令后,利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器;具体地,卡套可以显示待处理的交易数据,也可以语音播放(例如喇叭播放或者通过耳机听筒播放等)待处理的交易数据,以供用户确认该待处理的交易数据是否正确,只有在正确后,接收用户输入的指示待处理的交易数据正确的确认指令后,才将该待处理的交易数据发送至真实卡片管理器;如果用户确认该待处理的交易数据不正确,则可以直接取消该笔交易,以此,提高交易的安全性。卡套接收的用于指示第二处理后的数据正确的确认指令可以为单独设置在卡套上的确认物理按键生成的,或者可以为卡套的触屏上的确认虚拟按键生成的,或者在卡套屏幕上显示的菜单中选择确认功能生成的,或者可以为卡套的语音采集装置(例如麦克)接收到的语音确认指示并验证通过后时生成的,或者可以为卡套的指纹采集装置接收到指纹确认指示并验证通过后生成的,或者可以为卡套的虹膜采集装置接收到虹膜确认指示并验证通过后生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制。
真实卡片管理器接收卡套发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的真实卡片;具体地,真实卡片管理器将待处理的交易数据发送至选中的真实卡片,以便选中的真实卡片对待处理的交易数据进行处理。
选中的真实卡片接收真实卡片管理器端发送的数据,并进行交易处理后将交易处理后获得的数据发送至真实卡片管理器;具体地,选中的真实卡片对待处理的交易数据进行交易处理,该交易处理为现有智能卡的交易处理的方案,在此不再赘述。
真实卡片管理器接收选中的真实卡片发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,并利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片;
模拟卡片接收卡套发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至交易终端。具体地,交易终端接收经过真实卡片交易处理后的数据后, 可以按照现有交易流程完成本次交易,例如取款出钞,转账,刷卡扣款等。
基于上述交易流程,可以通过一张模拟卡片可以实现多种不同种类的真实卡片的功能,用户进行交易时,只需携带模拟卡片及卡套,无需携带真实卡片即可以完成交易,提高交易便捷性和安全性。
卡套可以将交易过程中需要确认的信息进行提示,由此,用户可以对交易过程中的需要确认的信息进行确认后再执行交易,从而保证交易的真实性,提高安全性。
在数据传输过程中,模拟卡片、卡套和真实卡片管理器之间进行数据交互均通过安全传输密钥进行加解密和/或校验操作,从而保证数据传输的安全性和完整性。
此外,由于可以选择使用与交易终端匹配的真实卡片,可以解决现有技术中用户未携带与交易终端匹配的真实卡片而产生的不必要的费用支出(例如银行跨行取款手续费等)。
当然,上述具体实现仅公开了从交易终端至真实卡片,真实卡片至交易终端的单次数据交互,在实际应用中,可能存在多次数据交互,交互流程与上述单次数据交互相似,在多次数据交互中,可以根据交互的数据是否需要确认来设置在卡套处是否提示交互的数据来保证交互数据的真实性。
十、应用程序更新:
1、卡套应用程序更新:
在本发明中,卡套还可以对自身已经安装过的应用程序进行更新或者安装新应用程序,以便拓展卡套的各类应用或者对卡套的现有应用进行升级:
本发明提供一种卡套应用程序更新的具体实现方案,但本发明并不局限于此:
图13示出了卡套应用程序更新的流程图,应当理解的是,更新过程可以通过数据交互方法或数据交互系统实现。参见图13,卡套应用程序更新包括:
卡套至少将卡套证书发送至更新平台;具体地,单独设置安全的更新平台以便完成卡套应用程序的更新。卡套将卡套证书发送至更新平台,以便更新平台知道是哪个卡套需要更新,同时也可以验证卡套的身份;卡套还可以将需要更新的应用程序标识或者其他告知更新平台需要更新或者下载的应用程序的信息发送至更新平台,以便更新平台知晓需要发送哪个应用程序安装包至卡套。
更新平台生成第一更新加密密钥;具体地,更新平台自身生成用于加密应用程序安装包的更新加密密钥,每次进行应用程序更新时生成的更新加密密钥可以相同也可以不同,不同则可以防止被破解,提高安全性。
更新平台利用第一更新加密密钥对卡套应用程序安装包进行加密获得第一安装包密文;具体地,更新平台利用生成的更新加密密钥加密卡套应用程序安装包,从而保证卡套 应用程序安装包传输的安全性。
更新平台利用更新平台私钥对第一安装包密文进行签名获得第一安装包签名;具体地,更新平台对第一安装包密文进行签名,以便后续卡套对更新平台的身份进行验证。
更新平台利用卡套证书中的卡套公钥加密第一更新加密密钥,获得第一更新加密密钥密文;具体地,更新平台利用卡套公钥加密更新加密密钥,可以保证更新加密密钥传输的安全性,同时,保证只有卡套才可以解密出更新加密密钥,提高应用程序安装包传输的安全性。
更新平台将卡套更新信息发送至卡套,其中,卡套更新信息包括:更新平台证书、第一安装包密文、第一安装包签名以及第一更新加密密钥密文;具体地,更新平台发送的更新信息中携带更新平台证书以便卡套对更新平台进行认证,更新信息中携带第一安装包密文保证应用程序安装包传输的安全性,更新信息中携带第一安装包签名以保证后续卡套可以对更新平台身份的合法性进行认证,更新信息中携带更新加密密钥密文保证更新加密密钥传输的安全性。
卡套接收卡套更新信息,利用根证书验证更新平台证书;具体地,卡套预先存储根证书,利用该根证书完成对更新平台证书的验证,以保证后续使用更新平台证书的安全性。
卡套验证更新平台证书通过后,利用更新平台证书中的更新平台公钥对第一安装包签名进行验签;具体地,卡套利用验证通过后的更新平台证书中的更新平台公钥对更新平台发送的签名进行验证,以确保数据的合法来源。
卡套验证第一安装包签名正确后,利用卡套私钥解密第一更新加密密钥密文,获得第一解密密钥;具体地,卡套利用卡套私钥解密出解密密钥,以便后续解密安装包密文获得卡套应用程序安装包。
卡套利用第一解密密钥解密第一安装包密文,获得卡套应用程序安装包;
卡套验证卡套应用程序安装包的数据格式是否正确;具体地,卡套还验证卡套应用程序安装包的数据格式是否正确,如果卡套应用程序安装包的数据格式不正确,则不执行安装操作,如果卡套应用程序安装包的数据格式正确,则执行安装。
如果卡套验证卡套应用程序安装包的数据格式正确,卡套根据卡套应用程序安装包进行安装。具体地,如果卡套是对已安装过的应用程序进行更新,则可以覆盖已安装的应用程序,或者对已安装的应用程序进行升级,或者先行卸载已安装的应用程序后再进行新的应用程序的安装,如果卡套是新安装应用程序,则可以直接安装该应用程序。
基于本发明的卡套对应用程序的更新,既可以更新已安装的应用程序,也可以下载新的应用程序并安装,拓展了卡套的功能,方便用户使用。
2、模拟卡片应用程序更新:
在本发明中,模拟卡片还可以对自身已经安装过的应用程序进行更新或者安装新应用程序,以便拓展模拟卡片的各类应用或者对模拟卡片的现有应用进行升级:
本发明提供一种模拟卡片应用程序更新的具体实现方案,但本发明并不局限于此:
图14示出了模拟卡片应用程序更新的流程图,应当理解的是,更新过程可以通过数据交互方法或数据交互系统实现。参见图14,模拟卡片应用程序更新包括:
卡套从模拟卡片中获取模拟卡片证书,至少将模拟卡片证书发送至更新平台;具体地,卡套可以通过如下方式从模拟卡片中获取模拟卡片证书:卡套通过接触式或者非接触式检测到模拟卡片后,向模拟卡片发送获取模拟卡片证书的请求,模拟卡片接收到卡套发送的请求后,将模拟卡片证书发送至卡套;或者卡套通过接触式或者非接触式检测到模拟卡片后,模拟卡片主动将模拟卡片证书发送至卡套。可选的替代方案:卡套通过接触式或者非接触式检测到模拟卡片后,向模拟卡片发送获取模拟卡片唯一标识的请求,模拟卡片接收到卡套发送的请求后,将模拟卡片唯一标识发送至卡套,卡套接收到模拟卡片唯一标识后还可以根据该模拟卡片唯一标识从本地存储的卡套端第一绑定列表中获取模拟卡片唯一标识对应的模拟卡片证书;或者卡套通过接触式或者非接触式检测到模拟卡片后,模拟卡片主动将模拟卡片唯一标识发送至卡套,卡套接收到模拟卡片唯一标识后还可以根据该模拟卡片唯一标识从本地存储的卡套端第一绑定列表中获取模拟卡片唯一标识对应的模拟卡片证书。另外,单独设置安全的更新平台以便完成模拟卡片应用程序的更新。卡套将模拟卡片证书发送至更新平台,以便更新平台知道是哪个模拟卡片需要更新,同时也可以验证模拟卡片的身份;卡套还可以将需要更新的应用程序标识或者其他告知更新平台需要更新或者下载的应用程序的信息发送至更新平台,以便更新平台知晓需要发送哪个应用程序安装包至模拟卡片。
更新平台生成第二更新加密密钥;具体地,更新平台自身生成用于加密应用程序安装包的更新加密密钥,每次进行应用程序更新时生成的更新加密密钥可以相同也可以不同,不同则可以防止被破解,提高安全性。
更新平台利用第二更新加密密钥对模拟卡片应用程序安装包进行加密获得第二安装包密文;具体地,更新平台利用生成的更新加密密钥加密模拟卡片应用程序安装包,从而保证模拟卡片应用程序安装包传输的安全性。
更新平台利用更新平台私钥对第二安装包密文进行签名获得第二安装包签名;具体地,更新平台对第二安装包密文进行签名,以便后续模拟卡片对更新平台的身份进行验证。
更新平台利用模拟卡片证书中的模拟卡片公钥加密第二更新加密密钥,获得第二更新加密密钥密文;具体地,更新平台利用模拟卡片公钥加密更新加密密钥,可以保证更新加密密钥传输的安全性,同时,保证只有模拟卡片才可以解密出更新加密密钥,提高应用程 序安装包传输的安全性。
更新平台将模拟卡片更新信息发送至卡套,其中,模拟卡片更新信息包括:更新平台证书、第二安装包密文、第二安装包签名以及第二更新加密密钥密文;具体地,更新平台发送的更新信息中携带更新平台证书以便模拟卡片对更新平台进行认证,更新信息中携带第二安装包密文保证应用程序安装包传输的安全性,更新信息中携带第二安装包签名以保证后续模拟卡片可以对更新平台身份的合法性进行认证,更新信息中携带更新加密密钥密文保证更新加密密钥传输的安全性。
卡套接收模拟卡片更新信息,利用卡套端第一安全传输密钥对模拟卡片更新信息进行第一处理后发送至模拟卡片;具体地,卡套利用卡套与模拟卡片之间建立安全连接时生成的安全传输密钥对模拟卡片更新信息进行处理后传输,可以提高数据传输的安全性。
模拟卡片接收卡套发送的数据,利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后,获得模拟卡片更新信息;
模拟卡片利用根证书验证更新平台证书;具体地,模拟卡片预先存储根证书,利用该根证书完成对更新平台证书的验证,以保证后续使用更新平台证书的安全性。
模拟卡片验证更新平台证书通过后,利用更新平台证书中的更新平台公钥对第二安装包签名进行验签;具体地,模拟卡片利用验证通过后的更新平台证书中的更新平台公钥对更新平台发送的签名进行验证,以确保数据的合法来源。
模拟卡片验证第二安装包签名正确后,利用模拟卡片私钥解密第二更新加密密钥密文,获得第二解密密钥;具体地,模拟卡片利用模拟卡片私钥解密出解密密钥,以便后续解密安装包密文获得模拟卡片应用程序安装包。
模拟卡片利用第二解密密钥解密第二安装包密文,获得模拟卡片应用程序安装包;
模拟卡片验证模拟卡片应用程序安装包的数据格式是否正确;具体地,模拟卡片还验证模拟卡片应用程序安装包的数据格式是否正确,如果模拟卡片应用程序安装包的数据格式不正确,则不执行安装操作,如果模拟卡片应用程序安装包的数据格式正确,则执行安装。
如果模拟卡片验证模拟卡片应用程序安装包的数据格式正确,模拟卡片根据模拟卡片应用程序安装包进行安装。具体地,如果模拟卡片是对已安装过的应用程序进行更新,则可以覆盖已安装的应用程序,或者对已安装的应用程序进行升级,或者先行卸载已安装的应用程序后再进行新的应用程序的安装,如果模拟卡片是新安装应用程序,则可以直接安装该应用程序。
基于本发明的模拟卡片对应用程序的更新,既可以更新已安装的应用程序,也可以下载新的应用程序并安装,拓展了模拟卡片的功能,方便用户使用。
当然,如果卡套与模拟卡片并未建立安全连接,在模拟卡片进行应用程序更新时,模拟卡片直接将数据发送至卡套,卡套直接将数据发送至模拟卡片。
3、真实卡片管理器应用程序更新:
在本发明中,真实卡片管理器还可以对自身已经安装过的应用程序进行更新或者安装新应用程序,以便拓展真实卡片管理器的各类应用或者对真实卡片管理器的现有应用进行升级:
本发明提供一种真实卡片管理器应用程序更新的具体实现方案,但本发明并不局限于此:
图15示出了真实卡片管理器应用程序更新的流程图,应当理解的是,更新过程可以通过数据交互方法或数据交互系统实现。参见图15,真实卡片管理器应用程序更新包括:
真实卡片管理器至少将真实卡片管理器证书发送至更新平台;具体地,单独设置安全的更新平台以便完成真实卡片管理器应用程序的更新。真实卡片管理器将真实卡片管理器证书发送至更新平台,以便更新平台知道是哪个真实卡片管理器需要更新,同时也可以验证真实卡片管理器的身份;真实卡片管理器还可以将需要更新的应用程序标识或者其他告知更新平台需要更新或者下载的应用程序的信息发送至更新平台,以便更新平台知晓需要发送哪个应用程序安装包至真实卡片管理器。
更新平台生成第三更新加密密钥;具体地,更新平台自身生成用于加密应用程序安装包的更新加密密钥,每次进行应用程序更新时生成的更新加密密钥可以相同也可以不同,不同则可以防止被破解,提高安全性。
更新平台利用第三更新加密密钥对真实卡片管理器应用程序安装包进行加密获得第三安装包密文;具体地,更新平台利用生成的更新加密密钥加密真实卡片管理器应用程序安装包,从而保证真实卡片管理器应用程序安装包传输的安全性。
更新平台利用更新平台私钥对第三安装包密文进行签名获得第三安装包签名;具体地,更新平台对第三安装包密文进行签名,以便后续真实卡片管理器对更新平台的身份进行验证。
更新平台利用真实卡片管理器证书中的真实卡片管理器公钥加密第三更新加密密钥,获得第三更新加密密钥密文;具体地,更新平台利用真实卡片管理器公钥加密更新加密密钥,可以保证更新加密密钥传输的安全性,同时,保证只有真实卡片管理器才可以解密出更新加密密钥,提高应用程序安装包传输的安全性。
更新平台将真实卡片管理器更新信息发送至真实卡片管理器,其中,真实卡片管理器更新信息包括:更新平台证书、第三安装包密文、第三安装包签名以及第三更新加密密钥密文;具体地,更新平台发送的更新信息中携带更新平台证书以便真实卡片管理器对更新 平台进行认证,更新信息中携带第三安装包密文保证应用程序安装包传输的安全性,更新信息中携带第三安装包签名以保证后续真实卡片管理器可以对更新平台身份的合法性进行认证,更新信息中携带更新加密密钥密文保证更新加密密钥传输的安全性。
真实卡片管理器接收真实卡片管理器更新信息,利用根证书验证更新平台证书;具体地,真实卡片管理器预先存储根证书,利用该根证书完成对更新平台证书的验证,以保证后续使用更新平台证书的安全性。
真实卡片管理器验证更新平台证书通过后,利用更新平台证书中的更新平台公钥对第三安装包签名进行验签;具体地,真实卡片管理器利用验证通过后的更新平台证书中的更新平台公钥对更新平台发送的签名进行验证,以确保数据的合法来源。
真实卡片管理器验证第三安装包签名正确后,利用真实卡片管理器私钥解密第三更新加密密钥密文,获得第三解密密钥;具体地,真实卡片管理器利用真实卡片管理器私钥解密出解密密钥,以便后续解密安装包密文获得真实卡片管理器应用程序安装包。
真实卡片管理器利用第三解密密钥解密第三安装包密文,获得真实卡片管理器应用程序安装包;
真实卡片管理器验证真实卡片管理器应用程序安装包的数据格式是否正确;具体地,真实卡片管理器还验证真实卡片管理器应用程序安装包的数据格式是否正确,如果真实卡片管理器应用程序安装包的数据格式不正确,则不执行安装操作,如果真实卡片管理器应用程序安装包的数据格式正确,则执行安装。
如果真实卡片管理器验证真实卡片管理器应用程序安装包的数据格式正确,真实卡片管理器根据真实卡片管理器应用程序安装包进行安装。具体地,如果真实卡片管理器是对已安装过的应用程序进行更新,则可以覆盖已安装的应用程序,或者对已安装的应用程序进行升级,或者先行卸载已安装的应用程序后再进行新的应用程序的安装,如果真实卡片管理器是新安装应用程序,则可以直接安装该应用程序。
基于本发明的真实卡片管理器对应用程序的更新,既可以更新已安装的应用程序,也可以下载新的应用程序并安装,拓展了真实卡片管理器的功能,方便用户使用。
十一、数据交互架构适用的应用场景:
1、给账户充值:
在本实施例提供的一种应用场景中,用户基于上述数据交互架构,可以实现对第三方账户的充值,例如给支付宝账户充值。
以下对本应用场景的实现进行具体说明,但本发明并不局限于此:
卡套通过网络登录账户平台;具体地,卡套通过无线网络登录账户平台,以便通过本 发明的数据交互架构中的卡套和真实卡片管理器完成对账户的充值。其中,账户平台可以为虚拟的第三方账户平台,例如:电子商务网站账户平台(例如支付宝等)、电费缴费平台、网络金融平台(例如基金等)。
卡套将充值请求发送至账户平台,其中,充值请求包括:充值信息;具体地,卡套将充值请求发送至账户平台,以便账户平台根据充值请求反馈充值包。其中,充值信息包括:充值金额等,可选的,还可以包括待充值账户,以便账户平台知晓为哪个账户进行充值。
卡套接收充值包,其中,充值包由支付平台在接收充值请求后生成;具体地,卡套在将充值请求发送至账户平台的同时或者再其之后,还将该充值请求发送至支付平台,或者,账户平台接收到充值请求后,将充值请求发送至支付平台,以支付平台便进行支付。该支付平台接收到充值请求后,还生成充值包,其中,充值包包括:充值金额、待充值账户等信息,支付平台将充值包发送至卡套,或者支付平台将充值包发送至账户平台,再由账户平台将充值包发送至卡套,以便用户在卡套上进行确认充值包是否无误。其中,支付平台为与真实卡片对应的交易平台,例如网银等。
卡套提示充值包,接收用于确认充值包无误的确认指令;具体地,卡套在接收到充值包后,还将充值包进行显示或者语音播放,以便用户对充值包中的信息进行确认,如果用户确认无误,在卡套上进行确认操作(例如按下确认按键,选择菜单中的确认选项等方式)生成用于确认充值包无误的确认指令,卡套接收该确认指令,以便卡套继续执行后续操作;当然,如果用户确认充值包有问题,则可以在卡套上进行取消操作,以便取消该笔充值。卡套接收的用于确认充值包无误的确认指令可以为单独设置在卡套上的确认物理按键生成的,或者可以为卡套的触屏上的确认虚拟按键生成的,或者在卡套屏幕上显示的菜单中选择确认功能生成的,或者可以为卡套的语音采集装置(例如麦克)接收到的语音确认指示并验证通过后时生成的,或者可以为卡套的指纹采集装置接收到指纹确认指示并验证通过后生成的,或者可以为卡套的虹膜采集装置接收到虹膜确认指示并验证通过后生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制。当然,在本步骤的同时或者在本步骤之前,卡套还需要登录真实卡片管理器,并选择为账户进行充值的真实卡片,卡套登录真实卡片管理器的操作以及选择真实卡片的操作可以参照上述相关描述,在此不再详述。
卡套利用卡套端第二安全传输密钥对充值包进行第一处理后发送至真实卡片管理器,其中,卡套端第二安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的,真实卡片管理器与至少一个真实卡片相连接,并存储有真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息;具体地,卡套接收到充值包,并在充值包确认无误后,将充值包进行第一处理后发送 至真实卡片管理器,提高充值包传输安全性,以便真实卡片管理器将真实的充值包发送至真实卡片进行处理。另外,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息,该真实卡片信息可以包括:卡号、卡片认证信息等信息,该卡片认证信息为认证真实卡片是否为正规渠道(例如银行、公交公司等)发行的卡片信息;该真实卡片可以为银行颁发的银行卡或者功能卡(例如公交卡、饭卡、购物卡、会员卡、积分卡等)。此外,卡套端第二安全传输密钥为的生成方式可以参照上述卡套端第二安全传输密钥的生成的相关描述,在此不再详述。可选的,真实卡片管理器可以设置为保存与其连接的真实卡片中的全部或部分真实卡片的真实卡片信息,以便用户根据对真实卡片的安全性要求做出不同设置,例如可以在真实卡片管理器上设置不允许获取某些真实卡片的真实卡片信息,从而保证这些真实卡片的安全性。
真实卡片管理器接收卡套发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的真实卡片,其中,真实卡片管理器端安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的,选中的真实卡片为:卡套提示卡套端真实卡片信息列表,并接收真实卡片选择指令后确定的真实卡片,卡套端真实卡片信息列表为从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表;具体地,真实卡片管理器接收卡套发送的数据后,对接收到的数据进行第二处理,将真实且完整的数据发送至真实卡片,保证真实卡片处理的数据的真实性和完整性,从而保证充值的安全性。其中,真实卡片管理器端安全传输密钥的生成方式可以参照上述真实卡片管理器端安全传输密钥的生成方式的描述,在此不再详述。选中的真实卡片的选择可参照上述真实卡片的选择的相关描述,在此不再详述。
选中的真实卡片接收真实卡片管理器发送的数据,对接收到的数据进行交易处理,获得充值处理包;具体地,选中的真实卡片接收到真实卡片管理器发送的真实且完整的数据后,对接收到的数据进行交易处理,以便确认可以完成交易,选中的真实卡片进行交易处理的过程可以参照现有的智能卡进行交易处理的流程,在此不再详述。
选中的真实卡片将充值处理包发送至真实卡片管理器;
真实卡片管理器利用真实卡片管理器端安全传输密钥对充值处理包进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理后发送至支付平台;具体地,卡套接收到经过选中的真实卡片处理后的数据并将其发送至支付平台,以便支付平台进行支付。
账户平台接收支付平台发送的支付成功信息,执行充值操作,其中,支付成功信息为支付平台接收卡套发送的第二处理后的数据并执行交易处理操作后生成的。具体地,支付 平台在完成支付后,生成支付成功信息,并将该支付成功信息发送至账户平台,以便账户平台知晓支付完成,从而完成充值操作。当然,该支付成功信息中还可以包含验证信息,以便账户平台对支付成功信息进行验证,只有在验证通过后,才完成充值,提高安全性。
基于上述方式,本发明的数据交互架构可以完成对账户平台的充值,扩展了本发明数据交互架构的应用,方便用户使用。
2、给真实卡片充值:
在本实施例提供的一种应用场景中,用户基于上述数据交互架构,可以实现对真实卡片的充值,例如给公交卡充值。
以下对本应用场景的实现进行简要说明,但本发明并不局限于此:
卡套从与真实卡片管理器连接的真实卡片中,确定选中的真实卡片;
充值平台通过模拟卡片、卡套以及真实卡片管理器获取选中的真实卡片的卡片信息,其中,卡片信息包括:选中的真实卡片的卡号、卡片认证信息;
充值平台确定付款成功后,生成充值包并通过模拟卡片、卡套以及真实卡片管理器发送至选中的真实卡片,其中,充值包经过卡套进行提示和确认;
选中的真实卡片接收真实卡片管理器发送的数据,执行充值操作。
基于上述简要说明,以下提供一种具体实现方式,但本发明并不局限于此:
卡套登录真实卡片管理器,其中,真实卡片管理器与至少一个真实卡片相连接,并存储有真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息;具体地,上述卡套登录步骤可以参照上述卡套登录的相关描述,在此不再详述。可选的,真实卡片管理器可以设置为保存与其连接的真实卡片中的全部或部分真实卡片的真实卡片信息,形成真实卡片管理器端真实卡片信息列表,以便用户根据对真实卡片的安全性要求做出不同设置,例如可以在真实卡片管理器上设置不允许获取某些真实卡片的真实卡片信息,从而保证这些真实卡片的安全性。
卡套获取卡套端真实卡片信息列表,其中,卡套端真实卡片信息列表为从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表;具体地,卡套如何获取真实卡片信息列表可以参照上述卡套获取真实卡片信息列表的相关描述,在此不再详述。
卡套提示卡套端真实卡片信息列表;
卡套接收真实卡片选择指令,确定选中的真实卡片;具体地,卡套确定选中的真实卡片为待充值卡片,例如公交卡等,此时,本数据交互架构中的模拟卡片可以作为待充值卡片(例如公交卡)使用。
模拟卡片接收充值平台发送的卡片信息获取请求,卡片信息获取请求至少包括选中的真实卡片的卡号、卡片认证信息;具体地,用户通过接触式或者非接触式方式将模拟卡片 与充值平台进行连接,该充值平台可以包括前端充值机和后台充值处理平台,例如:公交卡充值平台等,模拟卡片接收充值平台发送的卡片信息获取请求,以便获取选中的真实卡片的真实卡片信息。
模拟卡片利用模拟卡片端安全传输密钥对卡片信息获取请求进行第一处理后发送至卡套,其中,模拟卡片端安全传输密钥为卡套与模拟卡片建立安全连接时生成的;具体地,模拟卡片接收到卡片信息获取请求后,利用与卡套之间的安全传输密钥对卡片信息获取请求进行第一处理后发送至卡套,提高数据传输安全性。模拟卡片端安全传输密钥的生成过程可以参照上述模拟卡片端安全传输密钥的生成过程的相关描述,在此不再详述。
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器,其中,卡套端第一安全传输密钥为卡套与模拟卡片建立安全连接时生成的,卡套端第二安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,卡套对模拟卡片发送来的数据进行第二处理,并进行第一处理后发送至真实卡片管理器,提供数据传输安全性,且以便真实卡片管理器获得卡片信息获取请求。卡套端第一安全传输密钥和卡套端第二安全传输密钥可以参照上述卡套端第一安全传输密钥和卡套端第二安全传输密钥生成过程的相关描述,在此不再详述。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的真实卡片,其中,真实卡片管理器端安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,真实卡片管理器对卡套发送的数据进行第二处理后发送至选中的真实卡片,以便选中的真实卡片获取卡片信息获取请求,从而将卡片信息回传。真实卡片管理器端安全传输密钥的生成过程可以参照上述真实卡片管理器端安全传输密钥的生成过程的相关描述,在此不再详述。
选中的真实卡片将选中的真实卡片的卡片信息发送至真实卡片管理器;
真实卡片管理器利用真实卡片管理器端安全传输密钥对接收到的选中的真实卡片的卡片信息进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片;
模拟卡片接收卡套发送的数据,利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至充值平台;具体地,模拟卡片将获取到的卡片信息发送至充值平台,从而保证充值平台获知为哪个真实卡片进行充值。
充值平台确定付款成功后,生成充值包并将充值包发送至模拟卡片;具体地,充值平 台可以通过如下方式确定付款成功:收取现金,收取支票,POS刷卡完成,转账等任意方式。充值平台确定付款成功后,生成充值包,以便选中的真实卡片根据充值包进行充值操作。其中充值包至少包括:充值金额。
模拟卡片接收充值平台发送的充值包,利用模拟卡片端安全传输密钥对充值包进行第一处理后发送至卡套;
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,提示第二处理后的数据;
卡套接收用于指示第二处理后的数据无误的确认指令,利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器;
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的真实卡片;
选中的真实卡片接收真实卡片管理器发送的第二处理后的数据,执行充值操作。具体地,选中的真实卡片获取到充值包后,根据充值包执行充值操作,从而完成充值。
基于上述简要说明,本发明还提供一种通过刷卡充值的具体实现方式,但本发明并不局限于此:
卡套登录真实卡片管理器,其中,真实卡片管理器与至少一个真实卡片相连接,并存储有真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息;具体地,上述卡套登录步骤可以参照上述卡套登录的相关描述,在此不再详述。可选的,真实卡片管理器可以设置为保存与其连接的真实卡片中的全部或部分真实卡片的真实卡片信息,形成真实卡片管理器端真实卡片信息列表,以便用户根据对真实卡片的安全性要求做出不同设置,例如可以在真实卡片管理器上设置不允许获取某些真实卡片的真实卡片信息,从而保证这些真实卡片的安全性。
卡套获取卡套端真实卡片信息列表,其中,卡套端真实卡片信息列表为从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表;具体地,卡套如何获取真实卡片信息列表可以参照上述卡套获取真实卡片信息列表的相关描述,在此不再详述。
卡套提示卡套端真实卡片信息列表;
卡套接收第一真实卡片选择指令,确定选中的第一真实卡片;具体地,卡套确定选中的第一真实卡片为扣款卡片,例如银行卡等,此时,本数据交互架构中的模拟卡片可以作为扣款卡片(例如银行卡)使用。
模拟卡片接收支付平台发送的第一卡片信息获取请求,第一卡片信息获取请求至少包括选中的第一真实卡片的卡号以及卡片认证信息;具体地,用户通过接触式或者非接触式方式将模拟卡片与支付平台进行连接,该支付平台包含扣款终端(例如POS机等)以及支 付处理平台(例如银行后台),将模拟卡片与该扣款终端相连,以便进行扣款,模拟卡片接收支付平台发送的第一卡片信息获取请求,以便获取选中的第一真实卡片的真实卡片信息。
模拟卡片利用模拟卡片端安全传输密钥对第一卡片信息获取请求进行第一处理后发送至卡套,其中,模拟卡片端安全传输密钥为卡套与模拟卡片建立安全连接时生成的;具体地,模拟卡片接收到第一卡片信息获取请求后,利用与卡套之间的安全传输密钥对第一卡片信息获取请求进行第一处理后发送至卡套,提高数据传输安全性。模拟卡片端安全传输密钥的生成过程可以参照上述模拟卡片端安全传输密钥的生成过程的相关描述,在此不再详述。
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器,其中,卡套端第一安全传输密钥为卡套与模拟卡片建立安全连接时生成的,卡套端第二安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,卡套对模拟卡片发送来的数据进行第二处理,并进行第一处理后发送至真实卡片管理器,提供数据传输安全性,且以便真实卡片管理器获得第一卡片信息获取请求。卡套端第一安全传输密钥和卡套端第二安全传输密钥可以参照上述卡套端第一安全传输密钥和卡套端第二安全传输密钥生成过程的相关描述,在此不再详述。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的第一真实卡片,其中,真实卡片管理器端安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,真实卡片管理器对卡套发送的数据进行第二处理后发送至选中的第一真实卡片,以便选中的第一真实卡片获取第一卡片信息获取请求,从而将卡片信息回传。真实卡片管理器端安全传输密钥的生成过程可以参照上述真实卡片管理器端安全传输密钥的生成过程的相关描述,在此不再详述。
选中的第一真实卡片将选中的第一真实卡片的卡片信息发送至真实卡片管理器;
真实卡片管理器利用真实卡片管理器端安全传输密钥对接收到的选中的第一真实卡片的卡片信息进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片;
模拟卡片接收卡套发送的数据,利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至支付平台;具体地,模拟卡片将获取到的第一真实卡片的卡片信息发送至支付平台,从而保证支付平台获知使用哪个真实卡片进行扣款。
模拟卡片接收支付平台发送的扣款请求,利用模拟卡片端安全传输密钥对扣款请求进 行第一处理后发送至卡套;具体地,扣款请求可以至少包括扣款金额。
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理,并将第二处理后的数据进行提示;具体地,卡套可以对扣款请求进行显示或者语音播放,以便用户对扣款请求中的信息进行确认。
卡套接收用于指示第二处理后的数据正确的确认指令,利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器;具体地,如果用户确认无误,在卡套上进行确认操作(例如按下确认按键,选择菜单中的确认选项等方式)生成用于确认扣款请求无误的确认指令,卡套接收该确认指令,以便卡套继续执行后续操作;当然,如果用户确认扣款请求有问题,则可以在卡套上进行取消操作,以便取消该笔交易。卡套接收的用于指示第二处理后的数据正确的确认指令可以为单独设置在卡套上的确认物理按键生成的,或者可以为卡套的触屏上的确认虚拟按键生成的,或者在卡套屏幕上显示的菜单中选择确认功能生成的,或者可以为卡套的语音采集装置(例如麦克)接收到的语音确认指示并验证通过后时生成的,或者可以为卡套的指纹采集装置接收到指纹确认指示并验证通过后生成的,或者可以为卡套的虹膜采集装置接收到虹膜确认指示并验证通过后生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的第一真实卡片;
选中的第一真实卡片接收真实卡片管理器发送的数据,并对接收到的数据进行交易处理后将交易处理后获得的数据发送至真实卡片管理器;具体地,选中的第一真实卡片接收到真实卡片管理器发送的真实且完整的数据后,对接收到的数据进行交易处理,以便确认可以完成交易,选中的第一真实卡片进行交易处理的过程可以参照现有的智能卡进行交易处理的流程,在此不再详述。
真实卡片管理器接收选中的第一真实卡片发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,并利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片;
模拟卡片接收卡套发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至支付平台进行扣款操作;具体地,支付平台接收到模拟卡片发送的选中的第一真实卡片交易处理后的数据,并验证通过后执行扣款操作,当然,在支付平台执行完扣款操作后,还可以生成支付成功信息,以便告知用户支付成功。
卡套提示卡套端真实卡片信息列表;具体地,在充值平台确定付款成功后,用户可选 择待充值卡片(例如银行卡),以便为待充值卡片进行充值。
卡套接收第二真实卡片选择指令,确定选中的第二真实卡片;具体地,卡套确定选中的第二真实卡片为待充值卡片,例如公交卡等,此时,本数据交互架构中的模拟卡片可以作为待充值卡片(例如公交卡)使用。
模拟卡片接收充值平台发送的第二卡片信息获取请求,第二卡片信息获取请求至少包括选中的第二真实卡片的卡号、卡片认证信息;具体地,用户通过接触式或者非接触式方式将模拟卡片与充值平台进行连接,该充值平台可以包括前端充值机和后台充值处理平台,例如:公交卡充值平台等,模拟卡片接收充值平台发送的第二卡片信息获取请求,以便获取选中的第二真实卡片的真实卡片信息。
模拟卡片利用模拟卡片端安全传输密钥对第二卡片信息获取请求进行第一处理后发送至卡套,其中,模拟卡片端安全传输密钥为卡套与模拟卡片建立安全连接时生成的;具体地,模拟卡片接收到第二卡片信息获取请求后,利用与卡套之间的安全传输密钥对卡片信息获取请求进行第一处理后发送至卡套,提高数据传输安全性。模拟卡片端安全传输密钥的生成过程可以参照上述模拟卡片端安全传输密钥的生成过程的相关描述,在此不再详述。
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器,其中,卡套端第一安全传输密钥为卡套与模拟卡片建立安全连接时生成的,卡套端第二安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,卡套对模拟卡片发送来的数据进行第二处理,并进行第一处理后发送至真实卡片管理器,提供数据传输安全性,且以便真实卡片管理器获得卡片信息获取请求。卡套端第一安全传输密钥和卡套端第二安全传输密钥可以参照上述卡套端第一安全传输密钥和卡套端第二安全传输密钥生成过程的相关描述,在此不再详述。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的第二真实卡片,其中,真实卡片管理器端安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,真实卡片管理器对卡套发送的数据进行第二处理后发送至选中的真实卡片,以便选中的第二真实卡片获取卡片信息获取请求,从而将卡片信息回传。真实卡片管理器端安全传输密钥的生成过程可以参照上述真实卡片管理器端安全传输密钥的生成过程的相关描述,在此不再详述。
选中的第二真实卡片将选中的真实卡片的卡片信息发送至真实卡片管理器;
真实卡片管理器利用真实卡片管理器端安全传输密钥对接收到的选中的第二真实卡片的卡片信息进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据 进行第二处理,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片;
模拟卡片接收卡套发送的数据,利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至充值平台;具体地,模拟卡片将获取到的第二真实卡片的卡片信息发送至充值平台,从而保证充值平台获知为哪个真实卡片进行充值。
模拟卡片接收充值平台生成的充值包;具体地,充值平台确定付款成功并获取到选中的第二真实卡片的卡片信息后,生成充值包,以便选中的第二真实卡片可以根据充值包进行充值操作。其中充值包至少包括:充值金额。
模拟卡片利用模拟卡片端安全传输密钥对充值包进行第一处理后发送至卡套;
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,提示第二处理后的数据;
卡套接收用于指示第二处理后的数据无误的确认指令,利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器;
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的第二真实卡片;
选中的第二真实卡片接收真实卡片管理器发送的第二处理后的数据,执行充值操作。具体地,选中的第二真实卡片获取到充值包后,根据充值包执行充值操作,从而完成充值。
基于上述方式,本发明的数据交互架构可以完成对真实卡片的充值,扩展了本发明数据交互架构的应用,方便用户使用。
3、第二真实卡片为第一真实卡片充值:
在本实施例提供的一种应用场景中,用户基于上述数据交互架构,可以实现真实卡片对真实卡片的充值,例如通过银行卡刷卡给公交卡充值或者通过银行卡刷卡给电卡充值。在本应用场景中,第二真实卡片与第一真实卡片类型不同,第二真实卡片为可以扣款的真实卡片,第一真实卡片为待充值的真实卡片。
以下对本应用场景的实现进行简要说明,但本发明并不局限于此:
卡套从与真实卡片管理器连接的真实卡片中,确定选中的第一真实卡片;
充值平台通过模拟卡片、卡套以及真实卡片管理器获取选中的第一真实卡片的卡片信息,其中,卡片信息包括:选中的第一真实卡片的卡号、卡片认证信息;
卡套从与真实卡片管理器连接的真实卡片中,确定选中的第二真实卡片;
支付平台通过卡套、真实卡片管理器与选中的第二真实卡片进行扣款处理;
卡套从与真实卡片管理器连接的真实卡片中,确定选中的第一真实卡片;
充值平台生成充值包并通过模拟卡片、卡套以及真实卡片管理器发送至选中的真实卡 片,其中,充值包经过卡套进行提示和确认;
选中的真实卡片接收真实卡片管理器发送的数据,执行充值操作。
基于上述简要说明,以下提供一种具体实现方式,但本发明并不局限于此:
卡套登录真实卡片管理器,其中,真实卡片管理器与至少一个真实卡片相连接,并存储有真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息;具体地,上述卡套登录步骤可以参照上述卡套登录的相关描述,在此不再详述。可选的,真实卡片管理器可以设置为保存与其连接的真实卡片中的全部或部分真实卡片的真实卡片信息,形成真实卡片管理器端真实卡片信息列表,以便用户根据对真实卡片的安全性要求做出不同设置,例如可以在真实卡片管理器上设置不允许获取某些真实卡片的真实卡片信息,从而保证这些真实卡片的安全性。
卡套获取卡套端真实卡片信息列表,其中,卡套端真实卡片信息列表为从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表;具体地,卡套如何获取真实卡片信息列表可以参照上述卡套获取真实卡片信息列表的相关描述,在此不再详述。
卡套提示卡套端真实卡片信息列表;
卡套接收第一真实卡片选择指令,确定选中的第一真实卡片;具体地,卡套确定选中的第一真实卡片为待充值卡片,例如公交卡等,此时,本数据交互架构中的模拟卡片可以作为待充值卡片(例如公交卡)使用。
模拟卡片接收充值平台发送的第一卡片信息获取请求,第一卡片信息获取请求至少包括选中的第一真实卡片的卡号以及卡片认证信息;具体地,用户通过接触式或者非接触式方式将模拟卡片与充值平台进行连接,该充值平台可以包括前端充值机和后台充值处理平台,例如:公交卡充值平台或者电卡充值平台等,将模拟卡片与该前端充值机相连,模拟卡片接收充值平台发送的第一卡片信息获取请求,以便获取选中的第一真实卡片的真实卡片信息。
模拟卡片利用模拟卡片端安全传输密钥对第一卡片信息获取请求进行第一处理后发送至卡套,其中,模拟卡片端安全传输密钥为卡套与模拟卡片建立安全连接时生成的;具体地,模拟卡片接收到第一卡片信息获取请求后,利用与卡套之间的安全传输密钥对第一卡片信息获取请求进行第一处理后发送至卡套,提高数据传输安全性。模拟卡片端安全传输密钥的生成过程可以参照上述模拟卡片端安全传输密钥的生成过程的相关描述,在此不再详述。
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器,其中,卡套端第一安全传输密钥为卡套与模拟卡片建立安全连接时生成的, 卡套端第二安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,卡套对模拟卡片发送来的数据进行第二处理,并进行第一处理后发送至真实卡片管理器,提供数据传输安全性,且以便真实卡片管理器获得第一卡片信息获取请求。卡套端第一安全传输密钥和卡套端第二安全传输密钥可以参照上述卡套端第一安全传输密钥和卡套端第二安全传输密钥生成过程的相关描述,在此不再详述。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的第一真实卡片,其中,真实卡片管理器端安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,真实卡片管理器对卡套发送的数据进行第二处理后发送至选中的第一真实卡片,以便选中的第一真实卡片获取第一卡片信息获取请求,从而将卡片信息回传。真实卡片管理器端安全传输密钥的生成过程可以参照上述真实卡片管理器端安全传输密钥的生成过程的相关描述,在此不再详述。
选中的第一真实卡片将选中的第一真实卡片的卡片信息发送至真实卡片管理器;
真实卡片管理器利用真实卡片管理器端安全传输密钥对接收到的选中的第一真实卡片的卡片信息进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片;
模拟卡片接收卡套发送的数据,利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至充值平台;具体地,模拟卡片将获取到的第一真实卡片的卡片信息发送至充值平台,从而保证充值平台获知为哪个真实卡片进行充值。
卡套接收充值平台发送的充值标识,显示卡套端真实卡片信息列表;具体地,卡套接收充值平台发送的充值标识,以表明为哪张卡充值,同时提示用户选择为第一真实卡片(待充值卡)充值的第二真实卡片(扣款卡)。该充值标识可以包含待充值的第一真实卡片卡号、订单号、充值金额等一种或其组合。
卡套接收第二真实卡片选择指令,确定选中的第二真实卡片;具体地,卡套确定选中的第二真实卡片为扣款卡片,例如银行卡等。
模拟卡片接收支付平台发送的第二卡片信息获取请求,第二卡片信息获取请求至少包括选中的第二真实卡片的卡号以及卡片认证信息;具体地,用户通过接触式或者非接触式方式将模拟卡片与支付平台进行连接,该支付平台包含扣款终端(例如POS机等)以及支付处理平台(例如银行后台),将模拟卡片与该扣款终端相连,以便进行扣款,模拟卡片接收支付平台发送的第二卡片信息获取请求,以便获取选中的第二真实卡片的真实卡片信息。
模拟卡片利用模拟卡片端安全传输密钥对第二卡片信息获取请求进行第一处理后发送 至卡套,其中,模拟卡片端安全传输密钥为卡套与模拟卡片建立安全连接时生成的;具体地,模拟卡片接收到第二卡片信息获取请求后,利用与卡套之间的安全传输密钥对第二卡片信息获取请求进行第一处理后发送至卡套,提高数据传输安全性。模拟卡片端安全传输密钥的生成过程可以参照上述模拟卡片端安全传输密钥的生成过程的相关描述,在此不再详述。
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器,其中,卡套端第一安全传输密钥为卡套与模拟卡片建立安全连接时生成的,卡套端第二安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,卡套对模拟卡片发送来的数据进行第二处理,并进行第一处理后发送至真实卡片管理器,提供数据传输安全性,且以便真实卡片管理器获得第二卡片信息获取请求。卡套端第一安全传输密钥和卡套端第二安全传输密钥可以参照上述卡套端第一安全传输密钥和卡套端第二安全传输密钥生成过程的相关描述,在此不再详述。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的第二真实卡片,其中,真实卡片管理器端安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,真实卡片管理器对卡套发送的数据进行第二处理后发送至选中的第二真实卡片,以便选中的第二真实卡片获取第二卡片信息获取请求,从而将卡片信息回传。真实卡片管理器端安全传输密钥的生成过程可以参照上述真实卡片管理器端安全传输密钥的生成过程的相关描述,在此不再详述。
选中的第二真实卡片将选中的第二真实卡片的卡片信息发送至真实卡片管理器;
真实卡片管理器利用真实卡片管理器端安全传输密钥对接收到的选中的第二真实卡片的卡片信息进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片;
模拟卡片接收卡套发送的数据,利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至支付平台;具体地,模拟卡片将获取到的第二真实卡片的卡片信息发送至支付平台,从而保证支付平台获知使用哪个真实卡片进行扣款。
模拟卡片接收支付平台发送的扣款请求,利用模拟卡片端安全传输密钥对扣款请求进行第一处理后发送至卡套;具体地,扣款请求可以至少包括扣款金额以及第一真实卡片卡号。
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第 二处理,并将第二处理后的数据进行提示;具体地,卡套可以对扣款请求进行显示或者语音播放,以便用户对扣款请求中的信息进行确认。
卡套接收用于指示第二处理后的数据正确的确认指令,利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器;具体地,如果用户确认无误,在卡套上进行确认操作(例如按下确认按键,选择菜单中的确认选项等方式)生成用于确认扣款请求无误的确认指令,卡套接收该确认指令,以便卡套继续执行后续操作;当然,如果用户确认扣款请求有问题,则可以在卡套上进行取消操作,以便取消该笔交易。卡套接收的用于指示第二处理后的数据正确的确认指令可以为单独设置在卡套上的确认物理按键生成的,或者可以为卡套的触屏上的确认虚拟按键生成的,或者在卡套屏幕上显示的菜单中选择确认功能生成的,或者可以为卡套的语音采集装置(例如麦克)接收到的语音确认指示并验证通过后时生成的,或者可以为卡套的指纹采集装置接收到指纹确认指示并验证通过后生成的,或者可以为卡套的虹膜采集装置接收到虹膜确认指示并验证通过后生成的,当然,还可以为其他任何方式生成的,在本发明中并不作限制。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的第二真实卡片;
选中的第二真实卡片接收真实卡片管理器发送的数据,并对接收到的数据进行交易处理后将交易处理后获得的数据发送至真实卡片管理器;具体地,选中的第二真实卡片接收到真实卡片管理器发送的真实且完整的数据后,对接收到的数据进行交易处理,以便确认可以完成交易,选中的第二真实卡片进行交易处理的过程可以参照现有的智能卡进行交易处理的流程,在此不再详述。
真实卡片管理器接收选中的第二真实卡片发送的数据,并利用真实卡片管理器端安全传输密钥对接收到的数据进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,并利用卡套端第二安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片;
模拟卡片接收卡套发送的数据,并利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至支付平台;
模拟卡片利用模拟卡片端安全传输密钥对支付成功信息进行第一处理后发送至卡套,其中,支付成功信息为支付平台成功执行支付后生成的;具体地,支付平台在接收到选中的第二真实卡片交易处理后的数据,验证通过后,执行扣款操作,在执行完扣款操作后,生成支付成功信息,该支付成功信息可以包括选中的第一真实卡片卡号或者其他表示为哪张卡充值的信息,只要充值平台后续知道为哪张卡充值的扣款成功执行即可。
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理,提示卡套端真实卡片信息列表;
卡套接收第一真实卡片选择指令,确定选中的第一真实卡片;具体地,用户再次选中第一真实卡片,以便完成对第一真实卡片的充值操作。
模拟卡片接收充值平台发送的充值包,其中,充值包由充值平台接收到支付成功信息后生成;具体地,支付平台还可以直接将支付成功信息发送至充值平台,或者卡套将支付成功信息发送至充值平台,以便充值平台知晓支付成功,并生成充值包,以便将该充值包发送至选中的第一真实卡片完成充值。
模拟卡片利用模拟卡片端安全传输密钥对充值包进行第一处理后发送至卡套;
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,提示第二处理后的数据;
卡套接收用于指示第二处理后的数据无误的确认指令,利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器;
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的第一真实卡片;
第一真实卡片接收真实卡片管理器发送的数据,执行充值操作。具体地,选中的第一真实卡片获取到充值包后,根据充值包执行充值操作,从而完成充值。
基于上述方式,本发明的数据交互架构可以完成利用第二真实卡片对第一真实卡片的充值,扩展了本发明数据交互架构的应用,方便用户使用。
4、账户给真实卡片充值:
在本实施例提供的一种应用场景中,用户基于上述数据交互架构,可以实现账户对真实卡片的充值,例如通过支付宝或者网银给公交卡充值。
以下对本应用场景的实现进行简要说明,但本发明并不局限于此:
卡套从与真实卡片管理器连接的真实卡片中,确定选中的真实卡片;
充值平台通过模拟卡片、卡套以及真实卡片管理器获取选中的真实卡片的卡片信息,其中,卡片信息包括:选中的真实卡片的卡号、卡片认证信息;
卡套登录支付平台,支付平台获取充值标识后进行扣款处理;
充值平台接收支付平台生成的支付成功信息后,生成充值包并通过模拟卡片、卡套以及真实卡片管理器发送至选中的真实卡片,其中,充值包经过卡套进行提示和确认;
选中的真实卡片接收真实卡片管理器发送的数据,执行充值操作。
基于上述简要说明,以下提供一种具体实现方式,但本发明并不局限于此:
卡套登录真实卡片管理器,其中,真实卡片管理器与至少一个真实卡片相连接,并存 储有真实卡片管理器端真实卡片信息列表,真实卡片管理器端真实卡片信息列表包括与真实卡片管理器连接的真实卡片的真实卡片信息;具体地,上述卡套登录步骤可以参照上述卡套登录的相关描述,在此不再详述。可选的,真实卡片管理器可以设置为保存与其连接的真实卡片中的全部或部分真实卡片的真实卡片信息,形成真实卡片管理器端真实卡片信息列表,以便用户根据对真实卡片的安全性要求做出不同设置,例如可以在真实卡片管理器上设置不允许获取某些真实卡片的真实卡片信息,从而保证这些真实卡片的安全性。
卡套获取卡套端真实卡片信息列表,其中,卡套端真实卡片信息列表为从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表;具体地,卡套如何获取真实卡片信息列表可以参照上述卡套获取真实卡片信息列表的相关描述,在此不再详述。
卡套提示卡套端真实卡片信息列表;
卡套接收真实卡片选择指令,确定选中的真实卡片;具体地,卡套确定选中的真实卡片为待充值卡片,例如公交卡等,此时,本数据交互架构中的模拟卡片可以作为待充值卡片(例如公交卡)使用。
模拟卡片接收充值平台发送的卡片信息获取请求,卡片信息获取请求至少包括选中的真实卡片的卡号、卡片认证信息;具体地,用户通过接触式或者非接触式方式将模拟卡片与充值平台进行连接,该充值平台可以包括前端充值机和后台充值处理平台,例如:公交卡充值平台等,模拟卡片接收充值平台发送的卡片信息获取请求,以便获取选中的真实卡片的真实卡片信息。
模拟卡片利用模拟卡片端安全传输密钥对卡片信息获取请求进行第一处理后发送至卡套,其中,模拟卡片端安全传输密钥为卡套与模拟卡片建立安全连接时生成的;具体地,模拟卡片接收到卡片信息获取请求后,利用与卡套之间的安全传输密钥对卡片信息获取请求进行第一处理后发送至卡套,提高数据传输安全性。模拟卡片端安全传输密钥的生成过程可以参照上述模拟卡片端安全传输密钥的生成过程的相关描述,在此不再详述。
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,再利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器,其中,卡套端第一安全传输密钥为卡套与模拟卡片建立安全连接时生成的,卡套端第二安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,卡套对模拟卡片发送来的数据进行第二处理,并进行第一处理后发送至真实卡片管理器,提供数据传输安全性,且以便真实卡片管理器获得卡片信息获取请求。卡套端第一安全传输密钥和卡套端第二安全传输密钥可以参照上述卡套端第一安全传输密钥和卡套端第二安全传输密钥生成过程的相关描述,在此不再详述。
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到 的数据进行第二处理后发送至选中的真实卡片,其中,真实卡片管理器端安全传输密钥为卡套与真实卡片管理器建立安全连接时生成的;具体地,真实卡片管理器对卡套发送的数据进行第二处理后发送至选中的真实卡片,以便选中的真实卡片获取卡片信息获取请求,从而将卡片信息回传。真实卡片管理器端安全传输密钥的生成过程可以参照上述真实卡片管理器端安全传输密钥的生成过程的相关描述,在此不再详述。
选中的真实卡片将选中的真实卡片的卡片信息发送至真实卡片管理器;
真实卡片管理器利用真实卡片管理器端安全传输密钥对接收到的选中的真实卡片的卡片信息进行第一处理后发送至卡套;
卡套接收真实卡片管理器发送的数据,利用卡套端第二安全传输密钥对接收到的数据进行第二处理,再利用卡套端第一安全传输密钥对第二处理后的数据进行第一处理后发送至模拟卡片;
模拟卡片接收卡套发送的数据,利用模拟卡片端安全传输密钥对接收到的数据进行第二处理后发送至充值平台;具体地,模拟卡片将获取到的卡片信息发送至充值平台,从而保证充值平台获知为哪个真实卡片进行充值。
卡套登录支付平台;具体地,卡套可以登录支付平台,该支付平台可以为支付宝,或者网银,以便完成扣款操作,例如用户登录支付宝直接从支付宝扣款,或者用户登录网银直接从网银扣款,或者用户登录支付宝并通过与支付宝绑定的网银扣款。
卡套接收支付平台发送的支付成功信息,其中,支付成功信息由支付平台在执行支付操作后生成;具体地,支付平台在完成支付后会生成支付成功信息,并将该支付成功信息发送给卡套,以便用户知晓支付成功。支付平台在执行支付操作之前,还获取充值标识,该充值标识可以通过如下方式获取:方式一、模拟卡片接收充值平台发送的充值标识,利用模拟卡片端安全传输密钥对充值标识进行第一处理后发送至卡套,卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理得到充值标识,并由卡套发送至支付平台。其中,充值标识为充值平台在接收模拟卡片第二处理后的数据后生成的,具体地,充值平台获取到模拟卡片发送的第一真实卡片的卡片信息后,可以生成充值标识,以指示为哪个真实卡片进行充值以及充值金额,该充值标识可以为本次充值生成的订单号等。方式二、充值平台在接收模拟卡片第二处理后的数据后生成充值标识,直接将该充值标识发送至支付平台。另外,支付平台根据充值标识进行支付,以便知晓为哪张真实卡片进行支付以及支付金额。
模拟卡片接收充值平台发送的充值包,其中,充值包由充值平台接收到支付平台生成的支付成功信息后生成;具体地,支付平台还将支付成功信息发送至充值平台,或者支付平台将支付成功信息发送至卡套,并由卡套发送至充值平台,以便充值平台知晓支付成功, 并生成充值包,以便将该充值包发送至选中的真实卡片完成充值。
模拟卡片利用模拟卡片端安全传输密钥对充值包进行第一处理后发送至卡套;
卡套接收模拟卡片发送的数据,利用卡套端第一安全传输密钥对接收到的数据进行第二处理后,提示第二处理后的数据;
卡套接收用于指示第二处理后的数据无误的确认指令,利用卡套端第二安全传输密钥对第二处理后的数据进行第一处理后发送至真实卡片管理器;
真实卡片管理器接收卡套发送的数据,利用真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后发送至选中的真实卡片;
真实卡片接收真实卡片管理器发送的数据,执行充值操作。具体地,选中的真实卡片获取到充值包后,根据充值包执行充值操作,从而完成充值。
基于上述方式,本发明的数据交互架构可以完成利用账户对真实卡片的充值,扩展了本发明数据交互架构的应用,方便用户使用。
在本发明的所有实施例中,卡套与模拟卡片之间所有的正常数据交互过程,模拟卡片均位于卡套的有效通信范围内,如果卡套检测出模拟卡片超出了卡套的有效通信范围,则卡套可以进行提示,或者卡套将提示信息发送至用户终端(例如智能手机、平板电脑等)处进行提示,以便提示用户模拟卡片的位置出现异常,由此提高模拟卡片使用安全性。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各 个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在不脱离本发明的原理和宗旨的情况下在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。本发明的范围由所附权利要求及其等同限定。

Claims (16)

  1. 一种数据交互方法,其特征在于,包括:
    卡套获取卡套端真实卡片信息列表,其中,所述卡套端真实卡片信息列表为所述卡套从真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表,所述真实卡片管理器端真实卡片信息列表包括与所述真实卡片管理器连接的真实卡片的真实卡片信息;
    所述卡套提示所述卡套端真实卡片信息列表;
    所述卡套接收真实卡片选择指令,确定选中的真实卡片;以及所述模拟卡片接收交易终端发送的第一数据,并将所述第一数据发送至所述卡套;
    所述卡套提示所述第一数据,接收用于确认所述第一数据正确的确认指令,将所述第一数据发送至所述真实卡片管理器;
    所述真实卡片管理器接收所述卡套发送的所述第一数据,并发送至所述选中的真实卡片。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    所述卡套与所述模拟卡片建立安全连接,获得所述卡套与所述模拟卡片之间进行数据安全传输的卡套端第一安全传输密钥和模拟卡片端安全传输密钥。
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:
    所述卡套与所述真实卡片管理器建立安全连接,获得所述卡套与所述真实卡片管理器之间进行数据安全传输的卡套端第二安全传输密钥和真实卡片管理器端安全传输密钥。
  4. 根据权利要求2所述的方法,其特征在于,在所述卡套与所述模拟卡片建立安全连接之前,还包括:
    所述卡套与所述模拟卡片执行绑定操作。
  5. 根据权利要求3所述的方法,其特征在于,在所述卡套与所述真实卡片管理器建立安全连接之前,还包括:
    所述卡套与所述真实卡片管理器执行绑定操作。
  6. 根据权利要求3所述的方法,其特征在于,
    在所述卡套与所述真实卡片管理器建立安全连接之前,还包括:
    所述卡套向所述真实卡片管理器发送登录请求;
    在所述卡套与所述真实卡片管理器建立安全连接之后,还包括:
    所述卡套通过所述卡套端第二安全传输密钥对接收到的登录密码进行第一处理后发送至所述真实卡片管理器;
    所述真实卡片管理器接收所述卡套发送的数据,利用所述真实卡片管理器端安全传输 密钥对接收到的数据进行第二处理后验证第二处理后的数据的正确性;
    所述真实卡片管理器在验证所述第二处理后的数据通过后,所述卡套登录所述真实卡片管理器。
  7. 根据权利要求6所述的方法,其特征在于,所述真实卡片管理器利用所述真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后验证第二处理后的数据的正确性包括:
    所述真实卡片管理器利用所述真实卡片管理器端安全传输密钥对接收到的数据进行第二处理后,获得待验证密码;
    所述真实卡片管理器判断所述待验证密码是否为报警密码;
    如果所述待验证密码为报警密码,则所述真实卡片管理器确定所述待验证密码验证通过,并执行报警操作;
    如果所述待验证密码不是报警密码且为登录密码,则所述真实卡片管理器确定所述待验证密码验证通过。
  8. 根据权利要求6所述的方法,其特征在于,还包括:
    所述真实卡片管理器对与所述真实卡片管理器连接的真实卡片进行检测;
    所述真实卡片管理器在检测到与所述真实卡片管理器连接的真实卡片后,获取所述真实卡片的真实卡片信息,其中,所述真实卡片信息至少包括:卡号;
    所述真实卡片管理器获取所述真实卡片的真实卡片信息后,生成真实卡片管理器端真实卡片信息列表。
  9. 根据权利要求8所述的方法,其特征在于,还包括:
    所述真实卡片管理器还生成真实卡片管理器端标识列表,所述真实卡片管理器端标识列表中的标识与所述真实卡片管理器端真实卡片信息列表中的真实卡片信息一一对应。
  10. 根据权利要求1所述的方法,其特征在于,所述卡套接收真实卡片选择指令,确定选中的真实卡片;包括:
    所述卡套接收真实卡片选择指令,获取选中标识,其中,所述选中标识用于指示所述选中的真实卡片;
    所述卡套将所述选中标识发送至所述真实卡片管理器;
    所述真实卡片管理器根据所述选中标识从与所述真实卡片管理器连接的所述真实卡片中,确定与所述选中标识对应的所述选中的真实卡片。
  11. 根据权利要求2所述的方法,其特征在于,
    在所述卡套与所述模拟卡片建立安全连接之后,所述模拟卡片向所述卡套发送的所述第一数据利用所述模拟卡片端安全传输密钥进行第一处理后发送,所述卡套接收到所述第 一处理后的所述第一数据,利用所述卡套端安全传输密钥进行第二处理;所述卡套向所述模拟卡片发送的所述第二数据利用所述卡套端安全传输密钥进行第一处理后发送,所述模拟卡片接收到所述第一处理后的所述第二数据,利用所述模拟卡片端安全传输密钥进行第二处理。
  12. 根据权利要求3所述的方法,其特征在于,
    在所述卡套与所述真实卡片管理器建立安全连接之后,所述卡套向所述真实卡片管理器发送的所述第一数据利用所述卡套端安全传输密钥进行第一处理后发送,所述真实卡片管理器接收到所述第一处理后的所述第一数据,利用所述真实卡片管理器端安全传输密钥进行第二处理;所述真实卡片管理器向所述卡套发送的所述第二数据利用所述真实卡片管理器端安全传输密钥进行第一处理后发送,所述卡套接收到所述第一处理后的所述第二数据,利用所述卡套端安全传输密钥进行第二处理。
  13. 根据权利要求1至12任一项所述的方法,其特征在于,所述真实卡片管理器根据真实卡片的安全性等级,对与所述真实卡片管理器连接的真实卡片的真实卡片信息的读写权限进行开启和/或关闭的设置。
  14. 根据权利要求1至13任一项所述的方法,其特征在于,所述卡套为移动设备。
  15. 根据权利要求1至13任一项所述的方法,其特征在于,所述卡套为移动设备和电子签名设备,或者所述卡套为电子签名设备。
  16. 一种数据交互系统,其特征在于,包括:模拟卡片、卡套以及真实卡片管理器;
    所述卡套,用于获取卡套端真实卡片信息列表;提示所述卡套端真实卡片信息列表;接收真实卡片选择指令,确定选中的真实卡片,其中,所述卡套端真实卡片信息列表为所述卡套从所述真实卡片管理器中获取的真实卡片管理器端真实卡片信息列表,所述真实卡片管理器端真实卡片信息列表包括与所述真实卡片管理器连接的真实卡片的真实卡片信息;
    所述模拟卡片,用于接收交易终端发送的第一数据,并将所述第一数据发送至所述卡套;
    所述卡套,还用于提示所述第一数据,接收用于确认所述第一数据正确的确认指令,将所述第一数据发送至所述真实卡片管理器;
    所述真实卡片管理器,用于接收所述卡套发送的所述第一数据,并发送至所述选中的真实卡片。
PCT/CN2015/093729 2014-11-07 2015-11-03 数据交互方法和系统 Ceased WO2016070799A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
SG11201703723WA SG11201703723WA (en) 2014-11-07 2015-11-03 Data interaction method and system
US15/525,204 US20170337545A1 (en) 2014-11-07 2015-11-03 Data interaction method and system
EP15856587.9A EP3217620B1 (en) 2014-11-07 2015-11-03 Data interaction method and system

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
CN201410643670 2014-11-07
CN201410643670.5 2014-11-07
CN201410643056.9 2014-11-07
CN201410643056 2014-11-07
CN201510055973.XA CN105991545A (zh) 2014-11-07 2015-02-03 数据交互系统
CN201510054772.8 2015-02-03
CN201510054772.8A CN105989476A (zh) 2014-11-07 2015-02-03 数据交互方法
CN201510055973.X 2015-02-03

Publications (1)

Publication Number Publication Date
WO2016070799A1 true WO2016070799A1 (zh) 2016-05-12

Family

ID=55908590

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/093729 Ceased WO2016070799A1 (zh) 2014-11-07 2015-11-03 数据交互方法和系统

Country Status (1)

Country Link
WO (1) WO2016070799A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120091199A1 (en) * 2010-10-17 2012-04-19 Albert Talker Multi-account card system
CN102610043A (zh) * 2012-02-09 2012-07-25 于梦媛 一种具有虚拟刷卡功能的移动终端
CN103903369A (zh) * 2012-12-27 2014-07-02 中国银联股份有限公司 一种提示用户选择支付银行卡以获取优惠的方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120091199A1 (en) * 2010-10-17 2012-04-19 Albert Talker Multi-account card system
CN102610043A (zh) * 2012-02-09 2012-07-25 于梦媛 一种具有虚拟刷卡功能的移动终端
CN103903369A (zh) * 2012-12-27 2014-07-02 中国银联股份有限公司 一种提示用户选择支付银行卡以获取优惠的方法和装置

Similar Documents

Publication Publication Date Title
CN102315942B (zh) 一种带蓝牙的安全终端及其与客户端的通信方法
US8132244B2 (en) Mobile smartcard based authentication
CN104050567B (zh) 离线模式下的数据交互方法、终端以及服务器
JP6552714B2 (ja) データ処理方法およびシステム、ならびにウェアラブル電子デバイス
CN109992949A (zh) 一种设备认证方法、空中写卡方法及设备认证装置
CN105074757A (zh) 用于支付处理系统的待定存款
CN104835038A (zh) 一种联网支付装置及方法
EP3217620B1 (en) Data interaction method and system
KR102671054B1 (ko) 중앙은행 디지털 화폐를 위한 결제 방법 및 시스템
CN105989481B (zh) 数据交互方法及系统
CN105991539B (zh) 数据交互方法及系统
WO2016124032A1 (zh) 数据交互方法
WO2016070799A1 (zh) 数据交互方法和系统
CN105991527A (zh) 数据交互系统
CN105989477A (zh) 数据交互方法
CN105991538B (zh) 数据交互方法及系统
CN105991541A (zh) 数据交互系统
CN105991536A (zh) 数据交互系统
US20250238496A1 (en) Method for securing security token and smartcard into processing device, and system, terminal and computer-readable medium for the same
CN105991543B (zh) 数据交互方法
CN105991530A (zh) 数据交互系统
CN105989475A (zh) 数据交互方法
CN105989657A (zh) 数据交互系统
CN105991547A (zh) 数据交互系统
CN105991540A (zh) 数据交互方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15856587

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2015856587

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 11201703723W

Country of ref document: SG