{"id":8670,"date":"2020-09-22T17:29:16","date_gmt":"2020-09-22T09:29:16","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8670"},"modified":"2020-09-22T22:07:32","modified_gmt":"2020-09-22T14:07:32","slug":"pwdhash","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pwdhash","title":{"rendered":"pwdhash\u547d\u4ee4 – \u5bc6\u7801\u54c8\u5e0c\u751f\u6210\u5668"},"content":{"rendered":"\n

pwdhash\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u5728LDIF\u5bc6\u7801\u5b57\u6bb5\u4e2d\u751f\u4ea7\u53ef\u4ee5\u4f7f\u7528\u7684\u5bc6\u7801\u54c8\u5e0c\u503c\u3002<\/p>\n\n\n\n

\u54c8\u5e0c\u503c\u662f\u4e00\u6bb5\u6570\u636e\u552f\u4e00\u4e14\u6781\u5176\u7d27\u51d1\u7684\u6570\u503c\u8868\u793a\u5f62\u5f0f\u3002\u5982\u679c\u6563\u5217\u4e00\u6bb5\u660e\u6587\u800c\u4e14\u54ea\u6015\u53ea\u66f4\u6539\u8be5\u6bb5\u843d\u7684\u4e00\u4e2a\u5b57\u6bcd\uff0c\u968f\u540e\u7684\u54c8\u5e0c\u90fd\u5c06\u4ea7\u751f\u4e0d\u540c\u7684\u503c\u3002\u8981\u627e\u5230\u6563\u5217\u4e3a\u540c\u4e00\u4e2a\u503c\u7684\u4e24\u4e2a\u4e0d\u540c\u7684\u8f93\u5165\uff0c\u5728\u8ba1\u7b97\u4e0a\u662f\u4e0d\u53ef\u80fd\u7684\uff0c\u6240\u4ee5\u6570\u636e\u7684\u54c8\u5e0c\u503c\u53ef\u4ee5\u68c0\u9a8c\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002\u4e00\u822c\u7528\u4e8e\u5feb\u901f\u67e5\u627e\u548c\u52a0\u5bc6\u7b97\u6cd5\u3002<\/p>\n\n\n\n

\u5728\u5bc6\u7801\u5b66\u4e2d\uff0chash\u7b97\u6cd5\u7684\u4f5c\u7528\u4e3b\u8981\u662f\u7528\u4e8e\u6d88\u606f\u6458\u8981\u548c\u7b7e\u540d\uff0c\u6362\u53e5\u8bdd\u8bf4\uff0c\u5b83\u4e3b\u8981\u7528\u4e8e\u5bf9\u6574\u4e2a\u6d88\u606f\u7684\u5b8c\u6574\u6027\u8fdb\u884c\u6821\u9a8c\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>pwdhash [\u53c2\u6570] [\u5bc6\u7801]<\/p>\n\n\n\n

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

-H<\/td>\u663e\u793a\u6458\u8981\u4fe1\u606f<\/td><\/tr>
-s<\u65b9\u6848><\/td>\u6307\u5b9a\u8981\u4f7f\u7528\u7684\u5bc6\u7801\u65b9\u6848\uff0c\u6bd4\u5982MD5\u3001SHA1\u3001SHA256\u3001SHA512\u3001SSHA\u3001SSHA256\u6216SSHA512<\/td><\/tr>
-c<\u5bc6\u7801><\u5bc6\u78012><\/td>\u5bf9\u5bc6\u7801\u8fdb\u884c\u6bd4\u8f83<\/td><\/tr>
-D<\u914d\u7f6e\u76ee\u5f55><\/td>\u4ecens-slapd\u914d\u7f6e\u76f4\u63a5\u8fdb\u5165\u5bc6\u7801\u6a21\u5f0f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u4ea7\u751f\u5bc6\u7801linuxcool\u7684\u54c8\u5e0c\u503c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pwdhash linuxcool<\/pre>\n\n\n\n

\u4ee5\u5bc6\u7801\u65b9\u6848MD5\u4ea7\u751f\u5bc6\u7801linuxcool\u7684\u54c8\u5e0c\u503c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pwdhash -s MD5 linuxcool<\/pre>\n\n\n\n

\u5bf9\u5bc6\u7801linuxcool\u548clinux\u4ea7\u751f\u7684\u54c8\u5e0c\u503c\u8fdb\u884c\u6bd4\u8f83\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pwdhash -c linuxcool linux<\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

pwdhash\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u5728LDIF\u5bc6\u7801\u5b57\u6bb5\u4e2d\u751f\u4ea7\u53ef\u4ee5\u4f7f\u7528\u7684\u5bc6\u7801\u54c8\u5e0c\u503c\u3002 \u54c8\u5e0c\u503c\u662f\u4e00\u6bb5\u6570\u636e\u552f\u4e00\u4e14\u6781\u5176\u7d27\u51d1\u7684 […]<\/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\/8670"}],"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=8670"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8670\/revisions"}],"predecessor-version":[{"id":8695,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8670\/revisions\/8695"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}