尝试在操作系统上获取所有击键。有任何想法吗?
1 回答
Yeah possibly u should get the keystrokes of the users through the use of currentTimeMillis
method or so in java in any of the keyPressed()
or keyReleased()
methods in java.Then save those time recordings in any variable get the time difference and then compare it with the keystrokes stored in database with a particular threshold.It should work then.During the recording phase make the user type the intended filed 5-6 times, take the keystrokes recording of the user and then save its mean in the database and compare it with the current keystrokes of the user while he tries to log in.