{"id":509,"date":"2016-05-26T17:57:18","date_gmt":"2016-05-26T17:57:18","guid":{"rendered":"e2230b853516e7b05d79744fbd4c9c13"},"modified":"2016-05-26T17:57:18","modified_gmt":"2016-05-26T17:57:18","slug":"","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/509","title":{"rendered":"Java\/Android RSA\u4f7f\u7528\u65f6\u6ce8\u610f\u8865\u4f4d"},"content":{"rendered":"<p>java<\/p>\n<p><span>Cipher&nbsp;cipher&nbsp;=&nbsp;Cipher.getInstance(<span class=\"string\">\"<span style=\"color:#006600;\">RSA\/ECB\/PKCS1Padding<\/span>\"<\/span><span>);&nbsp; <\/span><\/span><\/p>\n<p>android<\/p>\n<p>\nCipher cipher = Cipher.getInstance(\"<span style=\"color:#006600;\">RSA\/ECB\/NoPadding<\/span>\");<br \/>\n<span>Cipher&nbsp;cipher&nbsp;=&nbsp;Cipher.getInstance(<span class=\"string\">\"<\/span><\/span><span><span class=\"string\"><span style=\"color:#006600;\">RSA\/None\/PKCS1Padding<\/span>\"<\/span><span>);&nbsp; <\/span><\/span><\/p>\n<p>\u53c2\u8003:<br \/>\n&nbsp;<br \/>\nhttp:\/\/stackoverflow.com\/questions\/6069369\/rsa-encryption-difference-between-java-and-android<br \/>\nhttp:\/\/stackoverflow.com\/questions\/2956647\/rsa-encrypt-with-base64-encoded-public-key-in-android<\/p>\n","protected":false},"excerpt":{"rendered":"<p>java<\/p>\n<p><span>Cipher&nbsp;cipher&nbsp;=&nbsp;Cipher.getInstance(<span class=\"string\">\"<span style=\"color:#006600;\">RSA\/ECB\/PKCS1Padding<\/span>\"<\/span><span>);&nbsp; <\/span><\/span><\/p>\n<p>android<\/p>\n<p>\nCipher cipher = Cipher.getInstance(\"<span style=\"color:#006600;\">RSA\/ECB\/NoPadding<\/span>\");<br \/><span>Cipher&nbsp;cipher&nbsp;=&nbsp;Cipher.getInstance(<span class=\"string\">\"<\/span><\/span><span><span class=\"string\"><span style=\"color:#006600;\">RSA\/None\/PKCS1Padding<\/span>\"<\/span><span>);&nbsp; <\/span><\/span><\/p>\n<p>\u53c2\u8003:<br \/>\n&nbsp;<br \/>\nhttp:\/\/stackoverflow.com\/questions\/6069369\/rsa-encryption-difference-between-java-and-android<br \/>\nhttp:\/\/stackoverflow.com\/questions\/2956647\/rsa-encrypt-with-base64-encoded-public-key-in-android<br \/> <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/509\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[297],"tags":[248],"class_list":["post-509","post","type-post","status-publish","format-standard","hentry","category-java","tag-rsa"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=509"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/509\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}