{"id":181885,"date":"2024-05-08T21:07:48","date_gmt":"2024-05-08T13:07:48","guid":{"rendered":""},"modified":"2024-05-08T21:07:58","modified_gmt":"2024-05-08T13:07:58","slug":"java%e7%9a%84%e5%8a%a0%e5%af%86%e4%b8%b2%e5%9c%a8php%e4%b8%ad%e5%a6%82%e4%bd%95%e7%94%a8des%e8%a7%a3%e5%af%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/181885.html","title":{"rendered":"JAVA\u7684\u52a0\u5bc6\u4e32\u5728PHP\u4e2d\u5982\u4f55\u7528DES\u89e3\u5bc6"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27071717\/2a21d750-9c96-4c61-a9da-79d3c3d5060a.webp\" alt=\"JAVA\u7684\u52a0\u5bc6\u4e32\u5728PHP\u4e2d\u5982\u4f55\u7528DES\u89e3\u5bc6\" \/><\/p>\n<p><p>DES\u52a0\u5bc6\u662f\u4e00\u79cd\u5bf9\u79f0\u52a0\u5bc6\u7b97\u6cd5\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u6570\u636e\u52a0\u5bc6\u573a\u666f\u3002<strong>Java\u4e2d\u52a0\u5bc6\u7684\u5b57\u7b26\u4e32\u5728PHP\u4e2d\u89e3\u5bc6\u6d89\u53ca\u5230\u4e24\u4e2a\u5173\u952e\u70b9\uff1a\u5bc6\u94a5\u7684\u4e00\u81f4\u6027\u548c\u52a0\u5bc6\u6a21\u5f0f\u4ee5\u53ca\u586b\u5145\u65b9\u5f0f\u7684\u5339\u914d<\/strong>\u3002\u5728Java\u8fdb\u884cDES\u52a0\u5bc6\u65f6\uff0c\u7a0b\u5e8f\u5458\u4f1a\u9009\u62e9\u7279\u5b9a\u7684\u5de5\u4f5c\u6a21\u5f0f\uff08\u6bd4\u5982ECB\u3001CBC\u7b49\uff09\u4ee5\u53ca\u586b\u5145\u65b9\u5f0f\uff08\u5982PKCS5Padding\u3001NoPadding\u7b49\uff09\u3002\u4e3a\u4e86\u5728PHP\u4e2d\u6b63\u786e\u89e3\u5bc6\uff0c\u9700\u8981\u4f7f\u7528\u76f8\u540c\u7684\u5bc6\u94a5\u3001\u52a0\u5bc6\u6a21\u5f0f\u53ca\u586b\u5145\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u7406\u89e3DES\u52a0\u5bc6\u673a\u5236<\/h3>\n<\/p>\n<p><p>DES\uff0c\u5373\u6570\u636e\u52a0\u5bc6\u6807\u51c6\uff0c\u662f\u4e00\u79cd\u4f7f\u752856\u4f4d\u5bc6\u94a5\u7684\u5bf9\u79f0\u52a0\u5bc6\u7b97\u6cd5\u3002\u5bf9\u79f0\u52a0\u5bc6\u610f\u5473\u7740\u52a0\u5bc6\u548c\u89e3\u5bc6\u4f7f\u7528\u76f8\u540c\u7684\u5bc6\u94a5\u3002\u7406\u89e3\u6b64\u7b97\u6cd5\u5bf9\u4e8e\u6b63\u786e\u914d\u7f6eJava\u548cPHP\u4e2d\u7684\u52a0\u5bc6\u89e3\u5bc6\u8fc7\u7a0b\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><p><strong>\u52a0\u5bc6\u6a21\u5f0f\u548c\u586b\u5145\u65b9\u5f0f<\/strong> \u4e5f\u8d77\u7740\u91cd\u8981\u4f5c\u7528\u3002\u4f8b\u5982\uff0cECB\u6a21\u5f0f\uff08\u7535\u5b50\u5bc6\u7801\u672c\u6a21\u5f0f\uff09\u5c06\u6570\u636e\u5206\u6210\u5757\u8fdb\u884c\u52a0\u5bc6\uff0c\u800c\u4e0d\u4f7f\u7528\u4efb\u4f55\u521d\u59cb\u5316\u5411\u91cf\uff08IV\uff09\u3002\u800cCBC\u6a21\u5f0f\uff08\u5bc6\u7801\u5757\u94fe\u63a5\uff09\u5219\u9700\u8981IV\u6765\u5904\u7406\u6bcf\u4e2a\u52a0\u5bc6\u5757\u3002<\/p>\n<\/p>\n<p><p>\u586b\u5145\u65b9\u5f0f\u5904\u7406\u6700\u540e\u4e00\u4e2a\u6570\u636e\u5757\u4e0d\u8db3\u4e00\u4e2a\u5b8c\u6574\u52a0\u5bc6\u5757\u7684\u60c5\u51b5\u3002\u5982PKCS5Padding\uff0c\u5b83\u4f1a\u6dfb\u52a0\u8db3\u591f\u7684\u5b57\u8282\u5c06\u6570\u636e\u5757\u586b\u5145\u5230\u6240\u9700\u7684\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001Java\u4e2d\u7684DES\u52a0\u5bc6\u5b9e\u73b0<\/h3>\n<\/p>\n<p><p>\u5728Java\u4e2d\u5b9e\u73b0DES\u52a0\u5bc6\u901a\u5e38\u6d89\u53ca\u5230<code>Cipher<\/code>\u7c7b\u3002\u8fd9\u4e2a\u7c7b\u63d0\u4f9b\u4e86\u52a0\u5bc6\u548c\u89e3\u5bc6\u529f\u80fd\uff0c\u5b83\u652f\u6301\u591a\u79cd\u52a0\u5bc6\u6280\u672f\uff0c\u5305\u62ecDES\u3002<\/p>\n<\/p>\n<p><p><strong>\u521b\u5efaCipher\u5b9e\u4f8b<\/strong> \u65f6\uff0c\u9700\u8981\u6307\u5b9a\u52a0\u5bc6\u65b9\u5f0f\u3001\u5de5\u4f5c\u6a21\u5f0f\u548c\u586b\u5145\u65b9\u5f0f\u3002\u7136\u540e\uff0c\u521b\u5efa\u4e00\u4e2a<code>SecretKey<\/code>\u7528\u4e8e\u52a0\u5bc6\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><p>Java\u52a0\u5bc6\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import javax.crypto.Cipher;<\/p>\n<p>import javax.crypto.spec.SecretKeySpec;<\/p>\n<p>import java.security.Key;<\/p>\n<p>import java.util.Base64;<\/p>\n<p>\/\/ ...<\/p>\n<p>public static String encrypt(String data, String key) throws Exception {<\/p>\n<p>    Cipher cipher = Cipher.getInstance(&quot;DES\/ECB\/PKCS5Padding&quot;);<\/p>\n<p>    Key secretKey = new SecretKeySpec(key.getBytes(), &quot;DES&quot;);<\/p>\n<p>    cipher.init(Cipher.ENCRYPT_MODE, secretKey);<\/p>\n<p>    byte[] encrypted = cipher.doFinal(data.getBytes());<\/p>\n<p>    return Base64.getEncoder().encodeToString(encrypted);<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001PHP\u4e2d\u7684DES\u89e3\u5bc6\u5b9e\u73b0<\/h3>\n<\/p>\n<p><p>\u5728PHP\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<code>openssl<\/code>\u51fd\u6570\u8fdb\u884cDES\u89e3\u5bc6\u3002\u4e3a\u4e86\u4e0eJava\u7684\u52a0\u5bc6\u8fc7\u7a0b\u517c\u5bb9\uff0c\u5fc5\u987b\u4f7f\u7528\u4e0eJava\u76f8\u540c\u7684\u5bc6\u94a5\u3001\u5de5\u4f5c\u6a21\u5f0f\u548c\u586b\u5145\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p><strong>openssl_decrypt<\/strong> \u51fd\u6570\u662fPHP\u4e2d\u6267\u884c\u89e3\u5bc6\u7684\u6838\u5fc3\u51fd\u6570\u3002\u9700\u8981\u6b63\u786e\u8bbe\u5b9a\u53c2\u6570\u5982\u52a0\u5bc6\u65b9\u6cd5<code>DES-EBC<\/code>\uff0c\u5bc6\u94a5\uff0c\u4ee5\u53ca\u9009\u9879\u6765\u7981\u7528\u6216\u542f\u7528\u81ea\u52a8\u586b\u5145\u3002<\/p>\n<\/p>\n<p><p>PHP\u89e3\u5bc6\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-php\">\/\/ ...<\/p>\n<p>function decrypt($data, $key) {<\/p>\n<p>    $encrypted = base64_decode($data);<\/p>\n<p>    $decrypted = openssl_decrypt($encrypted, &#039;DES-EBC&#039;, $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING);<\/p>\n<p>    \/\/ \u6839\u636e\u6240\u4f7f\u7528\u7684\u586b\u5145\u65b9\u5f0f\u79fb\u9664\u586b\u5145\u5b57\u7b26<\/p>\n<p>    $blockSize = mcrypt_get_block_size(MCRYPT_DES, MCRYPT_MODE_ECB);<\/p>\n<p>    $pad = ord($decrypted[strlen($decrypted) - 1]);<\/p>\n<p>    if ($pad &gt; 0 &amp;&amp; $pad &lt;= $blockSize) {<\/p>\n<p>        $padConfirmation = substr($decrypted, -$pad);<\/p>\n<p>        if (str_repeat(chr($pad), $pad) == $padConfirmation) {<\/p>\n<p>            $decrypted = substr($decrypted, 0, strlen($decrypted) - $pad);<\/p>\n<p>        }<\/p>\n<p>    }<\/p>\n<p>    return $decrypted;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5339\u914d\u5bc6\u94a5\u548c\u52a0\u5bc6\u914d\u7f6e<\/h3>\n<\/p>\n<p><p>\u5f53\u5728Java\u4e2d\u5bf9\u6570\u636e\u6267\u884cDES\u52a0\u5bc6\u65f6\uff0c\u751f\u6210\u7684\u52a0\u5bc6\u5b57\u7b26\u4e32\u5c06\u4f5c\u4e3a\u8f93\u5165\u4f20\u9012\u7ed9PHP\u7684\u89e3\u5bc6\u51fd\u6570\u3002\u8fd9\u8981\u6c42Java\u548cPHP\u5171\u4eab\u76f8\u540c\u7684\u5bc6\u94a5\uff0c\u5e76\u4e14\u914d\u7f6e\u7684\u52a0\u5bc6\u6a21\u5f0f\u548c\u586b\u5145\u65b9\u5f0f\u5b8c\u5168\u4e00\u81f4\u3002<\/p>\n<\/p>\n<p><p><strong>\u6ce8\u610f\u5bc6\u94a5\u7684\u683c\u5f0f\u548c\u7f16\u7801<\/strong> \u53ef\u80fd\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u6709\u6240\u4e0d\u540c\u3002\u9700\u8981\u786e\u4fdd\u5728Java\u548cPHP\u95f4\u4f20\u9012\u5bc6\u94a5\u65f6\uff0c\u6ca1\u6709\u56e0\u4e3a\u7f16\u7801\u683c\u5f0f\u4e0d\u517c\u5bb9\u800c\u5bfc\u81f4\u95ee\u9898\u3002\u901a\u5e38\u4f7f\u7528Base64\u7f16\u7801\u6765\u5904\u7406\u8fd9\u79cd\u683c\u5f0f\u8f6c\u6362\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406\u517c\u5bb9\u6027\u95ee\u9898<\/h3>\n<\/p>\n<p><p>\u4e0d\u540c\u8bed\u8a00\u548c\u5e93\u4e4b\u95f4\u53ef\u80fd\u5b58\u5728\u7ec6\u5fae\u7684\u5b9e\u73b0\u5dee\u5f02\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5f71\u54cd\u5230\u6700\u7ec8\u7684\u89e3\u5bc6\u7ed3\u679c\u3002\u8fdb\u884c\u8be6\u7ec6\u7684\u6d4b\u8bd5\uff0c\u786e\u4fddJava\u52a0\u5bc6\u540e\u7684\u6570\u636e\u53ef\u4ee5\u5728PHP\u4e2d\u5b8c\u5168\u6b63\u786e\u5730\u89e3\u5bc6\u51fa\u6765\uff0c\u662f\u89e3\u51b3\u517c\u5bb9\u6027\u95ee\u9898\u7684\u5173\u952e\u3002<\/p>\n<\/p>\n<p><p><strong>\u8fdb\u884c\u8de8\u8bed\u8a00\u6d4b\u8bd5<\/strong> \u975e\u5e38\u91cd\u8981\uff0c\u4ee5\u9a8c\u8bc1\u52a0\u5bc6\u4e32\u7684\u4e92\u64cd\u4f5c\u6027\u3002\u53ef\u4ee5\u5148\u5728Java\u73af\u5883\u4e2d\u521b\u5efa\u52a0\u5bc6\u5b57\u7b26\u4e32\u7136\u540e\u5728PHP\u4e2d\u5c1d\u8bd5\u89e3\u5bc6\uff0c\u8fdb\u884c\u51e0\u8f6e\u7684\u53cd\u5411\u6d4b\u8bd5\u4e5f\u540c\u6837\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u89e3\u51b3\u52a0\u5bc6\u5b89\u5168\u6027\u95ee\u9898<\/h3>\n<\/p>\n<p><p>DES \u7b97\u6cd5\u867d\u7136\u5386\u53f2\u60a0\u4e45\uff0c\u4f46\u5f88\u591a\u60c5\u51b5\u4e0b\u56e0\u4e3a\u5b83\u8f83\u77ed\u7684\u5bc6\u94a5\u957f\u5ea6\uff0856\u4f4d\u6709\u6548\uff09\uff0c\u88ab\u8ba4\u4e3a\u662f\u4e0d\u591f\u5b89\u5168\u7684\u3002\u56e0\u6b64\uff0c\u53ef\u80fd\u9700\u8981\u8003\u8651\u4f7f\u7528\u5176\u4ed6\u66f4\u5b89\u5168\u7684\u52a0\u5bc6\u7b97\u6cd5\uff0c\u5982AES\u3002<\/p>\n<\/p>\n<p><p>\u5982\u679c\u6570\u636e\u654f\u611f\u6216\u5b89\u5168\u8981\u6c42\u8f83\u9ad8\uff0c<strong>\u5efa\u8bae\u5347\u7ea7\u5230\u66f4\u5b89\u5168\u7684\u52a0\u5bc6\u7b97\u6cd5<\/strong>\uff0c\u5982AES\uff0c\u5b83\u652f\u6301\u66f4\u957f\u7684\u5bc6\u94a5\u957f\u5ea6\uff0c\u63d0\u4f9b\u66f4\u9ad8\u7ea7\u522b\u7684\u5b89\u5168\u4fdd\u969c\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0c\u8981\u5728PHP\u4e2d\u6b63\u786e\u89e3\u5bc6Java\u4e2d\u7684DES\u52a0\u5bc6\u4e32\uff0c\u786e\u4fdd\u5bc6\u94a5\u3001\u52a0\u5bc6\u6a21\u5f0f\u4ee5\u53ca\u586b\u5145\u65b9\u5f0f\u5728\u4e24\u79cd\u7f16\u7a0b\u8bed\u8a00\u4e4b\u95f4\u5b8c\u5168\u4e00\u81f4\u662f\u5173\u952e\u3002\u8fd8\u9700\u6ce8\u610f\u7f16\u7801\u517c\u5bb9\u6027\u95ee\u9898\u548c\u52a0\u5bc6\u7b97\u6cd5\u7684\u5b89\u5168\u6027\uff0c\u5fc5\u8981\u65f6\u5e94\u8003\u8651\u5347\u7ea7\u5230\u66f4\u5b89\u5168\u7684\u52a0\u5bc6\u65b9\u6848\u3002\u901a\u8fc7\u4e25\u8c28\u7684\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u786e\u4fdd\u4e24\u79cd\u8bed\u8a00\u95f4\u52a0\u5bc6\u89e3\u5bc6\u673a\u5236\u7684\u65e0\u7f1d\u5bf9\u63a5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u5982\u4f55\u5728PHP\u4e2d\u4f7f\u7528DES\u7b97\u6cd5\u5bf9JAVA\u52a0\u5bc6\u4e32\u8fdb\u884c\u89e3\u5bc6\uff1f<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u4e3a\u4ec0\u4e48\u6211\u5728PHP\u4e2d\u65e0\u6cd5\u76f4\u63a5\u4f7f\u7528JAVA\u7684\u52a0\u5bc6\u4e32\u89e3\u5bc6\uff1f<\/strong><br \/>\nJAVA\u4f7f\u7528\u7684\u52a0\u5bc6\u5e93\u548cPHP\u4f7f\u7528\u7684\u52a0\u5bc6\u5e93\u53ef\u80fd\u4e0d\u540c\uff0c\u56e0\u6b64\u65e0\u6cd5\u76f4\u63a5\u4f7f\u7528\u3002JAVA\u901a\u5e38\u4f7f\u7528javax.crypto\u5e93\u8fdb\u884c\u52a0\u5bc6\uff0c\u800cPHP\u5219\u4f7f\u7528mcrypt\u6216openssl\u5e93\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5982\u4f55\u5728PHP\u4e2d\u4f7f\u7528DES\u7b97\u6cd5\u89e3\u5bc6JAVA\u52a0\u5bc6\u4e32\uff1f<\/strong><br \/>\n\u5728PHP\u4e2d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86mcrypt\u6216openssl\u6269\u5c55\u5e93\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528PHP\u7684\u76f8\u5173\u51fd\u6570\u6765\u89e3\u5bc6JAVA\u7684\u52a0\u5bc6\u4e32\u3002<\/p>\n<p>\u4f7f\u7528mcrypt\u6269\u5c55\u5e93\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>mcrypt_decrypt<\/code>\u51fd\u6570\u6765\u89e3\u5bc6\u3002\u4f60\u9700\u8981\u6307\u5b9a\u52a0\u5bc6\u7b97\u6cd5\u3001\u5bc6\u94a5\u548c\u521d\u59cb\u5411\u91cf\uff08IV\uff09\uff0c\u4ee5\u53ca\u8981\u89e3\u5bc6\u7684\u6570\u636e\u3002\u5728DES\u7b97\u6cd5\u4e2d\uff0c\u9700\u8981\u4f7f\u7528<code>MCRYPT_DES<\/code>\u4f5c\u4e3a\u7b97\u6cd5\u53c2\u6570\u3002<\/p>\n<p>\u4f7f\u7528openssl\u6269\u5c55\u5e93\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>openssl_decrypt<\/code>\u51fd\u6570\u6765\u89e3\u5bc6\u3002\u540c\u6837\uff0c\u4f60\u9700\u8981\u6307\u5b9a\u52a0\u5bc6\u7b97\u6cd5\u3001\u5bc6\u94a5\u548c\u521d\u59cb\u5411\u91cf\uff08IV\uff09\uff0c\u4ee5\u53ca\u8981\u89e3\u5bc6\u7684\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5982\u4f55\u83b7\u53d6JAVA\u52a0\u5bc6\u4e32\u4e2d\u7684\u5bc6\u94a5\u548c\u521d\u59cb\u5411\u91cf\uff08IV\uff09\uff1f<\/strong><br \/>\n\u5728JAVA\u52a0\u5bc6\u4e32\u4e2d\uff0c\u901a\u5e38\u5305\u542b\u4e86\u52a0\u5bc6\u7b97\u6cd5\u3001\u5bc6\u94a5\u548c\u521d\u59cb\u5411\u91cf\uff08IV\uff09\u3002\u4f60\u9700\u8981\u4eceJAVA\u4ee3\u7801\u4e2d\u83b7\u53d6\u8fd9\u4e9b\u4fe1\u606f\uff0c\u5e76\u5728PHP\u4e2d\u4f7f\u7528\u76f8\u540c\u7684\u5bc6\u94a5\u548c\u521d\u59cb\u5411\u91cf\u8fdb\u884c\u89e3\u5bc6\u3002<\/p>\n<p>\u5bc6\u94a5\u548c\u521d\u59cb\u5411\u91cf\u4e00\u822c\u4ee5\u5b57\u8282\u6570\u7ec4\u7684\u5f62\u5f0f\u5b58\u5728\uff0c\u4f60\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u621616\u8fdb\u5236\u8868\u793a\u5f62\u5f0f\u8fdb\u884c\u4f7f\u7528\u3002\u5982\u679c\u4f60\u65e0\u6cd5\u83b7\u53d6\u5230\u5bc6\u94a5\u548c\u521d\u59cb\u5411\u91cf\uff0c\u90a3\u4e48\u5c06\u65e0\u6cd5\u6210\u529f\u89e3\u5bc6JAVA\u7684\u52a0\u5bc6\u4e32\u3002<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"DES\u52a0\u5bc6\u662f\u4e00\u79cd\u5bf9\u79f0\u52a0\u5bc6\u7b97\u6cd5\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u6570\u636e\u52a0\u5bc6\u573a\u666f\u3002Java\u4e2d\u52a0\u5bc6\u7684\u5b57\u7b26\u4e32\u5728PHP\u4e2d\u89e3\u5bc6\u6d89\u53ca\u5230\u4e24\u4e2a\u5173\u952e\u70b9 [&hellip;]","protected":false},"author":3,"featured_media":181900,"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\/181885"}],"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=181885"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/181885\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/181900"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=181885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=181885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=181885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}