{"id":324,"date":"2017-12-23T17:38:17","date_gmt":"2017-12-23T09:38:17","guid":{"rendered":"http:\/\/fengyuwuzu.cn\/?p=324"},"modified":"2017-12-23T17:39:56","modified_gmt":"2017-12-23T09:39:56","slug":"php-rsa%e5%85%ac%e9%92%a5%e5%92%8c%e7%a7%81%e9%92%a5%e5%8a%a0%e8%a7%a3%e5%af%86","status":"publish","type":"post","link":"https:\/\/fengyuwuzu.cn\/?p=324","title":{"rendered":"PHP RSA\u516c\u94a5\u548c\u79c1\u94a5\u52a0\u89e3\u5bc6"},"content":{"rendered":"<p>\u76f4\u63a5\u4e0a\u4ee3\u7801\uff1a<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<style type=\"text\/css\">\ntd.linenos { background-color: #f0f0f0; padding-right: 10px; }<br \/>span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }<br \/>pre { line-height: 125%; }<br \/>body .hll { background-color: #ffffcc }<br \/>body  { background: #f8f8f8; }<br \/>body .c { color: #408080; font-style: italic } \/* Comment *\/<br \/>body .err { border: 1px solid #FF0000 } \/* Error *\/<br \/>body .k { color: #008000; font-weight: bold } \/* Keyword *\/<br \/>body .o { color: #666666 } \/* Operator *\/<br \/>body .ch { color: #408080; font-style: italic } \/* Comment.Hashbang *\/<br \/>body .cm { color: #408080; font-style: italic } \/* Comment.Multiline *\/<br \/>body .cp { color: #BC7A00 } \/* Comment.Preproc *\/<br \/>body .c1 { color: #408080; font-style: italic } \/* Comment.Single *\/<br \/>body .cs { color: #408080; font-style: italic } \/* Comment.Special *\/<br \/>body .gd { color: #A00000 } \/* Generic.Deleted *\/<br \/>body .ge { font-style: italic } \/* Generic.Emph *\/<br \/>body .gr { color: #FF0000 } \/* Generic.Error *\/<br \/>body .gh { color: #000080; font-weight: bold } \/* Generic.Heading *\/<br \/>body .gi { color: #00A000 } \/* Generic.Inserted *\/<br \/>body .go { color: #888888 } \/* Generic.Output *\/<br \/>body .gp { color: #000080; font-weight: bold } \/* Generic.Prompt *\/<br \/>body .gs { font-weight: bold } \/* Generic.Strong *\/<br \/>body .gu { color: #800080; font-weight: bold } \/* Generic.Subheading *\/<br \/>body .gt { color: #0044DD } \/* Generic.Traceback *\/<br \/>body .kc { color: #008000; font-weight: bold } \/* Keyword.Constant *\/<br \/>body .kd { color: #008000; font-weight: bold } \/* Keyword.Declaration *\/<br \/>body .kn { color: #008000; font-weight: bold } \/* Keyword.Namespace *\/<br \/>body .kp { color: #008000 } \/* Keyword.Pseudo *\/<br \/>body .kr { color: #008000; font-weight: bold } \/* Keyword.Reserved *\/<br \/>body .kt { color: #B00040 } \/* Keyword.Type *\/<br \/>body .m { color: #666666 } \/* Literal.Number *\/<br \/>body .s { color: #BA2121 } \/* Literal.String *\/<br \/>body .na { color: #7D9029 } \/* Name.Attribute *\/<br \/>body .nb { color: #008000 } \/* Name.Builtin *\/<br \/>body .nc { color: #0000FF; font-weight: bold } \/* Name.Class *\/<br \/>body .no { color: #880000 } \/* Name.Constant *\/<br \/>body .nd { color: #AA22FF } \/* Name.Decorator *\/<br \/>body .ni { color: #999999; font-weight: bold } \/* Name.Entity *\/<br \/>body .ne { color: #D2413A; font-weight: bold } \/* Name.Exception *\/<br \/>body .nf { color: #0000FF } \/* Name.Function *\/<br \/>body .nl { color: #A0A000 } \/* Name.Label *\/<br \/>body .nn { color: #0000FF; font-weight: bold } \/* Name.Namespace *\/<br \/>body .nt { color: #008000; font-weight: bold } \/* Name.Tag *\/<br \/>body .nv { color: #19177C } \/* Name.Variable *\/<br \/>body .ow { color: #AA22FF; font-weight: bold } \/* Operator.Word *\/<br \/>body .w { color: #bbbbbb } \/* Text.Whitespace *\/<br \/>body .mb { color: #666666 } \/* Literal.Number.Bin *\/<br \/>body .mf { color: #666666 } \/* Literal.Number.Float *\/<br \/>body .mh { color: #666666 } \/* Literal.Number.Hex *\/<br \/>body .mi { color: #666666 } \/* Literal.Number.Integer *\/<br \/>body .mo { color: #666666 } \/* Literal.Number.Oct *\/<br \/>body .sb { color: #BA2121 } \/* Literal.String.Backtick *\/<br \/>body .sc { color: #BA2121 } \/* Literal.String.Char *\/<br \/>body .sd { color: #BA2121; font-style: italic } \/* Literal.String.Doc *\/<br \/>body .s2 { color: #BA2121 } \/* Literal.String.Double *\/<br \/>body .se { color: #BB6622; font-weight: bold } \/* Literal.String.Escape *\/<br \/>body .sh { color: #BA2121 } \/* Literal.String.Heredoc *\/<br \/>body .si { color: #BB6688; font-weight: bold } \/* Literal.String.Interpol *\/<br \/>body .sx { color: #008000 } \/* Literal.String.Other *\/<br \/>body .sr { color: #BB6688 } \/* Literal.String.Regex *\/<br \/>body .s1 { color: #BA2121 } \/* Literal.String.Single *\/<br \/>body .ss { color: #19177C } \/* Literal.String.Symbol *\/<br \/>body .bp { color: #008000 } \/* Name.Builtin.Pseudo *\/<br \/>body .vc { color: #19177C } \/* Name.Variable.Class *\/<br \/>body .vg { color: #19177C } \/* Name.Variable.Global *\/<br \/>body .vi { color: #19177C } \/* Name.Variable.Instance *\/<br \/>body .il { color: #666666 } \/* Literal.Number.Integer.Long *\/<\/p>\n<\/style>\n<p>&nbsp;<\/p>\n<h2><\/h2>\n<div class=\"highlight\" style=\"background: #f8f8f8;\">\n<pre style=\"line-height: 125%;\"><span style=\"color: #666666;\">&lt;?<\/span>php\r\n<span style=\"color: #008000; font-weight: bold;\">class<\/span> <span style=\"color: #0000ff; font-weight: bold;\">RSA<\/span>{  \r\n    <span style=\"color: #008000; font-weight: bold;\">var<\/span> <span style=\"color: #19177c;\">$public_key<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #ba2121;\">'-----BEGIN PUBLIC KEY-----<\/span>\r\n<span style=\"color: #ba2121;\">MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCytbQ5xzaIt+CssGzqrNmgFEY3GuhLq0cQO9\/iA8Mb0h6WwYPx3yX1k6Jbqp0OIap68kiz19hMKkvvzIfiw85Kj7ljxcqYqJjaKKZkXp1GKYwLCh4MjJtuGVn3C25oEiLW7lTbH6NmrMbwe+lTHzTBC0NGHdU97O9ojp8KQHFq5QIDAQAB<\/span>\r\n<span style=\"color: #ba2121;\">-----END PUBLIC KEY-----'<\/span>; <span style=\"color: #408080; font-style: italic;\">\/\/\u516c\u5bc6\u94a5  <\/span>\r\n    <span style=\"color: #008000; font-weight: bold;\">var<\/span> <span style=\"color: #19177c;\">$private_key<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #ba2121;\">'-----BEGIN RSA PRIVATE KEY-----<\/span>\r\n<span style=\"color: #ba2121;\">MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALK1tDnHNoi34KywbOqs2aAURjca6EurRxA73+IDwxvSHpbBg\/HfJfWToluqnQ4hqnrySLPX2EwqS+\/Mh+LDzkqPuWPFypiomNoopmRenUYpjAsKHgyMm24ZWfcLbmgSItbuVNsfo2asxvB76VMfNMELQ0Yd1T3s72iOnwpAcWrlAgMBAAECgYEApg6jfkC3UskR00VIn7OnsNDGAfRVv+JScSpBucFnLdXMKKd+lGSW4B+j8OuTbosn34B8v+gkC3oN\/7Ac4ECz0RIoUjYUecA1ywIjVe4hXgGSawJGwnLtwUW1ne8W9FZblMcAoTyKVczahJS9uHOFPfWo0TUvVlkduln63lKwOwECQQDyYwIpWca+uVkKeck+WzMDkCGOjBycPb8oj5HLL7vpkQvXHStglNyABoTXm9EBqAKfbVvH1xxVBsyR3\/2n0n8lAkEAvL8o8jVWLf5haKOmQXm2NvyYRkvI+q96\/fYuBtANJ\/XV0yXG+MGKiRmNX0ZYGfgroOOE\/X7s9JksBzeSSbRQwQJBALssGY809HRzTH76bJzqcApgUolxSOaeB++abkspIULL7wi+TbDXQy7Z2dtlR5Cv3Naf7C\/1vLsr9Ozwuz\/NHMECQEUK1AqNciHO7IjfXACVag8BJR6JuFHjAOWHONzrG\/TjGz1qkzcJbQirnSgdzjppqmPm9g3YcQskQJO\/QzbMy8ECQBKwVvZz+OBeSyNEUa4b71Z0JmMgCZIH3yOCbjT13bHgrewWc1cb1pBjkd3tiOHKL2Ljk6QeP99opaCQWuKcMxI=<\/span>\r\n<span style=\"color: #ba2121;\">-----END RSA PRIVATE KEY-----'<\/span>; <span style=\"color: #408080; font-style: italic;\">\/\/\u79c1\u5bc6\u94a5  <\/span>\r\n   \r\n    <span style=\"color: #ba2121; font-style: italic;\">\/** <\/span>\r\n<span style=\"color: #ba2121; font-style: italic;\">     * \u7528\u79c1\u5bc6\u94a5\u52a0\u5bc6 <\/span>\r\n<span style=\"color: #ba2121; font-style: italic;\">     *\/<\/span>  \r\n    <span style=\"color: #008000; font-weight: bold;\">public<\/span> <span style=\"color: #008000; font-weight: bold;\">function<\/span> <span style=\"color: #0000ff;\">private_encrypt<\/span>(<span style=\"color: #19177c;\">$input<\/span>) {  \r\n        <span style=\"color: #19177c;\">$privateKey<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #008000;\">openssl_pkey_get_private<\/span>(<span style=\"color: #19177c;\">$this<\/span><span style=\"color: #666666;\">-&gt;<\/span><span style=\"color: #7d9029;\">private_key<\/span>);\r\n        <span style=\"color: #008000;\">openssl_private_encrypt<\/span>(<span style=\"color: #19177c;\">$input<\/span>,<span style=\"color: #19177c;\">$output<\/span>, <span style=\"color: #19177c;\">$privateKey<\/span>);  \r\n        <span style=\"color: #008000; font-weight: bold;\">return<\/span> <span style=\"color: #008000;\">base64_encode<\/span>(<span style=\"color: #19177c;\">$output<\/span>);  \r\n    }  \r\n    <span style=\"color: #ba2121; font-style: italic;\">\/** <\/span>\r\n<span style=\"color: #ba2121; font-style: italic;\">     * \u89e3\u5bc6 \u79c1\u5bc6\u94a5\u52a0\u5bc6\u540e\u7684\u5bc6\u6587 <\/span>\r\n<span style=\"color: #ba2121; font-style: italic;\">     *\/<\/span>  \r\n    <span style=\"color: #008000; font-weight: bold;\">public<\/span> <span style=\"color: #008000; font-weight: bold;\">function<\/span> <span style=\"color: #0000ff;\">public_decrypt<\/span>(<span style=\"color: #19177c;\">$input<\/span>) {  \r\n        <span style=\"color: #19177c;\">$public_key<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #008000;\">openssl_pkey_get_public<\/span>(<span style=\"color: #19177c;\">$this<\/span><span style=\"color: #666666;\">-&gt;<\/span><span style=\"color: #7d9029;\">public_key<\/span>);\r\n        <span style=\"color: #008000;\">openssl_public_decrypt<\/span>(<span style=\"color: #008000;\">base64_decode<\/span>(<span style=\"color: #19177c;\">$input<\/span>),<span style=\"color: #19177c;\">$output<\/span>,<span style=\"color: #19177c;\">$public_key<\/span>);  \r\n        <span style=\"color: #008000; font-weight: bold;\">return<\/span> <span style=\"color: #19177c;\">$output<\/span>;  \r\n    }  \r\n    <span style=\"color: #ba2121; font-style: italic;\">\/** <\/span>\r\n<span style=\"color: #ba2121; font-style: italic;\">     * \u7528\u516c\u5bc6\u94a5\u52a0\u5bc6 <\/span>\r\n<span style=\"color: #ba2121; font-style: italic;\">     *\/<\/span>  \r\n    <span style=\"color: #008000; font-weight: bold;\">public<\/span> <span style=\"color: #008000; font-weight: bold;\">function<\/span> <span style=\"color: #0000ff;\">public_encrypt<\/span>(<span style=\"color: #19177c;\">$input<\/span>) {  \r\n        <span style=\"color: #19177c;\">$public_key<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #008000;\">openssl_pkey_get_public<\/span>(<span style=\"color: #19177c;\">$this<\/span><span style=\"color: #666666;\">-&gt;<\/span><span style=\"color: #7d9029;\">public_key<\/span>);\r\n        <span style=\"color: #008000;\">openssl_public_encrypt<\/span>(<span style=\"color: #19177c;\">$input<\/span>,<span style=\"color: #19177c;\">$output<\/span>,<span style=\"color: #19177c;\">$public_key<\/span>);  \r\n        <span style=\"color: #008000; font-weight: bold;\">return<\/span> <span style=\"color: #008000;\">base64_encode<\/span>(<span style=\"color: #19177c;\">$output<\/span>);  \r\n    }  \r\n    <span style=\"color: #ba2121; font-style: italic;\">\/** <\/span>\r\n<span style=\"color: #ba2121; font-style: italic;\">     * \u89e3\u5bc6 \u516c\u5bc6\u94a5\u52a0\u5bc6\u540e\u7684\u5bc6\u6587 <\/span>\r\n<span style=\"color: #ba2121; font-style: italic;\">     *\/<\/span>  \r\n    <span style=\"color: #008000; font-weight: bold;\">public<\/span> <span style=\"color: #008000; font-weight: bold;\">function<\/span> <span style=\"color: #0000ff;\">private_decrypt<\/span>(<span style=\"color: #19177c;\">$input<\/span>) {  \r\n        <span style=\"color: #19177c;\">$privateKey<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #008000;\">openssl_pkey_get_private<\/span>(<span style=\"color: #19177c;\">$this<\/span><span style=\"color: #666666;\">-&gt;<\/span><span style=\"color: #7d9029;\">private_key<\/span>);\r\n        <span style=\"color: #008000;\">openssl_private_decrypt<\/span>(<span style=\"color: #008000;\">base64_decode<\/span>(<span style=\"color: #19177c;\">$input<\/span>),<span style=\"color: #19177c;\">$output<\/span>,<span style=\"color: #19177c;\">$privateKey<\/span>);  \r\n        <span style=\"color: #008000; font-weight: bold;\">return<\/span> <span style=\"color: #19177c;\">$output<\/span>;  \r\n    }  \r\n}  \r\n  \r\n<span style=\"color: #19177c;\">$rsa<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #008000; font-weight: bold;\">new<\/span> RSA();  \r\n<span style=\"color: #408080; font-style: italic;\">\/\/  <\/span>\r\n<span style=\"color: #19177c;\">$str<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #ba2121;\">'\u52a0\u5bc6\u89e3\u5bc6'<\/span>;  \r\n<span style=\"color: #19177c;\">$str<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #19177c;\">$rsa<\/span><span style=\"color: #666666;\">-&gt;<\/span><span style=\"color: #7d9029;\">public_encrypt<\/span>(<span style=\"color: #19177c;\">$str<\/span>); <span style=\"color: #408080; font-style: italic;\">\/\/\u7528\u516c\u5bc6\u94a5\u52a0\u5bc6  <\/span>\r\n<span style=\"color: #008000; font-weight: bold;\">echo<\/span> <span style=\"color: #19177c;\">$str<\/span>,<span style=\"color: #ba2121;\">'&lt;\/br&gt;'<\/span>;  \r\n<span style=\"color: #19177c;\">$str<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #19177c;\">$rsa<\/span><span style=\"color: #666666;\">-&gt;<\/span><span style=\"color: #7d9029;\">private_decrypt<\/span>(<span style=\"color: #19177c;\">$str<\/span>); <span style=\"color: #408080; font-style: italic;\">\/\/\u7528\u79c1\u5bc6\u94a5\u89e3\u5bc6  <\/span>\r\n<span style=\"color: #008000; font-weight: bold;\">echo<\/span> <span style=\"color: #19177c;\">$str<\/span>,<span style=\"color: #ba2121;\">'&lt;\/br&gt;'<\/span>;  \r\n<span style=\"color: #408080; font-style: italic;\">\/\/=============================================================  <\/span>\r\n<span style=\"color: #19177c;\">$str<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #19177c;\">$rsa<\/span><span style=\"color: #666666;\">-&gt;<\/span><span style=\"color: #7d9029;\">private_encrypt<\/span>(<span style=\"color: #19177c;\">$str<\/span>); <span style=\"color: #408080; font-style: italic;\">\/\/\u7528\u4e1d\u5bc6\u94a5\u52a0\u5bc6  <\/span>\r\n<span style=\"color: #008000; font-weight: bold;\">echo<\/span> <span style=\"color: #19177c;\">$str<\/span>,<span style=\"color: #ba2121;\">'&lt;\/br&gt;'<\/span>;  \r\n<span style=\"color: #19177c;\">$str<\/span> <span style=\"color: #666666;\">=<\/span> <span style=\"color: #19177c;\">$rsa<\/span><span style=\"color: #666666;\">-&gt;<\/span><span style=\"color: #7d9029;\">public_decrypt<\/span>(<span style=\"color: #19177c;\">$str<\/span>); <span style=\"color: #408080; font-style: italic;\">\/\/\u7528\u516c\u5bc6\u94a5\u89e3\u5bc6  <\/span>\r\n<span style=\"color: #008000; font-weight: bold;\">echo<\/span> <span style=\"color: #19177c;\">$str<\/span>,<span style=\"color: #ba2121;\">'&lt;\/br&gt;'<\/span>;  \r\n<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76f4\u63a5\u4e0a\u4ee3\u7801\uff1a &nbsp; &nbsp; &nbsp; &lt;?php class RSA{ var $pu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":309,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[6],"class_list":["post-324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-news","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP RSA\u516c\u94a5\u548c\u79c1\u94a5\u52a0\u89e3\u5bc6 | \u98ce\u96e8\u65e0\u963bblog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fengyuwuzu.cn\/?p=324\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP RSA\u516c\u94a5\u548c\u79c1\u94a5\u52a0\u89e3\u5bc6 | \u98ce\u96e8\u65e0\u963bblog\" \/>\n<meta property=\"og:description\" content=\"\u76f4\u63a5\u4e0a\u4ee3\u7801\uff1a &nbsp; &nbsp; &nbsp; &lt;?php class RSA{ var $pu [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fengyuwuzu.cn\/?p=324\" \/>\n<meta property=\"og:site_name\" content=\"\u98ce\u96e8\u65e0\u963bblog\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-23T09:38:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-23T09:39:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fengyuwuzu.cn\/wp-content\/uploads\/2017\/12\/timg.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"326\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u98ce\u96e8\u65e0\u963b\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u98ce\u96e8\u65e0\u963b\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fengyuwuzu.cn\/?p=324\",\"url\":\"https:\/\/fengyuwuzu.cn\/?p=324\",\"name\":\"PHP RSA\u516c\u94a5\u548c\u79c1\u94a5\u52a0\u89e3\u5bc6 | \u98ce\u96e8\u65e0\u963bblog\",\"isPartOf\":{\"@id\":\"https:\/\/fengyuwuzu.cn\/#website\"},\"datePublished\":\"2017-12-23T09:38:17+00:00\",\"dateModified\":\"2017-12-23T09:39:56+00:00\",\"author\":{\"@id\":\"https:\/\/fengyuwuzu.cn\/#\/schema\/person\/34cd01f899e76e2afadb37539a184c9f\"},\"breadcrumb\":{\"@id\":\"https:\/\/fengyuwuzu.cn\/?p=324#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fengyuwuzu.cn\/?p=324\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fengyuwuzu.cn\/?p=324#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/fengyuwuzu.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP RSA\u516c\u94a5\u548c\u79c1\u94a5\u52a0\u89e3\u5bc6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fengyuwuzu.cn\/#website\",\"url\":\"https:\/\/fengyuwuzu.cn\/\",\"name\":\"\u98ce\u96e8\u65e0\u963b\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fengyuwuzu.cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/fengyuwuzu.cn\/#\/schema\/person\/34cd01f899e76e2afadb37539a184c9f\",\"name\":\"\u98ce\u96e8\u65e0\u963b\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/fengyuwuzu.cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/68e14230863f4533c3453c3dbd7675e7620bfe2f24de6f40d8089dd5ad6a419b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/68e14230863f4533c3453c3dbd7675e7620bfe2f24de6f40d8089dd5ad6a419b?s=96&d=mm&r=g\",\"caption\":\"\u98ce\u96e8\u65e0\u963b\"},\"description\":\"\u4e00\u4e2aWEB\u5f00\u53d1\u5de5\u7a0b\u5e08\uff01\u76ee\u524d\u6b63\u5728\u6df1\u5733\u67d0\u516c\u53f8\u4efb\u804c\uff01\",\"sameAs\":[\"http:\/\/fengyuwuzu.cn.com\"],\"url\":\"https:\/\/fengyuwuzu.cn\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP RSA\u516c\u94a5\u548c\u79c1\u94a5\u52a0\u89e3\u5bc6 | \u98ce\u96e8\u65e0\u963bblog","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":"https:\/\/fengyuwuzu.cn\/?p=324","og_locale":"zh_CN","og_type":"article","og_title":"PHP RSA\u516c\u94a5\u548c\u79c1\u94a5\u52a0\u89e3\u5bc6 | \u98ce\u96e8\u65e0\u963bblog","og_description":"\u76f4\u63a5\u4e0a\u4ee3\u7801\uff1a &nbsp; &nbsp; &nbsp; &lt;?php class RSA{ var $pu [&hellip;]","og_url":"https:\/\/fengyuwuzu.cn\/?p=324","og_site_name":"\u98ce\u96e8\u65e0\u963bblog","article_published_time":"2017-12-23T09:38:17+00:00","article_modified_time":"2017-12-23T09:39:56+00:00","og_image":[{"width":500,"height":326,"url":"https:\/\/fengyuwuzu.cn\/wp-content\/uploads\/2017\/12\/timg.jpg","type":"image\/jpeg"}],"author":"\u98ce\u96e8\u65e0\u963b","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u98ce\u96e8\u65e0\u963b","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/fengyuwuzu.cn\/?p=324","url":"https:\/\/fengyuwuzu.cn\/?p=324","name":"PHP RSA\u516c\u94a5\u548c\u79c1\u94a5\u52a0\u89e3\u5bc6 | \u98ce\u96e8\u65e0\u963bblog","isPartOf":{"@id":"https:\/\/fengyuwuzu.cn\/#website"},"datePublished":"2017-12-23T09:38:17+00:00","dateModified":"2017-12-23T09:39:56+00:00","author":{"@id":"https:\/\/fengyuwuzu.cn\/#\/schema\/person\/34cd01f899e76e2afadb37539a184c9f"},"breadcrumb":{"@id":"https:\/\/fengyuwuzu.cn\/?p=324#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fengyuwuzu.cn\/?p=324"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fengyuwuzu.cn\/?p=324#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/fengyuwuzu.cn\/"},{"@type":"ListItem","position":2,"name":"PHP RSA\u516c\u94a5\u548c\u79c1\u94a5\u52a0\u89e3\u5bc6"}]},{"@type":"WebSite","@id":"https:\/\/fengyuwuzu.cn\/#website","url":"https:\/\/fengyuwuzu.cn\/","name":"\u98ce\u96e8\u65e0\u963b","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fengyuwuzu.cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Person","@id":"https:\/\/fengyuwuzu.cn\/#\/schema\/person\/34cd01f899e76e2afadb37539a184c9f","name":"\u98ce\u96e8\u65e0\u963b","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/fengyuwuzu.cn\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/68e14230863f4533c3453c3dbd7675e7620bfe2f24de6f40d8089dd5ad6a419b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/68e14230863f4533c3453c3dbd7675e7620bfe2f24de6f40d8089dd5ad6a419b?s=96&d=mm&r=g","caption":"\u98ce\u96e8\u65e0\u963b"},"description":"\u4e00\u4e2aWEB\u5f00\u53d1\u5de5\u7a0b\u5e08\uff01\u76ee\u524d\u6b63\u5728\u6df1\u5733\u67d0\u516c\u53f8\u4efb\u804c\uff01","sameAs":["http:\/\/fengyuwuzu.cn.com"],"url":"https:\/\/fengyuwuzu.cn\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=\/wp\/v2\/posts\/324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=324"}],"version-history":[{"count":4,"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions"}],"predecessor-version":[{"id":328,"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions\/328"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=\/wp\/v2\/media\/309"}],"wp:attachment":[{"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fengyuwuzu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}