“…When logging in to the server, the user has to input the password and insert the smart card. The mechanism of two-factor authentication provides better security properties for the user, so it is widely used in E-commerce [20] , session initiation protocol [21] , and other network communications [22,23] .…”