{"id":368461,"date":"2021-02-23T20:34:16","date_gmt":"2021-02-23T12:34:16","guid":{"rendered":"http:\/\/4563.org\/?p=368461"},"modified":"2021-02-23T20:34:16","modified_gmt":"2021-02-23T12:34:16","slug":"%e6%83%b3%e9%97%ae%e9%97%ae-python-%e5%a6%82%e4%bd%95%e7%94%a8-rsa-%e7%9a%84%e7%a7%81%e9%92%a5%e7%94%9f%e6%88%90%e4%b8%80%e4%b8%aa%e5%af%b9%e5%ba%94%e7%9a%84%e5%85%ac%e9%92%a5%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=368461","title":{"rendered":"\u60f3\u95ee\u95ee Python \u5982\u4f55\u7528 RSA \u7684\u79c1\u94a5\u751f\u6210\u4e00\u4e2a\u5bf9\u5e94\u7684\u516c\u94a5\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u60f3\u95ee\u95ee Python \u5982\u4f55\u7528 RSA \u7684\u79c1\u94a5\u751f\u6210\u4e00\u4e2a\u5bf9\u5e94\u7684\u516c\u94a5\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Wait845 <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u67e5\u4e86\u5f88\u591a\u8d44\u6599\uff0c\u90fd\u6ca1\u6709\u627e\u5230\u76f8\u5173\u7684\u56de\u7b54\u3002python \u7528\u7684\u662f rsa \u6a21\u5757 http:\/\/tool.chacuo.net\/cryptgetpubkey \u8fd9\u4e2a\u7f51\u7ad9\u63d0\u4f9b\u8fd9\u4e2a\u670d\u52a1\uff0c\u8bf4\u660e\u662f\u6709\u53ef\u884c\u6027\u7684\uff0c\u5e0c\u671b\u5927\u5bb6\u80fd\u5e2e\u5e2e\u5fd9<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5442758\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : itskingname <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             os.system(&#8216;openssl rsa -in mykey.pem -pubout &gt; mykey.pub&#8217;)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5442759\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : honeycomb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u822c\u6765\u8bf4\u751f\u6210\u597d\u7684 RSA \u79c1\u94a5\u7684\u5c01\u88c5\u540c\u65f6\u4f1a\u5305\u542b\u516c\u94a5\uff08\u5f53\u7136\u4e5f\u53ef\u4ee5\u628a\u5176\u4e2d\u7684\u516c\u94a5\u5265\u79bb\uff09\uff0c\u751f\u6210\u516c\u94a5\u5176\u5b9e\u5c31\u662f\u628a\u8fd9\u4e2a\u516c\u94a5\u63d0\u53d6\u51fa\u6765\uff0c\u50a8\u5b58\u4e3a\u5408\u9002\u7684\u5c01\u88c5\u5f62\u5f0f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5442760\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rrfeng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7406\u8bba\u4e0a\uff1a\u4e0d\u53ef\u4ee5\uff0c\u516c\u94a5\u79c1\u94a5\u6210\u5bf9\u51fa\u73b0\uff0c\u662f\u5bf9\u79f0\u7684\u5e76\u65e0\u533a\u5206\uff0c\u53ea\u662f\u8ba4\u4e3a\u7684\u5b9a\u4e49\u4e00\u4e2a\u4fdd\u5bc6\u4e00\u4e2a\u516c\u5f00\u3002\u4f60\u65e0\u6cd5\u4ece\u516c\u94a5\u63a8\u7b97\u79c1\u94a5\uff0c\u4e5f\u65e0\u6cd5\u4ece\u79c1\u94a5\u63a8\u7b97\u516c\u94a5\uff0c\u8fd9\u662f\u975e\u5bf9\u79f0\u52a0\u5bc6\u7b97\u6cd5\u5b89\u5168\u6027\u7684\u7406\u8bba\u57fa\u77f3\u3002<\/p>\n<p>\u5b9e\u9645\u4e0a\uff1amaybe \u3002\u56e0\u4e3a\u79c1\u94a5\u6587\u4ef6\u683c\u5f0f\u4e2d\u5305\u542b\u4e86\u516c\u94a5\u5185\u5bb9\u3002\u7528 1 \u7684\u65b9\u5f0f\u53ef\u4ee5\u53d6\u51fa\u6765\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5442761\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : asilin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u662f\u60f3\u751f\u6210 OpenSSH \u517c\u5bb9\u7684\u516c\u94a5\uff0c\u4f7f\u7528\uff1assh-keygen -f mykey.pem -y<\/p>\n<p>\u5982\u679c\u662f\u60f3\u751f\u6210 OpenSSL \u517c\u5bb9\u7684\u516c\u94a5\uff0c\u4f7f\u7528\uff1assh-keygen -f mykey.pem -e -m pem                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u60f3\u95ee\u95ee Python \u5982\u4f55\u7528 RS&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/368461"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=368461"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/368461\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=368461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=368461"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=368461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}