{"id":39881,"date":"2023-02-05T05:11:37","date_gmt":"2023-02-04T21:11:37","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=39881"},"modified":"2023-02-05T05:11:37","modified_gmt":"2023-02-04T21:11:37","slug":"strong-password","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/strong-password.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528\u547d\u4ee4\u884c\u751f\u6210\u9ad8\u5f3a\u5ea6\u5bc6\u7801"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nLightbot\u8bbe\u7f6e\u4e00\u4e2a\u9ad8\u5f3a\u5ea6\u7684\u5bc6\u7801\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u8fd9\u6837\u624d\u80fd\u591f\u5f88\u597d\u7684\u4fdd\u62a4\u81ea\u5df1\u7684\u8d26\u53f7\u6216\u8005\u670d\u52a1\u5668\u4ee5\u53ca\u786e\u4fdd\u81ea\u5df1\u7684\u6570\u636e\u7684\u5b89\u5168\u3002\u901a\u5e38\u6765\u8bf4\uff0c\u4e00\u4e2a\u9ad8\u5f3a\u5ea6\u5bc6\u7801\u81f3\u5c11\u6709 14 \u4e2a\u5b57\u7b26\uff0c\u5305\u62ec\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u7279\u6b8a\u5b57\u7b26\uff0c\u5e76\u4e14\u8981\u7262\u8bb0\u6c38\u8fdc\u4e0d\u7528\u90a3\u4e9b\u5b57\u5178\u4e2d\u7684\u5355\u8bcd\u3002\u4f7f\u7528\u957f\u5bc6\u7801\u6bd4\u77ed\u5bc6\u7801\u8981\u6765\u7684\u5b89\u5168\uff0c\u56e0\u4e3a\u5bc6\u7801\u8d8a\u957f\u8d8a\u96be\u731c\u6d4b\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u7ed9\u4f60\u4ecb\u7ecd\u51e0\u4e2a\u4e0d\u540c\u65b9\u6cd5\uff0c\u8ba9\u4f60\u53ef\u4ee5\u5728 Linux \u547d\u4ee4\u884c\u4e0b\u751f\u6210\u4e00\u4e2a\u9ad8\u5f3a\u5ea6\u5bc6\u7801\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"screenshot_36644_1000000\"<\/a><\/p>\n

\u4f7f\u7528 openssl \u751f\u6210\u9ad8\u5f3a\u5ea6\u5bc6\u7801<\/strong><\/div>\n

\u8fd9\u91cc\u4f7f\u7528 openssl \u7684 rand \u65b9\u6cd5\uff0c\u5b83\u4f1a\u751f\u6210\u4e00\u4e2a 14 \u4f4d\u5b57\u7b26\u7684\u968f\u673a\u5b57\u7b26\uff1a<\/p>\n

openssl rand -base64 14\r\n<\/pre>\n
\u4f7f\u7528 urandom \u751f\u6210\u9ad8\u5f3a\u5ea6\u5bc6\u7801<\/strong><\/div>\n

\u8fd9\u91cc\u6211\u4eec\u5c06\u4f7f\u7528tr \u6761\u4ef6\u6765\u8fc7\u6ee4\/dev\/urandom \u7684\u8f93\u51fa\uff0c\u4ece\u800c\u5220\u6389\u90a3\u4e9b\u4e0d\u60f3\u8981\u7684\u5b57\u7b26\uff0c\u5e76\u6253\u5370\u51fa\u7b2c\u4e00\u4e2a\u51fa\u73b0\u7684 14 \u4f4d\u5b57\u7b26\u3002<\/p>\n

< \/dev\/urandom tr -dc A-Za-z0-9 | head -c14; echo\r\n<\/pre>\n
\u4f7f\u7528 pwgen \u751f\u6210\u9ad8\u5f3a\u5ea6\u5bc6\u7801<\/strong><\/div>\n

pwgen \u662f\u4e00\u4e2a\u751f\u6210\u968f\u673a\u3001\u65e0\u7279\u6b8a\u542b\u4e49\u4f46\u53ef\u4ee5\u6b63\u5e38\u62fc\u8bfb\u7684\u5bc6\u7801\u3002<\/p>\n

\u5b89\u88c5 pwgen\u8fd0\u884c\uff1a<\/p>\n

sudo apt-get install pwgen\r\n<\/pre>\n

\u5b89\u88c5\u597d\u4e4b\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210\u4e00\u4e2a 14 \u4f4d\u968f\u673a\u5b57\u7b26\uff1a<\/p>\n

pwgen 14 1\r\n<\/pre>\n

\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6807\u8bb0\uff1a<\/p>\n