CN106874813A - A kind of method and smart card for automatically selecting M1 cards - Google Patents

A kind of method and smart card for automatically selecting M1 cards Download PDF

Info

Publication number
CN106874813A
CN106874813A CN201510920867.3A CN201510920867A CN106874813A CN 106874813 A CN106874813 A CN 106874813A CN 201510920867 A CN201510920867 A CN 201510920867A CN 106874813 A CN106874813 A CN 106874813A
Authority
CN
China
Prior art keywords
simulation
cards
sector number
key
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510920867.3A
Other languages
Chinese (zh)
Other versions
CN106874813B (en
Inventor
刘振东
郑黎方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sumavision Technologies Co Ltd
Original Assignee
Sumavision Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sumavision Technologies Co Ltd filed Critical Sumavision Technologies Co Ltd
Priority to CN201510920867.3A priority Critical patent/CN106874813B/en
Publication of CN106874813A publication Critical patent/CN106874813A/en
Application granted granted Critical
Publication of CN106874813B publication Critical patent/CN106874813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10257Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for protecting the interrogation against piracy attacks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0723Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/073Special arrangements for circuits, e.g. for protecting identification code in memory
    • G06K19/07309Means for preventing undesired reading or writing from or onto record carriers

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention provides a kind of method and smart card for automatically selecting M1 cards, and the method includes:When the certification that smart card receives the transmission of M1 read write lines is instructed, generate the first random number and be sent to M1 read write lines, certification instruction carries default sector number, smart card includes multiple simulation M1 cards, and each simulation M1 card includes a default sector number;Receive the encryption data after M1 read write lines are encrypted for the first random number;Since multiple simulation M1 cards the simulation M1 cards of highest priority, the corresponding key of default sector number and default decipherment algorithm according to simulation M1 cards are decrypted to encryption data, wherein, the corresponding key of default sector number of each simulation M1 card is different;It is determined that when the corresponding key of default sector number and default decipherment algorithm according to any simulation M1 cards are to encryption data successful decryption, by any simulation M1 holdings are for activated state and terminate to decrypt flow.The present invention can automatically select simulation M1 cards, improve Consumer's Experience.

Description

A kind of method and smart card for automatically selecting M1 cards
Technical field
The present invention relates to technical field of intelligent card, more particularly to a kind of method and intelligence for automatically selecting M1 cards Card.
Background technology
At present, multiple Mifare1 (hereinafter referred to as M1) cards, the intelligence can be simulated in same smart card Card supports 14443-4 TypeA and Mifare1 interface protocols, by 14443-4 TypeA in same smart card In be created that multiple simulation M1 cards, and one of M1 that simulates is placed in activated state.
The smart card of this simulation multiple M1 cards includes microprocessor (CPU), random access memory (RAM), read-only storage (ROM), electrically erasable system memory (EEPROM), RF (Radio Frequency, radio frequency) interface and COS (Chip Operating System, chip operation System).
When the smart card is located in the radio-frequency region of M1 read write lines, M1 read write lines send to the smart card Certification is instructed, and sector number is carried in certification instruction;Smart card searches the intelligence according to the sector number for receiving The corresponding key of the sector number of the simulation M1 cards in activated state in card;Smart card is according to the key pair The encryption data that M1 read write lines send is decrypted;If decryption is unsuccessful, needs artificial selection and be somebody's turn to do Simulation M1 cards in the corresponding smart card of M1 read write lines, and the simulation M1 holdings that will be selected are activation State, other simulation M1 holdings are unactivated state.
To sum up, although there is multiple simulation M1 cards in existing smart card, in M1 read write lines and intelligence The M1 cards that state of activation is currently in card are matched, it is necessary to manually select when mismatching with the M1 read write lines Simulation M1 switching, smart card can not automatically select simulation M1 cards to match corresponding M1 read write lines.
The content of the invention
The present invention provides a kind of method and smart card for automatically selecting M1 cards, is used to solve exist in the prior art When the M1 cards mismatch of state of activation is currently in M1 read write lines and smart card, it is necessary to manually select with The switching of the simulation M1 of M1 read write lines matching, smart card can not automatically select simulation M1 cards to match The problem of corresponding M1 read write lines.
A kind of method for automatically selecting M1 cards, including:
When the certification that smart card receives the transmission of M1 read write lines is instructed, generate the first random number and be sent to M1 read write lines, the certification instruction carries default sector number, and the smart card includes multiple simulation M1 cards, Each simulation M1 card includes a default sector number;
Receive the encryption data after the M1 read write lines are encrypted for first random number;
Since the multiple simulation M1 cards the simulation M1 cards of highest priority, according to simulation M1 The corresponding key of described default sector number and default decipherment algorithm of card are decrypted to the encryption data, Wherein, the corresponding key of default sector number of each simulation M1 card is different;
It is determined that the corresponding key of described default sector number and the default decryption according to any simulation M1 cards When algorithm is to the encryption data successful decryption, by any simulation M1 holdings are for activated state and terminate solution Close flow.
In methods described, the simulation M1 cards of the highest priority are current in the multiple simulation M1 cards The simulation M1 cards being active, or, it is be previously active one simulation M1 card of the smart card.
The current simulation M1 cards for being in activated state in embodiment of the present invention priority match smart card.
Methods described, also includes:
It is determined that according to each simulation corresponding key of default sector number of M1 cards in the smart card and described Default decipherment algorithm is decrypted when failing to the encryption data, determines the smart card with the M1 Read write line is mismatched.
Methods described, also includes:
Receive the key updating instruction of the carrying new key that the M1 read write lines send;
The default sector number pair of other the simulation M1 cards in the new key and multiple simulation M1 cards The key answered, updates the corresponding key of default sector number of any simulation M1 cards.
The embodiment of the present invention ensure that the security of smart card by more new key.
In methods described, other in the new key and multiple simulation M1 cards simulate M1 cards The corresponding key of default sector number, updates the corresponding key of default sector number of any simulation M1 cards, Specifically include:
Judging the corresponding key of default sector number of other the simulation M1 cards in the multiple simulation M1 cards is It is no identical with the new key;
If it is, prompting key updating failure;
If not, being described Xinmi City by the corresponding key updating of default sector number of any simulation M1 cards Key.
The embodiment of the present invention is entered when the key to sector is updated to the new key that M1 read write lines send Row duplicate checking is operated, so as to avoid the corresponding key identical problem of same fan area code of multiple simulation M1 cards, And then ensure that the accuracy for automatically selecting simulation M1 cards.
The present invention also provides a kind of smart card, including:
Transmitting element, when the certification for receiving the transmission of M1 read write lines is instructed, the first random number of generation is simultaneously M1 read write lines are sent to, the certification instruction carries default sector number, and the smart card includes multiple simulation M1 cards, each simulation M1 card includes a default sector number;
Receiving unit, for receiving adding after the M1 read write lines are encrypted for first random number Ciphertext data;
Decryption unit, for the simulation M1 cards of highest priority since the multiple simulation M1 cards, The corresponding key of described default sector number and default decipherment algorithm according to simulation M1 cards is to the encryption Data are decrypted, wherein, the corresponding key of default sector number of each simulation M1 card is different;
Determining unit, for determine according to the corresponding key of described default sector number of any simulation M1 cards with And the default decipherment algorithm to the encryption data successful decryption when, be by any simulation M1 holdings Activated state simultaneously terminates to decrypt flow.
In the smart card, the simulation M1 cards of the highest priority in the multiple simulation M1 cards when Before the simulation M1 cards that are active, or, be a simulation that the decryption unit is previously active M1 cards.
In the smart card, the determining unit is additionally operable to:
It is determined that according to each simulation corresponding key of default sector number of M1 cards in the smart card and described Default decipherment algorithm is decrypted when failing to the encryption data, determines the smart card with the M1 Read write line is mismatched.
The smart card, also includes:
Key updating units, the key updating for receiving the carrying new key that the M1 read write lines send refers to Order;The default sector number pair of other the simulation M1 cards in the new key and multiple simulation M1 cards The key answered, updates the corresponding key of default sector number of any simulation M1 cards.
In the smart card, the key updating units are according to the new key and multiple simulation M1 cards In other simulation M1 cards the corresponding key of default sector number, renewal any simulation M1 cards it is pre- If during the corresponding key of sector number, specifically for:
Judging the corresponding key of default sector number of other the simulation M1 cards in the multiple simulation M1 cards is It is no identical with the new key;
If it is, prompting key updating failure;
If not, being described Xinmi City by the corresponding key updating of default sector number of any simulation M1 cards Key.
Using the method and smart card for automatically selecting M1 cards provided in an embodiment of the present invention, with following beneficial Effect:The sector number that smart card sends according to M1 read write lines, travels through each simulation M1 in smart card successively The key of the sector number of card, and be decrypted according to the key, if being somebody's turn to do according to present day analog M1 cards When the secret key decryption of sector number is unsuccessful, continue the key solution of the sector number according to next simulation M1 cards It is close, it is achieved thereby that simulating automatically selecting for M1 cards.Using the embodiment of the present invention, when smart card is different When the simulation M1 cards that switching and difference M1 read write lines are matched between M1 read write lines are different, mould is capable of achieving Intend automatically selecting for M1 cards, it is not necessary to artificial to participate in, improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the method flow diagram for automatically selecting M1 cards provided in an embodiment of the present invention;
Fig. 2 is the method for the corresponding key of default sector number for updating simulation M1 provided in an embodiment of the present invention Flow chart;
Fig. 3 is provided in an embodiment of the present invention corresponding to simulating the default sector number of M1 cards according to new key The specific embodiment flow chart that key is updated;
Fig. 4 is one of smart card schematic diagram provided in an embodiment of the present invention;
Fig. 5 is the two of smart card schematic diagram provided in an embodiment of the present invention.
Specific embodiment
The method and smart card of the self adaptation switching M1 cards for providing the present invention with reference to the accompanying drawings and examples Illustrated in greater detail.
In the prior art, multiple simulation M1 cards can be set up in a smart card, each simulation M1 Ka Bao Multiple sectors are included, for any simulation M1 cards, correspondence different numberings in each sector in simulation M1 cards. The number of sectors that any two simulation M1 cards are included is identical, and the sector in any two simulation M1 cards Numbering is identical, such as, the first simulation M1 cards include 2 sectors, and sector number is respectively 1,2, second Simulation M1 cards also include 2 sectors, and sector number is also respectively 1,2.Any two simulation M1 cards The corresponding key of same fan area code can be the same or different, the different sectors number in same simulation M1 cards Corresponding key can be the same or different.
The embodiment of the present invention provides a kind of method for automatically selecting M1 cards, as shown in figure 1, including:
Step 101, when the certification that smart card receives the transmission of M1 read write lines is instructed, generates the first random number And M1 read write lines are sent to, the certification instruction carries default sector number, and the smart card includes multiple moulds Intend M1 cards, each simulation M1 card includes a default sector number.
Specifically, smart card enters when in the radio-frequency region of M1 read write lines, M1 read write lines and the smart card Communication is set up, M1 read write lines are instructed to smart card transmission certification after the two sets up communication, certification instruction The middle carrying M1 read write lines sector number to be accessed, that is, preset sector number.Continue to use prior art, any simulation M1 cards, simulation M1 cards include multiple sectors, the different numberings of each sector correspondence.Any two mould The number of sectors that plan M1 cards are included is identical, and the sector number that any two is simulated in M1 cards is identical, Such as, the default sector number for being carried in certification instruction is 1, and each simulation M1 card one numbering of correspondence is 1 sector number.Wherein each simulation M1 card is specially including a default sector number:For smart card Each simulation M1 card in multiple simulation M1 cards, simulation M1 cards include multiple sectors, simulation M1 A sector one sector number of correspondence in card, the corresponding multiple sector numbers of simulation M1 cards include one Default sector number, i.e. in corresponding each sector number in each sector of simulation M1 cards, there is a sector Number it is default sector number.Such as, two simulation M1 cards, the first simulation M1 card correspondences are had in smart card One default sector number, second simulation M1 card one default sector number of correspondence.
Step 102, receives the encryption number after the M1 read write lines are encrypted for first random number According to.
Specifically, when M1 read write lines receive the first random number of smart card transmission, according to default encryption Algorithm and the first random number is encrypted with preset-key, and by the data is activation after encryption to intelligence Card, it is preferable that preset-key is the default sector number correspondence of any simulation M1 cards in multiple simulation M1 cards Key, it is of course also possible to the corresponding key of default sector number of all simulation M1 cards of smart card with The preset-key is different, now illustrates that the smart card is mismatched with the M1 read write lines.Smart card receives M1 The encrypted data that read write line sends.
Step 103, since the multiple simulation M1 cards the simulation M1 cards of highest priority, according to The corresponding key of described default sector number and the default decipherment algorithm of simulation M1 cards are to the encryption Data are decrypted, wherein, the corresponding key of default sector number of each simulation M1 card is different.
Specifically, being limited in the embodiment of the present invention, the default sector number of each the simulation M1 card in smart card Corresponding key is different, such as, the numbering of the first simulation M1 cards is the 1 corresponding key in sector and second The numbering for simulating M1 cards is 1 sector corresponding key difference, so just can guarantee that automatically select it is correct And unique simulation M1 cards.Smart card can not in advance know the simulation M1 cards matched with M1 read write lines, Therefore, smart card sticks into row major level sequence according to setting rule to multiple simulation M1 therein, from preferential Level highest simulation M1 cards start to travel through each simulation M1 card successively, for the simulation M1 of current order Card performs the corresponding key of described default sector number and the default decipherment algorithm according to simulation M1 cards The step of being decrypted to the encryption data, until the default sector number according to one of simulation M1 cards Corresponding secret key decryption success is all decrypted according to the corresponding key of default sector number of all simulation M1 cards Terminate to decrypt flow during failure.
Wherein, the sector number numbering of each simulation M1 card is same as the prior art, according to the simulation The corresponding key of described default sector number and the default decipherment algorithm of M1 cards enter to the encryption data Row decryption, specifically includes:Obtain simulation M1 the corresponding key of default sector number and according to the key with And default decipherment algorithm is decrypted to the encryption data that M1 read write lines send.Default decipherment algorithm with AES correspondence in M1 read write lines, it is determined that the result after being decrypted to encryption data is sent out with smart card When the first random number sent is identical, successful decryption is determined.
Step 104, it is determined that the corresponding key of described default sector number and institute according to any simulation M1 cards It is activation by any simulation M1 holdings when stating default decipherment algorithm to the encryption data successful decryption State simultaneously terminates to decrypt flow.
Specifically, during smart card travels through each simulation M1 card according to the priority of simulation M1 cards, It is determined that when the corresponding secret key decryption of default sector number according to any simulation M1 cards is successful, terminating decryption flow And by any simulation M1 holdings of the successful decryption be activated state.It is believed that intelligence after smart card successful decryption The certification of card side passes through, and after the certification of smart card side passes through, uses the default fan of the simulation M1 cards of successful decryption The corresponding key of area code is encrypted that to obtain encrypted data concurrent to the second random number that M1 read write lines send M1 read write lines are given, after the side certification of M1 read write lines passes through, M1 read write lines can be to the successful decryption Simulation M1 cards are written and read etc. and to operate.
The embodiment of the present invention, the sector number that smart card sends according to M1 read write lines, successively in traversal smart card The corresponding key of the sector number of each simulation M1 card, and is decrypted according to the key, if according to ought When the corresponding secret key decryption of the sector number of front simulation M1 cards is unsuccessful, continue according to next simulation M1 The corresponding secret key decryption of the sector number of card, the purpose of simulation M1 cards is automatically selected so as to reach.Utilize The embodiment of the present invention, when switching between the different M1 read write lines of smart card and different read write line supports different During simulation M1 cards, automatically selecting for simulation M1 cards is capable of achieving, so as to select and current M1 read write lines The simulation M1 cards of matching, it is not necessary to artificial to participate in, improve Consumer's Experience.
The application scenarios of the embodiment of the present invention can be:After smart card and M1 read write lines certification success, First M1 read write lines can be written and read etc. to the simulation M1 cards of first in the smart card and operate;When the intelligence Card enter the second M1 read write lines radio-frequency region in when, smart card perform the embodiment of the present invention the step of 101- Step 104, so as to select the matched with the 2nd M1 read write lines second simulation M1 cards, wherein, second M1 read write lines and the first simulation M1 cards are mismatched.
The executive agent of step 101- steps 104 is specially the chip operating system (Chip in smart card Operating System, COS).
Specifically, smart card is in advance by each simulation M1 card numbering therein, according to the size of numbering to mould Intend M1 and stick into row major level sequence, number smaller simulation M1 card priority higher or lower.
Smart card with M1 read write lines before communicating, wherein a simulation in activated state may have been had M1 cards, it is preferred that the simulation M1 cards of the highest priority are in the multiple simulation M1 cards The simulation M1 cards of state of activation are currently at, remaining simulation M1 card is big according to the numbering of simulation M1 cards It is small to carry out prioritization.
Smart card with M1 read write lines before communicating, wherein all of simulation M1 cards are all in unactivated state When, it is sharp so as to simulation M1 be placed in that smart card can send activation instruction to a simulation M1 card at random State living, now, the simulation M1 cards of highest priority are preferably the simulation that smart card is previously active M1 cards.
Specifically, synchronization only one of which simulation M1 cards are in activated state in same smart card, therefore work as When the simulation M1 cards of successful decryption are in activated state, other moulds outside the simulation M1 cards of the successful decryption Intend M1 cards and be set to unactivated state.
Specifically, when travel through smart card in all simulation M1 cards after, it is determined that according to each simulate M1 cards The corresponding key of default sector number and the default decipherment algorithm encryption data is decrypted and is failed When, determine that the smart card is mismatched with the M1 read write lines.
Specifically, it is determined that the corresponding key of default sector number of any simulation M1 cards in smart card And default decipherment algorithm is to encryption data successful decryption, and after any simulation M1 is placed in into activated state, As shown in Fig. 2 also including:
Step 201, receives the key updating instruction of the carrying new key that the M1 read write lines send.
Step 202, other in the new key and multiple simulation M1 cards simulate the pre- of M1 cards If the corresponding key of sector number, the corresponding key of default sector number of any simulation M1 cards is updated.
Specifically, any simulation M1 in the embodiment of the present invention is stuck in the certification success of M1 read write lines side, i.e., After M1 read write lines pass through with three mutual certifications of smart card, it is determined that to the default sector of any simulation M1 cards Application in number corresponding sector is updated, or, it is determined that in the default sector of any simulation M1 cards During the new application of addition in number corresponding sector, the default sector number to any simulation M1 cards is corresponding Key is updated, so as to ensure the security of smart card.M1 read write lines can send key more to smart card New command, carries simulation M1 cards (any mould i.e. in step 201 for being currently at activated state in the instruction Intend M1 cards) default sector number new key, smart card according to key updating instruction, to any mould The corresponding key of default sector number for intending M1 cards is updated.
Step 202, other in the new key and multiple simulation M1 cards simulate the pre- of M1 cards If the corresponding key of sector number, the corresponding key of default sector number of any simulation M1 cards is updated, such as Shown in Fig. 3, specifically include:
Step 301, judges the default sector number pair of other the simulation M1 cards in the multiple simulation M1 cards Whether the key answered is identical with the new key, if it is, performing step 302, otherwise, performs step 303.
Specifically, other the simulation M1 cards in multiple simulation M1 cards do not include the M1 cards in activated state, Any simulation M1 cards described in step 202 are not included.
Step 302, points out key updating failure.
Specifically, determining that the default sector number of at least one of simulation M1 cards simulation M1 cards is corresponding close When key is identical with new key, key updating failure is pointed out.
Step 303, is described new by the corresponding key updating of default sector number of any simulation M1 cards Key.
Specifically, determining the corresponding key of default sector number of all simulation M1 cards in other simulation M1 cards When being differed with new key, the corresponding key updating of default sector number by any simulation M1 cards is The new key.
Specifically, smart card is instructed according to the key updating, it is first determined each is in un-activation in smart card The corresponding key of default sector number of the simulation M1 cards (other the simulation M1 cards i.e. in step 202) of state Whether repeated with new key, if repeated, " return " key" updates failure, if do not repeated, will be in The corresponding key updating of default sector number of the simulation M1 cards of activated state is new key.
The embodiment of the present invention is entered when the key to sector is updated to the new key that M1 read write lines send Row duplicate checking is operated, so as to avoid the corresponding key identical problem of same fan area code of multiple simulation M1 cards, And then ensure that the accuracy for automatically selecting simulation M1 cards.
Based on the inventive concept same with the method for automatically selecting M1 cards provided in an embodiment of the present invention, this hair Bright embodiment also provides a kind of smart card, as shown in figure 4, including:
Transmitting element 401, when the certification for receiving the transmission of M1 read write lines is instructed, generation first is random M1 read write lines are counted and are sent to, the certification instruction carries default sector number, and the smart card includes multiple Simulation M1 cards, each simulation M1 card includes a default sector number;
Receiving unit 402, for receiving after the M1 read write lines are encrypted for first random number Encryption data;
Decryption unit 403, the simulation M1 cards for the highest priority from the multiple simulation M1 cards are opened Begin, the corresponding key of described default sector number and default decipherment algorithm according to simulation M1 cards are to described Encryption data is decrypted, wherein, the corresponding key of default sector number of each simulation M1 card is different;
Determining unit 404, it is corresponding close according to the described default sector number of any simulation M1 cards for determining When key and the default decipherment algorithm are to the encryption data successful decryption, by any simulation M1 cards It is set to activated state and terminates to decrypt flow.
In the smart card, the simulation M1 cards of the highest priority in the multiple simulation M1 cards when Before the simulation M1 cards that are active, or, be a simulation that the decryption unit is previously active M1 cards.
In the smart card, the determining unit is additionally operable to:
It is determined that according to each simulation corresponding key of default sector number of M1 cards in the smart card and described Default decipherment algorithm is decrypted when failing to the encryption data, determines the smart card with the M1 Read write line is mismatched.
As shown in figure 5, the smart card, also includes:
Key updating units 405, for receive the carrying new key that the M1 read write lines send key more New command;The default sector of other the simulation M1 cards in the new key and multiple simulation M1 cards Number corresponding key, updates the corresponding key of default sector number of any simulation M1 cards.
In the smart card, the key updating units are according to the new key and multiple simulation M1 cards In other simulation M1 cards the corresponding key of default sector number, renewal any simulation M1 cards it is pre- If during the corresponding key of sector number, specifically for:
Judging the corresponding key of default sector number of other the simulation M1 cards in the multiple simulation M1 cards is It is no identical with the new key;
If it is, prompting key updating failure;
If not, being described Xinmi City by the corresponding key updating of default sector number of any simulation M1 cards Key.
Using the method and smart card for automatically selecting M1 cards provided in an embodiment of the present invention, with following beneficial Effect:The sector number that smart card sends according to M1 read write lines, travels through each simulation M1 in smart card successively The key of the sector number of card, and be decrypted according to the key, if being somebody's turn to do according to present day analog M1 cards When the secret key decryption of sector number is unsuccessful, continue the key solution of the sector number according to next simulation M1 cards It is close, it is achieved thereby that simulating automatically selecting for M1 cards.Using the embodiment of the present invention, when smart card is different When the simulation M1 cards that switching and difference M1 read write lines are matched between M1 read write lines are different, mould is capable of achieving Intend automatically selecting for M1 cards, it is not necessary to artificial to participate in, improve Consumer's Experience.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions realize flow chart and / or block diagram in each flow and/or the flow in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions to all-purpose computer, special-purpose computer, insertion can be provided The processor of formula processor or other programmable data processing devices is producing a machine so that by calculating The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one The device of the function of being specified in individual flow or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
, but those skilled in the art once know base although preferred embodiments of the present invention have been described This creative concept, then can make other change and modification to these embodiments.So, appended right will Ask and be intended to be construed to include preferred embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this hair to the present invention Bright spirit and scope.So, if it is of the invention these modification and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. a kind of method for automatically selecting M1 cards, it is characterised in that including:
When the certification that smart card receives the transmission of M1 read write lines is instructed, generate the first random number and be sent to M1 read write lines, the certification instruction carries default sector number, and the smart card includes multiple simulation M1 cards, Each simulation M1 card includes a default sector number;
Receive the encryption data after the M1 read write lines are encrypted for first random number;
Since the multiple simulation M1 cards the simulation M1 cards of highest priority, according to simulation M1 The corresponding key of described default sector number and default decipherment algorithm of card are decrypted to the encryption data, Wherein, the corresponding key of default sector number of each simulation M1 card is different;
It is determined that the corresponding key of described default sector number and the default decryption according to any simulation M1 cards When algorithm is to the encryption data successful decryption, by any simulation M1 holdings are for activated state and terminate solution Close flow.
2. the method for claim 1, it is characterised in that the simulation M1 of the highest priority Block to be currently at the simulation M1 cards of state of activation in the multiple simulation M1 cards, or, it is the intelligence A simulation M1 card being previously active can be blocked.
3. the method for claim 1, it is characterised in that also include:
It is determined that according to each simulation corresponding key of default sector number of M1 cards in the smart card and described Default decipherment algorithm is decrypted when failing to the encryption data, determines the smart card with the M1 Read write line is mismatched.
4. method as claimed in claim 1 or 2, it is characterised in that also include:
Receive the key updating instruction of the carrying new key that the M1 read write lines send;
The default sector number pair of other the simulation M1 cards in the new key and multiple simulation M1 cards The key answered, updates the corresponding key of default sector number of any simulation M1 cards.
5. method as claimed in claim 4, it is characterised in that according to the new key and multiple moulds Intend the corresponding key of default sector number of other the simulation M1 cards in M1 cards, update any simulation The corresponding key of default sector number of M1 cards, specifically includes:
Judging the corresponding key of default sector number of other the simulation M1 cards in the multiple simulation M1 cards is It is no identical with the new key;
If it is, prompting key updating failure;
If not, being described Xinmi City by the corresponding key updating of default sector number of any simulation M1 cards Key.
6. a kind of smart card, it is characterised in that including:
Transmitting element, when the certification for receiving the transmission of M1 read write lines is instructed, the first random number of generation is simultaneously M1 read write lines are sent to, the certification instruction carries default sector number, and the smart card includes multiple simulation M1 cards, each simulation M1 card includes a default sector number;
Receiving unit, for receiving adding after the M1 read write lines are encrypted for first random number Ciphertext data;
Decryption unit, for the simulation M1 cards of highest priority since the multiple simulation M1 cards, The corresponding key of described default sector number and default decipherment algorithm according to simulation M1 cards is to the encryption Data are decrypted, wherein, the corresponding key of default sector number of each simulation M1 card is different;
Determining unit, for determine according to the corresponding key of described default sector number of any simulation M1 cards with And the default decipherment algorithm to the encryption data successful decryption when, be by any simulation M1 holdings Activated state simultaneously terminates to decrypt flow.
7. smart card as claimed in claim 6, it is characterised in that the simulation M1 of the highest priority Block to be currently at the simulation M1 cards of state of activation in the multiple simulation M1 cards, or, it is the solution The simulation M1 card that close unit is previously active.
8. smart card as claimed in claim 6, it is characterised in that the determining unit is additionally operable to:
It is determined that according to each simulation corresponding key of default sector number of M1 cards in the smart card and described Default decipherment algorithm is decrypted when failing to the encryption data, determines the smart card with the M1 Read write line is mismatched.
9. smart card as claimed in claims 6 or 7, it is characterised in that also include:
Key updating units, the key updating for receiving the carrying new key that the M1 read write lines send refers to Order;The default sector number pair of other the simulation M1 cards in the new key and multiple simulation M1 cards The key answered, updates the corresponding key of default sector number of any simulation M1 cards.
10. smart card as claimed in claim 9, it is characterised in that the key updating units are in basis The corresponding key of default sector number of other the simulation M1 cards in the new key and multiple simulation M1 cards, When updating the corresponding key of default sector number of any simulation M1 cards, specifically for:
Judging the corresponding key of default sector number of other the simulation M1 cards in the multiple simulation M1 cards is It is no identical with the new key;
If it is, prompting key updating failure;
If not, being described Xinmi City by the corresponding key updating of default sector number of any simulation M1 cards Key.
CN201510920867.3A 2015-12-11 2015-12-11 A kind of method automatically selecting M1 card and smart card Active CN106874813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510920867.3A CN106874813B (en) 2015-12-11 2015-12-11 A kind of method automatically selecting M1 card and smart card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510920867.3A CN106874813B (en) 2015-12-11 2015-12-11 A kind of method automatically selecting M1 card and smart card

Publications (2)

Publication Number Publication Date
CN106874813A true CN106874813A (en) 2017-06-20
CN106874813B CN106874813B (en) 2019-06-18

Family

ID=59178042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510920867.3A Active CN106874813B (en) 2015-12-11 2015-12-11 A kind of method automatically selecting M1 card and smart card

Country Status (1)

Country Link
CN (1) CN106874813B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271290A (en) * 2020-12-29 2021-08-17 上海能链众合科技有限公司 Digital identity management device based on block chain
CN113395156A (en) * 2020-03-13 2021-09-14 上海复旦微电子集团股份有限公司 Logic encryption card, authentication method thereof and computer readable storage medium
CN113724424A (en) * 2021-10-28 2021-11-30 云丁网络技术(北京)有限公司 Control method and device for equipment
CN115296378A (en) * 2022-10-09 2022-11-04 广东天枢新能源科技有限公司 Charging control method, system and device based on smart card and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2279651Y (en) * 1996-12-25 1998-04-22 中国科学院沈阳自动化研究所 Intelligent card data collector
CN102136081A (en) * 2011-03-24 2011-07-27 北京握奇数据系统有限公司 Integrated circuit (IC) card and data updating method thereof
CN102801730A (en) * 2012-08-16 2012-11-28 厦门市美亚柏科信息股份有限公司 Information protection method and device for communication and portable devices
CN103544114A (en) * 2013-10-12 2014-01-29 上海柯斯软件有限公司 Multiple M1 card control system based on single CPU card and control method thereof
CN105676106A (en) * 2015-12-31 2016-06-15 东信和平科技股份有限公司 Non-contact intelligent card chip model automatic detection system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2279651Y (en) * 1996-12-25 1998-04-22 中国科学院沈阳自动化研究所 Intelligent card data collector
CN102136081A (en) * 2011-03-24 2011-07-27 北京握奇数据系统有限公司 Integrated circuit (IC) card and data updating method thereof
CN102801730A (en) * 2012-08-16 2012-11-28 厦门市美亚柏科信息股份有限公司 Information protection method and device for communication and portable devices
CN103544114A (en) * 2013-10-12 2014-01-29 上海柯斯软件有限公司 Multiple M1 card control system based on single CPU card and control method thereof
CN105676106A (en) * 2015-12-31 2016-06-15 东信和平科技股份有限公司 Non-contact intelligent card chip model automatic detection system and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395156A (en) * 2020-03-13 2021-09-14 上海复旦微电子集团股份有限公司 Logic encryption card, authentication method thereof and computer readable storage medium
CN113395156B (en) * 2020-03-13 2023-02-03 上海复旦微电子集团股份有限公司 Logic encryption card, authentication method thereof and computer readable storage medium
CN113271290A (en) * 2020-12-29 2021-08-17 上海能链众合科技有限公司 Digital identity management device based on block chain
CN113271290B (en) * 2020-12-29 2023-03-31 上海零数众合信息科技有限公司 Digital identity management device based on block chain
CN113724424A (en) * 2021-10-28 2021-11-30 云丁网络技术(北京)有限公司 Control method and device for equipment
CN115296378A (en) * 2022-10-09 2022-11-04 广东天枢新能源科技有限公司 Charging control method, system and device based on smart card and storage medium

Also Published As

Publication number Publication date
CN106874813B (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN106874813A (en) A kind of method and smart card for automatically selecting M1 cards
CN109165515A (en) Model parameter acquisition methods, system and readable storage medium storing program for executing based on federation's study
DE69930318T2 (en) CONTRACTING PORTABILITY FOR WIRELESS SYSTEMS
CN106357393B (en) A kind of safe data transmission method and device
CN104756123B (en) Method and system for smart card chip personalization
CN107483485A (en) Generation method, authorization method, relevant apparatus and the terminal device of authorization code
CN106533660B (en) The acquisition methods and device of secrete key of smart card
CN108075882A (en) Cipher card and its encipher-decipher method
CN110399717A (en) Key acquisition method and device, storage medium and electronic device
CN105095097B (en) The memory access of randomization
CN105739956B (en) The method and system of the building intelligent rules model of computer system
CN107798538A (en) One kind transaction accounting method and client
CN108460875A (en) A kind of entrance guard authentication method and device based on dynamic two-dimension code
CN107809313A (en) A kind of whitepack crypto-operation method and system
JP2007173999A (en) Authentication system and device to be authenticated
CN109787762A (en) Key management method, the electronic equipment of each self-generating key components of server
CN108270568A (en) A kind of mobile digital certificate device and its update method
CN105608355A (en) Biological information verification method, biological information verification system and terminal
CN109271189A (en) A kind of processing method and relevant apparatus of embedded system firmware
CN107678804A (en) Behavior performs method and apparatus, storage medium and electronic installation
WO2021023127A1 (en) Probe application mode switching system and method, and tumor therapy instrument
CN109446793A (en) A kind of account based on Windows agent changes decryption method and device
CN110086618B (en) Lamp control system communication protocol encryption method
CN104598805A (en) Password authentication method, password authentication system and controller
CN105892953B (en) Distributed data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant