{"id":7921,"date":"2020-06-13T15:24:40","date_gmt":"2020-06-13T07:24:40","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7921"},"modified":"2020-06-13T15:24:41","modified_gmt":"2020-06-13T07:24:41","slug":"grub-crypt","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/grub-crypt","title":{"rendered":"grub-crypt\u547d\u4ee4 – \u5bf9\u53e3\u4ee4\u8fdb\u884c\u52a0\u5bc6"},"content":{"rendered":"\n

grub-crypt\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5bf9\u53e3\u4ee4\u8fdb\u884c\u52a0\u5bc6\u3002grub-crypt\u547d\u4ee4\u652f\u6301\u5bf9\u53e3\u4ee4\u8fdb\u884cMD5\u548cSHA\u52a0\u5bc6\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u662f\u5bf9\u53e3\u4ee4\u8fdb\u884cSHA-512\u52a0\u5bc6\u3002<\/p>\n\n\n\n

SHA\u662fSecure Hash Algorithm\u7684\u7b80\u5199\uff0c\u4e2d\u6587\u4e3a\u5b89\u5168\u6563\u5217\u7b97\u6cd5\uff0c\u662f\u7f8e\u56fd\u56fd\u5bb6\u5b89\u5168\u5c40 \u8bbe\u8ba1\uff0c\u7f8e\u56fd\u56fd\u5bb6\u6807\u51c6\u4e0e\u6280\u672f\u7814\u7a76\u9662\u53d1\u5e03\u7684\u4e00\u7cfb\u5217\u5bc6\u7801\u6563\u5217\u51fd\u6570\u3002\u7531\u4e8eSHA-1\u5df2\u7ecf\u4e0d\u592a\u5b89\u5168\uff0c\u76ee\u524dSHA-2\u5404\u7248\u672c\u5df2\u6210\u4e3a\u4e3b\u6d41\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>grub-crypt [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-- -md5<\/td>\u4f7f\u7528MD5\u52a0\u5bc6\u53e3\u4ee4<\/td><\/tr>
-- -sha-256<\/td>\u4f7f\u7528SHA-256\u52a0\u5bc6\u53e3\u4ee4<\/td><\/tr>
-- -sha-512<\/td>\u4f7f\u7528SHA-512\u52a0\u5bc6\u53e3\u4ee4\uff08\u9ed8\u8ba4\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u4f7f\u7528\u9ed8\u8ba4\u6a21\u5f0f\u5bf9\u53e3\u4ee4\u8fdb\u884c\u52a0\u5bc6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# grub-crypt \nPassword: \nRetype password: 5476c925d9944226ce156be12bf3ce38889d141194c55794e6017c2e8e60d600fa01d19d6b371fa1921d0036dddc8708bc36d64dd9fc0350b839b8121a889ff2<\/pre>\n\n\n\n

\u4f7f\u7528MD5\u5bf9\u53e3\u4ee4\u8fdb\u884c\u52a0\u5bc6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# grub-crypt --md5\nPassword:\nRetype password: \naa422445d1ae1263fe3ad6f508e4c53b<\/pre>\n\n\n\n

\u4f7f\u7528SHA-256\u5bf9\u53e3\u4ee4\u8fdb\u884c\u52a0\u5bc6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# grub-crypt --sha-256\nPassword:\nRetype password:\n2b222ddcb1abfdd10ae57a759bf34a0e872220cf17ded40b82a42b321fcb585e<\/pre>\n","protected":false},"excerpt":{"rendered":"

grub-crypt\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5bf9\u53e3\u4ee4\u8fdb\u884c\u52a0\u5bc6\u3002grub-crypt\u547d\u4ee4\u652f\u6301\u5bf9\u53e3\u4ee4\u8fdb\u884cMD5\u548cSHA\u52a0\u5bc6\uff0c\u9ed8\u8ba4 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7921"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7921"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7921\/revisions"}],"predecessor-version":[{"id":7969,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7921\/revisions\/7969"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}