{"id":99729,"date":"2020-04-20T10:58:59","date_gmt":"2020-04-20T02:58:59","guid":{"rendered":"http:\/\/4563.org\/?p=99729"},"modified":"2020-04-20T10:58:59","modified_gmt":"2020-04-20T02:58:59","slug":"%e5%9f%ba%e4%ba%8e-https-%e5%af%b9%e5%a4%96%e6%8f%90%e4%be%9b-api%ef%bc%8c%e5%8d%81%e4%b8%87%e4%b8%aa%e4%b8%ba%e4%bb%80%e4%b9%88%ef%bc%8c%e6%b1%82-web-%e5%ae%89%e5%85%a8%e9%ab%98%e6%89%8b%e6%8c%87","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=99729","title":{"rendered":"\u57fa\u4e8e HTTPS \u5bf9\u5916\u63d0\u4f9b API\uff0c\u5341\u4e07\u4e2a\u4e3a\u4ec0\u4e48\uff0c\u6c42 web \u5b89\u5168\u9ad8\u624b\u6307\u6559"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u57fa\u4e8e HTTPS \u5bf9\u5916\u63d0\u4f9b API\uff0c\u5341\u4e07\u4e2a\u4e3a\u4ec0\u4e48\uff0c\u6c42 web \u5b89\u5168\u9ad8\u624b\u6307\u6559               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : phx13ye <\/span>  <span><i><\/i> 61<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5bf9\u63a5\u8fc7\u5404\u79cd\u7b2c\u4e09\u65b9\uff0c\u4ed6\u4eec\u7684 HTTPS \u63a5\u53e3\u6709\u65f6\u4f1a\u8981\u6c42<br \/>1 \u5bf9\u6570\u636e\u8ba1\u7b97\u7b7e\u540d\uff0c\u6709 https \u8fd8\u6709\u5fc5\u8981\u5417\uff1f<br \/>2 \u6bcf\u6b21\u8bf7\u6c42\u5e26\u4e0a\u65f6\u95f4\u6233\u548c nonce\uff0c\u8fd9\u4e2a\u5e94\u8be5\u662f\u9632\u91cd\u653e\uff1f<br \/>3 OAuth2 \u90a3\u4e00\u5957 token \u673a\u5236<br \/>4 \u7a00\u5947\u53e4\u602a\u7684\u6570\u636e\u52a0\u89e3\u5bc6\u65b9\u5f0f\uff0c\u4e3b\u8981\u662f\u94f6\u884c\u548c\u652f\u4ed8\u516c\u53f8<\/p>\n<p>\u641e\u5f97\u6211\u6bcf\u6b21\u8c03\u8bd5\u65f6\u90fd\u5f88\u90c1\u95f7<\/p>\n<p>HTTPS \u4e0d\u662f\u5df2\u7ecf\u5f88\u5b8c\u5584\u4e86\u5417\uff0c\u4e0a\u9762\u56db\u79cd\u54ea\u4e9b\u662f\u778e\u641e\u5462\uff0c\u5e94\u8be5\u505a\u8bbe\u8ba1\u600e\u4e48\u505a\u65e2\u53ef\u4ee5\u7b80\u5355\u5b9e\u73b0\uff0c\u65b9\u4fbf\u81ea\u5df1\u548c\u4ed6\u4eba\u8c03\u8bd5\uff0c\u53c8\u8db3\u591f\u5b89\u5168\u5462\uff1f      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>24<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"756800\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Maboroshii <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1 https \u662f\u52a0\u5bc6\uff0c\u662f\u8ba9\u7b2c\u4e09\u65b9\u770b\u4e0d\u89c1\u539f\u6587\u3002\u7b7e\u540d\u662f\u4fdd\u8bc1\u6570\u636e\u6765\u6e90\u53ef\u9760\u3002<br \/>2 \u65f6\u95f4\u6233\u53ef\u4ee5\u8ba4\u4e3a\u662f\u9632\u91cd\u653e\uff0cnonce \u66f4\u591a\u7684\u662f\u4fdd\u8bc1\u7b7e\u540d\u4e0d\u4e00\u81f4\uff0c\u9632\u6b62\u7b7e\u540d\u88ab\u7b80\u5355\u7834\u89e3\u3002<br \/>3 token \u662f\u9a8c\u8bc1\u8eab\u4efd<br \/>4 \u662f\u66f4\u591a\u4e00\u5c42\u7684\u6570\u636e\u4fdd\u62a4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756801\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yankebupt <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u636e\u8bf4\u6709\u9650\u91cf\u7684\u6d4b\u8bd5\u4e13\u7528 api\uff0c\u53ef\u4ee5\u627e\u4ed6\u4eec\u8981\uff0c\u6d4b\u8bd5\u4e13\u7528\u7684\uff0c\u9664\u4e86\u9650\u91cf\u5f88\u4f4e\u4ec0\u4e48\u9632\u8303\u63aa\u65bd\u90fd\u6ca1\u6709\u90a3\u79cd<br \/>\u6bd4\u5982\u8bed\u97f3\u97f3\u7bb1 *\u6ef4\u5e73\u53f0 \u5c31\u8fd9\u6837\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756802\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : blless <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1\u3001\u7b7e\u540d\u662f\u9632\u7be1\u6539\uff0c\u7b7e\u540d\u7b97\u6cd5\u4e0d\u53ef\u9006\uff0c\u4e2d\u95f4\u4eba\u60f3\u8981\u7be1\u6539\u4fe1\u606f\u9700\u8981\u7b7e\u540d\u7b97\u6cd5\u8ddf\u76d0<br \/>2\u3001\u65f6\u95f4\u6233\u8ddf nonce \u9664\u4e86\u9632\u91cd\u653e\u672c\u8eab\u4e5f\u53ef\u4ee5\u52a0\u5f3a\u7b7e\u540d<br \/>3\u30014 \u5c31\u662f 1 \u8bf4\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756803\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : phx13ye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yankebupt \u5012\u4e5f\u4e0d\u7b97\u662f\u4e3a\u4e86\u7ed5\u8fc7\u9a8c\u8bc1\uff0c\u53ea\u662f\u660e\u660e\u5df2\u7ecf\u7528\u4e86 https \u5e76\u4e14\u6709\u4e00\u4e9b\u8fd8\u8981\u8bbe\u7f6e ip \u767d\u540d\u5355\u624d\u80fd\u8bf7\u6c42\uff0c\u6211\u5728\u60f3\u54ea\u4e9b\u6b65\u9aa4\u662f\u6ca1\u5fc5\u8981\u505a\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756804\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jugelizi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6240\u4ee5\u4f60\u771f\u7684\u7814\u7a76\u4e86 https \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756805\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : also24 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5355\u5411\u7684 https \u53ea\u80fd\u4fdd\u8bc1\u4f60\u8bf7\u6c42\u7684\u94f6\u884c\u771f\u7684\u662f\u94f6\u884c\uff0c\u4f46\u94f6\u884c\u65e0\u6cd5\u786e\u5b9a\u4f60\u662f\u4f60\u3002<\/p>\n<p>\u52a0\u4e86 token \u624d\u80fd\u8ba9\u94f6\u884c\u77e5\u9053\u4f60\u662f\u4f60\uff0c\u4f46\u662f\u94f6\u884c\u4e0d\u77e5\u9053\u4f60\u5e26\u7684\u4e1c\u897f\u662f\u4f60\u81ea\u5df1\u5e26\u7684\uff0c\u8fd8\u662f\u522b\u4eba\u585e\u8fdb\u4f60\u5305\u91cc\u7684\u3002<\/p>\n<p>\u52a0\u4e0a nonce \u548c\u7b7e\u540d\uff0c\u624d\u80fd\u8ba9\u94f6\u884c\u77e5\u9053\u8fd9\u4e9b\u4e1c\u897f\u5168\u90fd\u662f\u4f60\u5e26\u7684\uff0c\u522b\u4eba\u6ca1\u6709\u5939\u5e26\uff0c\u4f46\u662f\u94f6\u884c\u4e0d\u77e5\u9053\u8fd9\u4e2a\u4f60\uff0c\u662f\u5426\u662f\u7528 1 \u5e74\u524d\u7684\u4f60\u514b\u9686\u51fa\u6765\u7684\u3002<\/p>\n<p>\u52a0\u4e0a\u65f6\u95f4\u6233\uff0c\u94f6\u884c\u624d\u80fd\u786e\u5b9a\u9762\u524d\u7684\u4f60\u786e\u5b9e\u662f\u5f53\u524d\u65f6\u95f4\u70b9\u771f\u5b9e\u5b58\u5728\u4f60\uff0c\u4e1c\u897f\u4e5f\u662f\u4f60\u5e26\u7684\u4e1c\u897f\u3002<\/p>\n<p>\u6700\u540e\uff0c\u7a00\u5947\u53e4\u602a\u7684\u52a0\u5bc6\u53c8\u662f\u4ec0\u4e48\u5462\uff1f<br \/>\u7b54\uff1a\u4f60\u5e26\u7684\u4e1c\u897f\u662f\u4e00\u4e2a\u4fdd\u9669\u7bb1~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756806\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leloext <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ec5\u8bf4\u4e0b\u770b\u6cd5\u3002<br \/>https \u4ec5\u4ec5\u662f\u9632\u6b62\u4e86\u7b2c\u4e09\u65b9\u5bf9\u4fe1\u606f\u7684\u622a\u53d6(\u9664\u53bb\u4e2d\u95f4\u4eba\u653b\u51fb)\uff0c\u4e1a\u52a1\u903b\u8f91\u8fd8\u5e94\u8be5\u5728\u670d\u52a1\u7aef\u9a8c\u8bc1\uff0c\u5ba2\u6237\u7aef\u8fd4\u56de\u7684\u4fe1\u606f\u90fd\u4e0d\u53ef\u4fe1\uff0c\u9700\u8981\u5404\u79cd\u9a8c\u8bc1\uff0c\u8fd9\u4e2a\u9a8c\u8bc1\u5e76\u4e0d\u662f https \u80fd\u4fdd\u8bc1\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756807\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : also24 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @leloext #7 <br \/>https \u662f\u6709\u53cc\u5411\u8ba4\u8bc1\u673a\u5236\u7684\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u53cc\u5411\u901a\u4fe1\u53ef\u4fe1\uff0c\u53ea\u662f\u5927\u5bb6\u4e00\u822c\u90fd\u6ca1\u5728\u7528\u800c\u5df2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756808\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : blless <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1\u3001\u7b7e\u540d\u662f\u9632\u7be1\u6539\uff0c\u7b7e\u540d\u7b97\u6cd5\u4e0d\u53ef\u9006\uff0c\u4e2d\u95f4\u4eba\u60f3\u8981\u7be1\u6539\u4fe1\u606f\u9700\u8981\u7b7e\u540d\u7b97\u6cd5\u8ddf\u76d0<br \/>2\u3001\u65f6\u95f4\u6233\u8ddf nonce \u9664\u4e86\u9632\u91cd\u653e\u672c\u8eab\u4e5f\u53ef\u4ee5\u52a0\u5f3a\u7b7e\u540d<br \/>3\u30014 \u5c31\u662f 1 \u8bf4\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756809\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leloext <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @also24 \u6709\u4e00\u8bf4\u4e00\uff0c\u6211\u771f\u8fd8\u6ca1\u7528\u8fc7\u53cc\u5411\u8ba4\u8bc1\uff0c\u6211\u505a\u7684\u4e1a\u52a1\u6765\u8bf4\u90fd\u662f\u5728 http \u4e0a\u9762\u5305\u4e00\u5c42 tls\uff0c\u786e\u4fdd\u4f20\u8f93\u7684\u5b89\u5168\u6027\uff0c\u540e\u7aef\u7684\u5404\u79cd\u9a8c\u8bc1\u4e00\u4e2a\u90fd\u5c11\u4e0d\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756810\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : blless <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u2026\u2026\u70b9\u8fdb\u6765\u600e\u4e48\u53c8\u53d1\u4e86\u4e00\u904d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756811\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Xbluer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             4\u3001\u7a00\u5947\u53e4\u602a\u7684\u52a0\u89e3\u5bc6\u65b9\u5f0f\uff0c\u6307\u7684\u662f\u56fd\u5bc6\u7b97\u6cd5\uff1f\u5f53\u7136\u4e5f\u53ef\u80fd\u662f\u4e0d\u4e13\u4e1a\u7684 Base64\u201c\u52a0\u5bc6&#8221;\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756812\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eminemcola <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @blless #11 \u4e00\u6b21\u6210\u529f\u7684\u91cd\u653e\uff08\u72d7\u5934                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756813\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : phx13ye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @also24 <\/p>\n<p>\u6240\u4ee5\u4e00\u4e2a\u90fd\u4e0d\u80fd\u5c11\u5417\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756814\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : phx13ye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Xbluer \u4ec0\u4e48\u53eb\u56fd\u5bc6\uff0c\u4e00\u822c\u662f\u975e\u5bf9\u79f0\u6216\u8005 hmac sha \u4e4b\u7c7b\u7684\u54c8\uff0c\u6211\u5e94\u8be5\u6ca1\u6df7\u6dc6\u52a0\u5bc6\uff0c\u54c8\u5e0c\uff0c\u7f16\u7801\u4e4b\u7c7b\u7684\u6982\u5ff5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756815\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : also24 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @phx13ye #14 <br \/>\u770b\u4f60\u8981\u7684\u662f \u300e\u5c3d\u53ef\u80fd\u5b89\u5168\u300f\uff0c\u8fd8\u662f \u300e\u5c3d\u53ef\u80fd\u7701\u4e8b\u300f\u3002<br \/>\u9274\u6743\u8ba4\u8bc1\u3001\u9632\u76d1\u542c\u3001\u9632\u7be1\u6539\u3001\u9632\u91cd\u653e \u90fd\u662f\u4e8b\u5b9e\u9700\u6c42\u554a\u3002<\/p>\n<p>\u53e6\u5916\u6211\u5012\u6570\u7b2c\u4e8c\u53e5\u4e0d\u662f\u7591\u95ee\u53e5\uff0c\u662f\u8bbe\u95ee\u53e5\uff0c\u7b54\u6848\u5c31\u5728\u6700\u540e\u4e00\u884c\u554a\u3002<\/p>\n<p>\u4ece\u5b9e\u9645\u89d2\u5ea6\u6765\u8bf4\uff0c\u8fd9\u6837\u505a\u4e5f\u786e\u5b9e\u5b58\u5728\u4e00\u5b9a\u7684\u610f\u4e49\uff0c\u56e0\u4e3a https \u7684\u6d41\u91cf\u5378\u8f7d\u5f88\u6709\u53ef\u80fd\u5728\u8d1f\u8f7d\u5747\u8861\u90a3\u4e00\u6b65\u5c31\u8fdb\u884c\u4e86\uff0c\u5982\u679c\u6ca1\u6709\u8fd9\u4e2a\u4e8c\u6b21\u52a0\u5bc6\uff0c\u90a3\u4e48\u6570\u636e\u5728\u8d1f\u8f7d\u5747\u8861\u90a3\u4e00\u6b65\u5c31\u662f \u300e\u88f8\u300f\u7684\u4e86\uff0c\u800c\u591a\u4e86\u8fd9\u4e00\u5c42\u52a0\u5bc6\uff0c\u53ef\u4ee5\u8ba9\u6570\u636e\u5728\u5230\u8fbe\u4e1a\u52a1\u4ee3\u7801\u90e8\u5206\u65f6\u624d\u88ab\u89e3\u8c1c\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756816\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Xbluer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/www.baidu.com\/s?wd=%E5%9B%BD%E5%AF%86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756817\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kontinue <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e4b\u524d\u535a\u5ba2\u4e2d\u7684\u603b\u7ed3\u3002<br \/>&#8212;&#8212;-<br \/>\u8fd9\u8fb9\u8fd8\u60f3\u63d0\u4e00\u4e0b HTTPS\u3002\u4e4b\u524d\u770b\u5230\u4e00\u5219\u77e5\u4e4e\u4e0a\u7684\u63d0\u95ee\uff1a[\u4f7f\u7528\u4e86 https \u540e\uff0c\u8fd8\u6709\u5fc5\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u7b7e\u540d\u6765\u786e\u4fdd\u6570\u636e\u6ca1\u6709\u88ab\u7be1\u6539\u5417\uff1f]( https:\/\/www.zhihu.com\/question\/52392988)<\/p>\n<p>\u603b\u7ed3\u4e00\u4e0b\u5c31\u662f\uff1a<\/p>\n<p>API \u7b7e\u540d\u4fdd\u8bc1\u7684\u662f\u5e94\u7528\u7684\u6570\u636e\u5b89\u5168\u548c\u9632\u7be1\u6539\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f5c\u4e3a\u4e1a\u52a1\u7684\u53c2\u6570\u6821\u9a8c\u548c\u5904\u7406\u91cd\u653e\u653b\u51fb\u3002<\/p>\n<p>HTTPS \u4fdd\u8bc1\u7684\u662f\u8fd0\u8f93\u5c42\u7684\u52a0\u5bc6\u4f20\u8f93\uff0c\u4f46\u662f\u65e0\u6cd5\u9632\u5fa1\u91cd\u653e\u653b\u51fb\u3002<\/p>\n<p>\u6362\u53e5\u8bdd\u8bf4\uff0cHTTPS \u4fdd\u8bc1\u901a\u8fc7\u4e2d\u95f4\u4eba\u653b\u51fb\u6293\u5230\u7684\u62a5\u6587\u662f\u5bc6\u6587\uff0c\u65e0\u6cd5\u6216\u8005\u8bf4\u5f88\u96be\u7834\u89e3\u3002\u4f46\u4ecd\u7136\u53ef\u4ee5\u5c06\u62a5\u6587\u91cd\u53d1\uff0c\u5f62\u6210 DDOS\u3002\u540c\u65f6\uff0c\u5982\u679c\u4e0d\u7b7e\u540d\uff0c\u53ea\u7528 HTTP \u7b80\u5355\u8ba4\u8bc1\uff0c\u901a\u8fc7\u6293\u5305\uff0c\u76f4\u63a5\u53ef\u4ee5\u83b7\u53d6\u5230 Authorization\uff0c\u5c31\u53ef\u4ee5\u968f\u610f\u53d1\u8d77\u8bf7\u6c42\u4e86\u3002\u56e0\u6b64\u6700\u5b89\u5168\u7684\u65b9\u6cd5\u5c31\u662f\u7ed3\u5408 HTTPS \u548c API \u7b7e\u540d\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756818\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SmiteChow <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             #6 \u901a\u4fd7\u6613\u61c2 \u8d5e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756819\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LeeSeoung <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b80\u5355\u6765\u8bf4\uff0c\u8fd9\u4e9b\u63aa\u65bd\u90fd\u662f\u6709\u5fc5\u8981\u7684\uff0c\u4f46\u4e5f\u53ea\u662f\u589e\u5927\u7834\u89e3\u96be\u5ea6\u800c\u5df2\uff0c\u4e0d\u80fd 100%\u9632\u5fa1\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756820\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : unco020511 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90fd\u6709\u5fc5\u8981\u554a,\u7b7e\u540d\u662f\u9632\u7be1\u6539\u7684,\u4e00\u822c :\u7b7e\u540d=\u4e0d\u53ef\u9006\u7b97\u6cd5(\u53c2\u6570\u5217\u8868+\u65f6\u95f4\u6233+\u5bc6\u94a5)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756821\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : phx13ye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @also24 <\/p>\n<p>\u8981\u7684\u662f \u300e\u5c3d\u53ef\u80fd\u5b89\u5168\u300f<br \/>HTTPS \u7684\u670d\u52a1\u7aef\u6536\u5230\u8bf7\u6c42\uff0c\u52a0\u4e0a\u8fd9\u4e9b\u9a8c\u8bc1\uff0c\u8fd8\u6709\u4ec0\u4e48\u9057\u6f0f\u5417\uff1f<br \/>\u54cd\u5e94\u65f6\uff0c\u6709\u4ec0\u4e48\u63aa\u65bd\u662f\u5fc5\u987b\u91c7\u7eb3\u7684\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756822\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : also24 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @phx13ye #22 <br \/>\u9057\u6f0f\u6709\u5f88\u591a\u79cd\u53ef\u80fd\u5427\uff0c\u6211\u8fd9\u4e8c\u628a\u5200\u5e94\u8be5\u4fdd\u8bc1\u4e0d\u4e86\u6ca1\u6709\u9057\u6f0f\u3002<br \/>\u8fd9\u4e1c\u897f\u5e94\u8be5\u53ea\u6d89\u53ca\u5230\u4f60\u671f\u671b\u8986\u76d6\u7684\u9762\u7684\u5927\u5c0f\uff0c\u6ca1\u6709\u5c3d\u5934\u3002<\/p>\n<p>\u6bd4\u5982\u8bf4 \u5ba2\u6237\u7aef\u662f\u5426\u8981\u5bf9 https \u8bc1\u4e66\u8fdb\u884c\u5f3a\u9a8c\u8bc1\uff08\u4e0d\u6b62\u9a8c\u8bc1\u8bc1\u4e66\u6709\u6548\u6027\uff0c\u8fd8\u8981\u9a8c\u8bc1\u8bc1\u4e66\u662f\u5426\u4e00\u81f4\uff09\u3002<br \/>\u6bd4\u5982\u8bf4 \u65f6\u95f4\u6233+\u7b7e\u540d \u9700\u8981\u6709\u65f6\u95f4\u5dee\u5197\u4f59\uff0c\u907f\u514d\u65f6\u95f4\u4e0d\u4e00\u81f4\u5bfc\u81f4\u51fa\u9519\uff0c\u800c\u5197\u4f59\u5c31\u5e26\u6765\u4e86\u77ed\u65f6\u95f4\u5185\u91cd\u653e\u7684\u98ce\u9669\uff0c\u6b64\u65f6\u53c8\u9700\u8981\u7f13\u5b58\u82e5\u5e72\u4e2a\u8bf7\u6c42\u4fe1\u606f\u6765\u9632\u6b62\u77ed\u65f6\u95f4\u5185\u7684\u91cd\u653e\u3002<br \/>\u6bd4\u5982\u8bf4 \u4f60\u7684 token \u673a\u5236\u662f\u5426\u8db3\u591f\u5b89\u5168\uff0c\u662f\u5426\u6709\u540a\u9500\u673a\u5236\uff08 JWT \u51fa\u6765\u6328\u6253\uff09\u3002<\/p>\n<p>\u6bcf\u4e2a\u63aa\u65bd\uff0c\u4e00\u822c\u90fd\u662f\u5bf9\u5e94\u67d0\u4e2a\u573a\u666f\u7ed9\u51fa\u7684\uff0c\u5176\u5b9e\u8fd8\u662f\u786e\u8ba4\u573a\u666f\u7684\u95ee\u9898\u3002<\/p>\n<p>\u53e6\u5916\u56de\u5e94\u4f60\u9644\u8a00\u4e2d\u7684\u95ee\u9898\uff1a<\/p>\n<p>content-type \u662f json \u7684\u8bdd\uff0c\u7b7e\u540d\u53ef\u4ee5\u653e\u8fdb header\uff0c\u4e5f\u53ef\u4ee5\u7ed9 json \u518d\u7f69\u4e00\u5c42 \u201c\u975e\u7b7e\u540d\u201d \u533a\u57df\u3002<br \/>\u5373\uff1a\u53c2\u4e0e\u7b7e\u540d\u8fd0\u7b97\u7684\u53ea\u662f\u67d0\u4e2a\u5b50\u5b57\u6bb5\uff0c\u800c\u53e6\u4e00\u4e2a\u5b50\u5b57\u6bb5\u5b58\u50a8\u7b7e\u540d\u4fe1\u606f\u5373\u53ef\u3002<\/p>\n<p>\u4f46\u662f\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\uff1a<br \/>JSON \u7684 k-v \u662f\u65e0\u5e8f\u7684\uff0c\u4e14 JSON \u5e8f\u5217\u5316\u7684\u683c\u5f0f\u662f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u7684\uff0c\u5f53\u4f60\u671f\u671b\u5bf9\u4e00\u4e2a JSON \u6c42\u7b7e\u540d\uff08 hash \uff09\u7684\u65f6\u5019\uff0c\u8bf7\u52a1\u5fc5\u534f\u8c03\u597d\u4e24\u7aef\u7684 JSON \u5e8f\u5217\u5316\u683c\u5f0f\u53ca\u987a\u5e8f\u3002<br \/>\u5982\u679c\u89c9\u5f97\u9ebb\u70e6\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u5c06\u9700\u8981\u4f20\u9012\u7684 JSON \u5bf9\u8c61\uff0c\u5148\u5e8f\u5217\u5316\u4e4b\u540e\uff0c\u5b58\u4e8e\u67d0\u4e2a JSON String \u5b57\u6bb5\u3002<\/p>\n<p>&gt; \u5bf9\u4e8e\u8bf7\u6c42\uff0cbody \u4e00\u822c\u53ea\u80fd\u8bfb\u53d6\u4e00\u6b21\uff0c\u8bfb\u53d6\u65f6\u8981\u5148\u7f13\u5b58\u4e00\u4efd\uff0c\u7136\u540e\u548c\u8bf7\u6c42\u9996\u90e8\u6bd4\u5bf9<br \/>\u8fd9\u6bb5\u8bdd\u6211\u6ca1\u6709\u7406\u89e3\u662f\u4ec0\u4e48\u610f\u601d\uff0c\u4e3a\u4ec0\u4e48\u53ea\u80fd\u8bfb\u53d6\u4e00\u6b21\u3002<br \/>\u53ef\u4ee5\u8003\u8651\u8bbe\u7f6e\u7c7b\u4f3c \u201cAPI \u7f51\u5173\u201d \u7684\u6982\u5ff5\uff0c\u6240\u6709\u8bf7\u6c42\u5148\u7ecf\u8fc7\u7f51\u5173\u7684\u6838\u9a8c\u4e4b\u540e\u518d\u4f20\u5165\u4e1a\u52a1\u4ee3\u7801\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"756823\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : phx13ye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @also24 \u611f\u8c22\u5927\u4f6c<\/p>\n<p>\u9632\u91cd\u653e\u51c6\u5907\u8fd9\u6837\u505a<br \/>1.\u9a8c\u8bc1\u7b7e\u540d\u9632\u7be1\u6539<br \/>2.\u5224\u65ad\u670d\u52a1\u5668\u65f6\u95f4\u662f\u5426\u6bd4\u8bf7\u6c42 timestamp<br \/>3.\u5224\u65ad nonce \u662f\u5426 redis set \u4e2d<\/p>\n<p>\u662f\u8003\u8651 json \u7684\u5b57\u6bb5\u53ef\u4ee5\u5d4c\u5957\u548c k-v \u65e0\u5e8f\uff0c\u624d\u5c06\u6574\u4e2a body hash                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u4e8e HTTPS \u5bf9\u5916\u63d0\u4f9b API&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/99729"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99729"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/99729\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99729"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}