{"kind": "auth", "major": "18", "item": {"slug": "scram-sha-256", "name": "scram-sha-256", "name_zh": "", "category": "\u5bc6\u7801\u8ba4\u8bc1", "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "aliases": [], "content_hash": "82a5d3a2941b0cd0a8f4da9dfe9ebc30ab658c497a072649d336cfe10a32177c", "versions": {"10": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v10.23/postgresql-10.23.tar.bz2", "label": "10.23", "major": "10", "channel": "historical", "revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9", "source_sha256": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9", "catalog_fingerprint": "691be281b476dde4374d7f805b2bacc2e75bdef40f1e9d3d42e91f97fe95cfd0"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v10.23/postgresql-10.23.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, {"url": "/docs/10/auth-methods.html#AUTH-PASSWORD", "path": "auth-methods.html", "label": "PostgreSQL 10 English manual", "sha256": "856d36a3fdfe8c45a25832e49bd07e9b7480f2ff9a33e58ac7c392630149bc34"}, {"url": "/docs/10/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 10 English manual", "sha256": "04fed609a50e8fd3013ffebb83039c544d39b6c73a6c2b2e23cd7864a70b42da"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/10/auth-methods.html#AUTH-PASSWORD", "anchor": "AUTH-PASSWORD", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "auth-methods.html", "extraction": "exact-definition", "source_hash": "8fb4c6dc36608a9ecf52bdf7b36e63ea678b09c7cb90191e4752e62ba5911e49", "fragment_sha256": "f3ff2e38a2cdabfdd0cbd9a94d3abeccf557c19414fbfe569f831c1085170829", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "f16d9d13408ce09d41f859077b42303b82569206fa6eaa9cb44c62ede75bac42", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "10", "text_hash": "c3f989a23a10bfed855f035d31142bcc5ea6d09453fbc74f20d64759b27e1f5f", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/10/auth-methods.html#AUTH-PASSWORD", "anchor": "AUTH-PASSWORD", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "auth-methods.html", "extraction": "exact-definition", "source_hash": "8fb4c6dc36608a9ecf52bdf7b36e63ea678b09c7cb90191e4752e62ba5911e49", "fragment_sha256": "f3ff2e38a2cdabfdd0cbd9a94d3abeccf557c19414fbfe569f831c1085170829", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "f16d9d13408ce09d41f859077b42303b82569206fa6eaa9cb44c62ede75bac42", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p> <code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://tools.ietf.org/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/10/auth-methods.html#AUTH-PASSWORD\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "10", "link_map": {"/zh/docs/10/auth-methods.html#AUTH-PASSWORD": "/docs/10/auth-methods.html#AUTH-PASSWORD"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p> <code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://tools.ietf.org/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/10/auth-methods.html#AUTH-PASSWORD\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "2ded8220987574c7a64e0c0c81a2890f34bcf3ea21889425bd38237dccac42c1", "content_hash": "c3f989a23a10bfed855f035d31142bcc5ea6d09453fbc74f20d64759b27e1f5f", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/10/auth-methods.html#AUTH-PASSWORD", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/10/auth-methods.html", "method": "same-major semantic node", "sha256": "128b4f29cf06d6bde5b9e357daacb6d538044ee392e4aece0e31c90b0a37b647", "language": "zh", "matched_nodes": ["#AUTH-METHODS/div[1]/dl[0]/dt[1]", "#AUTH-METHODS/div[4]/div[5]/dl[0]/dd[1]", "#AUTH-METHODS/div[4]/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-METHODS/div[4]/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-METHODS/div[4]/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-METHODS/div[4]/div[5]/dl[0]/dd[3]/p[1]", "#AUTH-METHODS/div[4]/div[5]/dl[0]/dd[5]", "#AUTH-METHODS/div[4]/p[4]", "#AUTH-METHODS/div[4]/p[6]", "#AUTH-METHODS/div[4]/p[7]"]}], "language": "zh", "original_text": {"/versions/10/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.3.2 for details.", "/versions/10/facts/0/label": "Method", "/versions/10/facts/1/label": "Configuration", "/versions/10/facts/2/label": "Inventory", "/versions/10/facts/2/value": "User-visible source authentication method", "/versions/10/tables/0/title": "Documented method options and alternatives", "/versions/10/tables/0/columns/0/label": "Option or term", "/versions/10/tables/0/columns/1/label": "Meaning", "/versions/10/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/10/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. The md5 method cannot be used with the db_user_namespace feature. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead.", "/versions/10/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "92e0243ee5d0bd88f7aabf5685201358a678f561a5c1e5c14972c6c7bfbcd586", "canonical_center_text_hash": "c3f989a23a10bfed855f035d31142bcc5ea6d09453fbc74f20d64759b27e1f5f"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p> <code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://tools.ietf.org/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/10/auth-methods.html#AUTH-PASSWORD\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "11": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "label": "11.22", "major": "11", "channel": "historical", "revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0", "source_sha256": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0", "catalog_fingerprint": "8f21f4444b7f68923f4762af0eb7937fa2907026e91249483e79050de012c901"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, {"url": "/docs/11/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 11 English manual", "sha256": "06b509f1ece73d71706f82a9287080f645cf29152dfe38a3063d9640ccea54a5"}, {"url": "/docs/11/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 11 English manual", "sha256": "5477c61a002171f5b4c462052d91231c405f39d89d825faf71e52fbae358eef7"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/11/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "5817a52356f539dff0137e66b25288ad5ef86a1c333a7b8a6ee2f341593cd752", "fragment_sha256": "3b7605c67b473718314275672e6c3f55ac458eef02712fecf66d7cb700c8262c", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "12591c851caf889ab65e17cfb755e2ff67d25bfd1d8f62a5d92f83cabe108965", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "11", "text_hash": "19c5360a13e95e8bfcc9883398feadb54f59acef0169fa99b1051a52b1565982", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/11/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "5817a52356f539dff0137e66b25288ad5ef86a1c333a7b8a6ee2f341593cd752", "fragment_sha256": "3b7605c67b473718314275672e6c3f55ac458eef02712fecf66d7cb700c8262c", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "12591c851caf889ab65e17cfb755e2ff67d25bfd1d8f62a5d92f83cabe108965", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://tools.ietf.org/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/11/auth-password.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "11", "link_map": {"/zh/docs/11/auth-password.html": "/docs/11/auth-password.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://tools.ietf.org/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/11/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "9156fa81c7ca5e2ea5b09972b5c813a86c385ce56be3dc037be5185163b591f0", "content_hash": "19c5360a13e95e8bfcc9883398feadb54f59acef0169fa99b1051a52b1565982", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/11/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/11/auth-password.html", "method": "same-major semantic node", "sha256": "574e51cfe365412d1caa2c761af5fabfc6066e7dac7d989121284e12ce38d083", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/11/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.5 for details.", "/versions/11/facts/0/label": "Method", "/versions/11/facts/1/label": "Configuration", "/versions/11/facts/2/label": "Inventory", "/versions/11/facts/2/value": "User-visible source authentication method", "/versions/11/tables/0/title": "Documented method options and alternatives", "/versions/11/tables/0/columns/0/label": "Option or term", "/versions/11/tables/0/columns/1/label": "Meaning", "/versions/11/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/11/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. The md5 method cannot be used with the db_user_namespace feature. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead.", "/versions/11/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "acde9ccb09fa975b366f1cd07546612a30b0a1ad9b61fd54a6b5a82a8e7dc2b0", "canonical_center_text_hash": "19c5360a13e95e8bfcc9883398feadb54f59acef0169fa99b1051a52b1565982"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://tools.ietf.org/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/11/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "12": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "12.22", "major": "12", "channel": "historical", "revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b", "source_sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b", "catalog_fingerprint": "9f857f4ee4875f9c7de6bfc9df4b757dec8b3a0bb88eadb519c7bd267bd56149"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, {"url": "/docs/12/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 12 English manual", "sha256": "e1fba06a81ce077a266c8852e9090a4a1521207479d17e24a55068099fb9eb65"}, {"url": "/docs/12/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 12 English manual", "sha256": "07e8cddcb38076c86dab95b72c4380a7a325f22401b5b7f9af5dd4931876f2cb"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/12/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "7a2aeb0fa9b32cce91d726e3110daaceefac6bf74875853d457cabf014bff17a", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "616b63ed507705c5032bf0be09e96d57df6fff36ac88597904931b79d69ebdf0", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "12", "text_hash": "1d9791c5485f488a58596ef79807cdaaa054c4c3d60d591f76b7844d6a204a1c", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/12/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "7a2aeb0fa9b32cce91d726e3110daaceefac6bf74875853d457cabf014bff17a", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "616b63ed507705c5032bf0be09e96d57df6fff36ac88597904931b79d69ebdf0", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/12/auth-password.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "12", "link_map": {"/zh/docs/12/auth-password.html": "/docs/12/auth-password.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/12/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "bd93ffb24676832e7eee3c116115cd0a9018a29c5d01a654a06337be78755c6e", "content_hash": "1d9791c5485f488a58596ef79807cdaaa054c4c3d60d591f76b7844d6a204a1c", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/12/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/12/auth-password.html", "method": "same-major semantic node", "sha256": "70ec6bb6764528c28a8a1e45b9d394b8bafbef9740d5c2ac182076656c789771", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.5 for details.", "/versions/12/facts/0/label": "Method", "/versions/12/facts/1/label": "Configuration", "/versions/12/facts/2/label": "Inventory", "/versions/12/facts/2/value": "User-visible source authentication method", "/versions/12/tables/0/title": "Documented method options and alternatives", "/versions/12/tables/0/columns/0/label": "Option or term", "/versions/12/tables/0/columns/1/label": "Meaning", "/versions/12/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/12/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. The md5 method cannot be used with the db_user_namespace feature. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead.", "/versions/12/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "40e91c95ddd5d90cfced8738704f3b18e7a1c4dc19079196ae7818dedbe144e7", "canonical_center_text_hash": "1d9791c5485f488a58596ef79807cdaaa054c4c3d60d591f76b7844d6a204a1c"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/12/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "13": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "13.23", "major": "13", "channel": "historical", "revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6", "source_sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6", "catalog_fingerprint": "c7015c845255c9d721c547c8ab9ef37825d332588c9691d982e6906b7d571002"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, {"url": "/docs/13/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 13 English manual", "sha256": "7dc40d4c26e2dbb20902a9b975ba37437baf8433804400191badd8487fe0eab6"}, {"url": "/docs/13/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 13 English manual", "sha256": "3cc6ce851945cba450e6b26ecf9cae1efd3c03fb7b55e17876f4d9ea418a7c2e"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/13/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "8aa4361fd13dcea52c1b49b3404242bd6aefbc2610c34b251a28f12c5c8ffda1", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "0b3718de7907af372122ca24e3212725a6e1576c2fb1a050f853ff438d2879b2", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "13", "text_hash": "7719cd321bd1b7fc64bb9e1cd7c4d91162e392f4f609a70440f6be1a7f7ce0d6", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/13/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "8aa4361fd13dcea52c1b49b3404242bd6aefbc2610c34b251a28f12c5c8ffda1", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "0b3718de7907af372122ca24e3212725a6e1576c2fb1a050f853ff438d2879b2", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/13/auth-password.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "13", "link_map": {"/zh/docs/13/auth-password.html": "/docs/13/auth-password.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/13/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "2666535ad159ec04304643e28401a1cc7daf4d4815733d7a7ecb526bedbccbb8", "content_hash": "7719cd321bd1b7fc64bb9e1cd7c4d91162e392f4f609a70440f6be1a7f7ce0d6", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/13/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/13/auth-password.html", "method": "same-major semantic node", "sha256": "b4dc6d908b5797014a6ffb37d0ffb97e56b6ffc54d73d659a6fb4dc2663c2369", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.5 for details.", "/versions/13/facts/0/label": "Method", "/versions/13/facts/1/label": "Configuration", "/versions/13/facts/2/label": "Inventory", "/versions/13/facts/2/value": "User-visible source authentication method", "/versions/13/tables/0/title": "Documented method options and alternatives", "/versions/13/tables/0/columns/0/label": "Option or term", "/versions/13/tables/0/columns/1/label": "Meaning", "/versions/13/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/13/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. The md5 method cannot be used with the db_user_namespace feature. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead.", "/versions/13/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "3d4575e53ec76917b1e1be2a64f1b4c8cf01631579ee1d012ee68053340e7d92", "canonical_center_text_hash": "7719cd321bd1b7fc64bb9e1cd7c4d91162e392f4f609a70440f6be1a7f7ce0d6"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/13/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "14": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "14.24", "major": "14", "channel": "stable", "revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897", "source_sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897", "catalog_fingerprint": "b272e6a82e4c46efda81c3a6a4cdf7de6a83dfff7f02f226a392fbe9acdd3adb"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, {"url": "/docs/14/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 14 English manual", "sha256": "fc4a9c1cae83361299edd3c455f2c74b08be1999411c7c7beeab07ffe27c72b1"}, {"url": "/docs/14/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 14 English manual", "sha256": "c9a75f04fd4a1069ea261ba061578a75c47a4b7e0bbf88761502fd4c19ccbc3f"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "1b06d40fce99e27262e93618c487f0ab38e013631744389d7cbbb822b7c88265", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "18d9089de320fdabc90d8b6d8153c58dc4faf448102d56318273f528bf8f0f45", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "14", "text_hash": "10097304159acb2058b2ee403f175831430c34663f42657dbb6d19ed5dc1fc8a", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "1b06d40fce99e27262e93618c487f0ab38e013631744389d7cbbb822b7c88265", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "18d9089de320fdabc90d8b6d8153c58dc4faf448102d56318273f528bf8f0f45", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/14/auth-password.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "14", "link_map": {"/zh/docs/14/auth-password.html": "/docs/14/auth-password.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/14/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "d9247b06494e3512f5492ffe5fd524e645b0056c30987f25034de7be33cdfa25", "content_hash": "10097304159acb2058b2ee403f175831430c34663f42657dbb6d19ed5dc1fc8a", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/14/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/14/auth-password.html", "method": "same-major semantic node", "sha256": "a941ef11a441ac54a8c838b73f61d7035861bbd5ed7d36175ff72b20549d98ee", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 21.5 for details.", "/versions/14/facts/0/label": "Method", "/versions/14/facts/1/label": "Configuration", "/versions/14/facts/2/label": "Inventory", "/versions/14/facts/2/value": "User-visible source authentication method", "/versions/14/tables/0/title": "Documented method options and alternatives", "/versions/14/tables/0/columns/0/label": "Option or term", "/versions/14/tables/0/columns/1/label": "Meaning", "/versions/14/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/14/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. The md5 method cannot be used with the db_user_namespace feature. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead.", "/versions/14/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "f146d0ae1539d975f32a61d21c418bea4102fd4d413c88d838ee12c8e91e668f", "canonical_center_text_hash": "10097304159acb2058b2ee403f175831430c34663f42657dbb6d19ed5dc1fc8a"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/14/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "15": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "15.19", "major": "15", "channel": "stable", "revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89", "source_sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89", "catalog_fingerprint": "fefe3c425147a86defada190c9b0663cfe02caa1724f5dede93e46457572252d"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, {"url": "/docs/15/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 15 English manual", "sha256": "db530ef64e642d0f0ec06159d6cf49973161d0ebb40ef5700f8e1b64093ee2f2"}, {"url": "/docs/15/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 15 English manual", "sha256": "0470cd3eeb82cbc32d4b8b79e29f4427bdfd01f5bb15e6d9b7cee2f6dd2bba44"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "cd522f6d7330c4416e09c339c4169926ba3f9eb7556a86a01257c63dc1e380f4", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "0e56afabc291a133f3b473585cff2a22c44c5b69b70ffe5e0029cec7d6ac66f2", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "15", "text_hash": "92af8dec9a9d5a1c8f4834512a21b4157198dc828f6af7cff063976d4a4b29cf", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "cd522f6d7330c4416e09c339c4169926ba3f9eb7556a86a01257c63dc1e380f4", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "0e56afabc291a133f3b473585cff2a22c44c5b69b70ffe5e0029cec7d6ac66f2", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/15/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "15", "link_map": {"/zh/docs/15/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29": "/docs/15/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/15/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "bc989d39cfefcf3aa9d176b72aa3f30cd2d0b259b2b63f019e8c49c6a9ed63d3", "content_hash": "92af8dec9a9d5a1c8f4834512a21b4157198dc828f6af7cff063976d4a4b29cf", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/15/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/15/auth-password.html", "method": "same-major semantic node", "sha256": "7444a760d1ec1b4ead0d482e91e83336ec15164a87cef4faa558298a07884794", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 21.5 for details.", "/versions/15/facts/0/label": "Method", "/versions/15/facts/1/label": "Configuration", "/versions/15/facts/2/label": "Inventory", "/versions/15/facts/2/value": "User-visible source authentication method", "/versions/15/tables/0/title": "Documented method options and alternatives", "/versions/15/tables/0/columns/0/label": "Option or term", "/versions/15/tables/0/columns/1/label": "Meaning", "/versions/15/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/15/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. The md5 method cannot be used with the db_user_namespace feature. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead.", "/versions/15/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "f3ac35301f4b53696fcec142a838986a9c2919109adc8c6fd8d5a70cb82a3480", "canonical_center_text_hash": "92af8dec9a9d5a1c8f4834512a21b4157198dc828f6af7cff063976d4a4b29cf"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/15/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "16": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "16.15", "major": "16", "channel": "stable", "revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed", "source_sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed", "catalog_fingerprint": "fa133458dc8f52e15083b4f59b7a582e2e378b608d3ac5c53054df458a374e23"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, {"url": "/docs/16/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 16 English manual", "sha256": "1e33b5a05b349634266e1e433229d99ff7476113634574cf861c050039e7cead"}, {"url": "/docs/16/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 16 English manual", "sha256": "ccc5146375a184646d5992edbc693e12c0de4431a35141d6b56c8dd6b3c52132"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "a81f8934f342142414b4e891201263f5d28dea798d63a9b71b2878aabd5ec700", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "639545b05162e25c11e46a5bd94f64e5feecde2880c06fa92dd6ccbd7845bc7b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "16", "text_hash": "f3d48ab01274987d85286e7bbdecfc3cf3d44ccda4087ca2004821971e3b6aeb", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/auth-password.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "a81f8934f342142414b4e891201263f5d28dea798d63a9b71b2878aabd5ec700", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "639545b05162e25c11e46a5bd94f64e5feecde2880c06fa92dd6ccbd7845bc7b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/16/auth-password.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "16", "link_map": {"/zh/docs/16/auth-password.html": "/docs/16/auth-password.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/16/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "bcd0ba079cb8c94eaa315b48e4f5c8c91d1038795497aa55feae0cd648392d2a", "content_hash": "f3d48ab01274987d85286e7bbdecfc3cf3d44ccda4087ca2004821971e3b6aeb", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002md5 \u65b9\u6cd5\u4e0d\u80fd\u4e0e db_user_namespace \u529f\u80fd\u4e00\u8d77\u4f7f\u7528\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/16/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/16/auth-password.html", "method": "same-major semantic node", "sha256": "c319a3ca0103170741767cd9fc7a1ff870c4db01ad67119bb5758353c1ace349", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 21.5 for details.", "/versions/16/facts/0/label": "Method", "/versions/16/facts/1/label": "Configuration", "/versions/16/facts/2/label": "Inventory", "/versions/16/facts/2/value": "User-visible source authentication method", "/versions/16/tables/0/title": "Documented method options and alternatives", "/versions/16/tables/0/columns/0/label": "Option or term", "/versions/16/tables/0/columns/1/label": "Meaning", "/versions/16/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/16/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. The md5 method cannot be used with the db_user_namespace feature. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead.", "/versions/16/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "bdafcca0d9ae60bccd049e9f509ea01cf5a6893fc599372fd32f1337a9f2874e", "canonical_center_text_hash": "f3d48ab01274987d85286e7bbdecfc3cf3d44ccda4087ca2004821971e3b6aeb"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/16/auth-password.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "17": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "17.11", "major": "17", "channel": "stable", "revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979", "source_sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979", "catalog_fingerprint": "4bbe3ac77becd618478f66aec420a533e9017be356c5c1d51a4b17f0fd497c07"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, {"url": "/docs/17/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 17 English manual", "sha256": "8c8ce306f8374b07ecb4ff1437de39d401e20243db1dacd3ac898d5478e530a1"}, {"url": "/docs/17/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 17 English manual", "sha256": "00c7a7c25d46aa1b2f24cd744cd4990ca4218cfafed2a4cab8c1dc1092090bba"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "0f5fc3d0fba560a15d2859f5e9aa685bd612c657827cddc50440709f7a1165f0", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "8a6568be9ed54952075ba0cfb986d60d7929da8f5d0185971878ad23a1bee916", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "17", "text_hash": "93619203c75f9a53d75b6771d9dcbef076c001e8f4010cf2e387fcc3c16ae501", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "0f5fc3d0fba560a15d2859f5e9aa685bd612c657827cddc50440709f7a1165f0", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "8a6568be9ed54952075ba0cfb986d60d7929da8f5d0185971878ad23a1bee916", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/17/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "17", "link_map": {"/zh/docs/17/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29": "/docs/17/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/17/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "bae0dc3369a6581fee4aedd035d5b5cfac1b615327ed56b011889474e92b93ce", "content_hash": "93619203c75f9a53d75b6771d9dcbef076c001e8f4010cf2e387fcc3c16ae501", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/17/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/17/auth-password.html", "method": "same-major semantic node", "sha256": "2bc3681f0f3117bcb93813f098e473dd5aa1a46ef4c8dc10516a3015651dc6b0", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.5 for details.", "/versions/17/facts/0/label": "Method", "/versions/17/facts/1/label": "Configuration", "/versions/17/facts/2/label": "Inventory", "/versions/17/facts/2/value": "User-visible source authentication method", "/versions/17/tables/0/title": "Documented method options and alternatives", "/versions/17/tables/0/columns/0/label": "Option or term", "/versions/17/tables/0/columns/1/label": "Meaning", "/versions/17/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/17/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead.", "/versions/17/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "69c9845d47a339316a552169531dae4f267652fae1cdfafe9a43d38ae659f7db", "canonical_center_text_hash": "93619203c75f9a53d75b6771d9dcbef076c001e8f4010cf2e387fcc3c16ae501"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/17/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "18": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "catalog_fingerprint": "65c93d6048ef30e61023a84f9680fa6a92b1c383b7eb226741170077eb078502"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, {"url": "/docs/18/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 18 English manual", "sha256": "89d87aa104ffde4d6ddb753032794cc5924db149179845d97788e0999e0971c1"}, {"url": "/docs/18/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 18 English manual", "sha256": "6340d4abea2e0a3482afc31bcd1599a0fa10dc28a6f1e05d79ba831e2dd0b4c9"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "795bbe354b786a2c87c46b378ea587634b8735effb01fed68a65957ac1599deb", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "a460788a445ffd964f2261a6298f4da298bfcf6694b31a1fbee5a60865a2a05e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "18", "text_hash": "d94ea05ca81942e683977683e62f648b6f737372e8fd843452e5a5add51c2ebf", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "795bbe354b786a2c87c46b378ea587634b8735effb01fed68a65957ac1599deb", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "a460788a445ffd964f2261a6298f4da298bfcf6694b31a1fbee5a60865a2a05e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "18", "link_map": {"/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29": "/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "328ea30f4cadf9eca4e3b619de6a114b5f32d0f1731f3f9f69cdee8eeba9a527", "content_hash": "d94ea05ca81942e683977683e62f648b6f737372e8fd843452e5a5add51c2ebf", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/18/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/auth-password.html", "method": "same-major semantic node", "sha256": "033ef5142713a61e9d92f15f25197231bf458e50f7e8c2fefaca46c0f070aab0", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/div[2]/h3[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/div[2]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.5 for details.", "/versions/18/facts/0/label": "Method", "/versions/18/facts/1/label": "Configuration", "/versions/18/facts/2/label": "Inventory", "/versions/18/facts/2/value": "User-visible source authentication method", "/versions/18/tables/0/title": "Documented method options and alternatives", "/versions/18/tables/0/columns/0/label": "Option or term", "/versions/18/tables/0/columns/1/label": "Meaning", "/versions/18/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/18/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead. Warning Support for MD5-encrypted passwords is deprecated and will be removed in a future release of PostgreSQL . Refer to the text below for details about migrating to another password type.", "/versions/18/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "f6af536d2d2df676ad567084223ac42a2b2364b6bda75cc35175bafa1543c51b", "canonical_center_text_hash": "d94ea05ca81942e683977683e62f648b6f737372e8fd843452e5a5add51c2ebf"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "19": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v19rc1/postgresql-19rc1.tar.bz2", "label": "19rc1", "major": "19", "channel": "preview", "revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "source_sha256": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "catalog_fingerprint": "62fbf1a3689dbe8bf7e6b3372cfe6fbf867581427b3858a94c8419b77a4d2d1d"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v19rc1/postgresql-19rc1.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, {"url": "/docs/19/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 19 English manual", "sha256": "bfd4a8a82d1f8a6fae9f2fb713c3aa26de95df12b3e1c3094a12db3a320f85d1"}, {"url": "/docs/19/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 19 English manual", "sha256": "f61179425c2d8330655f93b616bddb2ab518eeb12ebe4bc77af4a3af78399eeb"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/19/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "daf33b4b1466267ade6df3684faee01e7b632c79a347f5a855bdc6c17cd4d6ab", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "c4461f54ff411d63eade1532ff869feed3ef5f497beefc3fa3553183d3ce3baa", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "19", "text_hash": "18f281d7c71f7cfc5902260f867f8b1c8df84e4177a4c5463069a2fb57ca9150", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/19/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "daf33b4b1466267ade6df3684faee01e7b632c79a347f5a855bdc6c17cd4d6ab", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "c4461f54ff411d63eade1532ff869feed3ef5f497beefc3fa3553183d3ce3baa", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/19/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "19", "link_map": {"/zh/docs/19/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29": "/docs/19/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/19/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "6bcb22000e1c45c2e3b097197ef893dc09ff43ed403ff98d1a5095a298b3dcef", "content_hash": "18f281d7c71f7cfc5902260f867f8b1c8df84e4177a4c5463069a2fb57ca9150", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/19/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/19/auth-password.html", "method": "same-major semantic node", "sha256": "444f995deb639764ea4f0b47315e0e23bce773d9826e593daa84e4709a89b484", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/div[2]/h3[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/div[2]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.5 for details.", "/versions/19/facts/0/label": "Method", "/versions/19/facts/1/label": "Configuration", "/versions/19/facts/2/label": "Inventory", "/versions/19/facts/2/value": "User-visible source authentication method", "/versions/19/tables/0/title": "Documented method options and alternatives", "/versions/19/tables/0/columns/0/label": "Option or term", "/versions/19/tables/0/columns/1/label": "Meaning", "/versions/19/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/19/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead. Warning Support for MD5-encrypted passwords is deprecated and will be removed in a future release of PostgreSQL . Refer to the text below for details about migrating to another password type.", "/versions/19/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "3dd113ef8fe0ea210d170fda79a8a398f7fff3e0ba122b08793f0e968d98c6f1", "canonical_center_text_hash": "18f281d7c71f7cfc5902260f867f8b1c8df84e4177a4c5463069a2fb57ca9150"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/19/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "entity membership and source-derived facts; presentation markup normalized", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "previous_source_revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}}, "20": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "20devel", "major": "20", "channel": "devel", "revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "source_sha256": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "catalog_fingerprint": "1ae459dc2ba59b6e0a27d5cbeebb27c417dd0be8ddf853fb0c1e533d4e449c9a"}, "sources": [{"url": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, {"url": "/docs/devel/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 20 English manual", "sha256": "b548bfb1e9e6c52d68b494fdb55b5504b7928ce5c62c76de3aecd7c863bb3ea2"}, {"url": "/docs/devel/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 20 English manual", "sha256": "aab989aead70e54ad4d37cb6d40b6a1aa370868177becdc759e6977d1074e02d"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/devel/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "58c287009c4a93f02d5698767c27669f87adae802eb8f26b08670a31e1faba7c", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "28609efd3cba0443521e59466c559a505c320844dfdc0c205e8390c03861cba5", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "20", "text_hash": "83ca6ae07a4120af5f98bdf5f6e7bb155fe016ecf99f4fe0d9b0b8f3db6a90ce", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/devel/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "58c287009c4a93f02d5698767c27669f87adae802eb8f26b08670a31e1faba7c", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "28609efd3cba0443521e59466c559a505c320844dfdc0c205e8390c03861cba5", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/devel/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "20", "link_map": {"/zh/docs/devel/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29": "/docs/devel/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/devel/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "351de41c24e84e72d4caae21f917ab42605accbf730ff3fabfc1292befeee9ec", "content_hash": "83ca6ae07a4120af5f98bdf5f6e7bb155fe016ecf99f4fe0d9b0b8f3db6a90ce", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/devel/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/devel/auth-password.html", "method": "same-major semantic node", "sha256": "3564fcac9148461e1a979239ae53e050a4cb099089cf40c997c9c698159007f9", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/div[2]/h3[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/div[2]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/summary": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.5 for details.", "/category": "Password authentication", "/versions/20/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.5 for details.", "/versions/20/facts/0/label": "Method", "/versions/20/facts/1/label": "Configuration", "/versions/20/facts/2/label": "Inventory", "/versions/20/facts/2/value": "User-visible source authentication method", "/versions/20/tables/0/title": "Documented method options and alternatives", "/versions/20/tables/0/columns/0/label": "Option or term", "/versions/20/tables/0/columns/1/label": "Meaning", "/versions/20/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/20/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead. Warning Support for MD5-encrypted passwords is deprecated and will be removed in a future release of PostgreSQL . Refer to the text below for details about migrating to another password type.", "/versions/20/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "8bc4f0b9acc7c3621aa806580c810e1fcde336c38ce27dff17c594af1a6108a5", "canonical_center_text_hash": "83ca6ae07a4120af5f98bdf5f6e7bb155fe016ecf99f4fe0d9b0b8f3db6a90ce"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/devel/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "entity membership and source-derived facts; presentation markup normalized", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "previous_source_revision": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}}}}, "snapshot": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "catalog_fingerprint": "65c93d6048ef30e61023a84f9680fa6a92b1c383b7eb226741170077eb078502"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, {"url": "/docs/18/auth-password.html", "path": "auth-password.html", "label": "PostgreSQL 18 English manual", "sha256": "89d87aa104ffde4d6ddb753032794cc5924db149179845d97788e0999e0971c1"}, {"url": "/docs/18/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 18 English manual", "sha256": "6340d4abea2e0a3482afc31bcd1599a0fa10dc28a6f1e05d79ba831e2dd0b4c9"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "795bbe354b786a2c87c46b378ea587634b8735effb01fed68a65957ac1599deb", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "a460788a445ffd964f2261a6298f4da298bfcf6694b31a1fbee5a60865a2a05e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "scram-sha-256", "locale": "zh-Hans", "source": {"key": "scram-sha-256", "locale": "zh-Hans", "version": "18", "text_hash": "d94ea05ca81942e683977683e62f648b6f737372e8fd843452e5a5add51c2ebf", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "scram-sha-256"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "anchor": "ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-password.html", "extraction": "exact-definition", "source_hash": "795bbe354b786a2c87c46b378ea587634b8735effb01fed68a65957ac1599deb", "fragment_sha256": "a79da18e7f7008eff4de8168a79b916d3f7748051dd596cde0477fdcf48e2da4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "a460788a445ffd964f2261a6298f4da298bfcf6694b31a1fbee5a60865a2a05e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code class=\"literal\">scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a class=\"ulink\" href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "version": "18", "link_map": {"/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29": "/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "328ea30f4cadf9eca4e3b619de6a114b5f32d0f1731f3f9f69cdee8eeba9a527", "content_hash": "d94ea05ca81942e683977683e62f648b6f737372e8fd843452e5a5add51c2ebf", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "scram-sha-256", "description": "scram-sha-256 \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 RFC 7677 \u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002 \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002"}, {"name": "md5", "description": "md5 \u65b9\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e14\u5b89\u5168\u6027\u8f83\u5f31\u7684\u6311\u6218\u54cd\u5e94\u673a\u5236\u3002\u5b83\u80fd\u9632\u6b62\u5bc6\u7801\u55c5\u63a2\uff0c\u907f\u514d\u670d\u52a1\u5668\u660e\u6587\u5b58\u50a8\u5bc6\u7801\uff1b\u4f46\u653b\u51fb\u8005\u4e00\u65e6\u7a83\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u5bc6\u7801\u54c8\u5e0c\uff0c\u5c31\u65e0\u6cd5\u63d0\u4f9b\u4fdd\u62a4\u3002\u6b64\u5916\uff0cMD5 \u54c8\u5e0c\u7b97\u6cd5\u5982\u4eca\u5df2\u4e0d\u518d\u88ab\u8ba4\u4e3a\u80fd\u5b89\u5168\u62b5\u5fa1\u6709\u9488\u5bf9\u6027\u7684\u653b\u51fb\u3002\u4e3a\u4fbf\u4e8e\u4ece md5 \u8fc1\u79fb\u5230\u8f83\u65b0\u7684 SCRAM \u65b9\u6cd5\uff0c\u5982\u679c pg_hba.conf \u4e2d\u6307\u5b9a md5\uff0c\u4f46\u670d\u52a1\u5668\u4e0a\u8be5\u7528\u6237\u7684\u5bc6\u7801\u91c7\u7528 SCRAM \u52a0\u5bc6\u5b58\u50a8\uff08\u89c1\u4e0b\u6587\uff09\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6539\u7528\u57fa\u4e8e SCRAM \u7684\u8ba4\u8bc1\u3002\u8b66\u544a\uff1a\u5bf9 MD5 \u52a0\u5bc6\u5bc6\u7801\u7684\u652f\u6301\u5df2\u5f03\u7528\uff0c\u5c06\u5728 PostgreSQL \u7684\u672a\u6765\u7248\u672c\u4e2d\u79fb\u9664\u3002\u8fc1\u79fb\u5230\u5176\u4ed6\u5bc6\u7801\u7c7b\u578b\u7684\u65b9\u6cd5\u53c2\u89c1\u4e0b\u6587\u3002"}, {"name": "password", "description": "\u65b9\u6cd5 password \u4ee5\u660e\u6587\u5f62\u5f0f\u53d1\u9001\u5bc6\u7801\uff0c\u56e0\u6b64\u5b83\u5bb9\u6613\u53d7\u5230\u5bc6\u7801 \u201c \u55c5\u63a2 \u201d \u653b\u51fb\u3002\u5982\u679c\u53ef\u80fd\u5e94\u8be5\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5b83\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u8fde\u63a5\u88abSSL\u52a0\u5bc6\u4fdd\u62a4\u7740\uff0c\u90a3\u4e48\u53ef\u4ee5\u5b89\u5168\u5730\u4f7f\u7528 password \uff08\u4e0d\u8fc7\u5982\u679c\u4f9d\u9760SSL\uff0cSSL\u8bc1\u4e66\u8ba4\u8bc1\u53ef\u80fd\u662f\u66f4\u597d\u7684\u9009\u62e9\uff09\u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "scram-sha-256", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002"], "manual_html": "", "manual_path": "/docs/18/auth-password.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/auth-password.html", "method": "same-major semantic node", "sha256": "033ef5142713a61e9d92f15f25197231bf458e50f7e8c2fefaca46c0f070aab0", "language": "zh", "matched_nodes": ["#AUTH-PASSWORD/div[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[1]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/div[2]/h3[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/div[2]/p[1]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[3]/p[0]", "#AUTH-PASSWORD/div[5]/dl[0]/dd[5]", "#AUTH-PASSWORD/p[4]", "#AUTH-PASSWORD/p[6]", "#AUTH-PASSWORD/p[7]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Perform SCRAM-SHA-256 authentication to verify the user's password. See Section 20.5 for details.", "/versions/18/facts/0/label": "Method", "/versions/18/facts/1/label": "Configuration", "/versions/18/facts/2/label": "Inventory", "/versions/18/facts/2/value": "User-visible source authentication method", "/versions/18/tables/0/title": "Documented method options and alternatives", "/versions/18/tables/0/columns/0/label": "Option or term", "/versions/18/tables/0/columns/1/label": "Meaning", "/versions/18/tables/0/rows/0/description": "The method scram-sha-256 performs SCRAM-SHA-256 authentication, as described in RFC 7677 . It is a challenge-response scheme that prevents password sniffing on untrusted connections and supports storing passwords on the server in a cryptographically hashed form that is thought to be secure. This is the most secure of the currently provided methods, but it is not supported by older client libraries.", "/versions/18/tables/0/rows/1/description": "The method md5 uses a custom less secure challenge-response mechanism. It prevents password sniffing and avoids storing passwords on the server in plain text but provides no protection if an attacker manages to steal the password hash from the server. Also, the MD5 hash algorithm is nowadays no longer considered secure against determined attacks. To ease transition from the md5 method to the newer SCRAM method, if md5 is specified as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM (see below), then SCRAM-based authentication will automatically be chosen instead. Warning Support for MD5-encrypted passwords is deprecated and will be removed in a future release of PostgreSQL . Refer to the text below for details about migrating to another password type.", "/versions/18/tables/0/rows/2/description": "The method password sends the password in clear-text and is therefore vulnerable to password \u201c sniffing \u201d attacks. It should always be avoided if possible. If the connection is protected by SSL encryption then password can be used safely, though. (Though SSL certificate authentication might be a better choice if one is depending on using SSL)."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "f6af536d2d2df676ad567084223ac42a2b2364b6bda75cc35175bafa1543c51b", "canonical_center_text_hash": "d94ea05ca81942e683977683e62f648b6f737372e8fd843452e5a5add51c2ebf"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002", "comparison_data": {"method": "scram-sha-256", "documented_option_names": ["md5", "password", "scram-sha-256"]}, "comparison_hash": "c8064f1480a20ad588ae6df0229559199fd23ad2c0080e9d812ce710d1292dcf", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\" rel=\"nofollow\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/zh/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u8ba4\u8bc1\u65b9\u6cd5 scram-sha-256\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>scram-sha-256</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><dd><p>\n<code>scram-sha-256</code> \u65b9\u6cd5\u6267\u884c SCRAM-SHA-256 \u8ba4\u8bc1\uff0c\u5176\u5b9a\u4e49\u89c1 <a href=\"https://datatracker.ietf.org/doc/html/rfc7677\">RFC 7677</a>\u3002\u5b83\u662f\u4e00\u79cd\u6311\u6218-\u54cd\u5e94\u65b9\u6848\uff0c\u53ef\u9632\u6b62\u5728\u4e0d\u53d7\u4fe1\u4efb\u8fde\u63a5\u4e0a\u55c5\u63a2\u5bc6\u7801\uff0c\u5e76\u652f\u6301\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u88ab\u8ba4\u4e3a\u5b89\u5168\u7684\u5bc6\u7801\u5b66 hash \u5f62\u5f0f\u5b58\u50a8\u5bc6\u7801\u3002\n      </p><p>\n       \u8fd9\u662f\u5f53\u524d\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e2d\u6700\u5b89\u5168\u7684\u4e00\u79cd\uff0c\u4f46\u662f\u65e7\u7684\u5ba2\u6237\u7aef\u5e93\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002\n      </p></dd><p><a href=\"/docs/18/auth-password.html#ZH18-AUTO-CLIENT-AUTH-VARLISTENTRY-29\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}