[go: up one dir, main page]

CN103888470B - Dynamic token synchronizing method and system - Google Patents

Dynamic token synchronizing method and system Download PDF

Info

Publication number
CN103888470B
CN103888470B CN201410131504.7A CN201410131504A CN103888470B CN 103888470 B CN103888470 B CN 103888470B CN 201410131504 A CN201410131504 A CN 201410131504A CN 103888470 B CN103888470 B CN 103888470B
Authority
CN
China
Prior art keywords
dynamic token
synchronization
factor
time
authentication server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410131504.7A
Other languages
Chinese (zh)
Other versions
CN103888470A (en
Inventor
陆舟
于华章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201410131504.7A priority Critical patent/CN103888470B/en
Publication of CN103888470A publication Critical patent/CN103888470A/en
Application granted granted Critical
Publication of CN103888470B publication Critical patent/CN103888470B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开一种动态令牌的同步方法和系统,应用于包括动态令牌、主机和认证服务器的系统中,认证服务器生成随机数,并将该随机数保存为与动态令牌对应的挑战码;动态令牌获取认证服务器生成的随机数,并根据该随机数生成一个同步码,认证服务器使用自身保存的与该动态令牌对应的挑战码,对动态令牌生成的同步码进行验证,在验证通过后对自身保存的令牌偏移量进行更新,从而提高了同步的成功率,防止由于使用错误的或者延迟的同步码而造成的恶意同步。

The invention discloses a dynamic token synchronization method and system, which are applied to a system including a dynamic token, a host and an authentication server. The authentication server generates a random number and saves the random number as a challenge code corresponding to the dynamic token ; The dynamic token obtains the random number generated by the authentication server, and generates a synchronization code based on the random number, and the authentication server uses the challenge code corresponding to the dynamic token stored by itself to verify the synchronization code generated by the dynamic token. After the verification is passed, the token offset saved by itself is updated, thereby improving the success rate of synchronization and preventing malicious synchronization caused by using wrong or delayed synchronization codes.

Description

一种动态令牌的同步方法和系统Synchronization method and system for a dynamic token

技术领域technical field

本发明涉及信息安全领域,特别是涉及一种动态令牌的同步方法和系统。The invention relates to the field of information security, in particular to a dynamic token synchronization method and system.

背景技术Background technique

动态令牌是一种用于生成动态口令的设备,广泛应用于网银、电信运营商和电子政务等应用领域。动态令牌所生成的动态口令可用于身份认证,能够有效提高身份认证的安全性。A dynamic token is a device used to generate a dynamic password, which is widely used in application fields such as online banking, telecom operators, and e-government. The dynamic password generated by the dynamic token can be used for identity authentication, which can effectively improve the security of identity authentication.

由于动态令牌根据自身保存的动态因子生成动态口令,认证服务器根据自身保存的动态因子,对动态令牌生成的动态口令进行认证,当动态令牌保存的动态因子与认证服务器保存的动态因子之间的差值大于认证窗口时,动态令牌的动态口令将会无法通过认证,需要对动态令牌保存的动态因子和认证服务器保存的动态因子进行同步。Since the dynamic token generates a dynamic password according to the dynamic factor saved by itself, the authentication server authenticates the dynamic password generated by the dynamic token according to the dynamic factor saved by itself. When the dynamic factor saved by the dynamic token and the dynamic factor saved by the authentication server When the difference between them is greater than the authentication window, the dynamic password of the dynamic token will not pass the authentication, and the dynamic factor saved by the dynamic token and the dynamic factor saved by the authentication server need to be synchronized.

现有技术中,动态令牌根据自身的动态因子生成同步码,认证服务器获取该同步码后,根据该同步码进行同步。In the prior art, the dynamic token generates a synchronization code according to its own dynamic factor, and after obtaining the synchronization code, the authentication server performs synchronization according to the synchronization code.

发明人在实现本发明的过程中,发现现有技术至少存在以下缺陷:In the process of realizing the present invention, the inventor finds that the prior art has at least the following defects:

现有的同步操作流程中,动态令牌需要生成两个同步码,用户需要分别输入上述两个同步码,容易产生输入错误和时间延迟,导致同步码超出同步窗口的范围,造成同步失败。In the existing synchronization operation process, the dynamic token needs to generate two synchronization codes, and the user needs to input the above two synchronization codes separately, which is prone to input errors and time delays, causing the synchronization code to exceed the scope of the synchronization window, resulting in synchronization failure.

发明内容Contents of the invention

本发明提供了一种动态令牌的同步方法和系统,以解决现有技术中同步失败的缺陷。The invention provides a dynamic token synchronization method and system to solve the defect of synchronization failure in the prior art.

本发明提供了一种动态令牌的同步方法,包括以下步骤:The invention provides a method for synchronizing dynamic tokens, comprising the following steps:

S1、认证服务器接收来自主机的同步请求,从所述同步请求中获取动态令牌的序列号,并生成随机数,将所述随机数保存为与所述动态令牌的序列号对应的挑战码,将所述随机数返回给所述主机进行显示;S1. The authentication server receives the synchronization request from the host, obtains the serial number of the dynamic token from the synchronization request, generates a random number, and saves the random number as a challenge code corresponding to the serial number of the dynamic token , returning the random number to the host for display;

S2、所述动态令牌获取所述随机数,根据所述随机数以及所述动态令牌中的动态因子和种子密钥,生成应答码,并根据所述应答码和所述动态因子生成同步信息;S2. The dynamic token acquires the random number, generates a response code according to the random number, the dynamic factor and the seed key in the dynamic token, and generates synchronization according to the response code and the dynamic factor information;

S3、所述动态令牌将所述同步信息和所述应答码组合成同步码,并对所述同步码进行显示;S3. The dynamic token combines the synchronization information and the response code into a synchronization code, and displays the synchronization code;

S4、所述认证服务器获取所述同步码和所述动态令牌的序列号;S4. The authentication server acquires the synchronization code and the serial number of the dynamic token;

S5、所述认证服务器从所述同步码中获取所述应答码和所述同步信息,根据所述动态令牌的序列号查询与所述动态令牌对应的种子密钥和挑战码;S5. The authentication server acquires the response code and the synchronization information from the synchronization code, and queries the seed key and challenge code corresponding to the dynamic token according to the serial number of the dynamic token;

S6、所述认证服务器使用查询到的种子密钥和挑战码,以及从所述同步码中获取的所述同步信息,对从所述同步码中获取的应答码进行验证,如果验证通过,则执行步骤S8;否则,执行步骤S7;S6. The authentication server uses the queried seed key and challenge code, and the synchronization information obtained from the synchronization code to verify the response code obtained from the synchronization code. If the verification passes, then Execute step S8; otherwise, execute step S7;

S7、所述认证服务器向所述主机发送同步失败消息;S7. The authentication server sends a synchronization failure message to the host;

S8、所述认证服务器根据从所述同步码中获取的所述同步信息以及所述认证服务器中的动态因子,更新所述认证服务器中与所述动态令牌对应的令牌偏移量。S8. The authentication server updates the token offset corresponding to the dynamic token in the authentication server according to the synchronization information obtained from the synchronization code and the dynamic factor in the authentication server.

本发明还提供了一种动态令牌的同步系统,包括动态令牌、主机和认证服务器;The present invention also provides a dynamic token synchronization system, including a dynamic token, a host and an authentication server;

其中,所述动态令牌包括:Wherein, the dynamic token includes:

第一获取模块,用于获取所述认证服务器生成的随机数;A first obtaining module, configured to obtain the random number generated by the authentication server;

第一生成模块,用于根据所述第一获取模块获取到的所述随机数以及所述动态令牌中的动态因子和种子密钥,生成应答码;A first generating module, configured to generate a response code according to the random number obtained by the first obtaining module, the dynamic factor and the seed key in the dynamic token;

第二生成模块,用于根据所述第一生成模块生成的所述应答码和所述动态因子生成同步信息;A second generating module, configured to generate synchronization information according to the response code and the dynamic factor generated by the first generating module;

组合模块,用于将所述第二生成模块生成的所述同步信息和所述第一生成模块生成的所述应答码组合成同步码;a combination module, configured to combine the synchronization information generated by the second generation module and the response code generated by the first generation module into a synchronization code;

显示模块,用于对所述组合模块组合得到的所述同步码进行显示;a display module, configured to display the synchronization code combined by the combination module;

所述认证服务器,包括:The authentication server includes:

接收模块,用于接收来自所述主机的同步请求;a receiving module, configured to receive a synchronization request from the host;

第二获取模块,用于从所述接收模块接收到的所述同步请求中获取所述动态令牌的序列号;A second acquiring module, configured to acquire the serial number of the dynamic token from the synchronization request received by the receiving module;

第三生成模块,用于在所述接收模块接收到所述同步请求之后,生成随机数,将所述随机数保存为与所述第二获取模块获取到的所述动态令牌的序列号对应的所述挑战码;A third generating module, configured to generate a random number after the receiving module receives the synchronization request, and store the random number as corresponding to the serial number of the dynamic token obtained by the second obtaining module of the challenge code;

第三获取模块,用于获取所述动态令牌生成的所述同步码和所述动态令牌的序列号;A third acquisition module, configured to acquire the synchronization code generated by the dynamic token and the serial number of the dynamic token;

第四获取模块,用于从所述第三获取模块获取到的所述同步码中获取所述应答码和所述同步信息;a fourth obtaining module, configured to obtain the response code and the synchronization information from the synchronization code obtained by the third obtaining module;

查询模块,用于根据所述第三获取模块获取到的所述动态令牌的序列号查询与所述动态令牌对应的种子密钥和挑战码;A query module, configured to query the seed key and challenge code corresponding to the dynamic token according to the serial number of the dynamic token obtained by the third obtaining module;

验证模块,用于使用所述查询模块查询到的种子密钥和挑战码,以及所述第四获取模块从所述同步码中获取的所述同步信息,对从所述同步码中获取的应答码进行验证;A verification module, configured to use the seed key and challenge code queried by the query module, and the synchronization information obtained from the synchronization code by the fourth obtaining module, to respond to the response obtained from the synchronization code code to verify;

更新模块,用于在所述验证模块对所述应答码验证通过时,根据所述第四获取模块从所述同步码中获取的所述同步信息以及所述认证服务器中的动态因子,更新所述认证服务器中与所述动态令牌对应的令牌偏移量;An update module, configured to update the synchronization information obtained from the synchronization code by the fourth acquisition module and the dynamic factor in the authentication server when the verification module passes the verification of the response code. The token offset corresponding to the dynamic token in the authentication server;

发送模块,用于将所述第三生成模块生成的所述随机数返回给所述主机进行显示,并在所述验证模块对所述应答码验证未通过时,向所述主机发送同步失败消息。A sending module, configured to return the random number generated by the third generating module to the host for display, and send a synchronization failure message to the host when the verification module fails to verify the response code .

本发明达到的有益效果:认证服务器生成随机数,并将该随机数保存为与动态令牌对应的挑战码;动态令牌获取认证服务器生成的随机数,并根据该随机数生成一个同步码,认证服务器使用自身保存的与该动态令牌对应的挑战码,对动态令牌生成的同步码进行验证,在验证通过后对自身保存的令牌偏移量进行更新,从而提高了同步的成功率,防止由于使用错误的或者延迟的同步码而造成的恶意同步。The beneficial effects achieved by the present invention: the authentication server generates a random number, and saves the random number as a challenge code corresponding to the dynamic token; the dynamic token obtains the random number generated by the authentication server, and generates a synchronization code according to the random number, The authentication server uses the challenge code corresponding to the dynamic token saved by itself to verify the synchronization code generated by the dynamic token, and updates the token offset saved by itself after the verification is passed, thereby improving the success rate of synchronization , to prevent malicious synchronization caused by using wrong or delayed synchronization codes.

附图说明Description of drawings

图1为本发明实施例中的一种动态令牌的同步方法流程图;Fig. 1 is a flow chart of a synchronization method of a dynamic token in an embodiment of the present invention;

图2为本发明实施例中的一种更新令牌偏移时间的方法流程图;Fig. 2 is a flow chart of a method for updating token offset time in an embodiment of the present invention;

图3为本发明实施例中的一种更新令牌偏移次数的方法流程图;Fig. 3 is a flow chart of a method for updating the number of token offsets in an embodiment of the present invention;

图4为本发明实施例中的一种动态令牌的同步系统的结构示意图;4 is a schematic structural diagram of a dynamic token synchronization system in an embodiment of the present invention;

图5为本发明实施例中的一种更新模块的结构示意图;FIG. 5 is a schematic structural diagram of an update module in an embodiment of the present invention;

图6为本发明实施例中的另一种更新模块的结构示意图。FIG. 6 is a schematic structural diagram of another update module in an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

如图1所示,为本发明实施例中的一种动态令牌的同步方法流程图,应用于包括认证服务器、主机和动态令牌的系统中,该方法包括以下步骤:As shown in Figure 1, it is a flowchart of a synchronization method of a dynamic token in an embodiment of the present invention, which is applied to a system including an authentication server, a host and a dynamic token, and the method includes the following steps:

步骤101,主机获取用户输入的动态令牌的序列号,根据动态令牌的序列号生成同步请求,将该同步请求发送给认证服务器。Step 101, the host obtains the serial number of the dynamic token input by the user, generates a synchronization request according to the serial number of the dynamic token, and sends the synchronization request to the authentication server.

其中,同步请求中可以包含动态令牌的序列号。Wherein, the serial number of the dynamic token may be included in the synchronization request.

例如,主机获取用户输入的动态令牌的序列号“5740000006”,根据动态令牌的序列号“5740000006”生成同步请求。For example, the host obtains the serial number "5740000006" of the dynamic token input by the user, and generates a synchronization request according to the serial number "5740000006" of the dynamic token.

步骤102,认证服务器从接收到的同步请求中获取动态令牌的序列号,生成随机数,将该随机数保存为与上述动态令牌的序列号对应的挑战码,并记录该随机数的生成时间,将该随机数的生成时间保存为与上述动态令牌的序列号对应的挑战码的生成时间,将该随机数返回给主机。Step 102, the authentication server obtains the serial number of the dynamic token from the received synchronization request, generates a random number, saves the random number as a challenge code corresponding to the serial number of the above-mentioned dynamic token, and records the generation of the random number Time, save the generation time of the random number as the generation time of the challenge code corresponding to the serial number of the dynamic token, and return the random number to the host.

例如,认证服务器获取动态令牌的序列号“5740000006”,生成随机数“1234”,将“1234”保存为与“5740000006”对应的挑战码,记录“1234”的生成时间“1390445039”(相当于自然时间2014年1月23日2时43分59秒),将“1390445039”保存为与“5740000006”对应的挑战码的生成时间,并向主机返回“1234”。For example, the authentication server obtains the serial number "5740000006" of the dynamic token, generates a random number "1234", saves "1234" as the challenge code corresponding to "5740000006", and records the generation time of "1234" as "1390445039" (equivalent to Natural time (2:43:59 on January 23, 2014), save "1390445039" as the generation time of the challenge code corresponding to "5740000006", and return "1234" to the host.

步骤103,主机对接收到的随机数进行显示。Step 103, the host computer displays the received random number.

例如,主机显示随机数“1234”。For example, the host displays the random number "1234".

步骤104,动态令牌获取用户输入的随机数,并根据该随机数以及动态令牌中的动态因子和种子密钥,生成应答码。Step 104, the dynamic token obtains the random number input by the user, and generates a response code according to the random number, the dynamic factor and the seed key in the dynamic token.

其中,动态令牌中的动态因子可以为时间因子;相应地,动态令牌可以使用自身保存的种子密钥,对动态令牌中的时间因子和用户输入的随机数进行数据处理,得到应答码。Wherein, the dynamic factor in the dynamic token can be a time factor; correspondingly, the dynamic token can use the seed key stored by itself to process the time factor in the dynamic token and the random number input by the user to obtain the response code .

动态令牌中的动态因子还可以为事件因子;相应地,动态令牌可以使用自身保存的种子密钥,对动态令牌中的事件因子和用户输入的随机数进行数据处理,得到应答码。The dynamic factor in the dynamic token can also be an event factor; correspondingly, the dynamic token can use the seed key stored by itself to perform data processing on the event factor in the dynamic token and the random number input by the user to obtain a response code.

本实施例中,用户输入的随机数可以为步骤102中认证服务器生成的随机数。In this embodiment, the random number input by the user may be the random number generated by the authentication server in step 102 .

例如,动态令牌获取到的用户输入的随机数为“1234”,动态令牌中的动态因子为时间因子“1390445154”(相当于自然时间2014年1月23日2时45分54秒),动态令牌根据该随机数“1234”、时间因子“1390445154”以及动态令牌保存的种子密钥“65201D80CB58ADE3DD236CAEF6925010”,生成应答码“4534”。For example, the random number input by the user acquired by the dynamic token is "1234", and the dynamic factor in the dynamic token is the time factor "1390445154" (equivalent to the natural time of January 23, 2014 at 2:45:54), The dynamic token generates a response code "4534" according to the random number "1234", the time factor "1390445154" and the seed key "65201D80CB58ADE3DD236CAEF6925010" stored in the dynamic token.

步骤105,动态令牌根据应答码和动态因子生成同步信息。Step 105, the dynamic token generates synchronization information according to the response code and the dynamic factor.

具体地,动态令牌可以对应答码和动态因子进行异或,将得到的异或结果与预设的密钥信息进行异或,得到同步信息;也可以根据预设数据和动态令牌中的种子密钥生成密钥信息,对应答码和动态因子进行异或,将得到的异或结果与上述密钥信息进行异或,得到同步信息;也可以从动态因子的最低位开始,选取预设长度的数据,将选取的数据与应答码进行异或,将得到的异或结果与预设的密钥信息进行异或,得到同步信息;还可以根据预设数据和动态令牌中的种子密钥生成密钥信息,从动态因子的最低位开始,选取预设长度的数据,将选取的数据与应答码进行异或,将得到的异或结果与上述密钥信息进行异或,得到同步信息。Specifically, the dynamic token can XOR the response code and the dynamic factor, and XOR the obtained XOR result with the preset key information to obtain synchronization information; it can also be based on the preset data and the dynamic token The seed key generates the key information, XORs the response code and the dynamic factor, XORs the obtained XOR result with the above key information, and obtains the synchronization information; it can also start from the lowest bit of the dynamic factor and select a preset Length of data, XOR the selected data with the response code, and XOR the obtained XOR result with the preset key information to obtain synchronization information; it can also be based on the preset data and the seed key in the dynamic token To generate the key information, start from the lowest bit of the dynamic factor, select the data of the preset length, XOR the selected data and the response code, XOR the obtained XOR result with the above key information, and obtain the synchronization information .

例如,预设长度为4位,动态因子为时间因子“1390445154”,应答码为“4534”,预设的密钥信息为“9453”时,动态令牌从时间因子“1390445154”中选取4位数据“5154”,将选取的数据“5154”与应答码“4534”进行异或,将得到的异或结果“6542”与密钥信息“9453”进行异或,得到同步信息“3564”。For example, when the preset length is 4 digits, the dynamic factor is the time factor "1390445154", the response code is "4534", and the preset key information is "9453", the dynamic token selects 4 digits from the time factor "1390445154" For the data "5154", XOR the selected data "5154" and the response code "4534", XOR the obtained XOR result "6542" with the key information "9453", and obtain the synchronization information "3564".

步骤106,动态令牌将同步信息和应答码组合成同步码,并对该同步码进行显示。Step 106, the dynamic token combines the synchronization information and the response code into a synchronization code, and displays the synchronization code.

其中,在组合得到的同步码中,应答码可以位于第一预设位置,同步信息可以位于第二预设位置。Wherein, in the combined synchronization code, the response code may be located at a first preset position, and the synchronization information may be located at a second preset position.

例如,动态令牌将应答码“4534”和同步信息“3564”组合成同步码“45343564”,并显示同步码“45343564”。For example, the dynamic token combines the response code "4534" and the synchronization information "3564" into the synchronization code "45343564", and displays the synchronization code "45343564".

步骤107,主机获取用户输入的同步码,根据该同步码和动态令牌的序列号生成同步执行请求,将该同步执行请求发送给认证服务器。Step 107, the host obtains the synchronization code input by the user, generates a synchronization execution request according to the synchronization code and the serial number of the dynamic token, and sends the synchronization execution request to the authentication server.

其中,同步执行请求中包含用户输入的同步码和动态令牌的序列号,用户输入的同步码可以是步骤106中动态令牌生成并显示的同步码。Wherein, the synchronization execution request includes the synchronization code input by the user and the serial number of the dynamic token, and the synchronization code input by the user may be the synchronization code generated and displayed by the dynamic token in step 106 .

例如,主机获取用户输入的同步码“45343564”,根据该同步码“45343564”和动态令牌的序列号“5740000006”生成同步执行请求,将该同步执行请求发送给认证服务器。For example, the host obtains the synchronization code "45343564" input by the user, generates a synchronization execution request according to the synchronization code "45343564" and the serial number "5740000006" of the dynamic token, and sends the synchronization execution request to the authentication server.

步骤108,认证服务器从接收到的同步执行请求中获取同步码和动态令牌的序列号,记录该同步码的获取时间,并根据动态令牌的序列号查询对应的挑战码的生成时间。Step 108, the authentication server obtains the synchronization code and the serial number of the dynamic token from the received synchronization execution request, records the acquisition time of the synchronization code, and queries the generation time of the corresponding challenge code according to the serial number of the dynamic token.

例如,认证服务器获取到同步码“45343564”和动态令牌的序列号“5740000006”,记录该同步码“45343564”的获取时间“1390445090”(相当于自然时间2014年1月23日2时44分50秒),并根据动态令牌的序列号“5740000006”,查询到对应的挑战码“1234”的生成时间“1390445039”(相当于自然时间2014年1月23日2时43分59秒)。For example, the authentication server obtains the synchronization code "45343564" and the serial number of the dynamic token "5740000006", and records the acquisition time of the synchronization code "45343564" as "1390445090" (equivalent to the natural time at 2:44 on January 23, 2014 50 seconds), and according to the serial number "5740000006" of the dynamic token, the generation time "1390445039" of the corresponding challenge code "1234" was queried (equivalent to 2:43:59 on January 23, 2014, natural time).

步骤109,认证服务器判断同步码的获取时间是否在挑战码的生成时间之后的第一预设时长内,如果是,则执行步骤112;否则,执行步骤110。Step 109 , the authentication server judges whether the acquisition time of the synchronization code is within the first preset time period after the generation time of the challenge code, if yes, execute step 112 ; otherwise, execute step 110 .

例如,第一预设时长为60秒,同步码的获取时间为“1390445090”(相当于自然时间2014年1月23日2时44分50秒),挑战码的生成时间为“1390445039”(相当于自然时间2014年1月23日2时43分59秒)时,认证服务器获取到同步码的获取时间和挑战码的生成时间之间的时间间隔为51秒,该时间间隔小于第一预设时长,进而判断出同步码的获取时间在挑战码的生成时间之后的第一预设时长内。For example, the first preset duration is 60 seconds, the acquisition time of the synchronization code is "1390445090" (equivalent to 2:44:50 on January 23, 2014 in natural time), and the generation time of the challenge code is "1390445039" (equivalent to At natural time (2:43:59 on January 23, 2014), the time interval between the acquisition time of the synchronization code and the generation time of the challenge code obtained by the authentication server is 51 seconds, which is less than the first preset The duration, and then it is determined that the acquisition time of the synchronization code is within the first preset duration after the generation time of the challenge code.

步骤110,认证服务器向主机发送同步失败消息。Step 110, the authentication server sends a synchronization failure message to the host.

步骤111,主机显示同步失败信息,结束流程。In step 111, the host computer displays a synchronization failure message and ends the process.

步骤112,认证服务器从同步码中获取应答码和同步信息,根据动态令牌的序列号查询与该动态令牌对应的种子密钥和挑战码。Step 112, the authentication server obtains the response code and synchronization information from the synchronization code, and queries the seed key and challenge code corresponding to the dynamic token according to the serial number of the dynamic token.

具体地,认证服务器可以从同步码的第一预设位置获取应答码,从同步码的第二预设位置获取同步信息。认证服务器根据动态令牌的序列号查询到的种子密钥可以与该动态令牌保存的种子密钥相同。Specifically, the authentication server may acquire the response code from the first preset position of the synchronization code, and acquire the synchronization information from the second preset position of the synchronization code. The seed key queried by the authentication server according to the serial number of the dynamic token may be the same as the seed key stored in the dynamic token.

例如,认证服务器从同步码“45343564”中获取应答码“4534”和同步信息“3564”,根据动态令牌的序列号“5740000006”查询到对应的种子密钥“65201D80CB58ADE3DD236CAEF6925010”和挑战码“1234”。For example, the authentication server obtains the response code "4534" and the synchronization information "3564" from the synchronization code "45343564", and queries the corresponding seed key "65201D80CB58ADE3DD236CAEF6925010" and the challenge code "1234" according to the serial number "5740000006" of the dynamic token .

步骤113,认证服务器使用查询到的种子密钥和挑战码,以及从同步码中获取的同步信息,对从同步码中获取的应答码进行验证,如果验证通过,则执行步骤114;否则,返回步骤110。Step 113, the authentication server uses the queried seed key and challenge code, and the synchronization information obtained from the synchronization code to verify the response code obtained from the synchronization code, if the verification is passed, then execute step 114; otherwise, return Step 110.

具体地,认证服务器可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态因子,根据查询到的种子密钥和挑战码,按照与动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从同步码中获取的应答码相同,如果是,则确认获取的应答码验证通过;否则,确定获取的应答码验证未通过。Specifically, the authentication server can XOR the queried seed key with the preset data, XOR the obtained key information with the synchronization information obtained from the synchronization code, and use the obtained XOR result as a dynamic factor, According to the queried seed key and challenge code, generate a response code in the same way as the dynamic token generation response code, and judge whether the generated response code is the same as the response code obtained from the synchronization code, and if so, confirm The obtained response code has passed the verification; otherwise, it is determined that the obtained response code has not passed the verification.

认证服务器也可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中的动态因子中最低位的预设长度的数据,将替换后得到的数据作为动态因子,根据查询到的种子密钥和挑战码,按照与动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从同步码中获取的应答码相同,如果是,则确认获取的应答码验证通过;否则,确定获取的应答码验证未通过。The authentication server can also XOR the queried seed key with the preset data, XOR the obtained key information with the synchronization information obtained from the synchronization code, and replace the dynamic The data of the preset length of the lowest bit in the factor, the data obtained after replacement is used as the dynamic factor, according to the queried seed key and challenge code, the response code is generated in the same way as the response code generated by the dynamic token, and judged Whether the generated response code is the same as the response code obtained from the synchronization code, if yes, confirm that the obtained response code has passed the verification; otherwise, determine that the obtained response code has not passed the verification.

认证服务器也可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态因子,根据查询到的种子密钥和挑战码,按照与动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从同步码中获取的应答码相同,如果是,则确认获取的应答码验证通过;否则,确定获取的应答码验证未通过。The authentication server can also XOR the preset key information with the synchronization information obtained from the synchronization code, and use the obtained XOR result as a dynamic factor, according to the queried seed key and challenge code, according to the dynamic token Generate the same method as the response code, generate the response code, and judge whether the generated response code is the same as the response code obtained from the synchronization code, if yes, confirm that the obtained response code is verified; otherwise, determine that the obtained response code is not verified pass.

认证服务器还可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中的动态因子中最低位的预设长度的数据,将替换后得到的数据作为动态因子,根据查询到的种子密钥和挑战码,按照与动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从同步码中获取的应答码相同,如果是,则确认获取的应答码验证通过;否则,确定获取的应答码验证未通过。其中,认证服务器中的动态因子可以是时间因子,也可以是事件因子。The authentication server can also XOR the preset key information with the synchronization information obtained from the synchronization code, replace the obtained XOR result with the data of the lowest bit preset length in the dynamic factor in the authentication server, and replace the The obtained data is used as a dynamic factor. According to the queried seed key and challenge code, the response code is generated in the same way as the response code generated by the dynamic token, and it is judged whether the generated response code is consistent with the response code obtained from the synchronization code. Same, if yes, then confirm that the obtained response code has passed the verification; otherwise, determine that the obtained response code has not passed the verification. Wherein, the dynamic factor in the authentication server may be a time factor or an event factor.

例如,预设长度为4位,认证服务器查询到的种子密钥为“65201D80CB58ADE3DD236CAEF6925010”,挑战码为“1234”,密钥信息为“9453”,认证服务器从同步码“45343564”中获取到应答码“4534”和同步信息“3564”,认证服务器中的动态因子为时间因子“1390445090”(相当于自然时间2014年1月23日2时44分50秒)时,认证服务器将预设的密钥信息“9453”和同步信息“3564”进行异或,将得到的异或结果“5154”替换认证服务器中的动态因子“1390445090”的最低4位,将替换得到的数据“1390445154”作为动态因子,根据查询到的种子密钥“65201D80CB58ADE3DD236CAEF6925010”和挑战码“1234”,按照与动态令牌生成应答码相同的方法,在预设的认证窗口中生成多个应答码,并判断出生成的应答码中包含与从同步码中获取的应答码“4534”相同的应答码,确定获取的应答码“4534”验证通过。For example, the default length is 4 digits, the seed key queried by the authentication server is "65201D80CB58ADE3DD236CAEF6925010", the challenge code is "1234", the key information is "9453", and the authentication server obtains the response code from the synchronization code "45343564" "4534" and synchronization information "3564", when the dynamic factor in the authentication server is the time factor "1390445090" (equivalent to natural time at 2:44:50 on January 23, 2014), the authentication server will use the preset key XOR the information "9453" and the synchronous information "3564", replace the lowest 4 digits of the dynamic factor "1390445090" in the authentication server with the XOR result "5154", and use the replaced data "1390445154" as the dynamic factor, According to the queried seed key "65201D80CB58ADE3DD236CAEF6925010" and the challenge code "1234", generate multiple response codes in the preset authentication window in the same way as dynamic token generation response codes, and determine which of the generated response codes It contains the same response code as the response code "4534" obtained from the synchronization code, and it is determined that the obtained response code "4534" passes the verification.

步骤114,认证服务器根据从同步码中获取的同步信息以及认证服务器中的动态因子,更新认证服务器中与动态令牌对应的令牌偏移量,向主机发送同步成功消息,主机显示同步成功信息,结束流程。Step 114, the authentication server updates the token offset corresponding to the dynamic token in the authentication server according to the synchronization information obtained from the synchronization code and the dynamic factor in the authentication server, and sends a synchronization success message to the host, and the host displays the synchronization success information , to end the process.

具体地,动态令牌为时间型动态令牌时,动态因子为时间因子,认证服务器中的令牌偏移量为令牌偏移时间,认证服务器根据令牌偏移时间对动态令牌生成的动态口令进行认证,并在认证成功后,将与该动态口令匹配的时间因子的取值保存为与该动态令牌对应的认证成功时间。Specifically, when the dynamic token is a time-type dynamic token, the dynamic factor is the time factor, the token offset in the authentication server is the token offset time, and the authentication server generates the dynamic token according to the token offset time. The dynamic password is authenticated, and after the authentication is successful, the value of the time factor matching the dynamic password is saved as the authentication success time corresponding to the dynamic token.

相应地,上述步骤114中,认证服务器更新令牌偏移量的操作,具体为认证服务器更新令牌偏移时间的操作,如图2所示,包括以下步骤:Correspondingly, in the above step 114, the operation of the authentication server to update the token offset, specifically the operation of the authentication server to update the token offset time, as shown in Figure 2, includes the following steps:

步骤201,认证服务器判断动态令牌中的时间因子是否大于与动态令牌对应的、最近一次的认证成功时间,如果是,则执行步骤204;否则,执行步骤202。Step 201 , the authentication server judges whether the time factor in the dynamic token is greater than the latest authentication success time corresponding to the dynamic token, if yes, execute step 204 ; otherwise, execute step 202 .

具体地,认证服务器可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌中的时间因子,判断动态令牌中的时间因子是否大于与动态令牌对应的、最近一次的认证成功时间;认证服务器也可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌中的时间因子,判断动态令牌中的时间因子是否大于与动态令牌对应的、最近一次的认证成功时间;认证服务器也可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌中的时间因子,判断动态令牌中的时间因子是否大于与动态令牌对应的、最近一次的认证成功时间;认证服务器还可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌中的时间因子,判断动态令牌中的时间因子是否大于与动态令牌对应的、最近一次的认证成功时间。Specifically, the authentication server can XOR the queried seed key with the preset data, XOR the obtained key information with the synchronization information obtained from the synchronization code, and use the XOR result obtained as a dynamic token The time factor in the dynamic token determines whether the time factor in the dynamic token is greater than the latest authentication success time corresponding to the dynamic token; the authentication server can also XOR the queried seed key with the preset data, and will get XOR the key information obtained from the synchronization code and the synchronization information obtained from the synchronization code, replace the obtained XOR result with the data of the lowest bit of the preset length in the time factor in the authentication server, and use the replaced data as a dynamic token The time factor in the dynamic token determines whether the time factor in the dynamic token is greater than the latest authentication success time corresponding to the dynamic token; the authentication server can also compare the preset key information with the synchronization information obtained from the synchronization code Exclusive OR, use the obtained XOR result as the time factor in the dynamic token, and judge whether the time factor in the dynamic token is greater than the latest authentication success time corresponding to the dynamic token; the authentication server can also use the preset The key information is XORed with the synchronization information obtained from the synchronization code, and the obtained XOR result is replaced with the data of the lowest digit of the preset length in the time factor in the authentication server, and the replaced data is used as the data in the dynamic token The time factor of the dynamic token is used to determine whether the time factor in the dynamic token is greater than the latest successful authentication time corresponding to the dynamic token.

例如,动态令牌对应的、最近一次的认证成功时间为“1390440765”(相当于自然时间2014年1月23日1时32分45秒),认证服务器从同步码“45343564”中获取到应答码“4534”和同步信息“3564”,认证服务器中的时间因子为“1390445090”(相当于自然时间2014年1月23日2时44分50秒)时,认证服务器将预设的密钥信息“9453”和同步信息“3564”进行异或,将得到的异或结果“5154”替换认证服务器中的时间因子“1390445090”的最低4位,将替换得到的数据“1390445154”作为动态令牌中的时间因子,判断出动态令牌中的时间因子大于与动态令牌对应的、最近一次的认证成功时间。For example, the latest successful authentication time corresponding to the dynamic token is "1390440765" (equivalent to 1:32:45 on January 23, 2014 in natural time), and the authentication server obtains the response code from the synchronization code "45343564" "4534" and synchronization information "3564", when the time factor in the authentication server is "1390445090" (equivalent to 2:44:50 on January 23, 2014 in natural time), the authentication server will set the preset key information " 9453" and the synchronization information "3564" are XORed, and the XOR result "5154" is replaced by the lowest 4 digits of the time factor "1390445090" in the authentication server, and the replaced data "1390445154" is used as the dynamic token A time factor, judging that the time factor in the dynamic token is greater than the latest successful authentication time corresponding to the dynamic token.

步骤202,认证服务器向主机发送同步失败消息。Step 202, the authentication server sends a synchronization failure message to the host.

步骤203,主机显示同步失败信息,结束流程。In step 203, the host displays a synchronization failure message and ends the process.

步骤204,认证服务器获取当前系统时间与自身保存的、与动态令牌对应的最近一次的同步时间之间的差值,根据该差值和第一预设步长计算第一偏移阈值。In step 204, the authentication server obtains the difference between the current system time and the latest synchronization time stored by itself and corresponding to the dynamic token, and calculates the first offset threshold according to the difference and the first preset step.

具体地,认证服务器可以获取当前系统时间与动态令牌对应的最近一次的同步时间之间的差值,将该差值与第一预设步长的乘积作为第一偏移阈值。Specifically, the authentication server may obtain the difference between the current system time and the latest synchronization time corresponding to the dynamic token, and use the product of the difference and the first preset step as the first offset threshold.

例如,当前系统时间为“1390445090”(相当于自然时间2014年1月23日2时44分50秒),第一预设步长为0.00001,认证服务器保存的、与动态令牌对应的最近一次的同步时间为“1380445090”(相当于自然时间2013年9月29日16时58分10秒)时,认证服务器可以获取当前系统时间与动态令牌对应的最近一次的同步时间之间的差值为1390445090-1380445090=10000000,第一偏移阈值为该差值与第一预设步长之间的乘积,即10000000*0.00001=100。For example, the current system time is "1390445090" (equivalent to natural time at 2:44:50 on January 23, 2014), the first preset step size is 0.00001, and the latest time stored by the authentication server corresponding to the dynamic token When the synchronization time is "1380445090" (equivalent to 16:58:10 on September 29, 2013), the authentication server can obtain the difference between the current system time and the latest synchronization time corresponding to the dynamic token is 1390445090-1380445090=10000000, and the first offset threshold is the product of the difference and the first preset step size, that is, 10000000*0.00001=100.

步骤205,认证服务器判断动态令牌中的时间因子与认证服务器中的时间因子之间的时间差值是否大于第一偏移阈值,如果是,则执行步骤207;否则,执行步骤206。Step 205, the authentication server judges whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold, if yes, execute step 207; otherwise, execute step 206.

具体地,认证服务器可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌中的时间因子,判断动态令牌中的时间因子与认证服务器中的时间因子之间的时间差值是否大于第一偏移阈值;也可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌中的时间因子,判断动态令牌中的时间因子与认证服务器中的时间因子之间的时间差值是否大于第一偏移阈值;也可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌中的时间因子,判断动态令牌中的时间因子与认证服务器中的时间因子之间的时间差值是否大于第一偏移阈值;还可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌中的时间因子,判断动态令牌中的时间因子与认证服务器中的时间因子之间的时间差值是否大于第一偏移阈值。Specifically, the authentication server can XOR the queried seed key with the preset data, XOR the obtained key information with the synchronization information obtained from the synchronization code, and use the XOR result obtained as a dynamic token The time factor in the dynamic token is used to determine whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold; the queried seed key can also be XORed with the preset data , XOR the obtained key information with the synchronization information obtained from the synchronization code, replace the obtained XOR result with the data of the lowest bit of the preset length in the time factor in the authentication server, and use the replaced data as The time factor in the dynamic token determines whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold; it is also possible to combine the preset key information with the synchronization code XOR the synchronous information acquired in , use the XOR result as the time factor in the dynamic token, and judge whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset The threshold can also be shifted; the preset key information can also be XORed with the synchronization information obtained from the synchronization code, and the obtained XOR result will replace the data of the lowest bit of the preset length in the time factor in the authentication server. The obtained data is used as the time factor in the dynamic token, and it is judged whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold.

例如,预设长度为4位,密钥信息为“9453”,认证服务器从同步码“45343564”中获取到的同步信息为“3564”,认证服务器中的时间因子为“1390445090”,第一偏移阈值为“100”时,认证服务器将密钥信息“9453”和同步信息“3564”进行异或,将得到的异或结果“5154”替换认证服务器中的时间因子“1390445090”的最低4位,将替换得到的数据“1390445154”作为动态令牌中的时间因子,并判断出动态令牌中的时间因子“1390445154”与认证服务器中的时间因子“1390445090”之间的时间差值“64”小于第一偏移阈值“100”。For example, the preset length is 4 bits, the key information is "9453", the synchronization information obtained by the authentication server from the synchronization code "45343564" is "3564", the time factor in the authentication server is "1390445090", the first bias When the shift threshold is "100", the authentication server performs XOR of the key information "9453" and the synchronization information "3564", and replaces the lowest 4 bits of the time factor "1390445090" in the authentication server with the obtained XOR result "5154" , use the replaced data "1390445154" as the time factor in the dynamic token, and determine the time difference "64" between the time factor "1390445154" in the dynamic token and the time factor "1390445090" in the authentication server Less than the first offset threshold "100".

步骤206,认证服务器根据时间差值更新自身保存的、与动态令牌对应的令牌偏移时间,并将当前系统时间保存为与该动态令牌对应的同步时间,结束流程。Step 206, the authentication server updates the token offset time corresponding to the dynamic token stored by itself according to the time difference, and saves the current system time as the synchronization time corresponding to the dynamic token, and ends the process.

例如,当前系统时间为“1390445090”(相当于自然时间2014年1月23日2时44分50秒),时间差值为“64”时,认证服务器将自身保存的、与动态令牌对应的令牌偏移时间更新为“64”,将“1390445090”(相当于自然时间2014年1月23日2时44分50秒)作为与动态令牌对应的同步时间进行保存。For example, when the current system time is "1390445090" (equivalent to natural time at 2:44:50 on January 23, 2014), and the time difference is "64", the authentication server saves the The token offset time is updated to "64", and "1390445090" (equivalent to 2:44:50 on January 23, 2014, natural time) is saved as the synchronization time corresponding to the dynamic token.

步骤207,认证服务器判断当前系统时间与动态令牌对应的最近一次的同步时间之间的差值,是否大于第二预设时长,如果是,则返回步骤206;否则,返回步骤202。Step 207, the authentication server judges whether the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than the second preset duration, if yes, returns to step 206; otherwise, returns to step 202.

例如,第二预设时长为“20000000”,当前系统时间为“1390445090”(相当于自然时间2014年1月23日2时44分50秒),认证服务器保存的、与动态令牌对应的最近一次的同步时间为“1380445090”(相当于自然时间2013年9月29日16时58分10秒)时,认证服务器计算出当前系统时间与动态令牌对应的最近一次的同步时间之间的差值为1390445090-1380445090=10000000,进而判断出计算得到的差值“10000000”小于第二预设时长“20000000”。For example, the second preset duration is "20000000", the current system time is "1390445090" (equivalent to natural time at 2:44:50 on January 23, 2014), and the latest password corresponding to the dynamic token saved by the authentication server When the synchronization time is "1380445090" (equivalent to 16:58:10 on September 29, 2013), the authentication server calculates the difference between the current system time and the latest synchronization time corresponding to the dynamic token The value is 1390445090-1380445090=10000000, and then it is determined that the calculated difference "10000000" is less than the second preset duration "20000000".

需要说明的是,本发明实施例中的动态令牌为事件型动态令牌时,动态因子为事件因子,令牌偏移量为令牌偏移次数,认证服务器根据令牌偏移次数对动态令牌生成的动态口令进行认证,并在认证成功后,将与该动态口令匹配的事件因子的取值保存为与该动态令牌对应的认证成功次数。It should be noted that when the dynamic token in the embodiment of the present invention is an event-type dynamic token, the dynamic factor is the event factor, the token offset is the number of token offsets, and the authentication server calculates the dynamic The dynamic password generated by the token is authenticated, and after the authentication is successful, the value of the event factor matching the dynamic password is saved as the number of successful authentications corresponding to the dynamic token.

相应地,上述实施例的步骤114中,认证服务器更新令牌偏移量的操作,具体为认证服务器更新令牌偏移次数的操作,如图3所示,包括以下步骤:Correspondingly, in step 114 of the above-mentioned embodiment, the operation of the authentication server to update the token offset, specifically the operation of the authentication server to update the number of token offsets, as shown in FIG. 3 , includes the following steps:

步骤301,认证服务器判断动态令牌中的事件因子是否大于与动态令牌对应的、最近一次的认证成功次数,如果是,则执行步骤304;否则,执行步骤302。Step 301 , the authentication server judges whether the event factor in the dynamic token is greater than the latest number of authentication successes corresponding to the dynamic token, and if yes, executes step 304 ; otherwise, executes step 302 .

具体地,认证服务器可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌中的事件因子,判断动态令牌中的事件因子是否大于与动态令牌对应的、最近一次的认证成功次数;认证服务器也可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中与该动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌中的事件因子,判断动态令牌中的事件因子是否大于与动态令牌对应的、最近一次的认证成功次数;认证服务器也可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌中的事件因子,判断动态令牌中的事件因子是否大于与动态令牌对应的、最近一次的认证成功次数;认证服务器还可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中与该动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌中的事件因子,判断动态令牌中的事件因子是否大于与动态令牌对应的、最近一次的认证成功次数。Specifically, the authentication server can XOR the queried seed key with the preset data, XOR the obtained key information with the synchronization information obtained from the synchronization code, and use the XOR result obtained as a dynamic token The event factor in the dynamic token determines whether the event factor in the dynamic token is greater than the latest number of successful authentications corresponding to the dynamic token; the authentication server can also XOR the queried seed key with the preset data, and will get XOR the key information obtained from the synchronization code and the synchronization information obtained from the synchronization code, replace the obtained XOR result with the data of the lowest bit preset length in the event factor corresponding to the dynamic token in the authentication server, and obtain The data in the dynamic token is used as the event factor in the dynamic token to determine whether the event factor in the dynamic token is greater than the latest number of successful authentications corresponding to the dynamic token; the authentication server can also combine the preset key information with the synchronization code XOR the synchronous information obtained in , use the XOR result as the event factor in the dynamic token, and judge whether the event factor in the dynamic token is greater than the latest number of successful authentications corresponding to the dynamic token; the authentication server It is also possible to XOR the preset key information and the synchronization information obtained from the synchronization code, and replace the obtained XOR result with the data of the lowest bit preset length in the event factor corresponding to the dynamic token in the authentication server , using the data obtained after replacement as the event factor in the dynamic token, and judging whether the event factor in the dynamic token is greater than the latest number of successful authentications corresponding to the dynamic token.

例如,动态令牌对应的、最近一次的认证成功次数为“440765”,认证服务器从同步码“45343564”中获取到应答码“4534”和同步信息“3564”,认证服务器中与该动态令牌对应的事件因子为“445090”时,认证服务器将预设的密钥信息“9453”和同步信息“3564”进行异或,将得到的异或结果“5154”替换认证服务器中与该动态令牌对应的事件因子“445090”的最低4位,将替换得到的数据“445154”作为动态令牌中的事件因子,判断出动态令牌中的事件因子大于与动态令牌对应的、最近一次的认证成功次数。For example, the latest number of successful authentications corresponding to the dynamic token is "440765", and the authentication server obtains the response code "4534" and the synchronization information "3564" from the synchronization code "45343564". When the corresponding event factor is "445090", the authentication server XORs the preset key information "9453" and the synchronization information "3564", and replaces the XOR result "5154" in the authentication server with the dynamic token The lowest 4 digits of the corresponding event factor "445090", use the replaced data "445154" as the event factor in the dynamic token, and judge that the event factor in the dynamic token is greater than the latest authentication corresponding to the dynamic token number of successes.

步骤302,认证服务器向主机发送同步失败消息。Step 302, the authentication server sends a synchronization failure message to the host.

步骤303,主机显示同步失败信息,结束流程。In step 303, the host displays a synchronization failure message and ends the process.

步骤304,认证服务器获取当前系统时间与自身保存的、与动态令牌对应的最近一次的同步时间之间的差值,根据该差值和第二预设步长计算第二偏移阈值。Step 304, the authentication server acquires the difference between the current system time and the latest synchronization time stored by itself and corresponding to the dynamic token, and calculates a second offset threshold according to the difference and the second preset step.

具体地,认证服务器可以获取当前系统时间与动态令牌对应的最近一次的同步时间之间的差值,将该差值与第二预设步长的乘积作为第二偏移阈值。Specifically, the authentication server may obtain the difference between the current system time and the latest synchronization time corresponding to the dynamic token, and use the product of the difference and the second preset step as the second offset threshold.

例如,当前系统时间为“1390445090”(相当于自然时间2014年1月23日2时44分50秒),第二预设步长为0.00001,认证服务器保存的、与动态令牌对应的最近一次的同步时间为“1380445090”(相当于自然时间2013年9月29日16时58分10秒)时,认证服务器可以获取当前系统时间与动态令牌对应的最近一次的同步时间之间的差值为1390445090-1380445090=10000000,第二偏移阈值为该差值与第二预设步长之间的乘积,即10000000*0.00001=100。For example, the current system time is "1390445090" (equivalent to natural time at 2:44:50 on January 23, 2014), the second preset step size is 0.00001, and the latest time stored by the authentication server corresponding to the dynamic token When the synchronization time is "1380445090" (equivalent to 16:58:10 on September 29, 2013), the authentication server can obtain the difference between the current system time and the latest synchronization time corresponding to the dynamic token is 1390445090-1380445090=10000000, and the second offset threshold is the product of the difference and the second preset step size, that is, 10000000*0.00001=100.

步骤305,认证服务器判断动态令牌中的事件因子与认证服务器中与动态令牌对应的事件因子之间的次数差值是否大于第二偏移阈值,如果是,则执行步骤307;否则,执行步骤306。Step 305, the authentication server judges whether the difference in the number of times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is greater than the second offset threshold, if yes, execute step 307; otherwise, execute Step 306.

具体地,认证服务器可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌中的事件因子,判断动态令牌中的事件因子与认证服务器中与该动态令牌对应的事件因子之间的次数差值是否大于第二偏移阈值;也可以将查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中与该动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌中的事件因子,判断动态令牌中的事件因子与认证服务器中与该动态令牌对应的事件因子之间的次数差值是否大于第二偏移阈值;也可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌中的事件因子,判断动态令牌中的事件因子与认证服务器中与该动态令牌对应的事件因子之间的次数差值是否大于第二偏移阈值;还可以将预设的密钥信息与从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器中与该动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌中的事件因子,判断动态令牌中的事件因子与认证服务器中与该动态令牌对应的事件因子之间的次数差值是否大于第二偏移阈值。Specifically, the authentication server can XOR the queried seed key with the preset data, XOR the obtained key information with the synchronization information obtained from the synchronization code, and use the XOR result obtained as a dynamic token The event factor in the dynamic token is used to judge whether the difference between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is greater than the second offset threshold; XOR the preset data, XOR the obtained key information with the synchronization information obtained from the synchronization code, replace the obtained XOR result with the lowest preset value in the event factor corresponding to the dynamic token in the authentication server. Set the length of the data, use the replaced data as the event factor in the dynamic token, and judge whether the difference between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is greater than the first Two offset thresholds; it is also possible to XOR the preset key information and the synchronization information obtained from the synchronization code, and use the obtained XOR result as the event factor in the dynamic token to judge the event factor in the dynamic token and whether the number of times difference between the event factor corresponding to the dynamic token in the authentication server is greater than the second offset threshold; the preset key information can also be XORed with the synchronization information obtained from the synchronization code, and the The obtained XOR result replaces the data of the lowest bit preset length in the event factor corresponding to the dynamic token in the authentication server, and uses the replaced data as the event factor in the dynamic token to judge the event in the dynamic token Whether the time difference between the factor and the event factor corresponding to the dynamic token in the authentication server is greater than the second offset threshold.

例如,密钥信息为“9453”,认证服务器从同步码“45343564”中获取到的同步信息为“3564”,认证服务器中与动态令牌对应的事件因子为“445090”,第二偏移阈值为“100”,则认证服务器将密钥信息“9453”和同步信息“3564”进行异或,将得到的异或结果“5154”替换认证服务器中与动态令牌对应的事件因子“445090”的最低4位,将替换得到的数据“445154”作为动态令牌中的事件因子,并判断出动态令牌中的事件因子“445154”与认证服务器中与该动态令牌对应的事件因子“445090”之间的次数差值“64”小于第二偏移阈值“100”。For example, the key information is "9453", the synchronization information obtained by the authentication server from the synchronization code "45343564" is "3564", the event factor corresponding to the dynamic token in the authentication server is "445090", the second offset threshold If it is "100", the authentication server will XOR the key information "9453" and the synchronization information "3564", and replace the obtained XOR result "5154" with the event factor "445090" corresponding to the dynamic token in the authentication server The lowest 4 bits, use the replaced data "445154" as the event factor in the dynamic token, and judge the event factor "445154" in the dynamic token and the event factor "445090" corresponding to the dynamic token in the authentication server The number difference "64" between them is smaller than the second offset threshold "100".

步骤306,认证服务器根据次数差值更新自身保存的、与动态令牌对应的令牌偏移次数,并将当前系统时间保存为与该动态令牌对应的同步时间,结束流程。Step 306 , the authentication server updates the stored token offset times corresponding to the dynamic token according to the difference in times, and saves the current system time as the synchronization time corresponding to the dynamic token, and ends the process.

例如,当前系统时间为“1390445090”(相当于自然时间2014年1月23日2时44分50秒),次数差值为“64”时,认证服务器将自身保存的、与动态令牌对应的令牌偏移次数更新为“64”,将“1390445090”(相当于自然时间2014年1月23日2时44分50秒)作为与动态令牌对应的同步时间进行保存。For example, when the current system time is "1390445090" (equivalent to 2:44:50 on January 23, 2014 in natural time), and the time difference is "64", the authentication server saves the dynamic token corresponding to The number of token offsets is updated to "64", and "1390445090" (equivalent to 2:44:50 on January 23, 2014, natural time) is saved as the synchronization time corresponding to the dynamic token.

步骤307,认证服务器判断当前系统时间与动态令牌对应的最近一次的同步时间之间的差值,是否大于第三预设时长,如果是,则返回步骤306;否则,返回步骤302。Step 307, the authentication server judges whether the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than the third preset duration, if yes, returns to step 306; otherwise, returns to step 302.

例如,第三预设时长为“20000000”,当前系统时间为“1390445090”(相当于自然时间2014年1月23日2时44分50秒),认证服务器保存的、与动态令牌对应的最近一次的同步时间为“1380445090”(相当于自然时间2013年9月29日16时58分10秒)时,认证服务器计算出当前系统时间与动态令牌对应的最近一次的同步时间之间的差值为1390445090-1380445090=10000000,进而判断出计算得到的差值“10000000”小于第三预设时长“20000000”。For example, the third preset duration is "20000000", the current system time is "1390445090" (equivalent to natural time at 2:44:50 on January 23, 2014), and the latest password corresponding to the dynamic token saved by the authentication server When the synchronization time is "1380445090" (equivalent to 16:58:10 on September 29, 2013), the authentication server calculates the difference between the current system time and the latest synchronization time corresponding to the dynamic token The value is 1390445090-1380445090=10000000, and then it is determined that the calculated difference "10000000" is less than the third preset duration "20000000".

本发明实施例中,认证服务器生成随机数,并将该随机数保存为与动态令牌对应的挑战码;动态令牌获取认证服务器生成的随机数,并根据该随机数生成一个同步码,认证服务器通过比较与动态令牌对应的挑战码的生成时间和同步码的获取时间,对动态令牌生成的同步码的有效性进行判断,并使用自身生成的挑战码,对同步码进行验证,在验证通过后对自身保存的令牌偏移量进行更新,从而提高了同步的成功率,防止由于使用错误的或者延迟的同步码而造成的恶意同步。In the embodiment of the present invention, the authentication server generates a random number, and saves the random number as a challenge code corresponding to the dynamic token; the dynamic token obtains the random number generated by the authentication server, and generates a synchronization code based on the random number, and the authentication The server judges the validity of the synchronization code generated by the dynamic token by comparing the generation time of the challenge code corresponding to the dynamic token with the acquisition time of the synchronization code, and uses the challenge code generated by itself to verify the synchronization code. After the verification is passed, the token offset saved by itself is updated, thereby improving the success rate of synchronization and preventing malicious synchronization caused by using wrong or delayed synchronization codes.

需要说明的是,在本发明的其他实施方式中,第一偏移阈值也可以为第一预设值,第二偏移阈值也可以为第二预设值,同样可以实现本发明的发明目的。It should be noted that, in other embodiments of the present invention, the first offset threshold can also be the first preset value, and the second offset threshold can also be the second preset value, which can also achieve the purpose of the present invention .

如图4所示,为本发明实施例中的一种动态令牌的同步系统的结构示意图,包括动态令牌400、主机600和认证服务器500;As shown in Figure 4, it is a schematic structural diagram of a dynamic token synchronization system in an embodiment of the present invention, including a dynamic token 400, a host 600 and an authentication server 500;

其中,动态令牌400包括:Among them, the dynamic token 400 includes:

第一获取模块410,用于获取认证服务器500生成的随机数;The first acquiring module 410 is configured to acquire the random number generated by the authentication server 500;

第一生成模块420,用于根据第一获取模块410获取到的随机数以及动态令牌400中的动态因子和种子密钥,生成应答码;The first generating module 420 is used to generate a response code according to the random number obtained by the first obtaining module 410 and the dynamic factor and the seed key in the dynamic token 400;

第二生成模块430,用于根据第一生成模块420生成的应答码和动态令牌400中的动态因子生成同步信息;The second generation module 430 is used to generate synchronization information according to the response code generated by the first generation module 420 and the dynamic factor in the dynamic token 400;

组合模块440,用于将第二生成模块430生成的同步信息和第一生成模块420生成的应答码组合成同步码;A combination module 440, configured to combine the synchronization information generated by the second generation module 430 and the response code generated by the first generation module 420 into a synchronization code;

显示模块450,用于对组合模块440组合得到的同步码进行显示;The display module 450 is used to display the synchronization code obtained by combining the combination module 440;

认证服务器500,包括:Authentication server 500, including:

接收模块510,用于接收来自主机600的同步请求;A receiving module 510, configured to receive a synchronization request from the host 600;

第二获取模块520,用于从接收模块510接收到的同步请求中获取动态令牌400的序列号;The second acquiring module 520 is configured to acquire the serial number of the dynamic token 400 from the synchronization request received by the receiving module 510;

第三生成模块530,用于在接收模块510接收到同步请求之后,生成随机数,将该随机数保存为与第二获取模块520获取到的动态令牌400的序列号对应的挑战码;The third generating module 530 is configured to generate a random number after the receiving module 510 receives the synchronization request, and save the random number as a challenge code corresponding to the serial number of the dynamic token 400 obtained by the second obtaining module 520;

第三获取模块540,用于获取动态令牌400生成的同步码和动态令牌400的序列号;The third acquisition module 540 is used to acquire the synchronization code generated by the dynamic token 400 and the serial number of the dynamic token 400;

第四获取模块550,用于从第三获取模块540获取到的同步码中获取应答码和同步信息;The fourth obtaining module 550 is configured to obtain the response code and synchronization information from the synchronization code obtained by the third obtaining module 540;

查询模块560,用于根据第三获取模块540获取到的动态令牌400的序列号查询与动态令牌400对应的种子密钥和挑战码;The query module 560 is used to query the seed key and challenge code corresponding to the dynamic token 400 according to the serial number of the dynamic token 400 obtained by the third obtaining module 540;

验证模块570,用于使用查询模块560查询到的种子密钥和挑战码,以及第四获取模块550从同步码中获取的同步信息,对从同步码中获取的应答码进行验证;The verification module 570 is used to verify the response code obtained from the synchronization code by using the seed key and the challenge code queried by the query module 560, and the synchronization information obtained from the synchronization code by the fourth obtaining module 550;

更新模块580,用于在验证模块570对应答码验证通过时,根据第四获取模块550从同步码中获取的同步信息以及认证服务器500中的动态因子,更新认证服务器500中与动态令牌400对应的令牌偏移量;The update module 580 is used to update the dynamic token 400 in the authentication server 500 according to the synchronization information obtained from the synchronization code by the fourth acquisition module 550 and the dynamic factor in the authentication server 500 when the verification module 570 passes the verification of the response code. The corresponding token offset;

发送模块590,用于将第三生成模块530生成的随机数返回给主机600进行显示,并在验证模块570对应答码验证未通过时,向主机600发送同步失败消息。The sending module 590 is configured to return the random number generated by the third generating module 530 to the host 600 for display, and send a synchronization failure message to the host 600 when the verification module 570 fails to verify the response code.

进一步地,上述认证服务器500还包括:Further, the authentication server 500 also includes:

记录模块710,用于在第三生成模块530生成随机数之后,记录该随机数的生成时间,将该随机数的生成时间保存为与动态令牌400的序列号对应的挑战码的生成时间;在第三获取模块540获取同步码之后,记录该同步码的获取时间;The recording module 710 is used to record the generation time of the random number after the third generation module 530 generates the random number, and save the generation time of the random number as the generation time of the challenge code corresponding to the serial number of the dynamic token 400; After the third acquisition module 540 acquires the synchronization code, record the acquisition time of the synchronization code;

查询模块560,还用于根据第三获取模块540获取到的动态令牌400的序列号查询对应的挑战码的生成时间;The query module 560 is also used to query the generation time of the corresponding challenge code according to the serial number of the dynamic token 400 acquired by the third acquisition module 540;

相应地,上述认证服务器500,还包括:Correspondingly, the above authentication server 500 also includes:

判断模块720,用于判断记录模块710记录的同步码的获取时间是否在查询模块560查询到的挑战码的生成时间之后的第一预设时长内;Judging module 720, used to judge whether the acquisition time of the synchronization code recorded by the recording module 710 is within the first preset time period after the generation time of the challenge code queried by the query module 560;

发送模块590,还用于在判断模块720判断出同步码的获取时间不在挑战码的生成时间之后的第一预设时长内时,向主机600发送同步失败消息;The sending module 590 is further configured to send a synchronization failure message to the host 600 when the judging module 720 judges that the acquisition time of the synchronization code is not within the first preset time period after the generation time of the challenge code;

第四获取模块550,具体用于在判断模块720判断出同步码的获取时间在挑战码的生成时间之后的第一预设时长内时,从第三获取模块540获取到的同步码中获取应答码和同步信息。The fourth obtaining module 550 is specifically configured to obtain a response from the synchronization code obtained by the third obtaining module 540 when the judging module 720 judges that the time for obtaining the synchronization code is within the first preset time period after the generation time of the challenge code. code and synchronization information.

进一步地,上述第二生成模块430,可以具体用于对第一生成模块420生成的应答码和动态令牌400中的动态因子进行异或,将得到的异或结果与预设的密钥信息进行异或,得到同步信息;Further, the above-mentioned second generation module 430 can be specifically used to XOR the response code generated by the first generation module 420 and the dynamic factor in the dynamic token 400, and combine the obtained XOR result with the preset key information Perform XOR to get synchronization information;

相应地,上述验证模块570,具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态因子,根据查询模块560查询到的种子密钥和挑战码,按照与动态令牌400生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从同步码中获取的应答码相同,如果是,则确认获取的应答码验证通过;否则,确定获取的应答码验证未通过。Correspondingly, the above verification module 570 is specifically used to XOR the preset key information and the synchronization information acquired from the synchronization code by the fourth acquisition module 550, and use the obtained XOR result as a dynamic factor, according to the inquiry module 560 Query the seed key and challenge code, generate a response code in the same way as the dynamic token 400 generates the response code, and judge whether the generated response code is the same as the response code obtained from the synchronization code, if yes, confirm The obtained response code has passed the verification; otherwise, it is determined that the obtained response code has not passed the verification.

上述第二生成模块430,还可以具体用于根据预设数据和动态令牌400中的种子密钥生成密钥信息,对第一生成模块420生成的应答码和动态令牌400中的动态因子进行异或,将得到的异或结果与密钥信息进行异或,得到同步信息;The above-mentioned second generation module 430 can also be specifically used to generate key information according to the preset data and the seed key in the dynamic token 400, and to the response code generated by the first generation module 420 and the dynamic factor in the dynamic token 400 Execute XOR, and XOR the obtained XOR result with the key information to obtain synchronization information;

相应地,上述验证模块570,具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态因子,根据查询模块560查询到的种子密钥和挑战码,按照与动态令牌400生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从同步码中获取的应答码相同,如果是,则确认获取的应答码验证通过;否则,确定获取的应答码验证未通过。Correspondingly, the above verification module 570 is specifically used to XOR the seed key queried by the query module 560 with the preset data, and perform an XOR of the obtained key information with the synchronization information obtained by the fourth acquisition module 550 from the synchronization code. Exclusive OR, use the obtained XOR result as a dynamic factor, according to the seed key and challenge code inquired by the query module 560, generate a response code in the same way as the dynamic token 400 generates a response code, and judge the generated response code Whether it is the same as the response code obtained from the synchronization code, if yes, confirm that the obtained response code has passed the verification; otherwise, determine that the obtained response code has not passed the verification.

上述第二生成模块430,还可以具体用于从动态令牌400中的动态因子的最低位开始,选取预设长度的数据,将选取的数据与第一生成模块420生成的应答码进行异或,将得到的异或结果与预设的密钥信息进行异或,得到同步信息;The above-mentioned second generation module 430 can also be specifically used to start from the lowest bit of the dynamic factor in the dynamic token 400, select data of a preset length, and perform XOR with the selected data and the response code generated by the first generation module 420 , XOR the obtained XOR result with the preset key information to obtain synchronization information;

相应地,上述验证模块570,具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中的动态因子中最低位的预设长度的数据,将替换后得到的数据作为动态因子,根据查询模块560查询到的种子密钥和挑战码,按照与动态令牌400生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从同步码中获取的应答码相同,如果是,则确认获取的应答码验证通过;否则,确定获取的应答码验证未通过。Correspondingly, the above verification module 570 is specifically configured to XOR the preset key information with the synchronization information acquired from the synchronization code by the fourth acquisition module 550, and replace the dynamic factor in the authentication server 500 with the obtained XOR result For the data of the preset length in the lowest bit, use the data obtained after replacement as a dynamic factor, and generate a response code according to the seed key and challenge code queried by the query module 560 in the same way as the dynamic token 400 generates a response code , and determine whether the generated response code is the same as the response code obtained from the synchronization code, if yes, confirm that the obtained response code has passed the verification; otherwise, determine that the obtained response code has not passed the verification.

上述第二生成模块430,还可以具体用于根据预设数据和动态令牌400中的种子密钥生成密钥信息,从动态令牌400中的动态因子的最低位开始,选取预设长度的数据,将选取的数据与第一生成模块420生成的应答码进行异或,将得到的异或结果与上述密钥信息进行异或,得到同步信息;The above-mentioned second generation module 430 can also be specifically used to generate key information according to the preset data and the seed key in the dynamic token 400, starting from the lowest bit of the dynamic factor in the dynamic token 400, and selecting the key information of the preset length data, XORing the selected data with the response code generated by the first generating module 420, XORing the obtained XOR result with the key information to obtain synchronization information;

相应地,上述验证模块570,具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中的动态因子中最低位的预设长度的数据,将替换后得到的数据作为动态因子,根据查询到的种子密钥和挑战码,按照与动态令牌400生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从同步码中获取的应答码相同,如果是,则确认获取的应答码验证通过;否则,确定获取的应答码验证未通过。Correspondingly, the above verification module 570 is specifically used to XOR the seed key queried by the query module 560 with the preset data, and perform an XOR of the obtained key information with the synchronization information obtained by the fourth acquisition module 550 from the synchronization code. Exclusive OR, replace the obtained XOR result with the data of the lowest bit preset length in the dynamic factor in the authentication server 500, use the data obtained after replacement as the dynamic factor, according to the seed key and challenge code found, according to the The dynamic token 400 generates the same method as the response code, generates the response code, and judges whether the generated response code is the same as the response code obtained from the synchronization code, if yes, then confirms that the obtained response code is verified; otherwise, determines the obtained response code. Response code verification failed.

本发明实施例中,动态令牌400为时间型动态令牌时,动态因子为时间因子,认证服务器500中的令牌偏移量为令牌偏移时间;In the embodiment of the present invention, when the dynamic token 400 is a time-type dynamic token, the dynamic factor is a time factor, and the token offset in the authentication server 500 is the token offset time;

相应地,更新模块580如图5所示,具体包括:Correspondingly, the update module 580, as shown in Figure 5, specifically includes:

第一计算子模块581,用于获取当前系统时间与自身保存的、与动态令牌400对应的最近一次的同步时间之间的差值,根据该差值和第一预设步长计算第一偏移阈值;The first calculation sub-module 581 is used to obtain the difference between the current system time and the latest synchronization time corresponding to the dynamic token 400 stored by itself, and calculate the first step according to the difference and the first preset step. offset threshold;

第一判断子模块582,用于判断动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值是否大于第一计算子模块581计算出的第一偏移阈值;The first judgment submodule 582 is used to judge whether the time difference between the time factor in the dynamic token 400 and the time factor in the authentication server 500 is greater than the first offset threshold calculated by the first calculation submodule 581;

第一发送子模块583,用于在第一判断子模块582判断出动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值大于第一偏移阈值时,向主机600发送同步失败消息;在第一判断子模块582判断出动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值不大于第一偏移阈值时,向主机600发送同步成功消息;The first sending sub-module 583 is configured to send a message to the host when the first judging sub-module 582 judges that the time difference between the time factor in the dynamic token 400 and the time factor in the authentication server 500 is greater than the first offset threshold 600 sends a synchronization failure message; when the first judging submodule 582 judges that the time difference between the time factor in the dynamic token 400 and the time factor in the authentication server 500 is not greater than the first offset threshold, it sends the message to the host 600 Sync success message;

第一更新子模块584,用于在第一判断子模块582判断出动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值不大于第一偏移阈值时,根据该时间差值更新自身保存的、与动态令牌400对应的令牌偏移时间,并将当前系统时间保存为与动态令牌400对应的同步时间。The first updating sub-module 584 is configured to, when the first judging sub-module 582 judges that the time difference between the time factor in the dynamic token 400 and the time factor in the authentication server 500 is not greater than the first offset threshold, according to The time difference updates the token offset time corresponding to the dynamic token 400 saved by itself, and saves the current system time as the synchronization time corresponding to the dynamic token 400 .

进一步地,上述更新模块580,还包括:Further, the above update module 580 also includes:

第二判断子模块585,用于在第一判断子模块582判断出动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值大于第一偏移阈值之后,判断当前系统时间与动态令牌400对应的最近一次的同步时间之间的差值,是否大于第二预设时长;The second judging submodule 585 is configured to judge the current time difference after the first judging submodule 582 judges that the time difference between the time factor in the dynamic token 400 and the time factor in the authentication server 500 is greater than the first offset threshold. Whether the difference between the system time and the latest synchronization time corresponding to the dynamic token 400 is greater than the second preset duration;

相应地,上述第一发送子模块583,具体用于在第二判断子模块585判断出当前系统时间与动态令牌400对应的最近一次的同步时间之间的差值不大于第二预设时长时,向主机600发送同步失败消息;Correspondingly, the above-mentioned first sending sub-module 583 is specifically used to determine that the difference between the current system time and the latest synchronization time corresponding to the dynamic token 400 is not greater than the second preset duration in the second judging sub-module 585 , send a synchronization failure message to the host 600;

在第二判断子模块585判断出当前系统时间与动态令牌400对应的最近一次的同步时间之间的差值大于第二预设时长时,以及,在第一判断子模块582判断出动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值不大于第一偏移阈值时,向主机600发送同步成功消息;When the second judging submodule 585 judges that the difference between the current system time and the latest synchronization time corresponding to the dynamic token 400 is greater than the second preset duration, and when the first judging submodule 582 judges that the dynamic token When the time difference between the time factor in the card 400 and the time factor in the authentication server 500 is not greater than the first offset threshold, send a synchronization success message to the host 600;

上述第一更新子模块584,还用于在第二判断子模块585判断出当前系统时间与动态令牌400对应的最近一次的同步时间之间的差值,大于第二预设时长时,根据动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值,更新自身保存的、与动态令牌400对应的令牌偏移时间,并将当前系统时间保存为与动态令牌400对应的同步时间。The above-mentioned first updating submodule 584 is also used for determining that the difference between the current system time and the latest synchronization time corresponding to the dynamic token 400 is greater than the second preset duration when the second judging submodule 585 judges the difference according to The time difference between the time factor in the dynamic token 400 and the time factor in the authentication server 500, update the token offset time corresponding to the dynamic token 400 that is saved by itself, and save the current system time as the same as the dynamic Synchronization time corresponding to token 400.

进一步地,上述更新模块580,还包括:Further, the above update module 580 also includes:

第三判断子模块586,用于判断动态令牌400中的时间因子是否大于与动态令牌400对应的、最近一次的认证成功时间;The third judging sub-module 586 is used to judge whether the time factor in the dynamic token 400 is greater than the time corresponding to the dynamic token 400, the latest authentication success time;

相应地,上述第一计算子模块581,具体用于在第三判断子模块586判断出动态令牌400中的时间因子大于与动态令牌400对应的、最近一次的认证成功时间时,获取当前系统时间与自身保存的、与动态令牌400对应的最近一次的同步时间之间的差值,根据该差值和第一预设步长计算第一偏移阈值;Correspondingly, the above-mentioned first calculation sub-module 581 is specifically used to obtain the current The difference between the system time and the latest synchronization time stored by itself and corresponding to the dynamic token 400, and calculate the first offset threshold according to the difference and the first preset step;

上述第一发送子模块583,还用于在第三判断子模块586判断出动态令牌400中的时间因子不大于与动态令牌400对应的、最近一次的认证成功时间时,向主机600发送同步失败消息。The above-mentioned first sending sub-module 583 is also used to send to the host 600 when the third judging sub-module 586 judges that the time factor in the dynamic token 400 is not greater than the latest authentication success time corresponding to the dynamic token 400 Sync failure message.

具体地,上述第一判断子模块582,可以具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌400中的时间因子,判断动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值是否大于第一偏移阈值;Specifically, the above-mentioned first judging sub-module 582 can be specifically used to XOR the seed key queried by the query module 560 with the preset data, and obtain the obtained key information and the fourth obtaining module 550 from the synchronization code. The synchronous information of synchronous information carries out XOR, and the XOR result obtained is used as the time factor in the dynamic token 400, judges whether the time difference between the time factor in the dynamic token 400 and the time factor in the authentication server 500 is greater than the first offset threshold;

相应地,上述第三判断子模块586,具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌400中的时间因子,判断动态令牌400中的时间因子是否大于与动态令牌400对应的、最近一次的认证成功时间。Correspondingly, the above-mentioned third judging sub-module 586 is specifically used to XOR the seed key queried by the query module 560 with the preset data, and combine the obtained key information with the key information obtained by the fourth obtaining module 550 from the synchronization code. The synchronization information is XORed, and the obtained XOR result is used as the time factor in the dynamic token 400 to determine whether the time factor in the dynamic token 400 is greater than the latest authentication success time corresponding to the dynamic token 400 .

上述第一判断子模块582,还可以具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌400中的时间因子,判断动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值是否大于第一偏移阈值;The above-mentioned first judging sub-module 582 can also be specifically used to XOR the seed key queried by the query module 560 with the preset data, and synchronize the obtained key information with the obtained key information from the synchronization code by the fourth obtaining module 550. The information is XORed, and the obtained XOR result is replaced with the data of the lowest bit preset length in the time factor in the authentication server 500, and the data obtained after the replacement is used as the time factor in the dynamic token 400, and the dynamic token 400 is judged. Whether the time difference between the time factor in the authentication server 500 and the time factor in the authentication server is greater than the first offset threshold;

相应地,上述第三判断子模块586,具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌400中的时间因子,判断动态令牌400中的时间因子是否大于与动态令牌400对应的、最近一次的认证成功时间。Correspondingly, the above-mentioned third judging sub-module 586 is specifically used to XOR the seed key queried by the query module 560 with the preset data, and combine the obtained key information with the key information obtained by the fourth obtaining module 550 from the synchronization code. The synchronization information is XORed, and the obtained XOR result is replaced with the data of the lowest bit preset length in the time factor in the authentication server 500, and the data obtained after the replacement is used as the time factor in the dynamic token 400, and the dynamic token is judged Whether the time factor in 400 is greater than the latest successful authentication time corresponding to the dynamic token 400 .

上述第一判断子模块582,还可以具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌400中的时间因子,判断动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值是否大于第一偏移阈值;The above-mentioned first judging sub-module 582 can also be specifically used to XOR the preset key information and the synchronization information acquired by the fourth acquisition module 550 from the synchronization code, and use the obtained XOR result as the dynamic token 400 The time factor of judging whether the time difference between the time factor in the dynamic token 400 and the time factor in the authentication server 500 is greater than the first offset threshold;

相应地,上述第三判断子模块586,具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌400中的时间因子,判断动态令牌400中的时间因子是否大于与动态令牌400对应的、最近一次的认证成功时间。Correspondingly, the above-mentioned third judging sub-module 586 is specifically used to XOR the preset key information and the synchronization information obtained from the synchronization code by the fourth obtaining module 550, and use the obtained XOR result as the dynamic token 400 The time factor in the dynamic token 400 is used to determine whether the time factor in the dynamic token 400 is greater than the latest successful authentication time corresponding to the dynamic token 400 .

上述第一判断子模块582,还可以具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌400中的时间因子,判断动态令牌400中的时间因子与认证服务器500中的时间因子之间的时间差值是否大于第一偏移阈值;The above-mentioned first judging sub-module 582 can also be specifically configured to XOR the preset key information and the synchronization information obtained from the synchronization code by the fourth obtaining module 550, and replace the XOR result obtained in the authentication server 500 The data of the preset length of the lowest bit in the time factor, the data obtained after the replacement is used as the time factor in the dynamic token 400, and the time difference between the time factor in the dynamic token 400 and the time factor in the authentication server 500 is judged whether the value is greater than a first offset threshold;

相应地,上述第三判断子模块586,具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌400中的时间因子,判断动态令牌400中的时间因子是否大于与动态令牌400对应的、最近一次的认证成功时间。Correspondingly, the above-mentioned third judging submodule 586 is specifically used to XOR the preset key information and the synchronization information obtained from the synchronization code by the fourth obtaining module 550, and replace the obtained XOR result in the authentication server 500 The data of the preset length of the lowest bit in the time factor of the time factor, the data obtained after the replacement is used as the time factor in the dynamic token 400, and it is judged whether the time factor in the dynamic token 400 is greater than the last time corresponding to the dynamic token 400 authentication success time.

本发明实施例中,动态令牌400为事件型动态令牌时,动态因子为事件因子,认证服务器500中的令牌偏移量为令牌偏移次数;In the embodiment of the present invention, when the dynamic token 400 is an event-type dynamic token, the dynamic factor is an event factor, and the token offset in the authentication server 500 is the number of token offsets;

相应地,更新模块580如图6所示,具体包括:Correspondingly, the update module 580, as shown in Figure 6, specifically includes:

第二计算子模块621,用于获取当前系统时间与自身保存的、与动态令牌400对应的最近一次的同步时间之间的差值,根据该差值和第二预设步长计算第二偏移阈值;The second calculation sub-module 621 is used to obtain the difference between the current system time and the latest synchronization time corresponding to the dynamic token 400 stored by itself, and calculate the second time according to the difference and the second preset step. offset threshold;

第四判断子模块622,用于判断动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值是否大于第二计算子模块621计算出的第二偏移阈值;The fourth judging submodule 622 is used to judge whether the difference in the number of times between the event factor in the dynamic token 400 and the event factor corresponding to the dynamic token 400 in the authentication server 500 is greater than the first calculated by the second computing submodule 621. Two offset thresholds;

第二发送子模块623,用于在第四判断子模块622判断出动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值大于第二计算子模块621计算出的第二偏移阈值时,向主机600发送同步失败消息;在第四判断子模块622判断出动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值不大于第二计算子模块621计算出的第二偏移阈值时,向主机600发送同步成功消息;The second sending sub-module 623 is used to determine in the fourth judging sub-module 622 that the number of times difference between the event factor in the dynamic token 400 and the event factor corresponding to the dynamic token 400 in the authentication server 500 is greater than the second calculation When the second offset threshold calculated by the submodule 621, a synchronization failure message is sent to the host 600; in the fourth judging submodule 622, it is judged that the event factor in the dynamic token 400 is corresponding to the dynamic token 400 in the authentication server 500 When the number of times difference between event factors is not greater than the second offset threshold calculated by the second calculation submodule 621, send a synchronization success message to the host 600;

第二更新子模块624,用于在第四判断子模块622判断出动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值不大于第二计算子模块621计算出的第二偏移阈值时,根据该次数差值更新自身保存的、与动态令牌400对应的令牌偏移次数,并将当前系统时间保存为与动态令牌400对应的同步时间。The second updating sub-module 624 is used to judge in the fourth judging sub-module 622 that the number of times difference between the event factor in the dynamic token 400 and the event factor corresponding to the dynamic token 400 in the authentication server 500 is not greater than the second When calculating the second offset threshold calculated by the submodule 621, update the token offset times corresponding to the dynamic token 400 stored by itself according to the number of times difference, and save the current system time as corresponding to the dynamic token 400 synchronization time.

进一步地,上述更新模块580,还包括:Further, the above update module 580 also includes:

第五判断子模块625,用于在第四判断子模块622判断出动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值大于第二偏移阈值之后,判断当前系统时间与动态令牌400对应的最近一次的同步时间之间的差值,是否大于第三预设时长;The fifth judging submodule 625 is used for judging in the fourth judging submodule 622 that the number of times difference between the event factor in the dynamic token 400 and the event factor corresponding to the dynamic token 400 in the authentication server 500 is greater than the second bias After shifting the threshold, it is judged whether the difference between the current system time and the latest synchronization time corresponding to the dynamic token 400 is greater than the third preset duration;

相应地,上述第二发送子模块623,具体用于在第五判断子模块625判断出当前系统时间与动态令牌400对应的最近一次的同步时间之间的差值不大于第三预设时长时,向主机600发送同步失败消息;Correspondingly, the above-mentioned second sending sub-module 623 is specifically used for judging in the fifth judging sub-module 625 that the difference between the current system time and the latest synchronization time corresponding to the dynamic token 400 is not greater than the third preset duration , send a synchronization failure message to the host 600;

在第五判断子模块625判断出当前系统时间与动态令牌400对应的最近一次的同步时间之间的差值大于第三预设时长时,以及,在第四判断子模块622判断出动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值不大于第二偏移阈值时,向主机600发送同步成功消息;When the fifth judging sub-module 625 judges that the difference between the current system time and the latest synchronization time corresponding to the dynamic token 400 is greater than the third preset duration, and when the fourth judging sub-module 622 judges that the dynamic token When the number difference between the event factor in the card 400 and the event factor corresponding to the dynamic token 400 in the authentication server 500 is not greater than the second offset threshold, a synchronization success message is sent to the host 600;

上述第二更新子模块624,还用于在第五判断子模块625判断出当前系统时间与动态令牌400对应的最近一次的同步时间之间的差值大于第三预设时长时,根据动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值,更新自身保存的、与动态令牌400对应的令牌偏移次数,并将当前系统时间保存为与动态令牌对应的同步时间。The above-mentioned second update sub-module 624 is also used for determining that the difference between the current system time and the latest synchronization time corresponding to the dynamic token 400 is greater than the third preset duration when the fifth judging sub-module 625 judges that according to the dynamic The number of times difference between the event factor in the token 400 and the event factor corresponding to the dynamic token 400 in the authentication server 500, updates the token offset times corresponding to the dynamic token 400 stored by itself, and updates the current system The time is saved as the sync time corresponding to the dynamic token.

进一步地,更新模块580,还包括:Further, the update module 580 also includes:

第六判断子模块626,用于判断动态令牌400中的事件因子是否大于与动态令牌400对应的、最近一次的认证成功次数;The sixth judging submodule 626 is used to judge whether the event factor in the dynamic token 400 is greater than the latest number of successful authentications corresponding to the dynamic token 400;

相应地,上述第二计算子模块621,具体用于在第六判断子模块626判断出动态令牌400中的事件因子大于与动态令牌400对应的、最近一次的认证成功次数时,获取当前系统时间与自身保存的、与动态令牌400对应的最近一次的同步时间之间的差值,根据该差值和第二预设步长计算第二偏移阈值;Correspondingly, the above-mentioned second calculation submodule 621 is specifically used to acquire the current The difference between the system time and the latest synchronization time stored by itself and corresponding to the dynamic token 400, and calculate the second offset threshold according to the difference and the second preset step;

上述第二发送子模块623,还用于在第六判断子模块626判断出动态令牌400中的事件因子不大于与动态令牌400对应的、最近一次的认证成功次数时,向主机600发送同步失败消息。The above-mentioned second sending submodule 623 is also used to send to the host 600 when the sixth judging submodule 626 judges that the event factor in the dynamic token 400 is not greater than the latest number of successful authentications corresponding to the dynamic token 400 Sync failure message.

具体地,上述第四判断子模块622,可以具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌400中的事件因子,判断动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值是否大于第二偏移阈值;Specifically, the above-mentioned fourth judging sub-module 622 can be specifically used to XOR the seed key queried by the query module 560 with the preset data, and obtain the obtained key information and the fourth obtaining module 550 from the synchronization code. The synchronous information is XORed, and the XOR result obtained is used as the event factor in the dynamic token 400, and the number of times between the event factor in the dynamic token 400 and the event factor corresponding to the dynamic token 400 in the authentication server 500 is judged Whether the difference is greater than a second offset threshold;

相应地,上述第六判断子模块626,具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌400中的事件因子,判断动态令牌400中的事件因子是否大于与动态令牌400对应的、最近一次的认证成功次数。Correspondingly, the above sixth judging submodule 626 is specifically used to XOR the seed key queried by the query module 560 with the preset data, and combine the obtained key information with the key information obtained by the fourth acquisition module 550 from the synchronization code. The synchronization information is XORed, and the obtained XOR result is used as the event factor in the dynamic token 400 to determine whether the event factor in the dynamic token 400 is greater than the latest number of successful authentications corresponding to the dynamic token 400 .

上述第四判断子模块622,还可以具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中与动态令牌400对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌400中的事件因子,判断动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值是否大于第二偏移阈值;The above fourth judging sub-module 622 can also be specifically used to XOR the seed key queried by the query module 560 with the preset data, and synchronize the obtained key information with the obtained key information from the synchronization code by the fourth acquisition module 550. The information is XORed, and the obtained XOR result is replaced with the data of the lowest bit preset length in the event factor corresponding to the dynamic token 400 in the authentication server 500, and the data obtained after the replacement is used as the event factor in the dynamic token 400 , judging whether the number of times difference between the event factor in the dynamic token 400 and the event factor corresponding to the dynamic token 400 in the authentication server 500 is greater than a second offset threshold;

相应地,上述第六判断子模块626,具体用于将查询模块560查询到的种子密钥与预设数据进行异或,将得到的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中与动态令牌400对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌400中的事件因子,判断动态令牌400中的事件因子是否大于与动态令牌400对应的、最近一次的认证成功次数。Correspondingly, the above sixth judging submodule 626 is specifically used to XOR the seed key queried by the query module 560 with the preset data, and combine the obtained key information with the key information obtained by the fourth acquisition module 550 from the synchronization code. The synchronization information is XORed, and the obtained XOR result is replaced with the data of the lowest bit preset length in the event factor corresponding to the dynamic token 400 in the authentication server 500, and the data obtained after the replacement is used as an event in the dynamic token 400 Factor, to determine whether the event factor in the dynamic token 400 is greater than the latest number of successful authentications corresponding to the dynamic token 400 .

上述第四判断子模块622,还可以具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌400中的事件因子,判断动态令牌400中的事件因子与认证服务器500中与认证服务器500中与动态令牌400对应的事件因子之间的次数差值是否大于第二偏移阈值;The above fourth judging sub-module 622 can also be specifically used to XOR the preset key information and the synchronization information obtained from the synchronization code by the fourth obtaining module 550, and use the obtained XOR result as the dynamic token 400 The event factor of judging whether the number of times difference between the event factor in the dynamic token 400 and the event factor corresponding to the dynamic token 400 in the authentication server 500 and the authentication server 500 is greater than the second offset threshold;

相应地,上述第六判断子模块626,具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果作为动态令牌400中的事件因子,判断动态令牌400中的事件因子是否大于与动态令牌400对应的、最近一次的认证成功次数。Correspondingly, the above-mentioned sixth judging sub-module 626 is specifically used to XOR the preset key information and the synchronization information obtained from the synchronization code by the fourth obtaining module 550, and use the obtained XOR result as the dynamic token 400 The event factor in the dynamic token 400 is used to determine whether the event factor in the dynamic token 400 is greater than the latest number of successful authentications corresponding to the dynamic token 400 .

上述第四判断子模块622,还可以具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中与动态令牌400对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌400中的事件因子,判断动态令牌400中的事件因子与认证服务器500中与动态令牌400对应的事件因子之间的次数差值是否大于第二偏移阈值;The above-mentioned fourth judging sub-module 622 can also be specifically configured to XOR the preset key information with the synchronization information obtained from the synchronization code by the fourth obtaining module 550, and replace the obtained XOR result with the one in the authentication server 500. The data of the preset length of the lowest bit in the event factor corresponding to the dynamic token 400, the data obtained after the replacement is used as the event factor in the dynamic token 400, and the event factor in the dynamic token 400 is judged to be the same as that in the authentication server 500. Whether the number of times difference between the event factors corresponding to the token 400 is greater than the second offset threshold;

相应地,上述第六判断子模块626,具体用于将预设的密钥信息与第四获取模块550从同步码中获取的同步信息进行异或,将得到的异或结果替换认证服务器500中与动态令牌400对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为动态令牌400中的事件因子,判断动态令牌400中的事件因子是否大于与动态令牌400对应的、最近一次的认证成功次数。Correspondingly, the above-mentioned sixth judging submodule 626 is specifically used to XOR the preset key information and the synchronization information obtained from the synchronization code by the fourth obtaining module 550, and replace the obtained XOR result in the authentication server 500 The data of the preset length of the lowest bit in the event factor corresponding to the dynamic token 400, the data obtained after the replacement is used as the event factor in the dynamic token 400, and it is judged whether the event factor in the dynamic token 400 is greater than that of the dynamic token 400 corresponds to the latest successful authentication times.

本发明实施例中,认证服务器500生成随机数,并将该随机数保存为与动态令牌400对应的挑战码;动态令牌400获取认证服务器500生成的随机数,并根据该随机数生成一个同步码,认证服务器500通过比较与动态令牌400对应的挑战码的生成时间和同步码的获取时间,对动态令牌400生成的同步码的有效性进行判断,并使用自身生成的挑战码,对同步码进行验证,在验证通过后对自身保存的令牌偏移量进行更新,从而提高了同步的成功率,防止由于使用错误的或者延迟的同步码而造成的恶意同步。In the embodiment of the present invention, the authentication server 500 generates a random number, and saves the random number as a challenge code corresponding to the dynamic token 400; the dynamic token 400 obtains the random number generated by the authentication server 500, and generates a random number according to the random number. Synchronization code, the authentication server 500 judges the validity of the synchronization code generated by the dynamic token 400 by comparing the generation time of the challenge code corresponding to the dynamic token 400 and the acquisition time of the synchronization code, and uses the challenge code generated by itself, Verify the synchronization code, and update the token offset saved by itself after the verification is passed, thereby improving the success rate of synchronization and preventing malicious synchronization caused by using wrong or delayed synchronization codes.

结合本文中所公开的实施例描述的方法中的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps in the methods described in conjunction with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (40)

1.一种动态令牌的同步方法,其特征在于,包括以下步骤:1. A method for synchronizing a dynamic token, comprising the following steps: S1、认证服务器接收来自主机的同步请求,从所述同步请求中获取动态令牌的序列号,并生成随机数,将所述随机数保存为与所述动态令牌的序列号对应的挑战码,将所述随机数返回给所述主机进行显示;S1. The authentication server receives the synchronization request from the host, obtains the serial number of the dynamic token from the synchronization request, generates a random number, and saves the random number as a challenge code corresponding to the serial number of the dynamic token , returning the random number to the host for display; S2、所述动态令牌获取所述随机数,根据所述随机数以及所述动态令牌中的动态因子和种子密钥,生成应答码,并根据所述应答码和所述动态因子生成同步信息;S2. The dynamic token acquires the random number, generates a response code according to the random number, the dynamic factor and the seed key in the dynamic token, and generates synchronization according to the response code and the dynamic factor information; S3、所述动态令牌将所述同步信息和所述应答码组合成同步码,并对所述同步码进行显示;S3. The dynamic token combines the synchronization information and the response code into a synchronization code, and displays the synchronization code; S4、所述认证服务器获取所述同步码和所述动态令牌的序列号;S4. The authentication server acquires the synchronization code and the serial number of the dynamic token; S5、所述认证服务器从所述同步码中获取所述应答码和所述同步信息,根据所述动态令牌的序列号查询与所述动态令牌对应的种子密钥和挑战码;S5. The authentication server acquires the response code and the synchronization information from the synchronization code, and queries the seed key and challenge code corresponding to the dynamic token according to the serial number of the dynamic token; S6、所述认证服务器使用查询到的种子密钥和挑战码,以及从所述同步码中获取的所述同步信息,对从所述同步码中获取的应答码进行验证,如果验证通过,则执行步骤S8;否则,执行步骤S7;S6. The authentication server uses the queried seed key and challenge code, and the synchronization information obtained from the synchronization code to verify the response code obtained from the synchronization code. If the verification passes, then Execute step S8; otherwise, execute step S7; S7、所述认证服务器向所述主机发送同步失败消息;S7. The authentication server sends a synchronization failure message to the host; S8、所述认证服务器根据从所述同步码中获取的所述同步信息以及所述认证服务器中的动态因子,更新所述认证服务器中与所述动态令牌对应的令牌偏移量。S8. The authentication server updates the token offset corresponding to the dynamic token in the authentication server according to the synchronization information obtained from the synchronization code and the dynamic factor in the authentication server. 2.如权利要求1所述的方法,其特征在于,所述认证服务器生成随机数之后,还包括:2. The method according to claim 1, wherein after the authentication server generates the random number, further comprising: 所述认证服务器记录所述随机数的生成时间;The authentication server records the generation time of the random number; 所述步骤S4之后,还包括:After the step S4, it also includes: 所述认证服务器记录所述同步码的获取时间,根据所述动态令牌的序列号查询对应的挑战码的生成时间,判断所述同步码的获取时间是否在所述挑战码的生成时间之后的第一预设时长内,如果是,则执行步骤S5;否则,向所述主机发送同步失败消息。The authentication server records the acquisition time of the synchronization code, queries the generation time of the corresponding challenge code according to the serial number of the dynamic token, and determines whether the acquisition time of the synchronization code is after the generation time of the challenge code Within the first preset time period, if yes, execute step S5; otherwise, send a synchronization failure message to the host. 3.如权利要求1所述的方法,其特征在于,所述动态令牌根据所述应答码和所述动态因子生成同步信息,具体为:3. The method according to claim 1, wherein the dynamic token generates synchronization information according to the response code and the dynamic factor, specifically: 所述动态令牌对所述应答码和所述动态因子进行异或,将得到的异或结果与预设的密钥信息进行异或,得到所述同步信息;The dynamic token XORs the response code and the dynamic factor, XORs the obtained XOR result with preset key information, and obtains the synchronization information; 所述步骤S6,具体为:The step S6 is specifically: 所述认证服务器将所述预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为动态因子,根据所述查询到的种子密钥和挑战码,按照与所述动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从所述同步码中获取的应答码相同,如果是,则确认所述获取的应答码验证通过;否则,确定所述获取的应答码验证未通过。The authentication server XORs the preset key information with the synchronization information obtained from the synchronization code, and uses the obtained XOR result as a dynamic factor, according to the queried seed key and challenge code , generate a response code in the same way as the dynamic token generation response code, and judge whether the generated response code is the same as the response code obtained from the synchronization code, and if so, confirm the obtained response code The verification is passed; otherwise, it is determined that the obtained response code has not passed the verification. 4.如权利要求1所述的方法,其特征在于,所述动态令牌根据所述应答码和所述动态因子生成同步信息,具体为:4. The method according to claim 1, wherein the dynamic token generates synchronization information according to the response code and the dynamic factor, specifically: 所述动态令牌根据预设数据和所述动态令牌中的种子密钥生成密钥信息,对所述应答码和所述动态因子进行异或,将得到的异或结果与所述密钥信息进行异或,得到所述同步信息;The dynamic token generates key information according to the preset data and the seed key in the dynamic token, XORs the response code and the dynamic factor, and combines the obtained XOR result with the key XORing the information to obtain the synchronization information; 所述步骤S6,具体为:The step S6 is specifically: 所述认证服务器将所述查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为动态因子,根据所述查询到的种子密钥和挑战码,按照与所述动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从所述同步码中获取的应答码相同,如果是,则确认所述获取的应答码验证通过;否则,确定所述获取的应答码验证未通过。The authentication server XORs the queried seed key with the preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and XORs the obtained XOR result As a dynamic factor, according to the queried seed key and challenge code, generate a response code in the same way as the dynamic token generation response code, and judge whether the generated response code is the same as that obtained from the synchronization code The response codes are the same, if yes, then confirm that the obtained response code has passed the verification; otherwise, determine that the obtained response code has not passed the verification. 5.如权利要求1所述的方法,其特征在于,所述动态令牌根据所述应答码和所述动态因子生成同步信息,具体为:5. The method according to claim 1, wherein the dynamic token generates synchronization information according to the response code and the dynamic factor, specifically: 所述动态令牌从所述动态因子的最低位开始,选取预设长度的数据,将选取的数据与应答码进行异或,将得到的异或结果与预设的密钥信息进行异或,得到同步信息;The dynamic token starts from the lowest bit of the dynamic factor, selects data of a preset length, XORs the selected data with the response code, and XORs the obtained XOR result with the preset key information, get synchronous information; 所述步骤S6,具体为:The step S6 is specifically: 所述认证服务器将所述预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的动态因子中最低位的预设长度的数据,将替换后得到的数据作为动态因子,根据所述查询到的种子密钥和挑战码,按照与所述动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从所述同步码中获取的应答码相同,如果是,则确认所述获取的应答码验证通过;否则,确定所述获取的应答码验证未通过。The authentication server XORs the preset key information and the synchronization information obtained from the synchronization code, and replaces the obtained XOR result with the preset length of the lowest bit in the dynamic factor in the authentication server The data obtained after the replacement is used as a dynamic factor, and according to the queried seed key and challenge code, a response code is generated in the same way as the response code generated by the dynamic token, and the generated response code is judged Whether it is the same as the response code obtained from the synchronization code, if yes, confirm that the obtained response code has passed the verification; otherwise, determine that the obtained response code has not passed the verification. 6.如权利要求1所述的方法,其特征在于,所述动态令牌根据所述应答码和所述动态因子生成同步信息,具体为:6. The method according to claim 1, wherein the dynamic token generates synchronization information according to the response code and the dynamic factor, specifically: 所述动态令牌根据预设数据和所述动态令牌中的种子密钥生成密钥信息,从所述动态因子的最低位开始,选取预设长度的数据,将选取的数据与所述应答码进行异或,将得到的异或结果与所述密钥信息进行异或,得到所述同步信息;The dynamic token generates key information according to the preset data and the seed key in the dynamic token, starts from the lowest bit of the dynamic factor, selects data of a preset length, and combines the selected data with the response XORing the code, XORing the obtained XOR result with the key information to obtain the synchronization information; 所述步骤S6,具体为:The step S6 is specifically: 所述认证服务器将所述查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的动态因子中最低位的预设长度的数据,将替换后得到的数据作为动态因子,根据所述查询到的种子密钥和挑战码,按照与所述动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从所述同步码中获取的应答码相同,如果是,则确认所述获取的应答码验证通过;否则,确定所述获取的应答码验证未通过。The authentication server XORs the queried seed key with the preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and XORs the obtained XOR result Replacing the data of the preset length in the lowest digit of the dynamic factor in the authentication server, using the replaced data as the dynamic factor, according to the queried seed key and challenge code, according to the dynamic token generated The same method for the response code, generate a response code, and judge whether the generated response code is the same as the response code obtained from the synchronization code, if yes, confirm that the obtained response code is verified; otherwise, determine that the obtained Response code validation failed for . 7.如权利要求1所述的方法,其特征在于,所述动态令牌为时间型动态令牌时,所述动态因子为时间因子,所述认证服务器中的令牌偏移量为令牌偏移时间;7. The method according to claim 1, wherein when the dynamic token is a time-type dynamic token, the dynamic factor is a time factor, and the token offset in the authentication server is token offset time; 所述步骤S8,具体为:The step S8 is specifically: A1、所述认证服务器获取当前系统时间与自身保存的、与所述动态令牌对应的最近一次的同步时间之间的差值,根据所述差值和第一预设步长计算第一偏移阈值;A1. The authentication server obtains the difference between the current system time and the latest synchronization time stored by itself and corresponding to the dynamic token, and calculates the first offset according to the difference and the first preset step shift threshold; A2、所述认证服务器判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一偏移阈值,如果是,则执行步骤A3;否则,执行步骤A4;A2. The authentication server judges whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold, if yes, execute step A3; otherwise , execute step A4; A3、所述认证服务器向所述主机发送同步失败消息;A3. The authentication server sends a synchronization failure message to the host; A4、所述认证服务器根据所述时间差值更新自身保存的、与所述动态令牌对应的令牌偏移时间,并将所述当前系统时间保存为与所述动态令牌对应的同步时间,向所述主机发送同步成功消息。A4. The authentication server updates the token offset time corresponding to the dynamic token stored by itself according to the time difference, and saves the current system time as the synchronization time corresponding to the dynamic token , sending a synchronization success message to the host. 8.如权利要求7所述的方法,其特征在于,所述认证服务器判断出所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值大于所述第一偏移阈值之后,还包括:8. The method according to claim 7, wherein the authentication server determines that the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first After shifting the threshold, also include: 所述认证服务器判断所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值,是否大于第二预设时长,如果是,则执行步骤A4;否则,执行步骤A3。The authentication server judges whether the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than the second preset duration, if yes, execute step A4; otherwise, execute step A3 . 9.如权利要求7所述的方法,其特征在于,所述步骤A1之前,还包括:9. The method according to claim 7, characterized in that, before the step A1, further comprising: A0、所述认证服务器判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间,如果是,则执行步骤A1;否则,执行步骤A3。A0. The authentication server judges whether the time factor in the dynamic token is greater than the latest authentication success time corresponding to the dynamic token, if yes, execute step A1; otherwise, execute step A3. 10.如权利要求9所述的方法,其特征在于,所述步骤A2,具体为:10. The method according to claim 9, characterized in that, the step A2 is specifically: 所述认证服务器将所述查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一偏移阈值;如果是,则执行步骤A3;否则,执行步骤A4;The authentication server XORs the queried seed key with preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and uses the obtained XOR result as the The time factor in the dynamic token, judging whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold; if yes, then perform the steps A3; otherwise, go to step A4; 所述步骤A0,具体为:The step A0 is specifically: 所述认证服务器将所述查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间,如果是,则执行步骤A1;否则,执行步骤A3。The authentication server XORs the queried seed key with the preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and XORs the obtained XOR result As the time factor in the dynamic token, judge whether the time factor in the dynamic token is greater than the latest authentication success time corresponding to the dynamic token, if yes, execute step A1; otherwise, execute Step A3. 11.如权利要求9所述的方法,其特征在于,所述步骤A2,具体为:11. The method according to claim 9, wherein the step A2 is specifically: 所述认证服务器将所述查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一偏移阈值,如果是,则执行步骤A3;否则,执行步骤A4;The authentication server XORs the queried seed key with the preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and replaces the XOR result with the obtained XOR result. The data of the preset length of the lowest bit in the time factor in the authentication server, the data obtained after replacement is used as the time factor in the dynamic token, and the time factor in the dynamic token is judged to be the same as that in the authentication server Whether the time difference between the time factors is greater than the first offset threshold, if yes, execute step A3; otherwise, execute step A4; 所述步骤A0,具体为:The step A0 is specifically: 所述认证服务器将所述查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间,如果是,则执行步骤A1;否则,执行步骤A3。The authentication server XORs the queried seed key with the preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and XORs the obtained XOR result Replacing the data with the preset length of the lowest bit in the time factor in the authentication server, using the data obtained after replacement as the time factor in the dynamic token, and judging whether the time factor in the dynamic token is greater than the specified length The latest authentication success time corresponding to the above dynamic token, if yes, go to step A1; otherwise, go to step A3. 12.如权利要求9所述的方法,其特征在于,所述步骤A2,具体为:12. The method according to claim 9, wherein the step A2 is specifically: 所述认证服务器将预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一偏移阈值,如果是,则执行步骤A3;否则,执行步骤A4;The authentication server XORs the preset key information with the synchronization information obtained from the synchronization code, uses the obtained XOR result as the time factor in the dynamic token, and judges whether the dynamic token is Whether the time difference between the time factor in the authentication server and the time factor in the authentication server is greater than the first offset threshold, if yes, perform step A3; otherwise, perform step A4; 所述步骤A0,具体为:The step A0 is specifically: 所述认证服务器将所述预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间,如果是,则执行步骤A1;否则,执行步骤A3。The authentication server XORs the preset key information and the synchronization information obtained from the synchronization code, uses the obtained XOR result as the time factor in the dynamic token, and judges whether the dynamic token Whether the time factor in the card is greater than the latest successful authentication time corresponding to the dynamic token, if yes, execute step A1; otherwise, execute step A3. 13.如权利要求9所述的方法,其特征在于,所述步骤A2,具体为:13. The method according to claim 9, wherein the step A2 is specifically: 所述认证服务器将预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一偏移阈值,如果是,则执行步骤A3;否则,执行步骤A4;The authentication server XORs the preset key information with the synchronization information obtained from the synchronization code, and replaces the obtained XOR result with the data of the lowest digit of the preset length in the time factor in the authentication server , using the data obtained after replacement as the time factor in the dynamic token, and judging whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset Shift the threshold, if yes, execute step A3; otherwise, execute step A4; 所述步骤A0,具体为:The step A0 is specifically: 所述认证服务器将所述预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间,如果是,则执行步骤A1;否则,执行步骤A3。The authentication server XORs the preset key information with the synchronization information obtained from the synchronization code, and replaces the obtained XOR result with the preset length of the lowest bit in the time factor in the authentication server The data obtained after the replacement is used as the time factor in the dynamic token, and it is judged whether the time factor in the dynamic token is greater than the latest authentication success time corresponding to the dynamic token, if yes , execute step A1; otherwise, execute step A3. 14.如权利要求1所述的方法,其特征在于,所述动态令牌为事件型动态令牌时,所述动态因子为事件因子,所述认证服务器中的令牌偏移量为令牌偏移次数;14. The method according to claim 1, wherein when the dynamic token is an event-type dynamic token, the dynamic factor is an event factor, and the token offset in the authentication server is token Offset times; 所述步骤S8,具体为:The step S8 is specifically: B1、所述认证服务器获取当前系统时间与自身保存的、与所述动态令牌对应的最近一次的同步时间之间的差值,根据所述差值和第二预设步长计算第二偏移阈值;B1. The authentication server acquires the difference between the current system time and the latest synchronization time stored by itself and corresponding to the dynamic token, and calculates the second offset according to the difference and the second preset step shift threshold; B2、所述认证服务器判断所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二偏移阈值,如果是,则执行步骤B3;否则,执行步骤B4;B2. The authentication server judges whether the difference in the number of times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is greater than the second offset threshold, if so , execute step B3; otherwise, execute step B4; B3、所述认证服务器向所述主机发送同步失败消息;B3. The authentication server sends a synchronization failure message to the host; B4、所述认证服务器根据所述次数差值更新自身保存的、与所述动态令牌对应的令牌偏移次数,并将所述当前系统时间保存为与所述动态令牌对应的同步时间,向所述主机发送同步成功消息。B4. The authentication server updates the number of token offsets corresponding to the dynamic token stored by itself according to the difference in the number of times, and saves the current system time as the synchronization time corresponding to the dynamic token , sending a synchronization success message to the host. 15.如权利要求14所述的方法,其特征在于,所述认证服务器判断所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值大于所述第二偏移阈值之后,还包括:15. The method according to claim 14, wherein the authentication server determines the number of times difference between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server After the value is greater than the second offset threshold, it also includes: 所述认证服务器判断所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值,是否大于第三预设时长,如果是,则执行步骤B4;否则,执行步骤B3。The authentication server judges whether the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than the third preset duration, if yes, execute step B4; otherwise, execute step B3 . 16.如权利要求14所述的方法,其特征在于,所述步骤B1之前,还包括:16. The method according to claim 14, characterized in that, before the step B1, further comprising: B0、所述认证服务器判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数,如果是,则执行步骤B1;否则,执行步骤B3。B0. The authentication server judges whether the event factor in the dynamic token is greater than the latest number of authentication successes corresponding to the dynamic token, and if yes, execute step B1; otherwise, execute step B3. 17.如权利要求16所述的方法,其特征在于,所述步骤B2,具体为:17. The method according to claim 16, characterized in that, the step B2 is specifically: 所述认证服务器将所述查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二偏移阈值,如果是,则执行步骤B3;否则,执行步骤B4;The authentication server XORs the queried seed key with preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and uses the obtained XOR result as the The event factor in the dynamic token, judging whether the difference in the number of times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is greater than the second offset threshold , if yes, go to step B3; otherwise, go to step B4; 所述步骤B0,具体为:The step B0 is specifically: 所述认证服务器将所述查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数,如果是,则执行步骤B1;否则,执行步骤B3。The authentication server XORs the queried seed key with the preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and XORs the obtained XOR result As the event factor in the dynamic token, it is judged whether the event factor in the dynamic token is greater than the latest number of successful authentications corresponding to the dynamic token, if yes, then execute step B1; otherwise, execute Step B3. 18.如权利要求16所述的方法,其特征在于,所述步骤B2,具体为:18. The method according to claim 16, characterized in that, the step B2 is specifically: 所述认证服务器将所述查询到的种子密钥与预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中与所述动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二偏移阈值,如果是,则执行步骤B3;否则,执行步骤B4;The authentication server XORs the queried seed key with the preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and replaces the XOR result with the obtained XOR result. In the authentication server, the data of the lowest bit preset length in the event factor corresponding to the dynamic token is used, and the data obtained after replacement is used as the event factor in the dynamic token, and the event in the dynamic token is judged Whether the number of times difference between the factor and the event factor corresponding to the dynamic token in the authentication server is greater than the second offset threshold, if yes, perform step B3; otherwise, perform step B4; 所述步骤B0,具体为:The step B0 is specifically: 所述认证服务器将所述查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中与所述动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数,如果是,则执行步骤B1;否则,执行步骤B3。The authentication server XORs the queried seed key with the preset data, XORs the obtained key information with the synchronization information obtained from the synchronization code, and XORs the obtained XOR result Replacing the data with the preset length of the lowest bit in the event factor corresponding to the dynamic token in the authentication server, using the data obtained after replacement as the event factor in the dynamic token, and judging whether the event factor in the dynamic token is Whether the event factor of the dynamic token is greater than the latest number of successful authentications corresponding to the dynamic token, if yes, execute step B1; otherwise, execute step B3. 19.如权利要求16所述的方法,其特征在于,所述步骤B2,具体为:19. The method according to claim 16, characterized in that, the step B2 is specifically: 所述认证服务器将预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子与所述认证服务器中与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二偏移阈值,如果是,则执行步骤B3;否则,执行步骤B4;The authentication server XORs the preset key information with the synchronization information obtained from the synchronization code, uses the obtained XOR result as the event factor in the dynamic token, and determines whether Whether the difference in the number of times between the event factor of the authentication server and the event factor corresponding to the dynamic token in the authentication server is greater than the second offset threshold, if yes, perform step B3; otherwise , execute step B4; 所述步骤B0,具体为:The step B0 is specifically: 所述认证服务器将所述预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数,如果是,则执行步骤B1;否则,执行步骤B3。The authentication server XORs the preset key information and the synchronization information obtained from the synchronization code, uses the obtained XOR result as the event factor in the dynamic token, and judges whether the dynamic token Whether the event factor in the card is greater than the latest number of successful authentications corresponding to the dynamic token, if yes, execute step B1; otherwise, execute step B3. 20.如权利要求16所述的方法,其特征在于,所述步骤B2,具体为:20. The method according to claim 16, characterized in that, the step B2 is specifically: 所述认证服务器将预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中与所述动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二偏移阈值,如果是,则执行步骤B3;否则,执行步骤B4;The authentication server XORs the preset key information with the synchronization information obtained from the synchronization code, and replaces the obtained XOR result with the lowest event factor corresponding to the dynamic token in the authentication server. The data of the preset length of bits, the data obtained after replacement is used as the event factor in the dynamic token, and the event factor in the dynamic token is judged to be the event corresponding to the dynamic token in the authentication server Whether the number of times difference between the factors is greater than the second offset threshold, if yes, execute step B3; otherwise, execute step B4; 所述步骤B0,具体为:The step B0 is specifically: 所述认证服务器将所述预设的密钥信息与从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中与所述动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数,如果是,则执行步骤B1;否则,执行步骤B3。The authentication server XORs the preset key information with the synchronization information obtained from the synchronization code, and replaces the obtained XOR result with the event factor corresponding to the dynamic token in the authentication server The data of the preset length of the lowest bit in the data, the data obtained after the replacement is used as the event factor in the dynamic token, and it is judged whether the event factor in the dynamic token is greater than the latest one corresponding to the dynamic token The number of successful authentications, if yes, go to step B1; otherwise, go to step B3. 21.一种动态令牌的同步系统,其特征在于,包括动态令牌、主机和认证服务器;21. A synchronization system of a dynamic token, comprising a dynamic token, a host and an authentication server; 其中,所述动态令牌包括:Wherein, the dynamic token includes: 第一获取模块,用于获取所述认证服务器生成的随机数;A first obtaining module, configured to obtain the random number generated by the authentication server; 第一生成模块,用于根据所述第一获取模块获取到的所述随机数以及所述动态令牌中的动态因子和种子密钥,生成应答码;A first generating module, configured to generate a response code according to the random number obtained by the first obtaining module, the dynamic factor and the seed key in the dynamic token; 第二生成模块,用于根据所述第一生成模块生成的所述应答码和所述动态因子生成同步信息;A second generating module, configured to generate synchronization information according to the response code and the dynamic factor generated by the first generating module; 组合模块,用于将所述第二生成模块生成的所述同步信息和所述第一生成模块生成的所述应答码组合成同步码;a combination module, configured to combine the synchronization information generated by the second generation module and the response code generated by the first generation module into a synchronization code; 显示模块,用于对所述组合模块组合得到的所述同步码进行显示;a display module, configured to display the synchronization code combined by the combination module; 所述认证服务器,包括:The authentication server includes: 接收模块,用于接收来自所述主机的同步请求;a receiving module, configured to receive a synchronization request from the host; 第二获取模块,用于从所述接收模块接收到的所述同步请求中获取所述动态令牌的序列号;A second acquiring module, configured to acquire the serial number of the dynamic token from the synchronization request received by the receiving module; 第三生成模块,用于在所述接收模块接收到所述同步请求之后,生成随机数,将所述随机数保存为与所述第二获取模块获取到的所述动态令牌的序列号对应的挑战码;A third generating module, configured to generate a random number after the receiving module receives the synchronization request, and store the random number as corresponding to the serial number of the dynamic token obtained by the second obtaining module the challenge code; 第三获取模块,用于获取所述动态令牌生成的所述同步码和所述动态令牌的序列号;A third acquisition module, configured to acquire the synchronization code generated by the dynamic token and the serial number of the dynamic token; 第四获取模块,用于从所述第三获取模块获取到的所述同步码中获取所述应答码和所述同步信息;a fourth obtaining module, configured to obtain the response code and the synchronization information from the synchronization code obtained by the third obtaining module; 查询模块,用于根据所述第三获取模块获取到的所述动态令牌的序列号查询与所述动态令牌对应的种子密钥和挑战码;A query module, configured to query the seed key and challenge code corresponding to the dynamic token according to the serial number of the dynamic token obtained by the third obtaining module; 验证模块,用于使用所述查询模块查询到的种子密钥和挑战码,以及所述第四获取模块从所述同步码中获取的所述同步信息,对从所述同步码中获取的应答码进行验证;A verification module, configured to use the seed key and challenge code queried by the query module, and the synchronization information obtained from the synchronization code by the fourth obtaining module, to respond to the response obtained from the synchronization code code to verify; 更新模块,用于在所述验证模块对所述应答码验证通过时,根据所述第四获取模块从所述同步码中获取的所述同步信息以及所述认证服务器中的动态因子,更新所述认证服务器中与所述动态令牌对应的令牌偏移量;An update module, configured to update the synchronization information obtained from the synchronization code by the fourth acquisition module and the dynamic factor in the authentication server when the verification module passes the verification of the response code. The token offset corresponding to the dynamic token in the authentication server; 发送模块,用于将所述第三生成模块生成的所述随机数返回给所述主机进行显示,并在所述验证模块对所述应答码验证未通过时,向所述主机发送同步失败消息。A sending module, configured to return the random number generated by the third generating module to the host for display, and send a synchronization failure message to the host when the verification module fails to verify the response code . 22.如权利要求21所述的系统,其特征在于,所述认证服务器还包括:22. The system according to claim 21, wherein the authentication server further comprises: 记录模块,用于在所述第三生成模块生成随机数之后,记录所述随机数的生成时间,将所述随机数的生成时间保存为与所述动态令牌的序列号对应的挑战码的生成时间;在所述第三获取模块获取所述同步码之后,记录所述同步码的获取时间;A recording module, configured to record the generation time of the random number after the third generation module generates the random number, and store the generation time of the random number as the challenge code corresponding to the serial number of the dynamic token Generation time; after the third acquisition module acquires the synchronization code, record the acquisition time of the synchronization code; 所述查询模块,还用于根据所述第三获取模块获取到的所述动态令牌的序列号查询对应的挑战码的生成时间;The query module is further configured to query the generation time of the corresponding challenge code according to the serial number of the dynamic token acquired by the third acquisition module; 所述认证服务器,还包括:The authentication server also includes: 判断模块,用于判断所述记录模块记录的所述同步码的获取时间是否在所述查询模块查询到的所述挑战码的生成时间之后的第一预设时长内;A judging module, configured to judge whether the acquisition time of the synchronization code recorded by the recording module is within a first preset time period after the generation time of the challenge code queried by the query module; 所述发送模块,还用于在所述判断模块判断出所述同步码的获取时间不在所述挑战码的生成时间之后的第一预设时长内时,向所述主机发送同步失败消息;The sending module is further configured to send a synchronization failure message to the host when the judging module judges that the acquisition time of the synchronization code is not within the first preset time period after the generation time of the challenge code; 所述第四获取模块,具体用于在所述判断模块判断出所述同步码的获取时间在所述挑战码的生成时间之后的第一预设时长内时,从所述第三获取模块获取到的所述同步码中获取所述应答码和所述同步信息。The fourth acquiring module is specifically configured to acquire from the third acquiring module when the judging module judges that the acquisition time of the synchronization code is within the first preset time period after the generation time of the challenge code. Obtain the response code and the synchronization information from the received synchronization code. 23.如权利要求21所述的系统,其特征在于,23. The system of claim 21, wherein: 所述第二生成模块,具体用于对所述第一生成模块生成的所述应答码和所述动态因子进行异或,将得到的异或结果与预设的密钥信息进行异或,得到所述同步信息;The second generating module is specifically configured to XOR the response code generated by the first generating module and the dynamic factor, and XOR the obtained XOR result with preset key information to obtain said synchronization information; 所述验证模块,具体用于将所述预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为动态因子,根据所述查询模块查询到的种子密钥和挑战码,按照与所述动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从所述同步码中获取的应答码相同,如果是,则确认所述获取的应答码验证通过;否则,确定所述获取的应答码验证未通过。The verification module is specifically configured to XOR the preset key information and the synchronization information acquired by the fourth acquisition module from the synchronization code, and use the obtained XOR result as a dynamic factor, according to the The seed key and the challenge code inquired by the query module, according to the same method as the dynamic token generation response code, generate a response code, and judge whether the generated response code is the same as the response code obtained from the synchronization code , if yes, confirm that the obtained response code has passed the verification; otherwise, determine that the obtained response code has not passed the verification. 24.如权利要求21所述的系统,其特征在于,24. The system of claim 21, wherein: 所述第二生成模块,具体用于根据预设数据和所述动态令牌中的种子密钥生成密钥信息,对所述第一生成模块生成的所述应答码和所述动态因子进行异或,将得到的异或结果与所述密钥信息进行异或,得到所述同步信息;The second generation module is specifically configured to generate key information according to the preset data and the seed key in the dynamic token, and compare the response code and the dynamic factor generated by the first generation module. Or, XORing the obtained XOR result with the key information to obtain the synchronization information; 所述验证模块,具体用于将所述查询模块查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为动态因子,根据所述查询模块查询到的种子密钥和挑战码,按照与所述动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从所述同步码中获取的应答码相同,如果是,则确认所述获取的应答码验证通过;否则,确定所述获取的应答码验证未通过。The verification module is specifically configured to XOR the seed key queried by the query module with the preset data, and combine the obtained key information with the key information obtained by the fourth acquisition module from the synchronization code. XOR the synchronous information, and use the obtained XOR result as a dynamic factor, according to the seed key and challenge code inquired by the query module, generate a response code in the same way as the response code generated by the dynamic token, and Judging whether the generated response code is the same as the response code obtained from the synchronization code, if yes, confirming that the obtained response code has passed the verification; otherwise, determining that the obtained response code has not passed the verification. 25.如权利要求21所述的系统,其特征在于,25. The system of claim 21, wherein: 所述第二生成模块,具体用于从所述动态因子的最低位开始,选取预设长度的数据,将选取的数据与所述第一生成模块生成的所述应答码进行异或,将得到的异或结果与预设的密钥信息进行异或,得到同步信息;The second generation module is specifically used to select data of a preset length starting from the lowest bit of the dynamic factor, and XOR the selected data with the response code generated by the first generation module to obtain The XOR result of XOR is XORed with the preset key information to obtain synchronization information; 所述验证模块,具体用于将所述预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的动态因子中最低位的预设长度的数据,将替换后得到的数据作为动态因子,根据所述查询模块查询到的种子密钥和挑战码,按照与所述动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从所述同步码中获取的应答码相同,如果是,则确认所述获取的应答码验证通过;否则,确定所述获取的应答码验证未通过。The verification module is specifically configured to XOR the preset key information and the synchronization information acquired by the fourth acquisition module from the synchronization code, and replace the obtained XOR result in the authentication server The data of the preset length of the lowest bit in the dynamic factor, the data obtained after replacement is used as the dynamic factor, according to the seed key and challenge code queried by the query module, according to the same method as the response code generated by the dynamic token The method is to generate a response code, and judge whether the generated response code is the same as the response code obtained from the synchronization code, if yes, then confirm that the obtained response code is verified; otherwise, determine that the obtained response code is verified Did not pass. 26.如权利要求21所述的系统,其特征在于,26. The system of claim 21, wherein: 所述第二生成模块,具体用于根据预设数据和所述动态令牌中的种子密钥生成密钥信息,从所述动态因子的最低位开始,选取预设长度的数据,将选取的数据与所述第一生成模块生成的所述应答码进行异或,将得到的异或结果与所述密钥信息进行异或,得到所述同步信息;The second generating module is specifically configured to generate key information according to the preset data and the seed key in the dynamic token, select data of a preset length from the lowest bit of the dynamic factor, and select the selected XORing the data with the response code generated by the first generation module, and XORing the obtained XOR result with the key information to obtain the synchronization information; 所述验证模块,具体用于将所述查询模块查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的动态因子中最低位的预设长度的数据,将替换后得到的数据作为动态因子,根据所述查询到的种子密钥和挑战码,按照与所述动态令牌生成应答码相同的方法,生成应答码,并判断生成的应答码是否与从所述同步码中获取的应答码相同,如果是,则确认所述获取的应答码验证通过;否则,确定所述获取的应答码验证未通过。The verification module is specifically configured to XOR the seed key queried by the query module with the preset data, and combine the obtained key information with the key information obtained by the fourth acquisition module from the synchronization code. XOR the synchronization information, replace the obtained XOR result with the data of the lowest bit preset length in the dynamic factor in the authentication server, and use the replaced data as the dynamic factor, according to the queried seed key and challenge code, according to the same method as the dynamic token generation response code, generate a response code, and judge whether the generated response code is the same as the response code obtained from the synchronization code, if yes, then confirm the acquisition The verification of the response code passed; otherwise, it is determined that the obtained response code has not passed the verification. 27.如权利要求21所述的系统,其特征在于,所述动态令牌为时间型动态令牌时,所述动态因子为时间因子,所述认证服务器中的令牌偏移量为令牌偏移时间;27. The system according to claim 21, wherein when the dynamic token is a time-type dynamic token, the dynamic factor is a time factor, and the token offset in the authentication server is token offset time; 所述更新模块,具体包括:The update module specifically includes: 第一计算子模块,用于获取当前系统时间与自身保存的、与所述动态令牌对应的最近一次的同步时间之间的差值,根据所述差值和第一预设步长计算第一偏移阈值;The first calculation sub-module is used to obtain the difference between the current system time and the latest synchronization time stored by itself and corresponding to the dynamic token, and calculate the first step according to the difference and the first preset step an offset threshold; 第一判断子模块,用于判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一计算子模块计算出的所述第一偏移阈值;The first judgment submodule is used to judge whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset calculated by the first calculation submodule shift threshold; 第一发送子模块,用于在所述第一判断子模块判断出所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值大于所述第一偏移阈值时,向所述主机发送同步失败消息;在所述第一判断子模块判断出所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值不大于所述第一偏移阈值时,向所述主机发送同步成功消息;The first sending submodule is configured to determine that the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold when the first judging submodule judges , send a synchronization failure message to the host; when the first judging submodule judges that the time difference between the time factor in the dynamic token and the time factor in the authentication server is not greater than the first When a threshold is deviated, send a synchronization success message to the host; 第一更新子模块,用于在所述第一判断子模块判断出所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值不大于所述第一偏移阈值时,根据所述时间差值更新自身保存的、与所述动态令牌对应的令牌偏移时间,并将所述当前系统时间保存为与所述动态令牌对应的同步时间。A first updating submodule, configured to determine that the time difference between the time factor in the dynamic token and the time factor in the authentication server is not greater than the first offset when the first judging submodule judges When the threshold is reached, update the token offset time stored by itself and corresponding to the dynamic token according to the time difference, and save the current system time as the synchronization time corresponding to the dynamic token. 28.如权利要求27所述的系统,其特征在于,所述更新模块,还包括:28. The system according to claim 27, wherein the updating module further comprises: 第二判断子模块,用于在所述第一判断子模块判断出所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值大于所述第一偏移阈值之后,判断所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值,是否大于第二预设时长;The second judging submodule is used for judging by the first judging submodule that the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold Afterwards, it is judged whether the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than the second preset duration; 所述第一发送子模块,具体用于在所述第二判断子模块判断出所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值不大于第二预设时长时,向所述主机发送同步失败消息;The first sending submodule is specifically used to determine that the difference between the current system time and the latest synchronization time corresponding to the dynamic token is not greater than the second preset when the second judging submodule judges When the time is long, send a synchronization failure message to the host; 在所述第二判断子模块判断出所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值大于第二预设时长时,以及,在所述第一判断子模块判断出所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值不大于所述第一偏移阈值时,向所述主机发送同步成功消息;When the second judging submodule judges that the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than a second preset duration, and, in the first judging submodule When the module determines that the time difference between the time factor in the dynamic token and the time factor in the authentication server is not greater than the first offset threshold, it sends a synchronization success message to the host; 所述第一更新子模块,还用于在所述第二判断子模块判断出所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值大于第二预设时长时,根据所述时间差值更新自身保存的、与所述动态令牌对应的令牌偏移时间,并将所述当前系统时间保存为与所述动态令牌对应的同步时间。The first updating submodule is further configured to determine that the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than a second preset duration when the second judging submodule judges , update the token offset time stored by itself and corresponding to the dynamic token according to the time difference, and save the current system time as the synchronization time corresponding to the dynamic token. 29.如权利要求27所述的系统,其特征在于,所述更新模块,还包括:29. The system according to claim 27, wherein the updating module further comprises: 第三判断子模块,用于判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间;The third judging submodule is used to judge whether the time factor in the dynamic token is greater than the latest authentication success time corresponding to the dynamic token; 所述第一计算子模块,具体用于在所述第三判断子模块判断出所述动态令牌中的时间因子大于与所述动态令牌对应的、最近一次的认证成功时间时,获取当前系统时间与自身保存的、与所述动态令牌对应的最近一次的同步时间之间的差值,根据所述差值和第一预设步长计算第一偏移阈值;The first calculating submodule is specifically used to acquire the current The difference between the system time and the latest synchronization time stored by itself and corresponding to the dynamic token, and calculate the first offset threshold according to the difference and the first preset step; 所述第一发送子模块,还用于在所述第三判断子模块判断出所述动态令牌中的时间因子不大于与所述动态令牌对应的、最近一次的认证成功时间时,向所述主机发送同步失败消息。The first sending submodule is further configured to, when the third judging submodule judges that the time factor in the dynamic token is not greater than the latest authentication success time corresponding to the dynamic token, send The host sends a synchronization failure message. 30.如权利要求29所述的系统,其特征在于,30. The system of claim 29, wherein: 所述第一判断子模块,具体用于将所述查询模块查询到的种子密钥与预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一偏移阈值;The first judging sub-module is specifically configured to XOR the seed key queried by the query module with preset data, and obtain the obtained key information from the synchronization code with the fourth obtaining module XOR the synchronization information, use the obtained XOR result as the time factor in the dynamic token, and judge whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold; 所述第三判断子模块,具体用于将所述查询模块查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间。The third judging submodule is specifically used to XOR the seed key queried by the query module with the preset data, and combine the obtained key information with the synchronization code obtained from the fourth acquisition module. XOR the synchronous information acquired in, use the obtained XOR result as the time factor in the dynamic token, and judge whether the time factor in the dynamic token is greater than the last time factor corresponding to the dynamic token Authentication success time. 31.如权利要求29所述的系统,其特征在于,31. The system of claim 29, wherein: 所述第一判断子模块,具体用于将所述查询模块查询到的种子密钥与预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一偏移阈值;The first judging sub-module is specifically configured to XOR the seed key queried by the query module with preset data, and obtain the obtained key information from the synchronization code with the fourth obtaining module XOR the synchronous information, replace the obtained XOR result with the data of the lowest bit preset length in the time factor in the authentication server, use the replaced data as the time factor in the dynamic token, and judge Whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold; 所述第三判断子模块,具体用于将所述查询模块查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间。The third judging submodule is specifically used to XOR the seed key queried by the query module with the preset data, and combine the obtained key information with the synchronization code obtained from the fourth acquisition module. XOR the synchronization information acquired in the authentication server, replace the obtained XOR result with the data of the lowest bit preset length in the time factor in the authentication server, and use the replaced data as the time factor in the dynamic token , judging whether the time factor in the dynamic token is greater than the latest successful authentication time corresponding to the dynamic token. 32.如权利要求29所述的系统,其特征在于,32. The system of claim 29, wherein 所述第一判断子模块,具体用于将预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一偏移阈值;The first judging submodule is specifically configured to XOR the preset key information with the synchronization information acquired by the fourth acquisition module from the synchronization code, and use the obtained XOR result as the dynamic order The time factor in the card, judging whether the time difference between the time factor in the dynamic token and the time factor in the authentication server is greater than the first offset threshold; 所述第三判断子模块,具体用于将所述预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间。The third judging submodule is specifically configured to XOR the preset key information and the synchronization information obtained by the fourth obtaining module from the synchronization code, and use the obtained XOR result as the A time factor in the dynamic token, judging whether the time factor in the dynamic token is greater than the latest successful authentication time corresponding to the dynamic token. 33.如权利要求29所述的系统,其特征在于,33. The system of claim 29, wherein: 所述第一判断子模块,具体用于将预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子与所述认证服务器中的时间因子之间的时间差值是否大于所述第一偏移阈值;The first judging submodule is specifically configured to XOR the preset key information with the synchronization information acquired by the fourth acquisition module from the synchronization code, and replace the authentication server with the obtained XOR result The data of the preset length of the lowest bit in the time factor in the time factor, use the data obtained after replacement as the time factor in the dynamic token, and judge the time factor in the dynamic token and the time factor in the authentication server Whether the time difference between is greater than the first offset threshold; 所述第三判断子模块,具体用于将所述预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中的时间因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的时间因子,判断所述动态令牌中的时间因子是否大于与所述动态令牌对应的、最近一次的认证成功时间。The third judging submodule is specifically configured to XOR the preset key information and the synchronization information obtained by the fourth obtaining module from the synchronization code, and replace the obtained XOR result with the The data of the preset length of the lowest bit in the time factor in the authentication server, the data obtained after replacement is used as the time factor in the dynamic token, and it is judged whether the time factor in the dynamic token is greater than that of the dynamic token. The latest authentication success time corresponding to the card. 34.如权利要求21所述的系统,其特征在于,所述动态令牌为事件型动态令牌时,所述动态因子为事件因子,所述认证服务器中的令牌偏移量为令牌偏移次数;34. The system according to claim 21, wherein when the dynamic token is an event-type dynamic token, the dynamic factor is an event factor, and the token offset in the authentication server is token Offset times; 所述更新模块,具体包括:The update module specifically includes: 第二计算子模块,用于获取当前系统时间与自身保存的、与所述动态令牌对应的最近一次的同步时间之间的差值,根据所述差值和第二预设步长计算第二偏移阈值;The second calculation sub-module is used to obtain the difference between the current system time and the latest synchronization time stored by itself and corresponding to the dynamic token, and calculate the first step according to the difference and the second preset step Two offset thresholds; 第四判断子模块,用于判断所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二计算子模块计算出的所述第二偏移阈值;The fourth judging submodule is used to judge whether the difference in the number of times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is greater than that calculated by the second calculation submodule The second offset threshold value obtained; 第二发送子模块,用于在所述第四判断子模块判断出所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值大于所述第二计算子模块计算出的所述第二偏移阈值时,向所述主机发送同步失败消息;在所述第四判断子模块判断出所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值不大于所述第二计算子模块计算出的所述第二偏移阈值时,向所述主机发送同步成功消息;The second sending submodule is used to determine that the difference in the number of times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is greater than or equal to When the second offset threshold calculated by the second calculating submodule, send a synchronization failure message to the host; when the fourth judging submodule judges that the event factor in the dynamic token is different from the When the number of times difference between the event factors corresponding to the dynamic token in the authentication server is not greater than the second offset threshold calculated by the second calculation submodule, send a synchronization success message to the host; 第二更新子模块,用于在所述第四判断子模块判断出所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值不大于所述第二计算子模块计算出的所述第二偏移阈值时,根据所述次数差值更新自身保存的、与所述动态令牌对应的令牌偏移次数,并将所述当前系统时间保存为与所述动态令牌对应的同步时间。The second updating submodule is used to determine that the difference in the number of times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is not the same in the fourth judging submodule When it is greater than the second offset threshold calculated by the second calculation submodule, update the number of token offsets stored by itself and corresponding to the dynamic token according to the number of times difference, and set the current The system time is saved as the synchronization time corresponding to the dynamic token. 35.如权利要求34所述的系统,其特征在于,所述更新模块,还包括:35. The system according to claim 34, wherein the updating module further comprises: 第五判断子模块,用于在所述第四判断子模块判断出所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值大于所述第二偏移阈值之后,判断所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值,是否大于第三预设时长;The fifth judging submodule is used for judging in the fourth judging submodule that the difference in the number of times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is greater than After the second offset threshold, determine whether the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than a third preset duration; 所述第二发送子模块,具体用于在所述第五判断子模块判断出所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值不大于第三预设时长时,向所述主机发送同步失败消息;The second sending submodule is specifically used to determine that the difference between the current system time and the latest synchronization time corresponding to the dynamic token is not greater than the third preset when the fifth judging submodule judges When the time is long, send a synchronization failure message to the host; 在所述第五判断子模块判断出所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值大于第三预设时长时,以及,在所述第四判断子模块判断出所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值不大于所述第二偏移阈值时,向所述主机发送同步成功消息;When the fifth judging submodule judges that the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than the third preset duration, and, in the fourth judging submodule When the module judges that the difference in the number of times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is not greater than the second offset threshold, it sends Sync success message; 所述第二更新子模块,还用于在所述第五判断子模块判断出所述当前系统时间与所述动态令牌对应的最近一次的同步时间之间的差值大于第三预设时长时,根据所述次数差值更新自身保存的、与所述动态令牌对应的令牌偏移次数,并将所述当前系统时间保存为与所述动态令牌对应的同步时间。The second updating submodule is further configured to determine that the difference between the current system time and the latest synchronization time corresponding to the dynamic token is greater than a third preset duration when the fifth judging submodule judges , update the token offset times stored by itself and corresponding to the dynamic token according to the difference in times, and save the current system time as the synchronization time corresponding to the dynamic token. 36.如权利要求34所述的系统,其特征在于,所述更新模块,还包括:36. The system according to claim 34, wherein the updating module further comprises: 第六判断子模块,用于判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数;The sixth judging submodule is used to judge whether the event factor in the dynamic token is greater than the latest number of successful authentications corresponding to the dynamic token; 所述第二计算子模块,具体用于在所述第六判断子模块判断出所述动态令牌中的事件因子大于与所述动态令牌对应的、最近一次的认证成功次数时,获取当前系统时间与自身保存的、与所述动态令牌对应的最近一次的同步时间之间的差值,根据所述差值和第二预设步长计算第二偏移阈值;The second calculation submodule is specifically used to acquire the current The difference between the system time and the latest synchronization time stored by itself and corresponding to the dynamic token, and calculate the second offset threshold according to the difference and the second preset step; 所述第二发送子模块,还用于在所述第六判断子模块判断出所述动态令牌中的事件因子不大于与所述动态令牌对应的、最近一次的认证成功次数时,向所述主机发送同步失败消息。The second sending submodule is further configured to, when the sixth judging submodule judges that the event factor in the dynamic token is not greater than the latest number of successful authentications corresponding to the dynamic token, send The host sends a synchronization failure message. 37.如权利要求36所述的系统,其特征在于,37. The system of claim 36, wherein: 所述第四判断子模块,具体用于将所述查询模块查询到的种子密钥与预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二偏移阈值;The fourth judging submodule is specifically used to XOR the seed key queried by the query module with the preset data, and obtain the obtained key information and the fourth obtaining module from the synchronization code Synchronization information XOR, the XOR result obtained as the event factor in the dynamic token, judge the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server Whether the difference between the number of times is greater than the second offset threshold; 所述第六判断子模块,具体用于将所述查询模块查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数。The sixth judging submodule is specifically used to XOR the seed key queried by the query module with the preset data, and combine the obtained key information with the synchronization code from the synchronization code obtained by the fourth acquisition module. XOR the synchronous information obtained in , use the obtained XOR result as the event factor in the dynamic token, and judge whether the event factor in the dynamic token is greater than the latest corresponding to the dynamic token The number of successful authentications. 38.如权利要求36所述的系统,其特征在于,38. The system of claim 36, wherein: 所述第四判断子模块,具体用于将所述查询模块查询到的种子密钥与预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中与所述动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二偏移阈值;The fourth judging submodule is specifically used to XOR the seed key queried by the query module with the preset data, and obtain the obtained key information and the fourth obtaining module from the synchronization code Synchronization information XOR, and the obtained XOR result replaces the data of the lowest bit preset length in the event factor corresponding to the dynamic token in the authentication server, and the data obtained after the replacement is used as the dynamic token The event factor in the card, judging whether the difference in the number of times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server is greater than the second offset threshold; 所述第六判断子模块,具体用于将所述查询模块查询到的种子密钥与所述预设数据进行异或,将得到的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中与所述动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数。The sixth judging submodule is specifically used to XOR the seed key queried by the query module with the preset data, and combine the obtained key information with the synchronization code from the synchronization code obtained by the fourth acquisition module. The synchronous information obtained in XOR is performed, and the obtained XOR result is replaced with the data of the lowest bit preset length in the event factor corresponding to the dynamic token in the authentication server, and the replaced data is used as the An event factor in the dynamic token, judging whether the event factor in the dynamic token is greater than the latest number of successful authentications corresponding to the dynamic token. 39.如权利要求36所述的系统,其特征在于,39. The system of claim 36, wherein: 所述第四判断子模块,具体用于将预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子与所述认证服务器中与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二偏移阈值;The fourth judging submodule is specifically configured to perform XOR on the preset key information and the synchronization information acquired by the fourth acquisition module from the synchronization code, and use the obtained XOR result as the dynamic order the event factor in the card, and judge whether the difference in times between the event factor in the dynamic token and the event factor corresponding to the dynamic token in the authentication server and the authentication server is greater than the second offset threshold; 所述第六判断子模块,具体用于将所述预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数。The sixth judging submodule is specifically configured to XOR the preset key information and the synchronization information obtained by the fourth obtaining module from the synchronization code, and use the obtained XOR result as the An event factor in the dynamic token, judging whether the event factor in the dynamic token is greater than the latest number of successful authentications corresponding to the dynamic token. 40.如权利要求36所述的系统,其特征在于,40. The system of claim 36, wherein: 所述第四判断子模块,具体用于将预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中与所述动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子与所述认证服务器中与所述动态令牌对应的事件因子之间的次数差值是否大于所述第二偏移阈值;The fourth judging submodule is specifically configured to XOR the preset key information with the synchronization information acquired by the fourth acquisition module from the synchronization code, and replace the authentication server with the obtained XOR result The data of the preset length of the lowest bit in the event factor corresponding to the dynamic token, the data obtained after replacement is used as the event factor in the dynamic token, and the event factor in the dynamic token is judged to be the same as the event factor in the dynamic token. Whether the number of times difference between the event factors corresponding to the dynamic token in the authentication server is greater than the second offset threshold; 所述第六判断子模块,具体用于将所述预设的密钥信息与所述第四获取模块从所述同步码中获取的同步信息进行异或,将得到的异或结果替换所述认证服务器中与所述动态令牌对应的事件因子中最低位的预设长度的数据,将替换后得到的数据作为所述动态令牌中的事件因子,判断所述动态令牌中的事件因子是否大于与所述动态令牌对应的、最近一次的认证成功次数。The sixth judging submodule is specifically configured to XOR the preset key information and the synchronization information obtained by the fourth obtaining module from the synchronization code, and replace the obtained XOR result with the In the authentication server, the data of the lowest bit preset length in the event factor corresponding to the dynamic token is used as the event factor in the dynamic token, and the event factor in the dynamic token is judged Whether it is greater than the latest successful authentication times corresponding to the dynamic token.
CN201410131504.7A 2014-04-02 2014-04-02 Dynamic token synchronizing method and system Expired - Fee Related CN103888470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410131504.7A CN103888470B (en) 2014-04-02 2014-04-02 Dynamic token synchronizing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410131504.7A CN103888470B (en) 2014-04-02 2014-04-02 Dynamic token synchronizing method and system

Publications (2)

Publication Number Publication Date
CN103888470A CN103888470A (en) 2014-06-25
CN103888470B true CN103888470B (en) 2017-01-25

Family

ID=50957190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410131504.7A Expired - Fee Related CN103888470B (en) 2014-04-02 2014-04-02 Dynamic token synchronizing method and system

Country Status (1)

Country Link
CN (1) CN103888470B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104687B (en) * 2014-07-28 2017-02-22 飞天诚信科技股份有限公司 Safe login method and system
CN104184590B (en) * 2014-09-01 2017-06-06 飞天诚信科技股份有限公司 A kind of method and apparatus for activating dynamic token
CN104980449B (en) * 2015-08-03 2018-05-08 上海携程商务有限公司 The safety certifying method and system of network request
CN107770126A (en) * 2016-08-16 2018-03-06 国民技术股份有限公司 Personal identification method, system and dynamic token, mobile terminal, gateway device
CN109120396B (en) * 2018-07-10 2021-11-26 成都安恒信息技术有限公司 Use method of data encryption and decryption system based on challenge response code
CN113132113B (en) * 2021-04-06 2022-07-01 鼎铉商用密码测评技术(深圳)有限公司 Method, system and equipment for verifying correctness of dynamic token

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4885778A (en) * 1984-11-30 1989-12-05 Weiss Kenneth P Method and apparatus for synchronizing generation of separate, free running, time dependent equipment
KR100187445B1 (en) * 1996-06-05 1999-04-15 김광호 Method and apparatus of rinsing wafer
CN101783731B (en) * 2009-12-28 2012-05-23 飞天诚信科技股份有限公司 Display method of dynamic password and dynamic token
CN102594803B (en) * 2012-01-18 2016-03-23 深圳市文鼎创数据科技有限公司 Information safety devices and server time synchronous method
CN102684881B (en) * 2012-05-03 2016-05-25 飞天诚信科技股份有限公司 A kind of authentication method of dynamic password and device
CN103441856A (en) * 2013-09-06 2013-12-11 北京握奇智能科技有限公司 Dynamic password authentication method and device

Also Published As

Publication number Publication date
CN103888470A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN109756338B (en) Authentication apparatus, computer-implemented method of authentication apparatus, and computer-readable medium
CN103888470B (en) Dynamic token synchronizing method and system
US11271759B2 (en) Secure digital signatures using physical unclonable function devices with reduced error rates
US10880306B2 (en) Verification information update
US8392709B1 (en) System and method for a single request—single response protocol with mutual replay attack protection
CN101699820B (en) Method and device for authenticating dynamic passwords
RU2019116772A (en) SYSTEMS AND METHODS FOR CREATING A UNIVERSAL RECORD
US20170324567A1 (en) Signature verification device, signature generation device, signature processing system, signature verification method, and signature generation method
CN103957196B (en) Synchronization method and system for information security equipment
CN108696356B (en) A method, device and system for deleting digital certificate based on blockchain
US9083515B1 (en) Forward secure pseudorandom number generation resilient to forward clock attacks
CN104683354A (en) A dynamic password system based on identification
JP2017531951A (en) Method, device, terminal and server for security check
KR20150135032A (en) System and method for updating secret key using physical unclonable function
US9203616B1 (en) Multi-server fault tolerant data store update
CN112600831A (en) Network client identity authentication system and method
KR20160109891A (en) Apparatus and Method for Generating Cryptographic Key based on PUF
JP5616156B2 (en) One-time authentication system
CN112182009B (en) Block chain data updating method and device and readable storage medium
CN107678886B (en) A method and terminal device for saving and restoring application data
CN117294449A (en) Identity authentication method and related equipment
KR101962703B1 (en) Method and apparatus for authentication of OTP generator based on built-in clock
US20130311770A1 (en) Tracing device and method
CN110858803B (en) Authentication method, system, server, and computer-readable storage medium
CN105162767B (en) Authentication method and system based on fingerprint

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170125