The invention discloses a bidirectional identity
authentication method and
system for a
client and a lower computer, and relates to the technical field of user identity
authentication. The bidirectional identity
authentication method comprises the following steps: a
client generates a first challenge code, derives a temporary key based on a current
timestamp and a public identifier of a lower computer, and encrypts an authentication data block comprising
user authentication data and the first challenge code by using the temporary key; and the lower computer receives the authentication data block, verifies the validity of the
timestamp and decrypts the data, and then generates a response value based on the hardware
unique identifier and the local secret key. And meanwhile, generating a second challenge code, and returning the response value and the second challenge code to the
client. And the client verifies whether the response value is matched with an expected response. And if so, encrypting the second challenge code by using the temporary key to generate a confirmation
signal, and sending the confirmation
signal to the lower computer. And the lower computer decrypts the confirmation
signal and verifies the consistency of the decrypted data and the second challenge code. And if the
verification is passed, opening the
login session and destroying the temporary key.