{"id":279625,"date":"2023-08-18T09:00:03","date_gmt":"2023-08-18T01:00:03","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=279625"},"modified":"2023-08-14T11:20:25","modified_gmt":"2023-08-14T03:20:25","slug":"linux-slang-analysis","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-slang-analysis.html","title":{"rendered":"Linux \u9ed1\u8bdd\u89e3\u6790\uff1a\u4ec0\u4e48\u662f LUKS \u52a0\u5bc6\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nLUKS \u662f Linux \u7528\u6237\u4e2d\u6d41\u884c\u7684\u78c1\u76d8\u52a0\u5bc6\u673a\u5236\u3002\u5728\u8fd9\u7bc7\u672f\u8bed\u89e3\u6790\u6587\u7ae0\u4e2d\uff0c\u53ef\u4ee5\u4e86\u89e3\u66f4\u591a\u5173\u4e8e LUKS \u7684\u4fe1\u606f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u8ba1\u7b97\u673a\u5b89\u5168\u65e8\u5728\u4fdd\u62a4\u79c1\u5bc6\u4fe1\u606f\u3002\u6709\u8bb8\u591a\u65b9\u6cd5\u53ef\u4ee5\u4fdd\u62a4\u7cfb\u7edf\u3002\u4e00\u4e9b\u7528\u6237\u4f7f\u7528\u7b80\u5355\u7684\u7528\u6237\u540d\/\u5bc6\u7801\u767b\u5f55\u65b9\u6848\u8fdb\u884c\u57fa\u672c\u4fdd\u62a4\u3002\u5176\u4ed6\u7528\u6237\u53ef\u80fd\u4f1a\u901a\u8fc7\u52a0\u5bc6\u4ee5\u4e0d\u540c\u7684\u65b9\u5f0f\u589e\u52a0\u989d\u5916\u7684\u4fdd\u62a4\uff0c\u5982\u4f7f\u7528 VPN \u548c\u78c1\u76d8\u52a0\u5bc6\u3002<\/p>\n

\u5982\u679c\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\u6709\u654f\u611f\u7684\u5ba2\u6237\u6570\u636e\uff08\u4f60\u53ef\u80fd\u5728\u7ecf\u8425\u4e00\u5bb6\u4f01\u4e1a\uff09\uff0c\u6216\u88ab\u89c6\u4e3a\u77e5\u8bc6\u4ea7\u6743\u7684\u6750\u6599\uff0c\u6216\u8005\u4f60\u5bf9\u9690\u79c1\u975e\u5e38\u8c28\u614e\uff0c\u4f60\u53ef\u80fd\u8981\u8003\u8651\u78c1\u76d8\u52a0\u5bc6\u3002<\/p>\n

\u78c1\u76d8\u52a0\u5bc6\u7684\u4e00\u4e9b\u597d\u5904\u5305\u62ec\uff1a<\/p>\n

    \n
  1. \u4fdd\u62a4\u7cfb\u7edf\u514d\u53d7\u9ed1\u5ba2\u7684\u653b\u51fb<\/li>\n
  2. \u9632\u6b62\u6570\u636e\u6cc4\u9732<\/li>\n
  3. \u4fdd\u62a4\u4f60\u514d\u53d7\u6f5c\u5728\u7684\u8d23\u4efb\u95ee\u9898<\/li>\n<\/ol>\n

    \u78c1\u76d8\u52a0\u5bc6\u8f6f\u4ef6\u53ef\u4ee5\u9632\u6b62\u53f0\u5f0f\u673a\u786c\u76d8\u9a71\u52a8\u5668\u3001\u4fbf\u643a\u5f0f USB \u5b58\u50a8\u8bbe\u5907\u6216\u7b14\u8bb0\u672c\u7535\u8111\u88ab\u8bbf\u95ee\uff0c\u9664\u975e\u7528\u6237\u8f93\u5165\u6b63\u786e\u7684\u8eab\u4efd\u9a8c\u8bc1\u6570\u636e\u3002\u5982\u679c\u4f60\u7684\u7b14\u8bb0\u672c\u7535\u8111\u4e22\u5931\u6216\u88ab\u76d7\uff0c\u52a0\u5bc6\u4f1a\u4fdd\u62a4\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u3002<\/p>\n

    \u5982\u4eca\uff0c\u65b0\u7684 Windows \u7cfb\u7edf\u9ed8\u8ba4\u914d\u5907\u4e86 BitLocker \u52a0\u5bc6\u3002\u5728 Linux \u4e0a\uff0cLUKS \u662f\u6700\u5e38\u7528\u7684\u78c1\u76d8\u52a0\u5bc6\u65b9\u5f0f\u3002<\/p>\n

    \u60f3\u77e5\u9053\u4ec0\u4e48\u662f LUKS\uff1f\u6211\u4f1a\u4e3a\u4f60\u7b80\u8981\u4ecb\u7ecd\u8fd9\u4e2a\u4e3b\u9898\u3002<\/p>\n

    \u6280\u672f\u672f\u8bed<\/strong><\/div>\n

    \u5728\u7ee7\u7eed\u4e4b\u524d\uff0c\u9700\u8981\u5b9a\u4e49\u4e00\u4e9b\u672f\u8bed\u3002LUKS \u6709\u5f88\u591a\u5185\u5bb9\uff0c\u56e0\u6b64\u5c06\u5176\u62c6\u89e3\u4e3a\u7ec6\u9879\u5c06\u6709\u52a9\u4e8e\u4f60\u8fdb\u4e00\u6b65\u4e86\u89e3\u3002<\/p>\n

    \u5377Volume\uff1a\u5377\u662f\u4e00\u4e2a\u903b\u8f91\u5b58\u50a8\u533a\u57df\uff0c\u53ef\u7528\u4e8e\u5b58\u50a8\u6570\u636e\u3002\u5728\u78c1\u76d8\u52a0\u5bc6\u7684\u573a\u666f\u4e2d\u5377\u6307\u7684\u662f\u5df2\u52a0\u5bc6\u4ee5\u4fdd\u62a4\u5176\u5185\u5bb9\u7684\u78c1\u76d8\u90e8\u5206\u3002<\/p>\n

    \u53c2\u6570Parameters\uff1a\u53c2\u6570\u662f\u63a7\u5236\u52a0\u5bc6\u7b97\u6cd5\u8fd0\u884c\u65b9\u5f0f\u7684\u8bbe\u7f6e\u3002\u53c2\u6570\u53ef\u80fd\u5305\u62ec\u6240\u4f7f\u7528\u7684\u52a0\u5bc6\u7b97\u6cd5\u3001\u5bc6\u94a5\u5927\u5c0f\u4ee5\u53ca\u6709\u5173\u5982\u4f55\u6267\u884c\u52a0\u5bc6\u7684\u5176\u4ed6\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n

    \u52a0\u5bc6\u7c7b\u578bCipher type**\uff1a\u5b83\u662f\u6307\u7528\u4e8e\u52a0\u5bc6\u7684\u6570\u5b66\u7b97\u6cd5\u3002\u5b83\u6307\u7684\u662f\u7528\u4e8e\u4fdd\u62a4\u52a0\u5bc6\u5377\u4e0a\u6570\u636e\u7684\u5177\u4f53\u52a0\u5bc6\u7b97\u6cd5\u3002<\/p>\n

    \u5bc6\u94a5\u5927\u5c0fKey size\uff1a\u5bc6\u94a5\u5927\u5c0f\u662f\u8861\u91cf\u52a0\u5bc6\u7b97\u6cd5\u5f3a\u5ea6\u7684\u6307\u6807\uff1a\u5bc6\u94a5\u5927\u5c0f\u8d8a\u5927\uff0c\u52a0\u5bc6\u5f3a\u5ea6\u8d8a\u9ad8\u3002\u901a\u5e38\u4ee5\u4f4d\u6570\u8868\u793a\uff0c\u4f8b\u5982 128 \u4f4d\u52a0\u5bc6\u6216 256 \u4f4d\u52a0\u5bc6\u3002<\/p>\n

    \u5934\u90e8Header\uff1a\u5934\u90e8\u662f\u52a0\u5bc6\u5377\u5f00\u5934\u7684\u7279\u6b8a\u533a\u57df\uff0c\u5305\u542b\u6709\u5173\u52a0\u5bc6\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u6240\u4f7f\u7528\u7684\u52a0\u5bc6\u7b97\u6cd5\u548c\u52a0\u5bc6\u5bc6\u94a5\u3002<\/p>\n

    \u4e0b\u4e00\u4e2a\u5b9a\u4e49\u5bf9\u4e8e\u65b0\u624b\u6765\u8bf4\u53ef\u80fd\u6709\u4e9b\u68d8\u624b\uff0c\u4f46\u4e86\u89e3\u5b83\u8fd8\u662f\u5f88\u91cd\u8981\u7684\uff0c\u5c24\u5176\u5728\u5904\u7406 LUKS \u65f6\uff0c\u8fd9\u4f1a\u975e\u5e38\u6709\u7528\u3002<\/p>\n

    \u5bb9\u5668Container\uff1a\u5bb9\u5668\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u6587\u4ef6\uff0c\u7c7b\u4f3c\u4e8e\u865a\u62df\u52a0\u5bc6\u5377\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b58\u50a8\u52a0\u5bc6\u6570\u636e\uff0c\u5c31\u50cf\u52a0\u5bc6\u5206\u533a\u4e00\u6837\u3002\u4e0d\u540c\u4e4b\u5904\u5728\u4e8e\u5bb9\u5668\u662f\u4e00\u4e2a\u6587\u4ef6\uff0c\u53ef\u4ee5\u5b58\u50a8\u5728\u672a\u52a0\u5bc6\u7684\u5206\u533a\u4e0a\uff0c\u800c\u52a0\u5bc6\u5206\u533a\u662f\u6574\u4e2a\u78c1\u76d8\u7684\u4e00\u90e8\u5206\uff0c\u5df2\u7ecf\u5b8c\u5168\u52a0\u5bc6\u3002\u56e0\u6b64\uff0c\u5bb9\u5668\u662f \u5145\u5f53\u865a\u62df\u52a0\u5bc6\u5377\u7684\u6587\u4ef6\u3002<\/p>\n

    LUKS \u662f\u4ec0\u4e48\u4ee5\u53ca\u5b83\u80fd\u505a\u4ec0\u4e48\uff1f<\/strong><\/div>\n

    LUKS\uff08Linux \u7edf\u4e00\u5bc6\u94a5\u8bbe\u7f6eLinux Unified Key Setup\uff09\u662f\u7531 Clemens Fruhwirth \u5728 2004 \u5e74\u521b\u5efa\u7684\u78c1\u76d8\u52a0\u5bc6\u89c4\u8303\uff0c\u6700\u521d\u7528\u4e8e Linux\u3002\u5b83\u662f\u4e00\u79cd\u77e5\u540d\u7684\u3001\u5b89\u5168\u7684\u3001\u9ad8\u6027\u80fd\u7684\u78c1\u76d8\u52a0\u5bc6\u65b9\u6cd5\uff0c\u57fa\u4e8e\u6539\u8fdb\u7248\u672c\u7684 cryptsetup\uff0c\u4f7f\u7528 dm-crypt \u4f5c\u4e3a\u78c1\u76d8\u52a0\u5bc6\u540e\u7aef\u3002LUKS \u4e5f\u662f\u7f51\u7edc\u9644\u52a0\u5b58\u50a8\uff08NAS\uff09\u8bbe\u5907\u4e2d\u5e38\u7528\u7684\u52a0\u5bc6\u683c\u5f0f\u3002<\/p>\n

    LUKS \u8fd8\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u548c\u8fd0\u884c\u52a0\u5bc6\u5bb9\u5668\u3002\u52a0\u5bc6\u5bb9\u5668\u5177\u6709\u4e0e LUKS \u5168\u76d8\u52a0\u5bc6\u76f8\u540c\u7684\u4fdd\u62a4\u7ea7\u522b\u3002LUKS \u8fd8\u63d0\u4f9b\u591a\u79cd\u52a0\u5bc6\u7b97\u6cd5\u3001\u591a\u79cd\u52a0\u5bc6\u6a21\u5f0f\u548c\u591a\u79cd\u54c8\u5e0c\u51fd\u6570\uff0c\u6709 40 \u591a\u79cd\u53ef\u80fd\u7684\u7ec4\u5408\u3002<\/p>\n

    \"\"<\/p>\n

    LUKS \u7ed3\u6784\u793a\u610f\u56fe<\/p>\n

    \u4efb\u4f55\u6587\u4ef6\u7cfb\u7edf\u90fd\u53ef\u4ee5\u8fdb\u884c\u52a0\u5bc6\uff0c\u5305\u62ec\u4ea4\u6362\u5206\u533a\u3002\u52a0\u5bc6\u5377\u7684\u5f00\u5934\u6709\u4e00\u4e2a\u672a\u52a0\u5bc6\u7684\u5934\u90e8\uff0c\u5b83\u5141\u8bb8\u5b58\u50a8\u591a\u8fbe 8 \u4e2a\uff08LUKS1\uff09\u6216 32 \u4e2a\uff08LUKS2\uff09\u52a0\u5bc6\u5bc6\u94a5\uff0c\u4ee5\u53ca\u8bf8\u5982\u5bc6\u7801\u7c7b\u578b\u548c\u5bc6\u94a5\u5927\u5c0f\u4e4b\u7c7b\u7684\u52a0\u5bc6\u53c2\u6570\u3002<\/p>\n

    \u8fd9\u4e2a\u5934\u90e8\u7684\u5b58\u5728\u662f LUKS \u548c dm-crypt \u7684\u4e00\u4e2a\u91cd\u8981\u533a\u522b\uff0c\u56e0\u4e3a\u5934\u90e8\u5141\u8bb8\u4f7f\u7528\u591a\u4e2a\u4e0d\u540c\u7684\u5bc6\u94a5\u77ed\u8bed\uff0c\u5e76\u80fd\u8f7b\u677e\u66f4\u6539\u548c\u5220\u9664\u5b83\u4eec\u3002\u7136\u800c\uff0c\u503c\u5f97\u63d0\u9192\u7684\u662f\uff0c\u5982\u679c\u5934\u90e8\u4e22\u5931\u6216\u635f\u574f\uff0c\u8bbe\u5907\u5c06\u65e0\u6cd5\u89e3\u5bc6\u3002<\/p>\n

    LUKS \u6709\u4e24\u4e2a\u7248\u672c\uff0cLUKS2 \u5177\u6709\u66f4\u5f3a\u7684\u5934\u90e8\u635f\u574f\u6297\u51fb\u6027\uff0c\u5e76\u9ed8\u8ba4\u4f7f\u7528 Argon2 \u52a0\u5bc6\u7b97\u6cd5\uff08LUKS1 \u4f7f\u7528 PBKDF2\uff09\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5728\u4e24\u4e2a\u7248\u672c\u4e4b\u95f4\u8fdb\u884c\u8f6c\u6362\uff0c\u4f46\u662f LUKS1 \u53ef\u80fd\u4e0d\u652f\u6301\u67d0\u4e9b\u529f\u80fd\u3002<\/p>\n

    \u5e0c\u671b\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\uff1f<\/strong><\/div>\n

    \u5e0c\u671b\u672c\u6587\u6709\u52a9\u4e8e\u4f60\u5bf9 LUKS \u548c\u52a0\u5bc6\u6709\u4e00\u4e9b\u4e86\u89e3\u3002\u5173\u4e8e\u4f7f\u7528 LUKS \u521b\u5efa\u548c\u4f7f\u7528\u52a0\u5bc6\u5206\u533a\u7684\u786e\u5207\u6b65\u9aa4\u4f1a\u56e0\u4e2a\u4eba\u9700\u6c42\u800c\u5f02\uff0c\u56e0\u6b64\u6211\u4e0d\u4f1a\u5728\u6b64\u5904\u6db5\u76d6\u5b89\u88c5\u548c\u8bbe\u7f6e\u65b9\u9762\u7684\u5185\u5bb9\u3002<\/p>\n

    \u5982\u679c\u4f60\u60f3\u8981\u4e00\u4efd\u6307\u5357\u6765\u5e2e\u52a9\u4f60\u8bbe\u7f6e LUKS\uff0c\u53ef\u4ee5\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u627e\u5230\u4e00\u4e2a\u5f88\u597d\u7684\u6307\u5357\uff1a\u300a\u4f7f\u7528 LUKS \u5bf9 Linux \u5206\u533a\u8fdb\u884c\u57fa\u672c\u52a0\u5bc6\u6307\u5357\u300b\u3002\u5982\u679c\u4f60\u5bf9\u6b64\u8fd8\u4e0d\u719f\u6089\uff0c\u5e76\u4e14\u60f3\u8981\u5c1d\u8bd5\u4f7f\u7528 LUKS\uff0c\u53ef\u4ee5\u5728\u865a\u62df\u673a\u6216\u95f2\u7f6e\u8ba1\u7b97\u673a\u4e0a\u8fdb\u884c\u5b89\u5168\u5b66\u4e60\uff0c\u4ee5\u4e86\u89e3\u5176\u5de5\u4f5c\u539f\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u8ba1\u7b97\u673a\u5b89\u5168\u65e8\u5728\u4fdd\u62a4\u79c1\u5bc6\u4fe1\u606f\u3002\u6709\u8bb8\u591a\u65b9\u6cd5\u53ef\u4ee5\u4fdd\u62a4\u7cfb\u7edf\u3002\u4e00\u4e9b\u7528\u6237\u4f7f\u7528\u7b80\u5355\u7684\u7528\u6237\u540d\/\u5bc6\u7801\u767b\u5f55\u65b9\u6848\u8fdb\u884c\u57fa\u672c\u4fdd\u62a4\u3002\u5176\u4ed6\u7528 […]<\/p>\n","protected":false},"author":1481,"featured_media":279627,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-279625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/279625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=279625"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/279625\/revisions"}],"predecessor-version":[{"id":280057,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/279625\/revisions\/280057"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/279627"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=279625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=279625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=279625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}