Patent ID: 8888000

Claim:
A method for implementing a card reader with multiple functions, wherein the method includes powering up the card reader and entering status of waiting for system call; determining, by the card reader, whether a card is inserted in a slot of the card reader and whether the card reader is online; performing, by the card reader, operation to generate a one-time password and going back to the status of waiting for system call, if determining that no card is inserted in the slot of the card reader and if a requirement of obtaining a one-time password is received from a user; performing, by the card reader, corresponding operation on a card according to a card operating requirement sent from a computer and going back to the status of waiting for system call, if determining that the card is inserted in the slot of the card reader, the card reader is online and if a requirement of card operation is received from the user; performing operation, by the card reader, with a card to generate a Token and going back to the status of waiting for system call, if determining that the card is inserted in the slot of the card reader, the card reader is offline and if a requirement of verification is received from the user; wherein performing operation, by the card reader, with a card to generate a Token comprising: choosing, by the user, function needed in the function list displayed on the card reader; determining, by the card reader, a type of the working mode of Token generation operation; performing operation according to a challenge code, an account number and PIN code entered by the user to generate a Token if the type of the working mode is a first mode that the card reader performs operations according to the challenge code, the account number and the PIN code entered by the user to generate a Token; performing operation according the PIN code entered by the user to generate a Token if the type of the working mode is a second mode that the card reader performs operations according to the PIN code entered by the user to generate a Token; performing operation according to the challenge code, PIN code entered by the user to generate a Token if the type of working mode is a third mode that the card reader performs operation according to the challenge code and PIN code entered by the user to generate a Token.