{"id":2019,"date":"2020-11-18T10:12:46","date_gmt":"2020-11-18T02:12:46","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=2019"},"modified":"2020-12-29T09:15:16","modified_gmt":"2020-12-29T01:15:16","slug":"gbase-8a%e9%80%9a%e8%bf%87aes_encrypt%e5%92%8caes_decrypt%e8%bf%9b%e8%a1%8caes%e7%ae%97%e6%b3%95%e5%8a%a0%e5%af%86%e5%92%8c%e8%a7%a3%e5%af%86","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/2019","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u901a\u8fc7aes_encrypt\u548caes_decrypt\u8fdb\u884cAES\u7b97\u6cd5\u52a0\u5bc6\u548c\u89e3\u5bc6"},"content":{"rendered":"<p>GBase 8a\u63d0\u4f9b\u4e86aes_decrypt\u548caes_decrypt\u5b9e\u73b0AES\u7b97\u6cd5\u7684\u52a0\u5bc6\u548c\u89e3\u5bc6\uff0c\u53ea\u652f\u6301128\u4f4d\u6570\u636e\u5757\u6a21\u5f0f\uff0c\u4ee5\u53capkcs7\u7684padding\u65b9\u6cd5\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6837\u4f8b<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\ngbase> select hex(aes_encrypt('1234567890abcdefg','123456'));\n+------------------------------------------------------------------+\n| hex(aes_encrypt('1234567890abcdefg','123456'))                   |\n+------------------------------------------------------------------+\n| 5EA86DDB6B8227A2EB6313BF0BEAF599AD208E4D68F943AFE004559986CA8E23 |\n+------------------------------------------------------------------+\n1 row in set (Elapsed: 00:00:00.00)\n\ngbase> select aes_decrypt(unhex('5EA86DDB6B8227A2EB6313BF0BEAF599AD208E4D68F943AFE004559986CA8E23'),'123456');\n+-------------------------------------------------------------------------------------------------+\n| aes_decrypt(unhex('5EA86DDB6B8227A2EB6313BF0BEAF599AD208E4D68F943AFE004559986CA8E23'),'123456') |\n+-------------------------------------------------------------------------------------------------+\n| 1234567890abcdefg                                                                               |\n+-------------------------------------------------------------------------------------------------+\n1 row in set (Elapsed: 00:00:00.00)\n\n\n<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u63d0\u4f9b\u4e86aes_decrypt\u548caes_decrypt\u5b9e\u73b0AES\u7b97\u6cd5\u7684\u52a0\u5bc6\u548c\u89e3\u5bc6\uff0c\u53ea\u652f\u6301128\u4f4d\u6570\u636e\u5757\u6a21\u5f0f\uff0c\u4ee5\u53capkcs7\u7684padding\u65b9\u6cd5\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[36,76],"class_list":["post-2019","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-36","tag-76"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/2019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=2019"}],"version-history":[{"count":1,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/2019\/revisions"}],"predecessor-version":[{"id":2020,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/2019\/revisions\/2020"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=2019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=2019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=2019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}