{"id":2597,"date":"2020-12-28T17:45:00","date_gmt":"2020-12-28T09:45:00","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=2597"},"modified":"2021-03-15T15:26:44","modified_gmt":"2021-03-15T07:26:44","slug":"gbase-8a%e6%94%af%e6%8c%81sha256%e7%9a%84sftp%e5%8a%a0%e8%bd%bd%e6%80%a7%e8%83%bd%e5%af%b9%e6%af%94sha1%e4%b8%8b%e9%99%8d%e6%83%85%e5%86%b5","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/2597","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u652f\u6301sha256\u7684sftp\u52a0\u8f7d\u6027\u80fd\u5bf9\u6bd4sha1\u4e0b\u964d\u60c5\u51b5"},"content":{"rendered":"<p>GBase 8a\u65b0\u7248\u672c\u652f\u6301\u4e86sha256\uff0c\u672c\u6587\u4ecb\u7ecd\u4ece\u7b97\u6cd5\u89d2\u5ea6\uff0csha256\u548csha1\u7684\u6027\u80fd\u5dee\u8ddd\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2ad3fa677c8\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2ad3fa677c8\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/2597\/#%E7%BB%93%E8%AE%BA\" >\u7ed3\u8bba<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/2597\/#%E5%A4%8D%E7%94%A8UUID\" >\u590d\u7528UUID<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/2597\/#%E5%A4%8D%E7%94%A8UUID%E6%97%B6%E9%97%B4%E6%88%B3\" >\u590d\u7528UUID+\u65f6\u95f4\u6233<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.gbase8.cn\/en\/2597\/#%E8%AE%A1%E7%AE%97UUID%E6%97%B6%E9%97%B4%E6%88%B3\" >\u8ba1\u7b97UUID+\u65f6\u95f4\u6233<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/2597\/#%E5%A4%8D%E7%94%A8UUID%E5%A4%8D%E7%94%A8UUID\" >\u590d\u7528UUID+\u590d\u7528UUID<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.gbase8.cn\/en\/2597\/#%E5%A4%8D%E7%94%A8UUID%E5%A4%8D%E7%94%A8UUID%E6%97%B6%E9%97%B4%E6%88%B3\" >\u590d\u7528UUID+\u590d\u7528UUID+\u65f6\u95f4\u6233<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.gbase8.cn\/en\/2597\/#%E8%AE%A1%E7%AE%97UUID%E5%A4%8D%E7%94%A8UUID%E6%97%B6%E9%97%B4%E6%88%B3\" >\u8ba1\u7b97UUID+\u590d\u7528UUID+\u65f6\u95f4\u6233<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.gbase8.cn\/en\/2597\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%BB%93%E8%AE%BA\"><\/span>\u7ed3\u8bba<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>sha1\u548csha256\u4ece\u7b97\u6cd5\u89d2\u5ea6\uff0c\u6027\u80fd\u4e0b\u964d\u5728 20%\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A4%8D%E7%94%A8UUID\"><\/span>\u590d\u7528UUID<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>generateStringToHash() with: return UUID_STRING<\/p>\n\n\n\n<p>\u6570\u636e\u7f16\u7801\u957f\u5ea6\u5728 ~36 \u5b57\u7b26(f5cdcda7-d873-455f-9902-dc9c7894bee0). UUID\u590d\u7528\u4e86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Hash<\/th><th>#1 (ms)<\/th><th>#2 (ms)<\/th><th>#3 (ms)<\/th><th>#4 (ms)<\/th><th>#5 (ms)<\/th><th>Average per 1M (ms)<\/th><\/tr><tr><td>MD5<\/td><td>649<\/td><td>623<\/td><td>621<\/td><td>624<\/td><td>620<\/td><td>627.4<\/td><\/tr><tr><td>SHA-1<\/td><td>608<\/td><td>588<\/td><td>630<\/td><td>600<\/td><td>594<\/td><td>604<\/td><\/tr><tr><td>SHA-256<\/td><td>746<\/td><td>724<\/td><td>741<\/td><td>720<\/td><td>758<\/td><td>737.8<\/td><\/tr><tr><td>SHA-512<\/td><td>1073<\/td><td>1055<\/td><td>1050<\/td><td>1052<\/td><td>1052<\/td><td>1056.4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A4%8D%E7%94%A8UUID%E6%97%B6%E9%97%B4%E6%88%B3\"><\/span>\u590d\u7528UUID+\u65f6\u95f4\u6233<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><em><strong>generateStringToHash() with: return UUID_STRING + System.currentTimeMillis();<\/strong><\/em><\/p>\n\n\n\n<p>\u6570\u636e\u7f16\u7801\u957f\u5ea6 ~49&nbsp;\u5b57\u7b26(aa096640-21d6-4f44-9c49-4115d3fa69381468217419114). \u5305\u62ec\u4e86\u65f6\u95f4\u6233\u3002UUID\u590d\u7528\u4e86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Hash<\/th><th>#1 (ms)<\/th><th>#2 (ms)<\/th><th>#3 (ms)<\/th><th>#4 (ms)<\/th><th>#5 (ms)<\/th><th>Average per 1M (ms)<\/th><\/tr><tr><td>MD5<\/td><td>751<\/td><td>789<\/td><td>745<\/td><td>806<\/td><td>737<\/td><td>765.6<\/td><\/tr><tr><td>SHA-1<\/td><td>768<\/td><td>765<\/td><td>694<\/td><td>763<\/td><td>751<\/td><td>748.2<\/td><\/tr><tr><td>SHA-256<\/td><td>842<\/td><td>876<\/td><td>848<\/td><td>839<\/td><td>850<\/td><td>851<\/td><\/tr><tr><td>SHA-512<\/td><td>1161<\/td><td>1152<\/td><td>1164<\/td><td>1154<\/td><td>1163<\/td><td>1158.8<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%A1%E7%AE%97UUID%E6%97%B6%E9%97%B4%E6%88%B3\"><\/span>\u8ba1\u7b97UUID+\u65f6\u95f4\u6233<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><em><strong>generateStringToHash() with: return UUID.randomUUID().toString() + System.currentTimeMillis();<\/strong><\/em><\/p>\n\n\n\n<p>\u5b57\u7b26\u7f16\u7801\u957f\u5ea6 ~49(1af4a3e1-1d92-40e7-8a74-7bb7394211e01468216765464). \u6bcf\u6b21\u91cd\u65b0\u8ba1\u7b97UUID.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Hash<\/th><th>#1 (ms)<\/th><th>#2 (ms)<\/th><th>#3 (ms)<\/th><th>#4 (ms)<\/th><th>#5 (ms)<\/th><th>Average per 1M (ms)<\/th><\/tr><tr><td>MD5<\/td><td>1505<\/td><td>&nbsp;1471<\/td><td>1518<\/td><td>1463<\/td><td>1487<\/td><td>1488.8<\/td><\/tr><tr><td>SHA-1<\/td><td>1333<\/td><td>1309<\/td><td>1323<\/td><td>1326<\/td><td>1334<\/td><td>1325<\/td><\/tr><tr><td>SHA-256<\/td><td>1505<\/td><td>1496<\/td><td>1507<\/td><td>1498<\/td><td>1516<\/td><td>1504.4<\/td><\/tr><tr><td>SHA-512<\/td><td>1834<\/td><td>1827<\/td><td>1833<\/td><td>1836<\/td><td>1857<\/td><td>1837.4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A4%8D%E7%94%A8UUID%E5%A4%8D%E7%94%A8UUID\"><\/span>\u590d\u7528UUID+\u590d\u7528UUID<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><em><strong>generateStringToHash() with:&nbsp;return UUID_STRING + UUID_STRING;<\/strong><\/em><\/p>\n\n\n\n<p>\u6570\u636e\u7f16\u7801\u957f\u5ea6 ~72 \u5b57\u8282(57149cb6-991c-4ffd-9c98-d823ee8a61f757149cb6-991c-4ffd-9c98-d823ee8a61f7)\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Hash<\/th><th>#1 (ms)<\/th><th>#2 (ms)<\/th><th>#3 (ms)<\/th><th>#4 (ms)<\/th><th>#5 (ms)<\/th><th>Average per 1M (ms)<\/th><\/tr><tr><td>MD5<\/td><td>856<\/td><td>824<\/td><td>876<\/td><td>811<\/td><td>828<\/td><td>839<\/td><\/tr><tr><td>SHA-1<\/td><td>921<\/td><td>896<\/td><td>970<\/td><td>904<\/td><td>893<\/td><td>916.8<\/td><\/tr><tr><td>SHA-256<\/td><td>1145<\/td><td>1137<\/td><td>1241<\/td><td>1141<\/td><td>1177<\/td><td>1168.2<\/td><\/tr><tr><td>SHA-512<\/td><td>1133<\/td><td>1131<\/td><td>1116<\/td><td>1102<\/td><td>1110<\/td><td>1118.4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A4%8D%E7%94%A8UUID%E5%A4%8D%E7%94%A8UUID%E6%97%B6%E9%97%B4%E6%88%B3\"><\/span>\u590d\u7528UUID+\u590d\u7528UUID+\u65f6\u95f4\u6233<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><em><strong>generateStringToHash() with: return UUID_STRING + UUID_STRING + System.currentTimeMillis();<\/strong><\/em><\/p>\n\n\n\n<p>\u6570\u636e\u7f16\u7801\u957f\u5ea6 ~85\u5b57\u7b26 (759529c5-1f57-4167-b289-899c163c775e759529c5-1f57-4167-b289-899c163c775e1468218673060). <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Hash<\/th><th>#1 (ms)<\/th><th>#2 (ms)<\/th><th>#3 (ms)<\/th><th>#4 (ms)<\/th><th>#5 (ms)<\/th><th>Average per 1M (ms)<\/th><\/tr><tr><td>MD5<\/td><td>1029<\/td><td>1035<\/td><td>1034<\/td><td>1012<\/td><td>1037<\/td><td>1029.4<\/td><\/tr><tr><td>SHA-1<\/td><td>1008<\/td><td>1016<\/td><td>1027<\/td><td>1007<\/td><td>990<\/td><td>1009.6<\/td><\/tr><tr><td>SHA-256<\/td><td>1254<\/td><td>1249<\/td><td>1290<\/td><td>1259<\/td><td>1248<\/td><td>1260<\/td><\/tr><tr><td>SHA-512<\/td><td>1228<\/td><td>1221<\/td><td>1232<\/td><td>1230<\/td><td>1226<\/td><td>1227.4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%A1%E7%AE%97UUID%E5%A4%8D%E7%94%A8UUID%E6%97%B6%E9%97%B4%E6%88%B3\"><\/span>\u8ba1\u7b97UUID+\u590d\u7528UUID+\u65f6\u95f4\u6233<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><em><strong>generateStringToHash() with: final String randomUuid = UUID.randomUUID().toString();<br>return randomUuid + randomUuid + System.currentTimeMillis();<\/strong><\/em><\/p>\n\n\n\n<p>\u7f16\u7801\u957f\u5ea6 ~85 \u5b57\u7b26(2734b31f-16db-4eba-afd5-121d0670ffa72734b31f-16db-4eba-afd5-121d0670ffa71468217683040). UUID\u6bcf\u6b21\u91cd\u65b0\u4ea7\u751f\uff0c\u7136\u540e\u590d\u7528.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Hash<\/th><th>#1 (ms)<\/th><th>#2 (ms)<\/th><th>#3 (ms)<\/th><th>#4 (ms)<\/th><th>#5 (ms)<\/th><th>Average per 1M (ms)<\/th><\/tr><tr><td>MD5<\/td><td>1753<\/td><td>1757<\/td><td>1739<\/td><td>1751<\/td><td>1691<\/td><td>1738.2<\/td><\/tr><tr><td>SHA-1<\/td><td>1634<\/td><td>1634<\/td><td>1627<\/td><td>1634<\/td><td>1633<\/td><td>1632.4<\/td><\/tr><tr><td>SHA-256<\/td><td>1962<\/td><td>1956<\/td><td>1988<\/td><td>1988<\/td><td>1924<\/td><td>1963.6<\/td><\/tr><tr><td>SHA-512<\/td><td>1909<\/td><td>1946<\/td><td>1936<\/td><td>1929<\/td><td>1895<\/td><td>1923<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83\"><\/span>\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/automationrhapsody.com\/md5-sha-1-sha-256-sha-512-speed-performance\/\">https:\/\/automationrhapsody.com\/md5-sha-1-sha-256-sha-512-speed-performance\/<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u652f\u6301sha256\u7684sftp\u52a0\u8f7d\u6027\u80fd\u5bf9\u6bd4sha1\u4e0b\u964d\u60c5\u51b5<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[10,76],"class_list":["post-2597","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-10","tag-76"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/2597","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=2597"}],"version-history":[{"count":2,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/2597\/revisions"}],"predecessor-version":[{"id":5125,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/2597\/revisions\/5125"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=2597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=2597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=2597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}