{"id":973591,"date":"2024-12-27T05:58:12","date_gmt":"2024-12-26T21:58:12","guid":{"rendered":""},"modified":"2024-12-27T05:58:14","modified_gmt":"2024-12-26T21:58:14","slug":"rsa%e7%94%a8python%e5%a6%82%e4%bd%95%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/973591.html","title":{"rendered":"rsa\u7528python\u5982\u4f55\u89e3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195713\/62093cf5-8f23-4375-94a5-10fcbfcf31d5.webp\" alt=\"rsa\u7528python\u5982\u4f55\u89e3\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u89e3\u5bc6RSA\u7684\u6838\u5fc3\u6b65\u9aa4\u5305\u62ec\uff1a\u83b7\u53d6\u79c1\u94a5\u3001\u4f7f\u7528\u79c1\u94a5\u8fdb\u884c\u89e3\u5bc6\u3001\u5904\u7406\u5bc6\u6587\u4e0e\u660e\u6587\u683c\u5f0f\u3002<\/strong>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4e00\u4e2aRSA\u5bc6\u94a5\u5bf9\uff0c\u5176\u4e2d\u5305\u542b\u516c\u94a5\u548c\u79c1\u94a5\u3002\u63a5\u7740\uff0c\u4f7f\u7528Python\u7684\u52a0\u5bc6\u5e93\uff08\u5982PyCryptoDome\u6216Cryptography\uff09\u6765\u89e3\u5bc6\u5bc6\u6587\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u9996\u5148\u8981\u786e\u4fdd\u5bc6\u6587\u683c\u5f0f\u6b63\u786e\uff0c\u7136\u540e\u5229\u7528\u79c1\u94a5\u89e3\u5bc6\uff0c\u6700\u540e\u5904\u7406\u89e3\u5bc6\u540e\u7684\u6570\u636e\uff0c\u4ee5\u5f97\u5230\u53ef\u8bfb\u660e\u6587\u3002\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u8fd9\u4e00\u8fc7\u7a0b\uff0c\u4e0b\u9762\u5c06\u8be6\u7ec6\u5c55\u5f00\u89e3\u91ca\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001RSA\u52a0\u5bc6\u4e0e\u89e3\u5bc6\u7684\u57fa\u672c\u6982\u5ff5<\/h3>\n<\/p>\n<p><p>RSA\u662f\u4e00\u79cd\u57fa\u4e8e\u5927\u6574\u6570\u5206\u89e3\u96be\u9898\u7684\u975e\u5bf9\u79f0\u52a0\u5bc6\u7b97\u6cd5\uff0c\u901a\u5e38\u7528\u4e8e\u4fdd\u62a4\u6570\u636e\u7684\u673a\u5bc6\u6027\u3002RSA\u52a0\u5bc6\u548c\u89e3\u5bc6\u4f9d\u8d56\u4e8e\u4e00\u5bf9\u5bc6\u94a5\uff1a\u516c\u94a5\u7528\u4e8e\u52a0\u5bc6\uff0c\u79c1\u94a5\u7528\u4e8e\u89e3\u5bc6\u3002\u4e0e\u5bf9\u79f0\u52a0\u5bc6\u4e0d\u540c\uff0cRSA\u7684\u5b89\u5168\u6027\u4f9d\u8d56\u4e8e\u5bc6\u94a5\u7684\u957f\u5ea6\u548c\u751f\u6210\u7684\u968f\u673a\u6027\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u5bc6\u94a5\u751f\u6210<\/strong>\uff1aRSA\u5bc6\u94a5\u5bf9\u5305\u62ec\u4e00\u4e2a\u516c\u94a5\u548c\u4e00\u4e2a\u79c1\u94a5\u3002\u516c\u94a5\u7531\u6a21\u6570n\u548c\u6307\u6570e\u7ec4\u6210\uff0c\u800c\u79c1\u94a5\u7531\u6a21\u6570n\u548c\u6307\u6570d\u7ec4\u6210\u3002\u751f\u6210\u5bc6\u94a5\u65f6\uff0c\u9009\u62e9\u4e24\u4e2a\u5927\u8d28\u6570p\u548cq\uff0c\u8ba1\u7b97n=p*q\uff0c\u5e76\u6839\u636e\u9009\u62e9\u7684e\u8ba1\u7b97d\u3002<\/li>\n<li><strong>\u52a0\u5bc6\u8fc7\u7a0b<\/strong>\uff1a\u4f7f\u7528\u516c\u94a5\u52a0\u5bc6\u65f6\uff0c\u660e\u6587m\u901a\u8fc7\u516c\u5f0fc = m^e mod n\u8f6c\u6362\u4e3a\u5bc6\u6587c\u3002<\/li>\n<li><strong>\u89e3\u5bc6\u8fc7\u7a0b<\/strong>\uff1a\u4f7f\u7528\u79c1\u94a5\u89e3\u5bc6\u65f6\uff0c\u5bc6\u6587c\u901a\u8fc7\u516c\u5f0fm = c^d mod n\u8f6c\u6362\u56de\u660e\u6587m\u3002<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Python\u751f\u6210RSA\u5bc6\u94a5\u5bf9<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528PyCryptoDome\u5e93\u6765\u751f\u6210\u548c\u7ba1\u7406RSA\u5bc6\u94a5\u5bf9\u3002PyCryptoDome\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u7684\u52a0\u5bc6\u5e93\uff0c\u652f\u6301\u591a\u79cd\u52a0\u5bc6\u7b97\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from Crypto.PublicKey import RSA<\/p>\n<h2><strong>\u751f\u6210RSA\u5bc6\u94a5\u5bf9<\/strong><\/h2>\n<p>key = RSA.generate(2048)<\/p>\n<p>private_key = key.export_key()<\/p>\n<p>public_key = key.publickey().export_key()<\/p>\n<h2><strong>\u4fdd\u5b58\u5bc6\u94a5\u5230\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&quot;private.pem&quot;, &quot;wb&quot;) as priv_file:<\/p>\n<p>    priv_file.write(private_key)<\/p>\n<p>with open(&quot;public.pem&quot;, &quot;wb&quot;) as pub_file:<\/p>\n<p>    pub_file.write(public_key)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Python\u8fdb\u884cRSA\u89e3\u5bc6<\/h3>\n<\/p>\n<p><p>\u89e3\u5bc6\u662fRSA\u7b97\u6cd5\u7684\u5173\u952e\u6b65\u9aa4\u4e4b\u4e00\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528PyCryptoDome\u8fdb\u884cRSA\u89e3\u5bc6\u7684\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5PyCryptoDome\u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86PyCryptoDome\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pycryptodome<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u52a0\u8f7d\u79c1\u94a5\u548c\u89e3\u5bc6\u5bc6\u6587<\/h4>\n<\/p>\n<p><p>\u5728\u89e3\u5bc6\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u79c1\u94a5\uff0c\u5e76\u4f7f\u7528\u8be5\u79c1\u94a5\u89e3\u5bc6\u5bc6\u6587\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from Crypto.PublicKey import RSA<\/p>\n<p>from Crypto.Cipher import PKCS1_OAEP<\/p>\n<p>import base64<\/p>\n<h2><strong>\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u79c1\u94a5<\/strong><\/h2>\n<p>with open(&quot;private.pem&quot;, &quot;rb&quot;) as priv_file:<\/p>\n<p>    private_key = RSA.import_key(priv_file.read())<\/p>\n<h2><strong>\u521d\u59cb\u5316\u89e3\u5bc6\u5668<\/strong><\/h2>\n<p>cipher_rsa = PKCS1_OAEP.new(private_key)<\/p>\n<h2><strong>\u5047\u8bbe\u5bc6\u6587\u5df2\u7ecf\u901a\u8fc7base64\u7f16\u7801<\/strong><\/h2>\n<p>encrypted_message = b&#39;...&#39;  # \u5bc6\u6587<\/p>\n<p>encrypted_data = base64.b64decode(encrypted_message)<\/p>\n<h2><strong>\u89e3\u5bc6\u5bc6\u6587<\/strong><\/h2>\n<p>decrypted_data = cipher_rsa.decrypt(encrypted_data)<\/p>\n<p>print(decrypted_data.decode(&#39;utf-8&#39;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u7406\u89e3RSA\u89e3\u5bc6\u4e2d\u7684\u5173\u952e\u6280\u672f\u70b9<\/h3>\n<\/p>\n<p><h4>1\u3001\u5bc6\u94a5\u957f\u5ea6\u4e0e\u5b89\u5168\u6027<\/h4>\n<\/p>\n<p><p>RSA\u5bc6\u94a5\u7684\u957f\u5ea6\u76f4\u63a5\u5f71\u54cd\u5230\u52a0\u5bc6\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u3002\u8f83\u957f\u7684\u5bc6\u94a5\u63d0\u4f9b\u66f4\u9ad8\u7684\u5b89\u5168\u6027\uff0c\u4f46\u4e5f\u589e\u52a0\u4e86\u8ba1\u7b97\u590d\u6742\u5ea6\u3002\u4e00\u822c\u6765\u8bf4\uff0c2048\u4f4d\u7684\u5bc6\u94a5\u88ab\u8ba4\u4e3a\u662f\u8db3\u591f\u5b89\u5168\u7684\uff0c\u4f46\u5bf9\u4e8e\u6781\u9ad8\u5b89\u5168\u9700\u6c42\u7684\u5e94\u7528\uff0c\u53ef\u4ee5\u4f7f\u75284096\u4f4d\u6216\u66f4\u957f\u7684\u5bc6\u94a5\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u586b\u5145\u65b9\u6848\u7684\u91cd\u8981\u6027<\/h4>\n<\/p>\n<p><p>\u5728RSA\u52a0\u5bc6\u4e2d\uff0c\u586b\u5145\u65b9\u6848\uff08Padding Scheme\uff09\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u5e38\u89c1\u7684\u586b\u5145\u65b9\u6848\u5305\u62ecPKCS#1 v1.5\u548cOAEP\uff08Optimal Asymmetric Encryption Padding\uff09\u3002\u586b\u5145\u65b9\u6848\u7684\u9009\u62e9\u5f71\u54cd\u5230\u52a0\u5bc6\u8fc7\u7a0b\u7684\u5b89\u5168\u6027\u548c\u89e3\u5bc6\u7684\u6b63\u786e\u6027\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u5904\u7406\u957f\u6d88\u606f<\/h4>\n<\/p>\n<p><p>\u7531\u4e8eRSA\u52a0\u5bc6\u53ea\u80fd\u5904\u7406\u5c0f\u4e8e\u5bc6\u94a5\u957f\u5ea6\u7684\u6570\u636e\uff0c\u957f\u6d88\u606f\u9700\u8981\u5206\u5757\u5904\u7406\u3002\u901a\u5e38\u7684\u505a\u6cd5\u662f\u4f7f\u7528\u5bf9\u79f0\u52a0\u5bc6\u7b97\u6cd5\uff08\u5982AES\uff09\u52a0\u5bc6\u957f\u6d88\u606f\uff0c\u7136\u540e\u4f7f\u7528RSA\u52a0\u5bc6\u5bf9\u79f0\u5bc6\u94a5\uff0c\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u89e3\u51b3RSA\u4e0d\u9002\u5408\u5904\u7406\u957f\u6d88\u606f\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><h4>1\u3001\u786e\u4fdd\u5bc6\u94a5\u7684\u5b89\u5168\u5b58\u50a8<\/h4>\n<\/p>\n<p><p>\u5bc6\u94a5\u7684\u5b89\u5168\u5b58\u50a8\u662f\u4fdd\u8bc1RSA\u5b89\u5168\u6027\u7684\u57fa\u7840\u3002\u79c1\u94a5\u5fc5\u987b\u4fdd\u5bc6\uff0c\u4e0d\u80fd\u6cc4\u9732\u7ed9\u4efb\u4f55\u672a\u7ecf\u6388\u6743\u7684\u4eba\u5458\u3002\u53ef\u4ee5\u4f7f\u7528\u52a0\u5bc6\u6587\u4ef6\u7cfb\u7edf\u6216\u786c\u4ef6\u5b89\u5168\u6a21\u5757\uff08HSM\uff09\u6765\u4fdd\u62a4\u79c1\u94a5\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u9a8c\u8bc1\u6570\u636e\u5b8c\u6574\u6027<\/h4>\n<\/p>\n<p><p>\u5728\u89e3\u5bc6\u8fc7\u7a0b\u4e2d\uff0c\u9664\u4e86\u4fdd\u62a4\u6570\u636e\u7684\u673a\u5bc6\u6027\uff0c\u8fd8\u9700\u8981\u9a8c\u8bc1\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u6570\u5b57\u7b7e\u540d\u6765\u5b9e\u73b0\uff0c\u786e\u4fdd\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u88ab\u7be1\u6539\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u5b9a\u671f\u66f4\u65b0\u5bc6\u94a5<\/h4>\n<\/p>\n<p><p>\u4e3a\u4e86\u9632\u6b62\u5bc6\u94a5\u6cc4\u9732\u548c\u7834\u89e3\uff0c\u5efa\u8bae\u5b9a\u671f\u66f4\u65b0\u5bc6\u94a5\u3002\u66f4\u65b0\u5bc6\u94a5\u65f6\uff0c\u9700\u8981\u91cd\u65b0\u52a0\u5bc6\u6570\u636e\u6216\u4f7f\u7528\u65b0\u7684\u5bc6\u94a5\u5bf9\u6570\u636e\u8fdb\u884c\u7b7e\u540d\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u5b89\u5168\u5730\u8fdb\u884cRSA\u89e3\u5bc6\u3002RSA\u7684\u5f3a\u5927\u4e4b\u5904\u5728\u4e8e\u5176\u80fd\u591f\u5b89\u5168\u5730\u4f20\u8f93\u6570\u636e\u548c\u5bc6\u94a5\uff0c\u7136\u800c\u5176\u5b89\u5168\u6027\u4e5f\u4f9d\u8d56\u4e8e\u6b63\u786e\u7684\u5b9e\u73b0\u548c\u4f7f\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5b9e\u73b0RSA\u89e3\u5bc6\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pycryptodome<\/code>\u5e93\u6765\u5b9e\u73b0RSA\u89e3\u5bc6\u3002\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5\u8be5\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pip install pycryptodome<\/code>\u8fdb\u884c\u5b89\u88c5\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u9700\u8981\u751f\u6210\u5bc6\u94a5\u5bf9\uff0c\u5e76\u4f7f\u7528\u79c1\u94a5\u8fdb\u884c\u89e3\u5bc6\u64cd\u4f5c\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u52a0\u8f7d\u79c1\u94a5\u3001\u4f7f\u7528\u79c1\u94a5\u89e3\u5bc6\u52a0\u5bc6\u7684\u6570\u636e\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">from Crypto.PublicKey import RSA\nfrom Crypto.Cipher import PKCS1_OAEP\n\n# \u52a0\u8f7d\u79c1\u94a5\nwith open(&#39;private_key.pem&#39;, &#39;rb&#39;) as f:\n    private_key = RSA.import_key(f.read())\n\n# \u521b\u5efa\u89e3\u5bc6\u5668\ncipher = PKCS1_OAEP.new(private_key)\n\n# \u89e3\u5bc6\u6570\u636e\nencrypted_data = b&#39;...&#39;  # \u8fd9\u91cc\u586b\u5165\u8981\u89e3\u5bc6\u7684\u52a0\u5bc6\u6570\u636e\ndecrypted_data = cipher.decrypt(encrypted_data)\nprint(decrypted_data.decode(&#39;utf-8&#39;))\n<\/code><\/pre>\n<p><strong>\u6211\u5982\u4f55\u751f\u6210RSA\u5bc6\u94a5\u5bf9\uff1f<\/strong><br \/>\u751f\u6210RSA\u5bc6\u94a5\u5bf9\u540c\u6837\u53ef\u4ee5\u4f7f\u7528<code>pycryptodome<\/code>\u5e93\u3002\u60a8\u9700\u8981\u6307\u5b9a\u5bc6\u94a5\u7684\u957f\u5ea6\uff08\u901a\u5e38\u4e3a2048\u62164096\u4f4d\uff09\uff0c\u7136\u540e\u5c06\u516c\u94a5\u548c\u79c1\u94a5\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\u3002\u4ee5\u4e0b\u662f\u751f\u6210\u5bc6\u94a5\u5bf9\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">from Crypto.PublicKey import RSA\n\n# \u751f\u6210RSA\u5bc6\u94a5\u5bf9\nkey = RSA.generate(2048)\n\n# \u4fdd\u5b58\u79c1\u94a5\nwith open(&#39;private_key.pem&#39;, &#39;wb&#39;) as f:\n    f.write(key.export_key())\n\n# \u4fdd\u5b58\u516c\u94a5\nwith open(&#39;public_key.pem&#39;, &#39;wb&#39;) as f:\n    f.write(key.publickey().export_key())\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u786e\u4fddRSA\u89e3\u5bc6\u7684\u5b89\u5168\u6027\uff1f<\/strong><br \/>\u786e\u4fddRSA\u89e3\u5bc6\u7684\u5b89\u5168\u6027\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\u3002\u9996\u5148\uff0c\u4f7f\u7528\u8db3\u591f\u957f\u7684\u5bc6\u94a5\u957f\u5ea6\uff082048\u4f4d\u6216\u66f4\u957f\uff09\u4ee5\u62b5\u5fa1\u66b4\u529b\u7834\u89e3\u653b\u51fb\u3002\u5176\u6b21\uff0c\u786e\u4fdd\u79c1\u94a5\u7684\u5b89\u5168\u5b58\u50a8\uff0c\u907f\u514d\u88ab\u672a\u6388\u6743\u8bbf\u95ee\u3002\u6700\u540e\uff0c\u4f7f\u7528\u73b0\u4ee3\u52a0\u5bc6\u6a21\u5f0f\uff08\u5982PKCS1_OAEP\uff09\u6765\u589e\u52a0\u89e3\u5bc6\u8fc7\u7a0b\u7684\u5b89\u5168\u6027\u3002\u5b9a\u671f\u66f4\u65b0\u5bc6\u94a5\u4e5f\u662f\u63d0\u9ad8\u5b89\u5168\u6027\u7684\u4e00\u4e2a\u91cd\u8981\u63aa\u65bd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u89e3\u5bc6RSA\u7684\u6838\u5fc3\u6b65\u9aa4\u5305\u62ec\uff1a\u83b7\u53d6\u79c1\u94a5\u3001\u4f7f\u7528\u79c1\u94a5\u8fdb\u884c\u89e3\u5bc6\u3001\u5904\u7406\u5bc6\u6587\u4e0e\u660e\u6587\u683c\u5f0f\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4e00\u4e2aR [&hellip;]","protected":false},"author":3,"featured_media":973600,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973591"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=973591"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973591\/revisions"}],"predecessor-version":[{"id":973601,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973591\/revisions\/973601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/973600"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=973591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=973591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=973591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}