{"id":165,"date":"2016-02-05T06:50:56","date_gmt":"2016-02-05T06:50:56","guid":{"rendered":""},"modified":"2016-02-05T06:50:56","modified_gmt":"2016-02-05T06:50:56","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=165","title":{"rendered":"[\u8f6c]HOTP\uff1a\u4e00\u79cd\u57fa\u4e8eHMAC\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5"},"content":{"rendered":"<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6458\u8981<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u672c\u6587\u63cf\u8ff0\u4e86\u4e00\u79cd\u57fa\u4e8e<\/span><span style=\"font-size:14px;\">HMAC<\/span><span style=\"font-size:14px;\">\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u751f\u6210\u7b97\u6cd5\u3002\u5bf9\u8be5\u7b97\u6cd5\u8fdb\u884c\u4e86\u5b89\u5168\u6027\u5206\u6790\uff0c\u5e76\u8ba8\u8bba\u4e86\u8be5\u7b97\u6cd5\u5b89\u5168\u4f7f\u7528\u7684\u91cd\u8981\u53c2\u6570\u3002\u8be5\u7b97\u6cd5\u5df2\u5e7f\u6cdb\u5e94\u7528\u4e8e<\/span><span style=\"font-size:14px;\">VPN<\/span><span style=\"font-size:14px;\">\u8bbf\u95ee\uff0c<\/span><span style=\"font-size:14px;\">Wi-Fi<\/span><span style=\"font-size:14px;\">\u767b\u5f55\u53ca\u9762\u5411\u4ea4\u6613\u7684<\/span><span style=\"font-size:14px;\">Web<\/span><span style=\"font-size:14px;\">\u5e94\u7528\u7b49\u591a\u9879\u7f51\u7edc\u670d\u52a1\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u672c\u6587\u7531<\/span><span style=\"font-size:14px;\">OATH<\/span><span style=\"font-size:14px;\">\u7ec4\u7ec7\u6210\u5458\u5408\u4f5c\u5b8c\u6210\uff0c\u8be6\u7ec6\u8ba8\u8bba\u4e86\u53ef\u5728\u6280\u672f\u754c\u81ea\u7531\u4f20\u64ad\u7684\u7b97\u6cd5\u3002\u4f5c\u8005\u76f8\u4fe1\u4e00\u79cd\u901a\u7528\u4e14\u5171\u4eab\u7684\u7b97\u6cd5\u53ef\u4ee5\u901a\u8fc7\u5546\u4e1a\u6216\u5f00\u653e\u8d44\u6e90\u5de5\u5177\u5b9e\u73b0\u5171\u4eab\uff0c\u4ece\u800c\u4e3a<\/span><span style=\"font-size:14px;\">Interne<\/span><span style=\"font-size:14px;\">\u4e0a\u91c7\u7528\u7684\u4e8c\u56e0\u5b50\u8ba4\u8bc1\u63d0\u4f9b\u4e86\u4fbf\u5229\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">1.<\/span><span><span style=\"font-size:14px;\">\u6982\u8ff0<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u672c\u6587\u9996\u5148\u4ecb\u7ecd\u4e86\u53ef\u4ee5\u751f\u6210\u57fa\u4e8e<\/span><span style=\"font-size:14px;\">HMAC<\/span><span style=\"font-size:14px;\">\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u503c\u7684\u7b97\u6cd5\u7684\u80cc\u666f\uff0c\u56e0\u800c\u8fd9\u79cd\u7b97\u6cd5\u4e5f\u79f0\u4e3a\u57fa\u4e8e<\/span><span style=\"font-size:14px;\">HMAC<\/span><span style=\"font-size:14px;\">\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5\u3002\u5c06\u5728\u7b2c<\/span><span style=\"font-size:14px;\">4<\/span><span style=\"font-size:14px;\">\u8282\u5217\u51fa\u8fd9\u79cd\u7b97\u6cd5\u7684\u8981\u6c42\uff0c\u5728\u7b2c<\/span><span style=\"font-size:14px;\">5<\/span><span style=\"font-size:14px;\">\u8282\u8bf4\u660e<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\uff0c\u7b2c<\/span><span style=\"font-size:14px;\">6<\/span><span style=\"font-size:14px;\">\u3001<\/span><span style=\"font-size:14px;\">7<\/span><span style=\"font-size:14px;\">\u8282\u4e3b\u8981\u5bf9\u8fd9\u79cd\u7b97\u6cd5\u8fdb\u884c\u5b89\u5168\u6027\u5206\u6790\uff0c\u7b2c<\/span><span style=\"font-size:14px;\">8<\/span><span style=\"font-size:14px;\">\u8282\u5bf9\u5176\u8fdb\u884c\u6269\u5145\u548c\u5b8c\u5584\uff0c\u5e76\u5728\u7b2c<\/span><span style=\"font-size:14px;\">10<\/span><span style=\"font-size:14px;\">\u8282\u5bf9\u672c\u6587\u4f5c\u51fa\u7ed3\u8bba\u3002\u5728\u9644\u5f55<\/span><span style=\"font-size:14px;\">A<\/span><span style=\"font-size:14px;\">\uff0c\u6709\u5174\u8da3\u7684\u8bfb\u8005\u4f1a\u53d1\u73b0\u5bf9\u7b97\u6cd5\u5b89\u5168\u6027\u7684\u8be6\u7ec6\u3001\u5168\u9762\u5206\u6790\uff1a\u5e76\u5bf9\u8be5\u7b97\u6cd5\u7684\u7406\u60f3\u5316\u7248\u672c\u8fdb\u884c\u4e86\u8bc4\u4ef7\uff0c\u4e4b\u540e\u5bf9<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u7684\u5b89\u5168\u6027\u8fdb\u884c\u4e86\u5206\u6790\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">2.<\/span><span><span style=\"font-size:14px;\">\u5f15\u8a00<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4eca\u5929\uff0c\u53cc\u56e0\u5b50\u8ba4\u8bc1\u4ecd\u53ea\u662f\u5728\u6781\u6709\u9650\u7684\u8303\u56f4\u548c\u89c4\u6a21\u5185\u5f97\u5230\u5e94\u7528\u3002\u5c3d\u7ba1\u5a01\u80c1\u548c\u653b\u51fb\u7684\u6c34\u5e73\u5728\u4e0d\u65ad\u63d0\u9ad8\uff0c\u5927\u591a\u6570<\/span><span style=\"font-size:14px;\">Internet<\/span><span style=\"font-size:14px;\">\u5e94\u7528\u8584\u5f31\u7684\u8ba4\u8bc1\u4f53\u7cfb\u6765\u76d1\u89c6\u7528\u6237\u8bbf\u95ee\u3002\u786c\u4ef6\u548c\u8f6f\u4ef6\u6280\u672f\u4f9b\u5e94\u5546\u4e4b\u95f4\u7f3a\u5c11\u53ef\u64cd\u4f5c\u6027\u6210\u4e3a\u4e86\u53cc\u56e0\u5b50\u8ba4\u8bc1\u5e94\u7528\u7684\u5236\u7ea6\u56e0\u7d20\u3002\u7279\u522b\u662f\u7531\u4e8e\u7f3a\u4e4f\u7edf\u4e00\u89c4\u8303\uff0c\u786c\u4ef6\u548c\u8f6f\u4ef6\u7ec4\u4ef6\u5e38\u5e38\u901a\u8fc7\u4e13\u6709\u6280\u672f\u7d27\u5bc6\u7684\u7ed3\u5408\uff0c\u4ece\u800c\u5bfc\u81f4\u9ad8\u6210\u672c\u89e3\u51b3\u65b9\u6848\uff0c\u4e0d\u4f73\u7684\u91c7\u7528\u548c\u6709\u9650\u7684\u521b\u65b0\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5728\u8fc7\u53bb\u4e24\u5e74\u4e2d\uff0c\u7f51\u7edc\u5a01\u80c1\u7684\u8fc5\u901f\u589e\u957f\u66b4\u9732\u4e86<\/span><span style=\"font-size:14px;\">Internet<\/span><span style=\"font-size:14px;\">\u4e0a\u8ba4\u8bc1\u4e3b\u8981\u624b\u6bb5\u9759\u6001\u53e3\u4ee4\u7684\u4e0d\u8db3\u3002\u540c\u65f6\uff0c\u76ee\u524d\u7684\u65b9\u6cd5\u8981\u6c42\u4e00\u4e2a\u7ec8\u7aef\u7528\u6237\u643a\u5e26\u4e00\u4e2a\u6602\u8d35\u7684\uff0c\u53ea\u80fd\u7528\u6765\u8fdb\u884c\u7f51\u7edc\u8ba4\u8bc1\u7684\u529f\u80fd\u5355\u4e00\u7684\u88c5\u7f6e\u3002\u8fd9\u663e\u7136\u4e5f\u4e0d\u662f\u6700\u597d\u7684\u65b9\u6cd5\u3002\u5bf9\u4e8e<\/span><span style=\"font-size:14px;\">Internet<\/span><span style=\"font-size:14px;\">\u4e0a\u6d41\u4f20\u7684\u53cc\u56e0\u5b50\u8ba4\u8bc1\u65b9\u6cd5\u5219\u5fc5\u987b\u5728\u80fd\u591f\u8de8\u5e7f\u6cdb\u5e94\u7528\u8303\u56f4\u7684\u7075\u6d3b\u6027\u66f4\u9ad8\u7684\u88c5\u7f6e\u4e2d\u5d4c\u5165\u5b83\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8fd9\u79cd\u65e2\u53ef\u4ee5\u5f15\u5165\u57fa\u7840\u6280\u672f\u540c\u65f6\u53c8\u4fdd\u8bc1\u5e7f\u6cdb\u4e92\u64cd\u4f5c\u6027\u7684\u80fd\u529b\u8981\u6c42\u5176\u5728\u5e7f\u5927\u786c\u4ef6\u548c\u8f6f\u4ef6\u5f00\u53d1\u8005\u6280\u672f\u754c\u4e2d\u968f\u65f6\u53ef\u5f97\u3002\u53ea\u6709\u4e00\u79cd\u5f00\u653e\u7cfb\u7edf\u65b9\u6cd5\u53ef\u4ee5\u4fdd\u8bc1\u57fa\u672c\u7684\u539f\u59cb\u53cc\u56e0\u5b50\u8ba4\u8bc1\u65b9\u6cd5\u53ef\u7528\u4e8e\u4e0b\u4e00\u4ee3\u7528\u6237\u88c5\u7f6e\uff0c\u5982<\/span><span style=\"font-size:14px;\">USB<\/span><span style=\"font-size:14px;\">\u5927\u91cf\u5b58\u50a8\u5668\u3001<\/span><span style=\"font-size:14px;\">IP<\/span><span style=\"font-size:14px;\">\u7535\u8bdd\u4ee5\u53ca\u4e2a\u4eba\u6570\u5b57\u52a9\u7406\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4e00\u6b21\u6027\u53e3\u4ee4\u5f53\u7136\u662f\u6700\u7b80\u5355\u800c\u6d41\u884c\u7684\u4fdd\u62a4\u7f51\u7edc\u8bbf\u95ee\u6743\u7684\u53cc\u56e0\u5b50\u8ba4\u8bc1\u65b9\u6cd5\u4e4b\u4e00\u3002\u4f8b\u5982\uff0c\u5728\u5927\u4f01\u4e1a\u4e2d\uff0c\u865a\u62df\u4e13\u7528\u7f51\u7edc\u7684\u8bbf\u95ee\u901a\u5e38\u90fd\u9700\u8981\u4f7f\u7528\u4e00\u6b21\u6027\u53e3\u4ee4\u6765\u8fdb\u884c\u8fdc\u7a0b\u7528\u6237\u8ba4\u8bc1\u3002\u4e00\u6b21\u6027\u53e3\u4ee4\u901a\u5e38\u66f4\u9002\u7528\u4e8e\u5f3a\u8ba4\u8bc1\u65b9\u5f0f\u5982\u516c\u94a5\u4f53\u5236<\/span><span style=\"font-size:14px;\">(PKI)<\/span><span style=\"font-size:14px;\">\u6216\u751f\u7269\u7edf\u8ba1\uff0c\u8fd9\u662f\u56e0\u4e3a\u7a7a\u6c14\u9694\u79bb\u88c5\u7f6e\u4e0d\u9700\u8981\u5728\u7528\u6237\u673a\u4e0a\u5b89\u88c5\u5ba2\u6237\u684c\u9762\u8f6f\u4ef6\uff0c\u56e0\u6b64\u53ef\u4f7f\u4ed6\u4eec\u5728\u5305\u62ec\u5bb6\u7528\u7535\u8111\u3001\u81ea\u52a8\u552e\u8d27\u673a\u3001\u4e2a\u4eba\u6570\u5b57\u52a9\u7406\u591a\u53f0\u673a\u5668\u4e0a\u6f2b\u6e38\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u672c\u6587\u63d0\u51fa\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5\uff0c\u53ef\u4ee5\u901a\u8fc7\u4efb\u4f55\u786c\u4ef6\u5236\u9020\u5546\u6216\u8f6f\u4ef6\u5f00\u53d1\u8005\u5b9e\u73b0\uff0c\u4ece\u800c\u5efa\u7acb\u4e86\u53ef\u4e92\u64cd\u4f5c\u8ba4\u8bc1\u88c5\u7f6e\u548c\u8f6f\u4ef6\u4ee3\u7406\u3002\u7b97\u6cd5\u662f\u57fa\u4e8e\u4e8b\u4ef6\u7684\uff0c\u56e0\u6b64\u5b83\u53ef\u7528\u4e8e\u5927\u5bb9\u91cf\u88c5\u7f6e\u5982<\/span><span style=\"font-size:14px;\">Java<\/span><span style=\"font-size:14px;\">\u667a\u80fd\u5361\u3001<\/span><span style=\"font-size:14px;\">USB <\/span><span style=\"font-size:14px;\">\u5b89\u5168\u88c5\u7f6e\u4ee5\u53ca<\/span><span style=\"font-size:14px;\">GSM SIM<\/span><span style=\"font-size:14px;\">\u5361\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6240\u4ecb\u7ecd\u7684\u7b97\u6cd5\u5728<\/span><span style=\"font-size:14px;\">IETF<\/span><span style=\"font-size:14px;\">\u77e5\u8bc6\u4ea7\u6743<\/span><span style=\"font-size:14px;\">[RFC3979]<\/span><span style=\"font-size:14px;\">\u89c4\u5b9a\u7684\u6761\u4ef6\u4e0b\u53ef\u4ee5\u5728\u5f00\u53d1\u754c\u81ea\u7531\u4f7f\u7528\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u672c\u6587\u7684\u4f5c\u8005\u90fd\u662f<\/span><span style=\"font-size:14px;\">OATH<\/span><span style=\"font-size:14px;\">\u7ec4\u7ec7\u6210\u5458\u3002\u8be5\u7ec4\u7ec7\u6210\u7acb\u4e8e<\/span><span style=\"font-size:14px;\">2004<\/span><span style=\"font-size:14px;\">\u5e74\uff0c\u5176\u76ee\u7684\u662f\u4fc3\u8fdb\u5f3a\u8ba4\u8bc1\u6280\u672f\u63d0\u4f9b\u8005\u4e4b\u95f4\u7684\u5408\u4f5c\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">3.<\/span><span><span style=\"font-size:14px;\">\u672f\u8bed<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u7684\u5173\u952e\u8bcd\u201c\u5fc5\u987b\u201d\u3001\u201c\u5fc5\u987b\u4e0d\u201d\u3001\u201c\u8981\u6c42\u201d\u3001\u201c\u5373\u5c06\u201d\u3001\u201c\u5c06\u4e0d\u201d\u3001\u201c\u5e94\u8be5\u201d\u3001\u201c\u5e94\u8be5\u4e0d\u201d\u3001\u201c\u5efa\u8bae\u201d\u3001\u201c\u53ef\u4ee5\u201d\u3001\u548c\u201c\u53ef\u9009\u201d\u90fd\u5982<\/span><span style=\"font-size:14px;\">[RFC2119]<\/span><span style=\"font-size:14px;\">\u4e2d\u6240\u5b9a\u4e49\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">4.<\/span><span><span style=\"font-size:14px;\">\u7b97\u6cd5\u8981\u6c42<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8fd9\u4e00\u8282\u8bf4\u660e\u4e86\u8fdb\u884c\u7b97\u6cd5\u8bbe\u8ba1\u7684\u8981\u6c42\u3002\u7740\u91cd\u5f3a\u8c03\u4e86\u7ec8\u7aef\u7528\u6237\u7684\u53ef\u7528\u6027\u548c\u7b97\u6cd5\u7531\u4f4e\u6210\u672c\u786c\u4ef6\u5b9e\u73b0\u7684\u80fd\u529b\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u754c\u9762\u80fd\u529b\u6700\u5c0f\u5316\u3002\u7279\u522b\u662f\u4ee5\u7b97\u6cd5\u80fd\u63d2\u5165\u9ad8\u5bb9\u91cf<\/span><span style=\"font-size:14px;\">SIM<\/span><span style=\"font-size:14px;\">\u548c<\/span><span style=\"font-size:14px;\">Java<\/span><span style=\"font-size:14px;\">\u5361\u7684\u4e3a\u524d\u63d0\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8981\u6c42<\/span><span style=\"font-size:14px;\">1<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u5fc5\u987b\u662f\u57fa\u4e8e\u5e8f\u5217\u53f7\u6216\u57fa\u4e8e\u8ba1\u6570\u5668\u7684\u3002\u8fd9\u6837\u7684\u76ee\u7684\u4e4b\u4e00\u662f\u53ef\u4ee5\u5c06<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u7528\u4e8e\u5927\u5bb9\u91cf\u88c5\u7f6e\u5982<\/span><span style=\"font-size:14px;\">Java<\/span><span style=\"font-size:14px;\">\u667a\u80fd\u5361\uff0c<\/span><span style=\"font-size:14px;\">USB<\/span><span style=\"font-size:14px;\">\u5b89\u5168\u88c5\u7f6e\u548c<\/span><span style=\"font-size:14px;\">GSM SIM<\/span><span style=\"font-size:14px;\">\u5361\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8981\u6c42<\/span><span style=\"font-size:14px;\">2<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u5e94\u8be5\u662f\u7ecf\u6d4e\u53ef\u5b9e\u73b0\u7684\uff0c\u786c\u4ef6\u4e0a\u5bf9\u7535\u6c60\u3001\u6309\u952e\u3001\u8ba1\u7b97\u9a6c\u529b\u3001<\/span><span style=\"font-size:14px;\">LCD<\/span><span style=\"font-size:14px;\">\u663e\u793a\u5668\u5c3a\u5bf8\u7684\u9700\u8981\u6700\u5c0f\u5316\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8981\u6c42<\/span><span style=\"font-size:14px;\">3<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u5fc5\u987b\u7528\u5728\u4e0d\u652f\u6301\u4efb\u4f55\u6570\u503c\u578b\u8f93\u5165\u7684\u4ee4\u724c\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u66f4\u590d\u6742\u7684\u673a\u5668\u5982\u5b89\u5168<\/span><span style=\"font-size:14px;\">PIN<\/span><span style=\"font-size:14px;\">\u952e\u76d8\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8981\u6c42<\/span><span style=\"font-size:14px;\">4<\/span><span style=\"font-size:14px;\">\u4ee4\u724c\u4e0a\u663e\u793a\u7684<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u5fc5\u987b\u6613\u4e8e\u7528\u6237\u9605\u8bfb\u548c\u8f93\u5165\uff0c\u8fd9\u8981\u6c42<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u5fc5\u987b\u6709\u4e00\u4e2a\u5408\u7406\u7684\u957f\u5ea6\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">HOTP<\/span><span><span style=\"font-size:14px;\">\u53ea\u5fc5\u987b\u81f3\u5c11\u4e3a<\/span><span style=\"font-size:14px;\">6<\/span><span style=\"font-size:14px;\">\u4f4d\uff0c\u540c\u65f6\u4e5f\u5e0c\u671b\u5b83\u4ec5\u7531\u6570\u5b57\u6784\u6210\uff0c\u8fd9\u6837\u7528\u6237\u5c31\u5f88\u5bb9\u6613\u5728\u7535\u8bdd\u8fd9\u6837\u7684\u6709\u9650\u8bbe\u5907\u4e0a\u8f93\u5165\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8981\u6c42<\/span><span style=\"font-size:14px;\">5<\/span><span style=\"font-size:14px;\">\u5fc5\u987b\u6709\u7528\u6237<\/span><\/span><span style=\"font-family:'Courier New';font-size:14px;\">\u2014\u2014<\/span><span><span style=\"font-size:14px;\">\u53ef\u5229\u7528\u7684\u53cb\u597d\u88c5\u7f6e\u6765\u5b9e\u73b0\u8ba1\u6570\u5668\u91cd\u540c\u6b65\uff0c<\/span><span style=\"font-size:14px;\">7.4<\/span><span style=\"font-size:14px;\">\u8282\u548c\u9644\u5f55<\/span><span style=\"font-size:14px;\">E.4<\/span><span style=\"font-size:14px;\">\u8be6\u7ec6\u8bf4\u660e\u4e86\u672c\u6587\u63d0\u5230\u7684\u91cd\u540c\u6b65\u88c5\u7f6e\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8981\u6c42<\/span><span style=\"font-size:14px;\">6<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u5fc5\u987b\u4f7f\u7528\u5f3a\u5171\u4eab\u7684\u5bc6\u94a5\uff0c\u5171\u4eab\u5bc6\u94a5\u7684\u957f\u5ea6\u5fc5\u987b\u81f3\u5c11\u4e3a<\/span><span style=\"font-size:14px;\">128<\/span><span style=\"font-size:14px;\">\u6bd4\u7279\u3002\u672c\u6587\u5efa\u8bae\u5171\u4eab\u5bc6\u94a5\u7684\u957f\u5ea6\u4e3a<\/span><span style=\"font-size:14px;\">160<\/span><span style=\"font-size:14px;\">\u6bd4\u7279\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">5.HOTP<\/span><span><span style=\"font-size:14px;\">\u7b97\u6cd5<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5728\u8fd9\u4e00\u8282\uff0c\u6211\u4eec\u4ecb\u7ecd\u6807\u8bb0\u5e76\u63cf\u8ff0<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u7684\u57fa\u672c\u6a21\u5757<\/span><span style=\"font-size:14px;\">&shy;<\/span><\/span><span style=\"font-family:'Courier New';font-size:14px;\">\u2014\u2014<\/span><span><span style=\"font-size:14px;\">\u8ba1\u7b97<\/span><span style=\"font-size:14px;\">HMAC-SHA1<\/span><span style=\"font-size:14px;\">\u503c\u7684\u57fa\u672c\u51fd\u6570\uff0c\u4ee5\u53ca\u62bd\u53d6<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u7684\u622a\u77ed\u65b9\u6cd5\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">5.1<\/span><span><span style=\"font-size:14px;\">\u6807\u8bb0\u548c\u7b26\u53f7<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4e00\u4e2a\u6570\u4e32\u901a\u5e38\u4e3a\u4e8c\u8fdb\u5236\u6570\u4e32\uff0c\u5373<\/span><span style=\"font-size:14px;\">0<\/span><span style=\"font-size:14px;\">\u548c<\/span><span style=\"font-size:14px;\">1<\/span><span style=\"font-size:14px;\">\u7684\u5e8f\u5217\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5982\u679c<\/span><span style=\"font-size:14px;\">s<\/span><span style=\"font-size:14px;\">\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u5219<\/span><span style=\"font-size:14px;\">|s|<\/span><\/span><span style=\"font-size:14px;\">\u8868\u793a\u5176\u957f\u5ea6\u3002<\/span><span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5982\u679c<\/span><span style=\"font-size:14px;\">n<\/span><span style=\"font-size:14px;\">\u662f\u4e00\u4e2a\u6570\uff0c\u5219<\/span><span style=\"font-size:14px;\">|n|<\/span><\/span><span style=\"font-size:14px;\">\u8868\u793a\u5176\u7edd\u5bf9\u503c\u3002<\/span><span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5982\u679c<\/span><span style=\"font-size:14px;\">s<\/span><span style=\"font-size:14px;\">\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u5219<\/span><span style=\"font-size:14px;\">s[i]<\/span><\/span><span><span style=\"font-size:14px;\">\u8868\u793a\u5176\u7b2c<\/span><span style=\"font-size:14px;\">i<\/span><span style=\"font-size:14px;\">\u6bd4\u7279\u3002\u6211\u4eec\u4ee5<\/span><span style=\"font-size:14px;\">0<\/span><span style=\"font-size:14px;\">\u4e3a\u5f00\u59cb\u5bf9\u8fd9\u4e9b\u6bd4\u7279\u8fdb\u884c\u7f16\u53f7\u3002\u56e0\u6b64<\/span><\/span><span style=\"font-size:14px;\">s = s[0]s[1]&#8230;s[n-1]<\/span><span style=\"font-size:14px;\">\uff0c\u8fd9\u91cc<\/span><span style=\"font-size:14px;\">n = |s|<\/span><span><span style=\"font-size:14px;\">\u662f<\/span><span style=\"font-size:14px;\">s<\/span><span style=\"font-size:14px;\">\u7684\u957f\u5ea6\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">StToNum<\/span><span><span style=\"font-size:14px;\">\u8868\u793a\u4e8c\u8fdb\u5236\u4e32\u8f93\u5165\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u6570\u7684\u51fd\u6570\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4e0b\u9762\u662f\u672c\u6587\u4e2d\u7528\u5230\u7684\u7b26\u53f7\u5217\u8868<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><span style=\"color:red;\"><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">C<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">8-byte<\/span><\/span><span> <\/span><span><span style=\"font-size:14px;\">\u8ba1\u6570\u5668\u503c\uff0c\u6b64\u8ba1\u6570\u5668\u5fc5\u987b\u4e0e<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u751f\u6210\u5668<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u5ba2\u6237\u7aef<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u548c<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u8ba4\u8bc1\u5668<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u670d\u52a1\u5668<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u4fdd\u6301\u540c\u6b65\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">K<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span><span style=\"font-size:14px;\">\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u5171\u4eab\u5bc6\u94a5\uff1b\u6bcf\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u751f\u6210\u5668\u90fd\u6709\u4e92\u4e0d\u76f8\u540c\u4e14\u552f\u4e00\u7684\u5bc6\u94a5<\/span><span style=\"font-size:14px;\">K<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">T<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span><span style=\"font-size:14px;\">\u9608\u503c\u53c2\u6570\uff1a\u7528\u6237\u5c1d\u8bd5\u8ba4\u8bc1\u6b21\u6570\u8fbe\u5230<\/span><span style=\"font-size:14px;\">T<\/span><span style=\"font-size:14px;\">\u6b21\u540e\uff0c\u670d\u52a1\u5668\u5c06\u62d2\u7edd\u8be5\u7528\u6237\u63a5\u5165\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">S<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span><span style=\"font-size:14px;\">\u91cd\u540c\u6b65\u53c2\u6570\uff1a\u670d\u52a1\u5668\u5c06\u901a\u8fc7\u4f9d\u6b21\u7684<\/span><span style=\"font-size:14px;\">S<\/span><span style=\"font-size:14px;\">\u4e2a\u8ba1\u6570\u5668\u503c\u6765\u9a8c\u8bc1\u63a5\u6536\u5230\u7684\u8ba4\u8bc1\u7801\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">Digit<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp; <\/span><\/span><span><span style=\"font-size:14px;\">\u7cfb\u7edf\u53c2\u6570\uff0c<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u7684\u4f4d\u6570\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">5.2<\/span><span><span style=\"font-size:14px;\">\u63cf\u8ff0<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">HOTP<\/span><span><span style=\"font-size:14px;\">\u7b97\u6cd5\u662f\u57fa\u4e8e\u4e00\u4e2a\u52a0\u6cd5\u8ba1\u6570\u5668\u548c\u4e00\u4e2a\u9759\u6001\u7684\u5bf9\u79f0\u5bc6\u94a5\uff0c\u8be5\u5bc6\u94a5\u4ec5\u6709\u4ee4\u724c\u548c\u8ba4\u8bc1\u670d\u52a1\u5668\u77e5\u9053\u3002\u4e3a\u5f97\u5230<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\uff0c\u6211\u4eec\u4f7f\u7528<\/span><span style=\"font-size:14px;\">HMAC-SHA-1<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\uff0c\u5982<\/span><span style=\"font-size:14px;\">RFC 2104 [BCK2]<\/span><span style=\"font-size:14px;\">\u6240\u5b9a\u4e49\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u7531\u4e8e<\/span><span style=\"font-size:14px;\">HMAC-SHA-1<\/span><span style=\"font-size:14px;\">\u8ba1\u7b97\u8f93\u51fa\u4e3a<\/span><span style=\"font-size:14px;\">160<\/span><span style=\"font-size:14px;\">\u6bd4\u7279\uff0c\u6211\u4eec\u5fc5\u987b\u5c06\u5176\u622a\u77ed\u4ee5\u4fbf\u4e8e\u7528\u6237\u8f93\u5165\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">HOTP(K,C) = Truncate(HMAC-SHA-1(K,C))<\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8fd9\u91cc\uff1a<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">Truncate<\/span><span style=\"font-size:14px;\">\u8868\u793a\u5c06<\/span><span style=\"font-size:14px;\">HMAC-SHA-1<\/span><span><span style=\"font-size:14px;\">\u503c\u8f6c\u6362\u4e3a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u7684\u51fd\u6570\uff0c\u5982<\/span><span style=\"font-size:14px;\">5.3<\/span><span style=\"font-size:14px;\">\u8282\u6240\u5b9a\u4e49\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u9996\u5148\u5bf9\u5bc6\u94a5<\/span><span style=\"font-size:14px;\">(K)<\/span><span style=\"font-size:14px;\">\uff0c\u8ba1\u6570\u5668<\/span><span style=\"font-size:14px;\">(C)<\/span><span style=\"font-size:14px;\">\uff0c\u548c<\/span><span style=\"font-size:14px;\">Data<\/span><span style=\"font-size:14px;\">\u503c\u6267\u884c\u9ad8\u9636\u5b57\u8282\u6563\u5217\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">HOTP<\/span><span><span style=\"font-size:14px;\">\u751f\u6210\u5668\u4ea7\u751f\u7684<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u53ef\u4ee5\u4f5c\u4e3a\u5927\u5c3e\u6570\u5904\u7406\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">5.3.<\/span><span><span style=\"font-size:14px;\">\u751f\u6210<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6211\u4eec\u53ef\u4ee5\u5206\u4e3a<\/span><span style=\"font-size:14px;\">3<\/span><span style=\"font-size:14px;\">\u4e2a\u6b65\u9aa4\u6765\u63cf\u8ff0\u6539\u8fc7\u7a0b<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6b65\u9aa4<\/span><span style=\"font-size:14px;\">1<\/span><span style=\"font-size:14px;\">\uff1a\u751f\u6210\u4e00\u4e2a<\/span><\/span><span style=\"font-size:14px;\">HMAC-SHA-1<\/span><span style=\"font-size:14px;\">\u503c\uff0c\u4ee4<\/span><span style=\"font-size:14px;\">HS = HMAC-SHA-1(K,C)\/\/ HS<\/span><span><span style=\"font-size:14px;\">\u662f\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">20<\/span><span style=\"font-size:14px;\">\u5b57\u8282\u7684\u6570\u7ec4\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6b65\u9aa4<\/span><span style=\"font-size:14px;\">2<\/span><span style=\"font-size:14px;\">\uff1a\u751f\u6210\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">4<\/span><span style=\"font-size:14px;\">\u5b57\u8282\u6570\u7ec4<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u52a8\u6001\u622a\u77ed<\/span><span style=\"font-size:14px;\">)<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4ee4<\/span><span style=\"font-size:14px;\">Sbits = DT(HS)\/\/DT<\/span><span style=\"font-size:14px;\">\u7a0d\u540e\u5b9a\u4e49<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">\/\/<\/span><\/span><span><span style=\"font-size:14px;\">\u8fd4\u56de<\/span><span style=\"font-size:14px;\">31<\/span><span style=\"font-size:14px;\">\u4f4d\u7684\u6570\u4e32<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6b65\u9aa4<\/span><span style=\"font-size:14px;\">3<\/span><span style=\"font-size:14px;\">\uff1a\u8ba1\u7b97<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4ee4<\/span><span style=\"font-size:14px;\">Snum = StToNum(Sbits)\/\/<\/span><span style=\"font-size:14px;\">\u5c06<\/span><span style=\"font-size:14px;\">Sbits<\/span><span style=\"font-size:14px;\">\u8f6c\u6362\u4e3a<\/span><span style=\"font-size:14px;\">10<\/span><span style=\"font-size:14px;\">\u8fdb\u5236\u6570\uff0c\u53d6\u503c\u5728<\/span><span style=\"font-size:14px;\">0<\/span><span style=\"font-size:14px;\">\u503c<\/span><span style=\"font-size:14px;\">2^{31}-1<\/span><span style=\"font-size:14px;\">\u4e4b\u95f4<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8fd4\u56de<\/span><span style=\"font-size:14px;\">D = Snum mod 10^Digit\/\/D<\/span><span style=\"font-size:14px;\">\u662f\u4e00\u4e2a\u5341\u8fdb\u5236\u6570\uff0c\u53d6\u503c\u5728<\/span><span style=\"font-size:14px;\">0<\/span><span style=\"font-size:14px;\">\u81f3<\/span><span style=\"font-size:14px;\">10^{digit}-1<\/span><span style=\"font-size:14px;\">\u4e4b\u95f4<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u622a\u77ed\u51fd\u6570\u7528\u4e8e\u6b65\u9aa4<\/span><span style=\"font-size:14px;\">2<\/span><span style=\"font-size:14px;\">\u548c\u6b65\u9aa4<\/span><span style=\"font-size:14px;\">3<\/span><span style=\"font-size:14px;\">\u4e2d\uff0c\u5373\u8fdb\u884c\u52a8\u6001\u622a\u77ed\u4e4b\u540e\u4e0e<\/span><span style=\"font-size:14px;\">10^{digit}<\/span><span style=\"font-size:14px;\">\u8fdb\u884c\u6a21\u8fd0\u7b97\u3002\u52a8\u6001\u622a\u77ed\u51fd\u6570\u7684\u4f5c\u7528\u662f\u4ece<\/span><span style=\"font-size:14px;\">160<\/span><span style=\"font-size:14px;\">\u6bd4\u7279<\/span><span style=\"font-size:14px;\">(20<\/span><span style=\"font-size:14px;\">\u5b57\u8282<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u7684<\/span><span style=\"font-size:14px;\">HMAC-SHA-1<\/span><span style=\"font-size:14px;\">\u8fd0\u7b97\u7ed3\u679c\u4e2d\u62bd\u53d6<\/span><span style=\"font-size:14px;\">4<\/span><span style=\"font-size:14px;\">\u5b57\u8282\u7684\u52a8\u6001\u4e8c\u8fdb\u5236\u7801\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">DT(String) \/\/ String = String[0]&#8230;String[19]<\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4ee4<\/span><span style=\"font-size:14px;\">OffsetBits<\/span><\/span><span style=\"font-size:14px;\">\u4f5c\u4e3a<\/span><span style=\"font-size:14px;\">String[19]<\/span><span><span style=\"font-size:14px;\">\u7684\u4f4e<\/span><span style=\"font-size:14px;\">4<\/span><span style=\"font-size:14px;\">\u4f4d<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">Offset = StToNum(OffsetBits) \/\/ 0 &lt;= OffSet &lt;= 15<\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4ee4<\/span><span style=\"font-size:14px;\">P = String[OffSet]&#8230;String[OffSet+3]<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8fd4\u56de<\/span><span style=\"font-size:14px;\">P<\/span><span style=\"font-size:14px;\">\u7684\u540e<\/span><span style=\"font-size:14px;\">31<\/span><span style=\"font-size:14px;\">\u4f4d<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4e0d\u53d6<\/span><span style=\"font-size:14px;\">P<\/span><span style=\"font-size:14px;\">\u7684\u6700\u9ad8\u4f4d\u7684\u539f\u56e0\u662f\u4e3a\u4e86\u9632\u6b62\u6df7\u6dc6\u6709\u7b26\u53f7\u4e0e\u65e0\u7b26\u53f7\u7684\u6a21\u8fd0\u7b97\u3002\u4e0d\u540c\u7684\u5904\u7406\u5668\u56de\u8fdb\u884c\u4e0d\u540c\u7684\u5904\u7406\uff0c\u4e0d\u53d6\u7b26\u53f7\u4f4d\u53ef\u4ee5\u6d88\u9664\u8fd9\u79cd\u6a21\u7cca\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">Digit<\/span><span><span style=\"font-size:14px;\">\u5fc5\u987b\u6700\u5c11\u53d6<\/span><span style=\"font-size:14px;\">6<\/span><span style=\"font-size:14px;\">\u4f4d\uff0c\u53ef\u80fd\u7684\u8bdd\u53d6<\/span><span style=\"font-size:14px;\">7<\/span><span style=\"font-size:14px;\">\u5230<\/span><span style=\"font-size:14px;\">8<\/span><span style=\"font-size:14px;\">\u4f4d\u7801\u3002\u6839\u636e\u4fdd\u5bc6\u9700\u8981\uff0c\u5e94\u8be5\u8003\u8651\u4f7f<\/span><span style=\"font-size:14px;\">Digit = 7<\/span><span style=\"font-size:14px;\">\u6216\u66f4\u9ad8\u4ee5\u5f97\u5230\u957f<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">5.4 Digit =6<\/span><span><span style=\"font-size:14px;\">\u7684<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u8ba1\u7b97\u4e3e\u4f8b<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">\u4e0b\u9762\u7684\u4f8b\u5b50\u63cf\u8ff0\u4e86\u62bd\u53d6\u52a8\u6001\u4e8c\u8fdb\u5236\u7801\u7684\u8fc7\u7a0b\uff0c<\/span><span style=\"font-size:14px;\">hmac_result<\/span><span><span style=\"font-size:14px;\">\u662f\u5b58\u653e<\/span><span style=\"font-size:14px;\">HMAC-SHA-1<\/span><span style=\"font-size:14px;\">\u7ed3\u679c\u7684\u4e00\u4e2a\u5b57\u8282\u6570\u7ec4<\/span><\/span><span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">int offset<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">=<\/span><span style=\"font-size:14px;\">&nbsp; <\/span><span style=\"font-size:14px;\">hmac_result[19] &amp; 0xf ;<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">int bin_code = (hmac_result[offset]<\/span><span style=\"font-size:14px;\">&nbsp; <\/span><span style=\"font-size:14px;\">&amp; 0x7f) &lt;&lt; 24<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">| (hmac_result[offset+1] &amp; 0xff) &lt;&lt; 16<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">| (hmac_result[offset+2] &amp; 0xff) &lt;&lt;<\/span><span style=\"font-size:14px;\">&nbsp; <\/span><span style=\"font-size:14px;\">8<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">| (hmac_result[offset+3] &amp; 0xff) ;<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">SHA-1 HMAC Bytes (Example)<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">| Byte Number<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">|<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">|00|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp; <\/span><span style=\"font-size:14px;\">&nbsp;<\/span><span style=\"font-size:14px;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">| Byte Value<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">|<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">|1f|86|98|69|0e|02|ca|16|61|85|50|ef|7f|19|da|8e|94|5b|55|5a|<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">&nbsp;&nbsp; <\/span><span style=\"font-size:14px;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-***********&#8212;&#8212;&#8212;&#8212;&#8212;-++|<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">*<\/span><span><span style=\"font-size:14px;\">\u6700\u540e\u7684\u5b57\u8282<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u7b2c<\/span><span style=\"font-size:14px;\">19<\/span><span style=\"font-size:14px;\">\u5b57\u8282<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u4f4d<\/span><span style=\"font-size:14px;\">16<\/span><span style=\"font-size:14px;\">\u8fdb\u5236\u503c<\/span><span style=\"font-size:14px;\">0x5a<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">*<\/span><span><span style=\"font-size:14px;\">\u4f4e<\/span><span style=\"font-size:14px;\">4<\/span><span style=\"font-size:14px;\">\u4f4d\u503c\u662f<\/span><span style=\"font-size:14px;\">0xa(offset<\/span><span style=\"font-size:14px;\">\u503c<\/span><span style=\"font-size:14px;\">)<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">*<\/span><span style=\"font-size:14px;\">offset<\/span><span><span style=\"font-size:14px;\">\u503c\u662f\u5b57\u8282<\/span><span style=\"font-size:14px;\">10(0xa)<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">*<\/span><span><span style=\"font-size:14px;\">\u4ece<\/span><span style=\"font-size:14px;\">10<\/span><span style=\"font-size:14px;\">\u5b57\u8282\u5f00\u59cb<\/span><span style=\"font-size:14px;\">4<\/span><span style=\"font-size:14px;\">\u5b57\u8282\u503c\u4e3a<\/span><span style=\"font-size:14px;\">0x50ef7f19<\/span><span style=\"font-size:14px;\">\uff0c\u5373\u52a8\u6001\u4e8c\u8fdb\u5236\u7801<\/span><span style=\"font-size:14px;\">DBC1<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">*<\/span><span><span style=\"font-size:14px;\">\u7531\u4e8e<\/span><span style=\"font-size:14px;\">DBC1<\/span><span style=\"font-size:14px;\">\u7684\u6700\u9ad8\u5b57\u8282\u662f<\/span><span style=\"font-size:14px;\">0x50<\/span><span style=\"font-size:14px;\">\uff0c\u6240\u4ee5<\/span><span style=\"font-size:14px;\">DBC2=DBC1=0x50ef7f19<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">*<\/span><span style=\"font-size:14px;\">HOTP=<\/span><span style=\"font-size:14px;\"> DBC2 modulo 10^6 = 872921<\/span><span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6211\u4eec\u5c06\u52a8\u6001\u4e8c\u8fdb\u5236\u7801\u770b\u4f5c<\/span><span style=\"font-size:14px;\">31<\/span><span style=\"font-size:14px;\">\u6bd4\u7279\u7684\u65e0\u7b26\u53f7\u5927\u5c3e\u6574\u6570\uff0c\u6700\u9ad8\u5b57\u8282\u901a\u8fc7\u4e0e<\/span><span style=\"font-size:14px;\">0x7f<\/span><span style=\"font-size:14px;\">\u8fdb\u884c\u4e0e\u8fd0\u7b97\u800c\u5c4f\u853d\u6389\u6700\u9ad8\u4f4d\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4e4b\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u6570\u4e0e<\/span><span style=\"font-size:14px;\">1,000,000 (10^6)<\/span><span style=\"font-size:14px;\">\u6a21\u8fd0\u7b97\u4ea7\u751f<\/span><span style=\"font-size:14px;\">6<\/span><span style=\"font-size:14px;\">\u4f4d\u5341\u8fdb\u5236<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c<\/span><span style=\"font-size:14px;\">872921<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">6.<\/span><span><span style=\"font-size:14px;\">\u5b89\u5168\u6027\u5206\u6790<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5728\u9644\u5f55\u4e2d\u8be6\u7ec6\u8ba8\u8bba\u7684\u5b89\u5168\u6027\u5206\u6790\u7684\u7ed3\u8bba\u662f\uff1a\u5bf9\u4e8e\u6240\u6709\u5b9e\u7528\u76ee\u7684\uff0c\u5bf9\u4e8e\u4e0d\u540c\u7684\u8ba1\u6570\u5668\u8f93\u5165\uff0c\u52a8\u6001\u622a\u77ed\u7684\u8f93\u51fa\u662f\u5404\u4e0d\u76f8\u540c\u4e14\u76f8\u4e92\u72ec\u7acb\u7684<\/span><span style=\"font-size:14px;\">31<\/span><span style=\"font-size:14px;\">\u6bd4\u7279\u6570\u4e32\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5b89\u5168\u6027\u5206\u6790\u4e4b\u540e\u8be6\u7ec6\u8bf4\u660e\u4e86\u5c06\u4e00\u4e2a\u6570\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u6700\u540e\u4e0e<\/span><span style=\"font-size:14px;\">10^{digit}<\/span><span style=\"font-size:14px;\">\u8fdb\u884c\u6a21\u8fd0\u7b97\u7684\u5f71\u54cd\u3002\u8fd9\u91cc<\/span><span style=\"font-size:14px;\">Digit<\/span><span style=\"font-size:14px;\">\u662f<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u7684\u4f4d\u6570\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5206\u6790\u8fd8\u8bc1\u660e\u6700\u540e\u7684\u6b65\u9aa4\u5f15\u5165\u4e86\u4e00\u4e2a\u53ef\u5ffd\u7565\u7684\u8bef\u5dee\uff0c\u8fd9\u5e76\u4e0d\u5f71\u54cd<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u7684\u5b89\u5168\u6027\uff0c\u4ece\u8fd9\u4e2a\u610f\u4e49\u4e0a\u8bf4\uff0c\u9488\u5bf9<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u51fd\u6570\u6700\u53ef\u80fd\u7684\u653b\u51fb\u5c31\u662f\u86ee\u529b\u653b\u51fb\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5047\u8bbe\u4e00\u4e2a\u654c\u4eba\u53ef\u4ee5\u89c2\u5bdf\u5230\u4f17\u591a\u7684\u534f\u8bae\u4ea4\u6362\u5e76\u6536\u96c6\u4e86\u4e00\u7cfb\u5217\u6210\u529f\u7684\u8ba4\u8bc1\u503c\u3002\u5219\u8fd9\u4e2a\u654c\u4eba\u4f1a\u8bd5\u56fe\u5728\u4ed6\u7684\u89c2\u5bdf\u57fa\u7840\u4e0a\u5efa\u7acb\u51fd\u6570<\/span><span style=\"font-size:14px;\">F<\/span><span style=\"font-size:14px;\">\u6765\u4ea7\u751f<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\uff0c\u4f46\u4ed6\u5728\u968f\u673a\u731c\u6d4b\u4e2d\u5e76\u4e0d\u4f1a\u6709\u660e\u663e\u7684\u4f18\u52bf\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5408\u4e4e\u903b\u8f91\u7684\u7ed3\u8bba\u5c31\u662f\u6700\u597d\u7684\u7b56\u7565\u4ecd\u7136\u662f\u86ee\u529b\u653b\u51fb\uff0c\u7528\u679a\u4e3e\u53d1\u6765\u5c1d\u8bd5\u6240\u6709\u53ef\u80fd\u7684\u503c\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8003\u8651\u5230\u672c\u6587\u9644\u5f55\u4e2d\u7684\u5b89\u5168\u6027\u5206\u6790\u5177\u6709\u666e\u904d\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e0b\u5217\u65b9\u7a0b\u8fd1\u4f3c\u6a21\u62df<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u7684\u5b89\u5168\u6027\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">Sec = sv\/10^Digit<\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8fd9\u91cc\uff1a<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">Sec<\/span><span><span style=\"font-size:14px;\">\u8868\u793a\u654c\u4eba\u6210\u529f\u7684\u6982\u7387<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">s<\/span><span><span style=\"font-size:14px;\">\u662f\u524d\u987e\u540c\u6b65\u7a97\u53e3\u5927\u5c0f<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">v<\/span><span><span style=\"font-size:14px;\">\u662f\u8ba4\u8bc1\u5c1d\u8bd5\u6b21\u6570<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">Digit<\/span><span><span style=\"font-size:14px;\">\u662f<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u7684\u4f4d\u6570\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5f88\u660e\u663e\uff0c\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6e<\/span><span style=\"font-size:14px;\">s<\/span><span style=\"font-size:14px;\">\uff0c<\/span><span style=\"font-size:14px;\">T(<\/span><span style=\"font-size:14px;\">\u51cf\u5c11\u653b\u51fb\u8005\u5c1d\u8bd5\u6b21\u6570\u7684\u9608\u503c<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u548c<\/span><span style=\"font-size:14px;\">Digit<\/span><span style=\"font-size:14px;\">\u7684\u503c\uff0c\u76f4\u5230\u83b7\u5f97\u4e00\u5b9a\u7a0b\u5ea6\u7684\u5b89\u5168\u6027\uff0c\u5e76\u4ecd\u4fdd\u6301\u7cfb\u7edf\u7684\u53ef\u7528\u6027\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">7.<\/span><span><span style=\"font-size:14px;\">\u5b89\u5168\u6027\u8981\u6c42<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4efb\u4f55\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5\u7684\u5b89\u5168\u6027\u90fd\u662f\u7531\u5b9e\u73b0\u5b83\u7684\u5e94\u7528\u8f6f\u4ef6\u548c\u8ba4\u8bc1\u534f\u8bae\u6240\u786e\u5b9a\uff0c\u56e0\u6b64\uff0c\u8fd9\u4e00\u8282\u5c06\u8ba8\u8bba\u6211\u4eec\u6240\u9009\u62e9\u7684\u7b97\u6cd5\u5bf9\u8ba4\u8bc1\u534f\u8bae\u548c\u8ba4\u8bc1\u8f6f\u4ef6\u6240\u63d0\u51fa\u7684\u4e34\u754c\u5b89\u5168\u6027\u8981\u6c42\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8fd9\u4e00\u8282\u8ba8\u8bba\u7684\u53c2\u6570<\/span><span style=\"font-size:14px;\">T<\/span><span style=\"font-size:14px;\">\u548c<\/span><span style=\"font-size:14px;\">s<\/span><span style=\"font-size:14px;\">\u5bf9\u5b89\u5168\u6027\u6709\u91cd\u5927\u5f71\u54cd\uff0c\u7b2c<\/span><span style=\"font-size:14px;\">6<\/span><span style=\"font-size:14px;\">\u8282\u4e2d\u7684\u66f4\u591a\u7ec6\u8282\u5c06\u5728\u8fd9\u4e9b\u53c2\u6570\u548c\u4ed6\u4eec\u5bf9\u7cfb\u7edf\u5b89\u5168\u6027\u7684\u5f71\u54cd\u7684\u5173\u7cfb\u95f4\u8be6\u7ec6\u9610\u8ff0\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u540c\u6837\u5e94\u5f53\u6ce8\u610f\u7684\u662f<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u5e76\u4e0d\u80fd\u4ee3\u66ff\u52a0\u5bc6\uff0c\u4e5f\u4e0d\u80fd\u63d0\u4f9b\u6570\u636e\u4f20\u8f93\u7684\u4fdd\u5bc6\u6027\u3002\u5e94\u5f53\u91c7\u7528\u5176\u4ed6\u4e00\u4e9b\u88c5\u7f6e\u6765\u62b5\u6297\u76ee\u7684\u4e3a\u7834\u574f\u4ea4\u6613\u4fdd\u5bc6\u6027\u7684\u653b\u51fb\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">7.1<\/span><span><span style=\"font-size:14px;\">\u8ba4\u8bc1\u534f\u8bae\u8981\u6c42<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u672c\u8282\u6211\u4eec\u4ecb\u7ecd\u5bf9\u5b9e\u73b0<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u5728\u793a\u8bc1\u8005\u548c\u9a8c\u8bc1\u8005\u4e4b\u95f4\u4f5c\u4e3a\u8ba4\u8bc1\u65b9\u6cd5\u7684\u534f\u8bae<\/span><span style=\"font-size:14px;\">P<\/span><span style=\"font-size:14px;\">\u7684\u4e00\u4e9b\u8981\u6c42\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8981\u6c42<\/span><span style=\"font-size:14px;\">1 P<\/span><span style=\"font-size:14px;\">\u5fc5\u987b\u652f\u6301\u53cc\u56e0\u5b50\u8ba4\u8bc1\uff0c\u5373\u901a\u4fe1\u5e76\u8ba4\u8bc1\u4f60\u6240\u77e5<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u5982\u53e3\u4ee4\u3001\u901a\u884c\u77ed\u8bed\u548c<\/span><span style=\"font-size:14px;\">PIN<\/span><span style=\"font-size:14px;\">\u7b49\u4e00\u4e9b\u79d8\u5bc6\u7801<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u548c\u6240\u6709<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u4ee4\u724c<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u3002\u4ec5\u6709\u7528\u6237\u77e5\u9053\u79d8\u5bc6\u7801\uff0c\u5e76\u8f93\u5165\u4e00\u6b21\u6027\u53e3\u4ee4\u503c\u8fdb\u884c\u8ba4\u8bc1<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u53cc\u56e0\u5b50\u8ba4\u8bc1<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8981\u6c42<\/span><span style=\"font-size:14px;\">2P<\/span><span style=\"font-size:14px;\">\u5e94\u8be5\u4e0d\u6613\u53d7\u86ee\u529b\u653b\u51fb\u7684\u4f24\u5bb3\uff0c\u8fd9\u610f\u5473\u7740\u5728\u8ba4\u8bc1\u670d\u52a1\u5668\u7aef\u9700\u8981\u4e00\u4e2a\u9608\u503c\u6216\u9501\u5b9a\u673a\u5236\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8981\u6c42<\/span><span style=\"font-size:14px;\">3P<\/span><span style=\"font-size:14px;\">\u5e94\u8be5\u5728\u4e00\u4e2a\u5b89\u5168\u901a\u9053\u4e0a\u5b9e\u73b0\u4ee5\u4fdd\u62a4\u7528\u6237\u9690\u79c1\u548c\u62b5\u6297\u91cd\u653e\u653b\u51fb\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">7.2HOTP<\/span><span><span style=\"font-size:14px;\">\u503c\u7684\u786e\u8ba4<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">HOTP<\/span><span><span style=\"font-size:14px;\">\u5ba2\u6237\u7aef\uff08\u8f6f\u4ef6\u6216\u786c\u4ef6\u4ee4\u724c\uff09\u5c06\u5176\u8ba1\u6570\u5668\u503c\u52a0<\/span><span style=\"font-size:14px;\">1<\/span><span style=\"font-size:14px;\">\u540e\u8ba1\u7b97\u51fa<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u5ba2\u6237\u7aef\u7684\u4e0b\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u3002\u5982\u679c<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u670d\u52a1\u5668\u63a5\u6536\u5230\u7684\u503c\u5ba2\u6237\u7aef\u8ba1\u7b97\u7684\u503c\u4e00\u81f4\uff0c\u5219\u8be5<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u901a\u8fc7\u8ba4\u8bc1\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u670d\u52a1\u5668\u8ba1\u6570\u5668\u7684\u503c\u52a0<\/span><span style=\"font-size:14px;\">1.<\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5982\u679c<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u670d\u52a1\u5668\u63a5\u6536\u5230\u7684\u503c\u5ba2\u6237\u7aef\u8ba1\u7b97\u7684\u503c\u4e0d\u4e00\u81f4\uff0c\u670d\u52a1\u5668\u5728\u8981\u6c42\u7528\u6237\u63d0\u4f9b\u4e0b\u4e00\u4e2a\u901a\u884c\u7801\u4e4b\u524d\u5c06\u542f\u52a8\u91cd\u540c\u6b65\u534f\u8bae<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u524d\u987e\u7a97\u53e3<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u82e5\u91cd\u540c\u6b65\u5931\u8d25\uff0c\u670d\u52a1\u5668\u4f1a\u8981\u6c42\u534f\u8bae\u7684\u4e0b\u4e00\u4e2a\u8ba4\u8bc1\u901a\u884c\u7801\uff0c\u76f4\u5230\u8fbe\u5230\u6700\u5927\u8ba4\u8bc1\u5c1d\u8bd5\u6b21\u6570\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5982\u679c\u8fbe\u5230\u6700\u5927\u8ba4\u8bc1\u5c1d\u8bd5\u6b21\u6570\uff0c\u670d\u52a1\u5668\u5e94\u5f53\u9501\u5b9a\u8be5\u5e10\u6237\u5e76\u542f\u52a8\u4e00\u4e2a\u8fdb\u7a0b\u6765\u901a\u77e5\u8be5\u7528\u6237\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">7.3<\/span><span><span style=\"font-size:14px;\">\u670d\u52a1\u5668\u7684\u9608\u503c<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">\u5c06<\/span><span style=\"font-size:14px;\">HMAC-SHA-1<\/span><span><span style=\"font-size:14px;\">\u503c\u622a\u77ed\u6210\u4e00\u4e2a\u8f83\u77ed\u7684\u6570\u503c\u4f1a\u589e\u5927\u86ee\u529b\u653b\u51fb\u7684\u6210\u529f\u7387\uff0c\u56e0\u6b64\u8ba4\u8bc1\u670d\u52a1\u5668\u9700\u8981\u68c0\u6d4b\u5e76\u963b\u6b62\u86ee\u529b\u653b\u51fb\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6211\u4eec\u5efa\u8bae\u8bbe\u7f6e\u4e00\u4e2a\u9608\u503c\u53c2\u6570<\/span><span style=\"font-size:14px;\">T<\/span><span style=\"font-size:14px;\">\uff0c\u5176\u5b9a\u4e49\u4e3a\u4e00\u6b21\u6027\u53e3\u4ee4\u8ba4\u8bc1\u7684\u6700\u5927\u5c1d\u8bd5\u6b21\u6570\u3002\u8ba4\u8bc1\u670d\u52a1\u5668\u7ba1\u7406\u6bcf\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u88c5\u7f6e\u6240\u6709\u7684\u5355\u72ec\u8ba1\u6570\u5668\u6765\u8bb0\u5f55\u6bcf\u4e00\u6b21\u5931\u8d25\u7684\u5c1d\u8bd5\u3002\u6211\u4eec\u5efa\u8bae<\/span><span style=\"font-size:14px;\">T<\/span><span style=\"font-size:14px;\">\u503c\u4e0d\u80fd\u8fc7\u5927\uff0c\u7279\u522b\u662f\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u7684\u91cd\u540c\u6b65\u65b9\u6cd5\u662f\u57fa\u4e8e\u7a97\u53e3\u7684\uff0c\u800c\u7a97\u53e3\u5c3a\u5bf8\u8f83\u5927\u3002<\/span><span style=\"font-size:14px;\">T<\/span><span style=\"font-size:14px;\">\u5e94\u5f53\u8d8a\u4f4e\u8d8a\u597d\uff0c\u540c\u65f6\u4ecd\u80fd\u4fdd\u8bc1\u53ef\u7528\u6027\u4e0d\u53d7\u5f88\u5927\u5f71\u54cd\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u53e6\u4e00\u79cd\u53ef\u9009\u62e9\u7684\u65b9\u6cd5\u662f\u6267\u884c\u4e00\u79cd\u5ef6\u8fdf\u673a\u5236\u6765\u8eb2\u907f\u86ee\u529b\u653b\u51fb\u3002\u5728\u4e00\u6b21\u5c1d\u8bd5<\/span><span style=\"font-size:14px;\">A<\/span><span style=\"font-size:14px;\">\u5931\u8d25\u540e<\/span><span style=\"font-size:14px;\">,<\/span><span style=\"font-size:14px;\">\u8ba4\u8bc1\u670d\u52a1\u5668\u5c06\u7b49\u5f85<\/span><span style=\"font-size:14px;\">T*A<\/span><span style=\"font-size:14px;\">\u79d2\uff0c\u800c\u8fd9\u4e2a\u503c\u662f\u4e0d\u65ad\u589e\u52a0\u7684\u3002\u4f8b\u5982\u4ee4<\/span><span style=\"font-size:14px;\">T=5<\/span><span style=\"font-size:14px;\">\uff0c\u5219\u4e00\u6b21\u5c1d\u8bd5\u5931\u8d25\u540e\uff0c\u670d\u52a1\u5668\u7b49\u5f85<\/span><span style=\"font-size:14px;\">5<\/span><span style=\"font-size:14px;\">\u79d2\uff0c\u4e24\u6b21\u5931\u8d25\u540e\u7b49\u5f85<\/span><span style=\"font-size:14px;\">10<\/span><span style=\"font-size:14px;\">\u79d2\u7b49\u7b49\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5ef6\u8fdf\u6216\u9501\u5b9a\u673a\u5236\u90fd\u5fc5\u987b\u662f\u8de8\u767b\u5f55\u4f1a\u8bdd\u7684\uff0c\u4ee5\u963b\u6b62\u57fa\u4e8e\u591a\u5e73\u884c\u731c\u6d4b\u6280\u672f\u7684\u653b\u51fb\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">7.4<\/span><span><span style=\"font-size:14px;\">\u8ba1\u6570\u5668\u7684\u91cd\u540c\u6b65<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5c3d\u7ba1\u670d\u52a1\u5668\u8ba1\u6570\u5668\u7684\u503c\u4ec5\u5728\u6210\u529f\u7684<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u8ba4\u8bc1\u540e\u589e\u503c\uff0c\u4ee4\u724c\u8ba1\u6570\u5668\u7684\u503c\u6bcf\u5f53\u5e94\u7528\u6237\u8981\u6c42\u4ea7\u751f\u4e00\u4e2a\u65b0<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u540e\u5c31\u4f1a\u589e\u503c\u3002\u7531\u4e8e\u8fd9\u4e2a\u539f\u56e0\uff0c\u670d\u52a1\u5668\u8ba1\u6570\u5668\u548c\u4ee4\u724c\u8ba1\u6570\u5668\u5c31\u6709\u53ef\u80fd\u4e0d\u540c\u6b65\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6211\u4eec\u5efa\u8bae\u5728\u670d\u52a1\u5668\u4e0a\u8bbe\u7f6e\u4e00\u4e2a\u524d\u987e\u53c2\u6570\uff0c\u5176\u5b9a\u4e49\u4e86\u524d\u987e\u7a97\u53e3\u7684\u5927\u5c0f\u3002\u7b80\u5355\u5730\u8bf4\uff0c\u670d\u52a1\u5668\u8ba1\u7b97\u4e0b\u9762<\/span><span style=\"font-size:14px;\">s<\/span><span style=\"font-size:14px;\">\u4e2a<\/span><span style=\"font-size:14px;\">HOTP-sever<\/span><span style=\"font-size:14px;\">\u503c\uff0c\u5e76\u4e0e\u6536\u5230\u7684<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u5ba2\u6237\u7aef\u503c\u6bd4\u8f83\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u8ba1\u6570\u5668\u540c\u6b65\u53ea\u9700\u8981\u8ba1\u6570\u5668\u4ec5\u9700\u8981\u670d\u52a1\u5668\u8ba1\u7b97\u4e0b\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u5e76\u786e\u5b9a\u662f\u5426\u76f8\u914d\u3002\u6709\u65f6\u7cfb\u7edf\u53ef\u80fd\u8981\u6c42\u7528\u6237\u53d1\u9001\u4e00\u7cfb\u5217<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u5982<\/span><span style=\"font-size:14px;\">2<\/span><span style=\"font-size:14px;\">\uff0c<\/span><span style=\"font-size:14px;\">3<\/span><span style=\"font-size:14px;\">\u4e2a<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\u6765\u8fdb\u884c\u91cd\u540c\u6b65\uff0c\u56e0\u4e3a\u4f2a\u9020\u4e00\u7cfb\u5217\u8fde\u7eed\u7684<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u8981\u6bd4\u731c\u6d4b\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u66f4\u56f0\u96be\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u53c2\u6570<\/span><span style=\"font-size:14px;\">s<\/span><span style=\"font-size:14px;\">\u7684\u4e0a\u9650\u503c\u4fdd\u8bc1\u4e86\u670d\u52a1\u5668\u4e0d\u4f1a\u4e0d\u505c\u68c0\u6d4b<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\uff0c\u540c\u65f6\u4e5f\u9650\u5236\u4e86\u8bd5\u56fe\u5236\u9020<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u7684\u653b\u51fb\u8005\u7684\u53ef\u80fd\u89e3\u7a7a\u95f4\u3002<\/span><span style=\"font-size:14px;\">s<\/span><span style=\"font-size:14px;\">\u7684\u503c\u5e94\u5f53\u8d8a\u5c0f\u8d8a\u597d\uff0c\u540c\u65f6\u4fdd\u8bc1\u53ef\u7528\u6027\u4e0d\u53d7\u5f88\u5927\u5f71\u54cd\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">7.5<\/span><span><span style=\"font-size:14px;\">\u5171\u4eab\u5bc6\u94a5\u7684\u7ba1\u7406<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5bf9\u7528\u4e8e\u4ea7\u751f\u548c\u8ba4\u8bc1<\/span><span style=\"font-size:14px;\">OTP<\/span><span style=\"font-size:14px;\">\u503c\u7684\u5171\u4eab\u5bc6\u94a5\u8fdb\u884c\u5904\u7406\u7684\u8fd0\u7b97\u5e94\u5f53\u5b89\u5168\u5730\u8fd0\u884c\uff0c\u4ee5\u964d\u4f4e\u654f\u611f\u4fe1\u606f\u6cc4\u9732\u7684\u98ce\u9669\u3002\u672c\u8282\u6211\u4eec\u5c06\u63cf\u8ff0\u4e0d\u540c\u7684\u8fd0\u7b97\u548c\u6280\u672f\u65b9\u5f0f\uff0c\u4ee5\u5c55\u793a\u5bf9\u6570\u636e\u5b89\u5168\u9886\u57df\u91cc\u7684\u4e0d\u540c\u8fd0\u4f5c\u6a21\u5f0f\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u73b0\u5728\u6211\u4eec\u8003\u8651\u5728\u8ba4\u8bc1\u7cfb\u7edf\u4e2d\u4e24\u79cd\u4e0d\u540c\u7684\u4ea7\u751f\u548c\u5b58\u50a8\u5171\u4eab\u5bc6\u94a5\u7684\u9014\u5f84\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u786e\u5b9a\u6027\u751f\u6210\uff1a\u540c\u65f6\u5728\u63d0\u4f9b\u548c\u8ba4\u8bc1\u9636\u6bb5\u90fd\u7531\u4e3b\u79cd\u5b50\u5f97\u51fa\u5bc6\u94a5\uff0c\u5728\u9700\u8981\u65f6\u90fd\u80fd\u5373\u65f6\u4ea7\u751f\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u968f\u673a\u6027\u751f\u6210\uff1a\u5728\u63d0\u4f9b\u9636\u6bb5\u5bc6\u94a5\u968f\u673a\u4ea7\u751f\uff0c\u800c\u4e14\u8981\u88ab\u53ca\u65f6\u5b58\u50a8\uff0c\u5e76\u5728\u6574\u4e2a\u6709\u6548\u5468\u671f\u4e2d\u4fdd\u6301\u5b89\u5168\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u786e\u5b9a\u6027\u751f\u6210<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4e00\u79cd\u53ef\u884c\u7684\u65b9\u6cd5\u662f\u4ece\u4e3b\u5bc6\u94a5\u4e2d\u5f97\u51fa\u5171\u4eab\u5bc6\u94a5\uff0c\u8be5\u4e3b\u5bc6\u94a5\u53ea\u80fd\u5b58\u50a8\u5728\u670d\u52a1\u5668\u4e2d\u3002\u5fc5\u987b\u4f7f\u7528\u4e00\u79cd\u9632\u7be1\u6539\u7684\u88c5\u7f6e\u6765\u5b58\u50a8\u8be5\u4e3b\u5bc6\u94a5\uff0c\u5e76\u80fd\u4ece\u8be5\u4e3b\u5bc6\u94a5\u548c\u516c\u5171\u4fe1\u606f\u4e2d\u5f97\u51fa\u5171\u4eab\u5bc6\u94a5\u3002\u8fd9\u6837\u505a\u7684\u4e3b\u8981\u4f18\u70b9\u662f\u53ef\u4ee5\u5728\u4efb\u4f55\u65f6\u5019\u90fd\u4e0d\u4f1a\u66b4\u9732\u8be5\u5171\u4eab\u5bc6\u94a5\uff0c\u907f\u514d\u4e86\u5bf9\u5b58\u50a8\u7684\u7279\u6b8a\u8981\u6c42\uff0c\u56e0\u4e3a\u5171\u4eab\u5bc6\u94a5\u5728\u63d0\u4f9b\u548c\u8ba4\u8bc1\u9636\u6bb5\u90fd\u53ef\u4ee5\u6839\u636e\u9700\u8981\u968f\u65f6\u4ea7\u751f\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u8003\u8651\u4e24\u79cd\u4e0d\u540c\u60c5\u51b5<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4f7f\u7528\u4e00\u4e2a\u4e3b\u5bc6\u94a5<\/span><span style=\"font-size:14px;\">MK<\/span><span style=\"font-size:14px;\">\u4ea7\u751f\u5171\u4eab\u5bc6\u94a5\uff0c\u6bcf\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u88c5\u7f6e\u90fd\u6709\u4e00\u4e2a\u4e0d\u540c\u7684\u5bc6\u94a5\u3002<\/span><span style=\"font-size:14px;\">K_i = SHA-1 (MK,i)<\/span><span style=\"font-size:14px;\">\uff0c\u8fd9\u91cc<\/span><span style=\"font-size:14px;\">i<\/span><span style=\"font-size:14px;\">\u8868\u793a\u7528\u4ee5\u552f\u4e00\u6807\u5fd7\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u88c5\u7f6e\u7684\u516c\u5171\u4fe1\u606f\uff0c\u53ef\u4ee5\u662f\u5e8f\u5217\u53f7\u3001\u4e00\u4e2a\u4ee4\u724c\u6807\u8bc6\u7b26\u7b49\u7b49\u3002\u5f88\u660e\u663e\uff0c\u5b58\u5728\u7740\u4e00\u4e2a\u5e94\u7528\u6216\u670d\u52a1\u7684\u80cc\u666f<\/span><\/span><span style=\"font-family:'Courier New';font-size:14px;\">\u2014\u2014<\/span><span><span style=\"font-size:14px;\">\u4e0d\u540c\u7684\u5e94\u7528\u6216\u670d\u52a1\u5e94\u5f53\u63d0\u4f9b\u4e0d\u540c\u7684\u5bc6\u94a5\u548c\u8bbe\u7f6e\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4f7f\u7528\u82e5\u5e72\u4e3b\u5bc6\u94a5<\/span><span style=\"font-size:14px;\">MK_i<\/span><span style=\"font-size:14px;\">\uff0c\u6bcf\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u88c5\u7f6e\u5b58\u50a8\u4e2a\u4ece\u4e2d\u5f97\u5230\u7684\u4e92\u4e0d\u76f8\u540c\u7684\u5bc6\u94a5\u3002<\/span><span style=\"font-size:14px;\">{K_i,j = SHA-1(MK_i,j)}<\/span><span style=\"font-size:14px;\">\uff0c\u8fd9\u91cc<\/span><span style=\"font-size:14px;\">j<\/span><span style=\"font-size:14px;\">\u8868\u793a\u6807\u8bc6\u88c5\u7f6e\u7684\u516c\u5171\u4fe1\u606f\u3002\u5176\u601d\u60f3\u662f\u53ea\u9700\u5728\u8ba4\u8bc1\u670d\u52a1\u5668\u548c\u786c\u4ef6\u5b89\u5168\u6a21\u5757\u4e2d\u5b58\u50a8\u6709\u6548\u4e3b\u5bc6\u94a5\uff0c\u91c7\u7528\u5bc6\u94a5\u5206\u4eab\u6cd5\u4f8b\u5982<\/span><span style=\"font-size:14px;\">[Shamir]<\/span><span style=\"font-size:14px;\">\u5c06\u5176\u653e\u7f6e\u5728\u4e00\u4e2a\u5b89\u5168\u7684\u5730\u65b9\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u4e00\u4e2a\u4e3b\u5bc6\u94a5<\/span><span style=\"font-size:14px;\">MK_i<\/span><span style=\"font-size:14px;\">\u88ab\u6cc4\u9732\uff0c\u53ea\u9700\u8981\u6362\u7528\u53e6\u4e00\u4e2a\u800c\u4e0d\u5fc5\u66ff\u6362\u6240\u6709\u7684\u88c5\u7f6e\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u786e\u5b9a\u6027\u65b9\u6cd5\u7684\u7f3a\u70b9\u662f\u5f53\u4e3b\u5bc6\u94a5\u88ab\u6cc4\u9732\u540e\uff0c\u653b\u51fb\u8005\u5f88\u5bb9\u6613\u5728\u6b63\u786e\u516c\u5171\u4fe1\u606f\u7684\u57fa\u7840\u4e0a\u91cd\u5efa\u4efb\u4f55\u5171\u4eab\u5bc6\u94a5\u3002\u56e0\u6b64\u5fc5\u987b\u5e9f\u9664\u6240\u6709\u7684\u5bc6\u94a5\uff0c\u6216\u5728\u591a\u4e3b\u5bc6\u94a5\u7cfb\u7edf\u4e2d\u6362\u7528\u53e6\u4e00\u7ec4\u5bc6\u94a5\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5728\u53e6\u4e00\u65b9\u9762\uff0c\u7528\u4e8e\u5b58\u50a8\u4e3b\u5bc6\u94a5\u548c\u4ea7\u751f\u5171\u4eab\u5bc6\u94a5\u7684\u88c5\u7f6e\u5fc5\u987b\u53ef\u4ee5\u9632\u6b62\u7be1\u6539\uff0c\u800c\u4e14\uff0c<\/span><span style=\"font-size:14px;\">HSM<\/span><span style=\"font-size:14px;\">\u4e0d\u80fd\u66b4\u9732\u4e8e\u8ba4\u8bc1\u7cfb\u7edf\u7684\u5b89\u5168\u8303\u56f4\u4e4b\u5916\u4ee5\u51cf\u5c11\u6cc4\u6f0f\u7684\u98ce\u9669\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u968f\u673a\u6027\u751f\u6210<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u968f\u673a\u751f\u6210\u5171\u4eab\u5bc6\u94a5\u3002\u6211\u4eec\u5efa\u8bae\u4f9d\u636e<\/span><span style=\"font-size:14px;\">[RFC4086]<\/span><span style=\"font-size:14px;\">\u4e2d\u7684\u89c4\u5b9a\u5e76\u9009\u62e9\u597d\u800c\u5b89\u5168\u7684\u968f\u673a\u4fe1\u53f7\u53d1\u751f\u5668\u6765\u4ea7\u751f\u5bc6\u94a5\u3002\u4e00\u4e2a\u968f\u673a\u4fe1\u53f7\u53d1\u751f\u5668\u8981\u6709\u968f\u673a\u6027\u7684\u81ea\u7136\u53d1\u751f\u6e90\u3002\u5b9e\u9645\u4e2d\uff0c\u53ef\u4ee5\u8003\u8651\u7528\u4e24\u79cd\u65b9\u6cd5\u6765\u4ea7\u751f\u5171\u4eab\u5bc6\u94a5\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">*<\/span><span><span style=\"font-size:14px;\">\u57fa\u4e8e\u786c\u4ef6\u7684\u53d1\u751f\u5668\uff1a\u901a\u8fc7\u7269\u7406\u73b0\u8c61\u4ea7\u751f\u968f\u673a\u6570\u3002\u53ef\u4ee5\u5229\u7528\u632f\u8361\u5668\u6765\u5b9e\u73b0\u5e76<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5e76\u4ee5\u4e3b\u52a8\u653b\u51fb\u66f4\u96be\u4ee5\u6267\u884c\u7684\u65b9\u5f0f\u6784\u5efa\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">*<\/span><span><span style=\"font-size:14px;\">\u57fa\u4e8e\u8f6f\u4ef6\u7684\u53d1\u751f\u5668\uff1a\u8bbe\u8ba1\u4e00\u4e2a\u597d\u7684\u8f6f\u4ef6\u53d1\u751f\u5668\u5e76\u975e\u6613\u4e8b\u3002\u4e00\u79cd\u7b80\u5355\u800c\u53c8\u6709<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6548\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u591a\u79cd\u4fe1\u53f7\u6e90\u5e76\u5c06\u5355\u5411\u51fd\u6570\u4f8b\u5982<\/span><span style=\"font-size:14px;\">SHA-1<\/span><span style=\"font-size:14px;\">\u5e94\u7528\u4e8e\u62bd\u6837\u5e8f\u5217\u3002<\/span><span style=\"color:red;\"><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6211\u4eec\u63a8\u8350\u4f7f\u7528\u5df2\u7ecf\u8fc7\u8bc1\u660e\u7684\u4ea7\u54c1\uff0c\u53ef\u4ee5\u662f\u786c\u4ef6\u6216\u8f6f\u4ef6\u53d1\u751f\u5668\u6765\u8ba1\u7b97\u5171\u4eab\u5bc6\u94a5\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6211\u4eec\u540c\u6837\u5efa\u8bae\u4f7f\u7528\u5b89\u5168\u65b9\u6cd5\u5b58\u50a8\u5bc6\u94a5\u3002\u66f4\u7279\u522b\u5730\uff0c\u53ef\u4f7f\u7528\u9632\u7be1\u6539\u7684\u786c\u4ef6\u52a0\u5bc6\u5b58\u50a8\u5668\u5bf9\u5171\u4eab\u5bc6\u94a5\u52a0\u5bc6\uff0c\u5e76\u4e14\u4ec5\u5728\u9700\u8981\u7684\u65f6\u5019\u624d\u5c06\u5176\u53d6\u51fa\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4f8b\u5982\uff0c\u5f53\u9700\u8981\u8ba4\u8bc1\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u503c\u65f6\uff0c\u5171\u4eab\u5bc6\u94a5\u5c06\u88ab\u89e3\u5bc6\uff0c\u4e4b\u540e\u5c06\u88ab\u7acb\u5373\u52a0\u5bc6\u4ee5\u51cf\u5c11\u5176\u5728<\/span><span style=\"font-size:14px;\">RAM<\/span><span style=\"font-size:14px;\">\u4e2d\u66b4\u9732\u7684\u65f6\u95f4\u3002\u5b58\u50a8\u5171\u4eab\u5bc6\u94a5\u7684\u6570\u636e\u5b58\u50a8\u5668\u5fc5\u987b\u5904\u4e8e\u4e00\u4e2a\u5b89\u5168\u7684\u73af\u5883\u4e2d\uff0c\u4ee5\u5c3d\u91cf\u907f\u514d\u5bf9\u8ba4\u8bc1\u7cfb\u7edf\u548c\u4fdd\u5bc6\u6570\u636e\u5e93\u7684\u653b\u51fb\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u7279\u522b\u5730\uff0c\u5bf9\u5171\u4eab\u5bc6\u94a5\u7684\u4f7f\u7528\u6743\u5e94\u5f53\u9650\u5236\u5728\u8ba4\u8bc1\u7cfb\u7edf\u7684\u7a0b\u5e8f\u548c\u8fdb\u7a0b\u4e2d\u3002\u6211\u4eec\u4e0d\u518d\u8be6\u7ec6\u8bf4\u660e\u6240\u7528\u7684\u5404\u79cd\u5b89\u5168\u88c5\u7f6e\u3002\u4f46\u5f88\u660e\u663e\uff0c\u5bf9\u5171\u4eab\u5bc6\u94a5\u7684\u4fdd\u62a4\u662f\u6700\u91cd\u8981\u7684\u4e8b\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">8.<\/span><span><span style=\"font-size:14px;\">\u5408\u6210\u5171\u4eab\u5bc6\u94a5<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5728\u5171\u4eab\u5bc6\u94a5<\/span><span style=\"font-size:14px;\">K<\/span><span style=\"font-size:14px;\">\u4e2d\u4e5f\u8bb8\u4f1a\u9700\u8981\u9644\u52a0\u4e00\u4e9b\u8ba4\u8bc1\u56e0\u7d20\uff0c\u7ec4\u6210\u8fd9\u4e9b\u9644\u52a0\u7684\u6570\u636e\u53ef\u4ee5\u662f\u7531\u4ee4\u724c\u77e5\u9053\u800c\u4e0d\u6613\u88ab\u5176\u4ed6\u4eba\u83b7\u5f97\u7684\u4efb\u4f55\u6570\u636e\u3002\u8fd9\u4e9b\u6570\u636e\u53ef\u4ee5\u5305\u62ec\uff1a<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">* <\/span><span><span style=\"font-size:14px;\">\u7528\u6237\u8f93\u5165\u4ee4\u724c\u7684<\/span><span style=\"font-size:14px;\">PIN<\/span><span style=\"font-size:14px;\">\u6216\u53e3\u4ee4<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">* <\/span><span><span style=\"font-size:14px;\">\u7535\u8bdd\u53f7\u7801<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">* <\/span><span><span style=\"font-size:14px;\">\u4efb\u4f55\u4ee4\u724c\u80fd\u4ee5\u7f16\u7a0b\u65b9\u5f0f\u5f97\u5230\u7684\u4efb\u4f55\u552f\u4e00\u7684\u8bc6\u522b\u7801<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5728\u8fd9\u79cd\u65b9\u6848\u4e0b\uff0c\u5728\u63d0\u4f9b\u9636\u6bb5\u5171\u4eab\u5bc6\u94a5<\/span><span style=\"font-size:14px;\">K<\/span><span style=\"font-size:14px;\">\u7531\u4e00\u4e2a\u968f\u673a\u79cd\u5b50\u503c\u8054\u5408\u4e00\u6216\u591a\u4e2a\u9644\u52a0\u8ba4\u8bc1\u503c\u590d\u5408\u800c\u6210\u3002\u670d\u52a1\u5668\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4ea7\u751f\u6216\u5b58\u50a8\u5bc6\u94a5<\/span><\/span><span style=\"font-family:'Courier New';font-size:14px;\">\u2014\u2014<\/span><span><span style=\"font-size:14px;\">\u4e0d\u8bba\u54ea\u79cd\u60c5\u51b5\u90fd\u4f9d\u8d56\u4e8e\u6267\u884c\u9009\u62e9\u3002\u4ee4\u724c\u4ec5\u5b58\u50a8\u79cd\u5b50\u503c\u3002\u5f53\u4ee4\u724c\u6267\u884c<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u8fd0\u7b97\uff0c\u5b83\u4ece\u79cd\u5b50\u503c\u548c\u5176\u4ed6\u5c40\u90e8\u5bfc\u51fa\u6216\u8f93\u5165\u7684\u8ba4\u8bc1\u56e0\u5b50\u503c\u8ba1\u7b97\u51fa<\/span><span style=\"font-size:14px;\">K<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u4f7f\u7528\u5408\u6210\u5171\u4eab\u5bc6\u94a5\u53ef\u4ee5\u901a\u8fc7\u5f15\u5165\u4ee4\u724c\u4e2d\u7684\u9644\u52a0\u8ba4\u8bc1\u56e0\u5b50\u52a0\u5f3a\u57fa\u4e8e<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u7684\u8ba4\u8bc1\u7cfb\u7edf\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5728\u67d0\u79cd\u7a0b\u5ea6\u4e0a\uff0c\u4ee4\u724c\u662f\u4e00\u4e2a\u53ef\u4fe1\u7684\u8bbe\u5907\u3002\u800c\u4e14\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u907f\u514d\u5c06\u8ba4\u8bc1\u56e0\u5b50<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u5982\u7528\u6237\u8f93\u5165<\/span><span style=\"font-size:14px;\">PIN)<\/span><span style=\"font-size:14px;\">\u66b4\u9732\u7ed9\u5176\u4ed6\u8bbe\u5907\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">9.<\/span><span><span style=\"font-size:14px;\">\u53cc\u5411\u8ba4\u8bc1<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6709\u8da3\u7684\u662f\uff0c<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u670d\u52a1\u7aef\u4e5f\u53ef\u4ee5\u7528\u6765\u8ba4\u8bc1\u670d\u52a1\u5668\uff0c\u5ba3\u79f0\u5176\u4e3a\u77e5\u9053\u5171\u4eab\u5bc6\u94a5\u7684\u771f\u5b9e\u5b9e\u4f53\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u7531\u4e8e<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u662f\u540c\u6b65\u7684\u5e76\u5171\u4eab\u540c\u4e00\u5bc6\u94a5<\/span><span style=\"font-size:14px;\">(<\/span><span style=\"font-size:14px;\">\u6216\u7528\u67d0\u79cd\u65b9\u6cd5\u91cd\u7b97<\/span><span style=\"font-size:14px;\">)<\/span><span style=\"font-size:14px;\">\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u79cd\u7b80\u5355\u7684<\/span><span style=\"font-size:14px;\">3<\/span><span style=\"font-size:14px;\">\u901a\u8fc7\u534f\u8bae\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u7ec8\u7aef\u7528\u6237\u8f93\u5165\u4ee4\u724c\u53e3\u4ee4\u548c\u7b2c\u4e00\u4e2a<\/span><span style=\"font-size:14px;\">OTP<\/span><span style=\"font-size:14px;\">\u503c<\/span><span style=\"font-size:14px;\">OTP1<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u670d\u52a1\u5668\u68c0\u67e5<\/span><span style=\"font-size:14px;\">OTP1<\/span><span style=\"font-size:14px;\">\uff0c\u5982\u679c\u6b63\u786e\uff0c\u8fd4\u56de<\/span><span style=\"font-size:14px;\">OTP2<\/span><span style=\"font-size:14px;\">\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u7ec8\u7aef\u7528\u6237\u4f7f\u7528\u4ed6\u7684<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u88c5\u7f6e\u68c0\u67e5<\/span><span style=\"font-size:14px;\">OTP2<\/span><span style=\"font-size:14px;\">\uff0c\u5982\u679c\u6b63\u786e\u5c31\u8fdb\u5165\u4e3a\u7f51\u7ad9\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u5f88\u660e\u663e\uff0c\u6b63\u5982\u524d\u6587\u6240\u8ff0\uff0c\u6240\u6709\u7684<\/span><span style=\"font-size:14px;\">OTP<\/span><span style=\"font-size:14px;\">\u901a\u4fe1\u90fd\u5e94\u5728\u5b89\u5168\u4fe1\u9053\u4e0a\u8fdb\u884c\u3002\u4f8b\u5982<\/span><span style=\"font-size:14px;\">SSL\/TLS, Ipsec<\/span><span style=\"font-size:14px;\">\u94fe\u8def\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span style=\"font-size:14px;\">10<\/span><span><span style=\"font-size:14px;\">\uff0e\u7ed3\u8bba<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u672c\u6587\u63cf\u8ff0\u4e86<\/span><span style=\"font-size:14px;\">HOTP, <\/span><span style=\"font-size:14px;\">\u57fa\u4e8e<\/span><span style=\"font-size:14px;\">HMAC<\/span><span style=\"font-size:14px;\">\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u751f\u6210\u7b97\u6cd5\u3002\u540c\u65f6\u4e5f\u63a8\u8350\u4e86\u8f83\u597d\u7684\u6267\u884c\u5de5\u5177\u548c\u5b9e\u73b0\u8be5\u7b97\u6cd5\u7684\u76f8\u5173\u65b9\u6cd5\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u672c\u6587\u540c\u65f6\u5c55\u793a\u4e86\u5b89\u5168\u56e0\u7d20\u5e76\u8bc1\u660e\u4e86<\/span><span style=\"font-size:14px;\">HOTP<\/span><span style=\"font-size:14px;\">\u7b97\u6cd5\u662f\u5b9e\u7528\u4e14\u5408\u7406\u7684\u3002\u6700\u53ef\u80fd\u7684\u653b\u51fb\u5373\u86ee\u529b\u653b\u51fb\u53ef\u4ee5\u901a\u8fc7\u8ba4\u8bc1\u670d\u52a1\u5668\u4e2d\u8ba1\u6570\u5668\u7684\u4ed4\u7ec6\u8fd0\u884c\u800c\u963b\u6b62\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p style=\"text-indent:24pt;\" class=\"MsoPlainText\">\n\t<span><span style=\"font-size:14px;\">\u6700\u540e\uff0c\u4e3a\u4e86\u6539\u5584\u5b89\u5168\u6027\u4ee5\u6ee1\u8db3\u67d0\u4e9b\u7279\u5b9a\u5e94\u7528\u7684\u9700\u8981\u63d0\u51fa\u4e86\u4e00\u4e9b\u589e\u5f3a\u65b9\u6cd5\u3002<\/span><span><\/span><\/span>\n<\/p>\n<p class=\"MsoNormal\">\n\t<span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p><span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:14px;\">&nbsp;&amp;n&#8230;<\/span><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[321],"tags":[],"class_list":["post-165","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u8f6c]HOTP\uff1a\u4e00\u79cd\u57fa\u4e8eHMAC\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5 - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=165\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u8f6c]HOTP\uff1a\u4e00\u79cd\u57fa\u4e8eHMAC\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5 - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;n...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=165\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-05T06:50:56+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=165#webpage\",\"url\":\"http:\/\/weizn.net\/?p=165\",\"name\":\"[\\u8f6c]HOTP\\uff1a\\u4e00\\u79cd\\u57fa\\u4e8eHMAC\\u7684\\u4e00\\u6b21\\u6027\\u53e3\\u4ee4\\u7b97\\u6cd5 - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2016-02-05T06:50:56+00:00\",\"dateModified\":\"2016-02-05T06:50:56+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=165#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=165\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=165#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\\u8f6c]HOTP\\uff1a\\u4e00\\u79cd\\u57fa\\u4e8eHMAC\\u7684\\u4e00\\u6b21\\u6027\\u53e3\\u4ee4\\u7b97\\u6cd5\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=165#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=165#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"[\\u8f6c]HOTP\\uff1a\\u4e00\\u79cd\\u57fa\\u4e8eHMAC\\u7684\\u4e00\\u6b21\\u6027\\u53e3\\u4ee4\\u7b97\\u6cd5\",\"datePublished\":\"2016-02-05T06:50:56+00:00\",\"dateModified\":\"2016-02-05T06:50:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=165#webpage\"},\"wordCount\":542,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"\\u5e94\\u7528\\u5b89\\u5168\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=165#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\u8f6c]HOTP\uff1a\u4e00\u79cd\u57fa\u4e8eHMAC\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5 - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=165","og_locale":"zh_CN","og_type":"article","og_title":"[\u8f6c]HOTP\uff1a\u4e00\u79cd\u57fa\u4e8eHMAC\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5 - Wayne&#039;s Blog","og_description":"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;n...","og_url":"http:\/\/weizn.net\/?p=165","og_site_name":"Wayne&#039;s Blog","article_published_time":"2016-02-05T06:50:56+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=165#webpage","url":"http:\/\/weizn.net\/?p=165","name":"[\u8f6c]HOTP\uff1a\u4e00\u79cd\u57fa\u4e8eHMAC\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5 - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2016-02-05T06:50:56+00:00","dateModified":"2016-02-05T06:50:56+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=165#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=165"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=165#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"[\u8f6c]HOTP\uff1a\u4e00\u79cd\u57fa\u4e8eHMAC\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=165#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=165#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"[\u8f6c]HOTP\uff1a\u4e00\u79cd\u57fa\u4e8eHMAC\u7684\u4e00\u6b21\u6027\u53e3\u4ee4\u7b97\u6cd5","datePublished":"2016-02-05T06:50:56+00:00","dateModified":"2016-02-05T06:50:56+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=165#webpage"},"wordCount":542,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["\u5e94\u7528\u5b89\u5168"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=165#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=165"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/165\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}