Method for synchronizing token device according to sizes of certification windows

The invention discloses a method for synchronizing a token device according to the sizes of certification windows. The method includes the steps that the large certification window, the middle certification window and the small certification window are set by a certification server, the certification server receives dynamic passwords sent by the token device, and formulates a self-adapting token device synchronization mode according to the large certification window, the middle certification window or the small certification window where the dynamic passwords are located. According to the method for synchronizing the token device according to the sizes of the certification windows, the problem that the safety performance is prone to being reduced when time synchronization is carried out when time migration of the token device is large is solved, reasonable time window values are set to correct time migration with the token device, and the availability of the dynamic passwords sent by the token device is high, stable and reliable.