{"id":1707,"date":"2017-06-28T14:24:57","date_gmt":"2017-06-28T06:24:57","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1707"},"modified":"2017-06-28T14:59:53","modified_gmt":"2017-06-28T06:59:53","slug":"%e6%94%af%e4%bb%98%e5%ae%9dapp%e6%94%af%e4%bb%98%e7%9a%84android-demo%e4%b8%8d%e8%83%bd%e6%ad%a3%e5%b8%b8%e5%94%a4%e8%b5%b7h5%e6%94%af%e4%bb%98%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1707","title":{"rendered":"\u652f\u4ed8\u5b9dAPP\u652f\u4ed8\u7684android demo\u4e0d\u80fd\u6b63\u5e38\u5524\u8d77H5\u652f\u4ed8\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"

\u95ee\u9898\u63cf\u8ff0\uff1a\u4e0b\u8f7d\u652f\u4ed8\u5b9d\u63d0\u4f9b\u7684android\u624b\u673a\u652f\u4ed8demo\u65f6\uff0c\u53d1\u73b0\u5f53\u624b\u673a\u6ca1\u6709\u5b89\u88c5\u652f\u4ed8\u5b9d\u5ba2\u6237\u7aef\u65f6\u4e0d\u80fd\u6b63\u5e38\u5524\u8d77H5\u652f\u4ed8\u754c\u9762\u3002<\/p>\n

\u89e3\u51b3\u529e\u6cd5\uff1a\u4fee\u6539signutils.java\u6587\u4ef6\u4e2d\u7684<\/p>\n

KeyFactory keyf = KeyFactory.getInstance(ALGORITHM);<\/pre>\n

\u4fee\u6539\u4e3a\uff1a<\/p>\n

KeyFactory keyf = KeyFactory.getInstance(ALGORITHM,\"BC\");<\/pre>\n

\u5373\u53ef\u3002\u5177\u4f53\u539f\u56e0\u61d2\u5f97\u67e5\u3002\u8fd9\u89e3\u51b3\u65b9\u6cd5\u4e5f\u662f\u7f51\u4e0a\u627e\u7684\u3002\u51fa\u5904\u5df2\u5fd8\u3002<\/p>\n

\u5e0c\u671b\u652f\u4ed8\u5b9d\u5b98\u65b9\u5c3d\u5feb\u4fee\u6b63\u6b64bug\u3002<\/p>\n

\u5b89\u5353\u7248\u672c\uff1a4.2.2<\/p>\n


\n

\u60b2\u5267\u7684\u662f\u57286.0\u4e0a\uff0c\u4e5f\u6254\u4e0d\u80fd\u6b63\u5e38\u5524\u8d77H5\u652f\u4ed8\u3002\u3002\u3002<\/p>\n

\u89e3\u51b3\u4e86\uff0c\u5b89\u53536.0\u4ee5\u4e0b\uff0c\u5bf9\u6743\u9650\u505a\u4e86\u4e00\u4e9b\u4fee\u6539\u3002\u5927\u6982\u5c31\u662f\u4e00\u4e9b\u76f8\u5bf9\u91cd\u8981\u7684\u6743\u9650\u5982\u679c\u6ca1\u6709\u505a\u51fa\u5f00\u542f\u63d0\u9192\uff0c\u540c\u65f6\u6ca1\u6709\u505a\u76f8\u5e94\u9519\u8bef\u5904\u7406\uff0c\u5c31\u4f1a\u5bfc\u81f4\u5f02\u5e38\u3002<\/p>\n

\u6211\u662f\u5728\u7a0b\u5e8fmanifest.xml\u4e2d\u52a0\u4e86\u4ee5\u4e0b\u51e0\u4e2a\u6743\u9650\uff0c\u73b0\u5728\u4e5f\u53ef\u4ee5\u6b63\u5e38\u5524\u9192\u7a0b\u5e8f\u4e86\uff1a<\/p>\n

<!-- \u5141\u8bb8\u8bfb\u53d6\u624b\u673a\u72b6\u6001\u7684\u6743\u9650 -->\r\n<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"\/>\r\n<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"\/>\r\n<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"\/>\r\n\r\n<\/pre>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u95ee\u9898\u63cf\u8ff0\uff1a\u4e0b\u8f7d\u652f\u4ed8\u5b9d\u63d0\u4f9b\u7684android\u624b\u673a\u652f\u4ed8demo\u65f6\uff0c\u53d1\u73b0\u5f53\u624b\u673a\u6ca1\u6709\u5b89\u88c5\u652f\u4ed8\u5b9d\u5ba2\u6237\u7aef\u65f6\u4e0d\u80fd\u6b63\u5e38\u5524\u8d77H5\u652f\u4ed8\u754c\u9762\u3002 \u89e3\u51b3\u529e\u6cd5\uff1a\u4fee\u6539signutils.java\u6587\u4ef6\u4e2d\u7684 KeyFactory keyf = KeyFactory.getInstance(ALGORITHM); \u4fee\u6539\u4e3a\uff1a KeyFactory keyf = KeyFactory.getInstance(ALGORITHM,”BC”); \u5373\u53ef\u3002\u5177\u4f53\u539f\u56e0\u61d2\u5f97\u67e5\u3002\u8fd9\u89e3\u51b3\u65b9\u6cd5\u4e5f\u662f\u7f51\u4e0a\u627e\u7684\u3002\u51fa\u5904\u5df2\u5fd8\u3002 \u5e0c\u671b\u652f\u4ed8\u5b9d\u5b98\u65b9\u5c3d\u5feb\u4fee\u6b63\u6b64bug\u3002 \u5b89\u5353\u7248\u672c\uff1a4.2.2 \u60b2\u5267\u7684\u662f\u57286.0\u4e0a\uff0c\u4e5f\u6254\u4e0d\u80fd\u6b63\u5e38\u5524\u8d77H5\u652f\u4ed8\u3002\u3002\u3002 \u89e3\u51b3\u4e86\uff0c\u5b89\u53536.0\u4ee5\u4e0b\uff0c\u5bf9\u6743\u9650<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[277,9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1707"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1707"}],"version-history":[{"count":3,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1707\/revisions"}],"predecessor-version":[{"id":1710,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1707\/revisions\/1710"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1707"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}