发明名称 METHOD FOR VERIFYING AND CALIBRATING TIME
摘要 A method for verifying and calibrating time is provided. The method includes: receiving a password and related information sent by a client, obtaining related information and generating a dynamic password and comparing the related information with the dynamic password, determining whether a preset condition according to the prestored preset time is satisfied, computing offset rate according to a benchmark time offset value if the preset condition according to the prestored preset time is satisfied and determining whether a calibrating condition is satisfied, calibrating time offset value if the calibrating condition is satisfied, and returning successful verification information, returning successful verification information directly if calibrating condition is not satisfied.
申请公布号 US2015161367(A1) 申请公布日期 2015.06.11
申请号 US201314239847 申请日期 2013.07.31
申请人 Lu Zhou;Yu Huazhang 发明人 Lu Zhou;Yu Huazhang
分类号 G06F21/31 主分类号 G06F21/31
代理机构 代理人
主权项 1. A method for verifying and calibrating time, comprising: a step 11 of receiving, by a calibrating device, a first dynamic password and a user identifier sent from a client, computing a current time factor according to current time of a server and determining a first time factor; a step 12 of obtaining, by the calibrating device, a seed according to the user identifier, generating a second dynamic password group and comparing a second dynamic password in the second dynamic password group with the first dynamic password, going to step 14 if the second dynamic password matches with the first dynamic password, going to step 13 if the second dynamic password does not match with the first dynamic password; the step 13 of determining, by the calibrating device, a second time factor according to the current time factor and a first preset value, generating a third dynamic password group and comparing a third dynamic password in the third dynamic password group with the first dynamic password, going to step 14 if the third dynamic password matches with the first dynamic password; returning error information and going back to step 11 if the third dynamic password does not match with the first dynamic password; the step 14 of recording, by the calibrating device, time of current successful verification and a current time offset value, obtaining last calibrating time, obtaining a first time difference according to time of current successful verification and the last calibrating time and determining whether the first time difference is no less than a second preset value, going to step 15 if the first time difference is no less than a second preset value; returning successful verification information if the first time difference is less than a second preset value; the step 15 of obtaining, by the calibrating device, a benchmark offset value and corresponding time of the benchmark offset value, determining whether the current time offset value belongs to an offset interval determined by the benchmark time offset value, going to step 16 if the current time offset value belongs to the offset interval determined by the benchmark time offset value; updating, by the calibrating device, the benchmark time offset value and returning successful verification information if the current time offset value does not belong to the offset interval determined by the benchmark time offset value; the step 16 of computing, by the calibrating device, a benchmark offset according to the benchmark time offset value and corresponding time of the same, obtaining a time offset value of last successful verification and corresponding time of the last successful verification, computing a unit offset according to the time offset of last successful verification and corresponding time of the same and a current time offset and corresponding time of the same, determining whether the unit offset belongs to the interval determined by the benchmark offset, going to step 17 if the unit offset belongs to the interval determined by the benchmark offset; returning successful verification information if the unit offset does not belong to the interval determined by the benchmark offset; and the step 17 of updating, by the calibrating device, a clock offset according to the current time offset value, storing calibrating time of this time to a first storing place, storing current time offset value and the current successful verification time to a third storing place to replace an original content and returning successful verification information.
地址 Beijing CN