The invention relates to the technical field of computers, and discloses a user identity
authentication method and device based on a dynamic
verification code, and the method comprises the steps: generating an
encryption object in response to an identity
authentication request, the
encryption object comprising a random number and a random key; performing asymmetric
encryption on the encrypted
object based on a pre-stored user public key to generate an encrypted
ciphertext; converting the encrypted
ciphertext into a two-dimensional code, sending the two-dimensional code to a
client for display, and activating a dynamic
verification code input interface; receiving a dynamic
verification code input by a user through a
client, and performing encryption operation on the random number through the random key to generate a corresponding reference code; and comparing the dynamic verification code with the reference code to generate a user identity
authentication result. According to the invention, safe and networking-free user identity authentication can be realized, the security and convenience of user identity authentication are improved, and the problems of insufficient security, dependence on a network or
time synchronization and the like in a traditional mode are solved.