{"id":59,"date":"2014-08-24T00:15:04","date_gmt":"2014-08-23T16:15:04","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=59"},"modified":"2014-08-24T00:15:04","modified_gmt":"2014-08-23T16:15:04","slug":"postgresql-md5-%e5%8a%a0%e5%af%86%e9%aa%8c%e8%af%81%e7%ae%97%e6%b3%95%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=59","title":{"rendered":"PostgreSQL MD5 \u52a0\u5bc6\u9a8c\u8bc1\u7b97\u6cd5\u5206\u6790"},"content":{"rendered":"<p style=\"color: #454545;\">\u00a0 \u00a0 \u56e0\u4e3aQDAC 3.0\u91cc\uff0cPostgreSQL\u4e0d\u6253\u7b97\u7ee7\u7eed\u5e26\u4e00\u5927\u5806\u52a8\u6001\u94fe\u63a5\u5e93\uff0c\u6240\u4ee5\u9a71\u52a8\u6253\u7b97\u76f4\u63a5\u5199\u3002\u5f00\u6e90\u7684\u597d\u5904\u5c31\u662f\u53ef\u4ee5\u62ff\u5230\u6e90\u7801\u6765\u5206\u6790\uff0c\u7136\u540e\u5199\u51fa\u81ea\u5df1\u7684\u5b9e\u73b0\u3002<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 \u6211\u4eec\u9996\u5148\u6765\u770bPostgreSQL\u7684\u767b\u5f55\u8fc7\u7a0b\uff08\u975eSSL\u65b9\u5f0f\uff09\uff1a<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 1\u3001\u53d1\u9001\u521d\u59cb\u5316\u6570\u636e\u5305\uff0c\u544a\u8bc9\u670d\u52a1\u5668\u6211\u4eec\u662f\u8c01\uff0c\u8981\u8fde\u90a3\u4e2a\u6570\u636e\u5e93\u53ca\u4e00\u4e9b\u989d\u5916\u7684\u53c2\u6570\u3002<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 2\u3001\u5982\u679c\u6ca1\u6709\u95ee\u9898\uff0c\u670d\u52a1\u56de\u9001\u4e00\u4e2a\u6570\u636e\u5305\uff0c\u544a\u8bc9\u5ba2\u6237\u7aef\uff0c\u6211\u63a5\u53d7\u4f60\u90a3\u4e9b\u5bc6\u7801\u9a8c\u8bc1\u65b9\u5f0f\u53ca\u521d\u59cb\u53c2\u6570\u3002<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 3\u3001\u5ba2\u6237\u7aef\u6839\u636e\u8fd4\u56de\u7684\u503c\uff0c\u7136\u540e\u9700\u8981\u7684\u5bc6\u7801\u53d1\u9001\u7ed9\u670d\u52a1\u5668\u7aef\u3002<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 4\u3001\u670d\u52a1\u5668\u7aef\u8fd4\u56de\u5bc6\u7801\u9a8c\u8bc1\u7ed3\u679c\uff0c\u5982\u679c\u6210\u529f\uff0c\u670d\u52a1\u5668\u8fd4\u56de\u767b\u5f55\u6210\u529f\u548c\u670d\u52a1\u5668\u76f8\u5173\u7684\u8bbe\u7f6e\uff0c\u767b\u5f55\u4e5f\u5c31\u5b8c\u6210\u4e86\uff0c\u63a5\u4e0b\u6765\u8be5\u5e72\u5565\u5e72\u5565\u3002\u5982\u679c\u5931\u8d25\uff0c\u5c31\u8fd4\u56de\u5177\u4f53\u7684\u9519\u8bef\u4fe1\u606f\u3002\u5f88\u8be6\u7ec6\uff0c\u5b9e\u9645\u4e0a\u7ed9\u7528\u6237\u63d0\u793a\u65f6\u53cd\u800c\u7528\u4e0d\u5230\u90a3\u4e48\u591a\uff0cTQPgSQLProvider\u4f1a\u6839\u636e\u8fd9\u4e9b\u9519\u8bef\u4fe1\u606f\u8bbe\u7f6eLastError\u548cLastErrorMsg\u7684\u5185\u5bb9\u3002\u7531\u4e8ePostgreSQL\u7684\u9519\u8bef\u4ee3\u7801\u662fxxPyy\u7684\u6837\u5b50\uff0c\u6240\u4ee5\u9519\u8bef\u4ee3\u7801\u9ad816\u4f4d\u5b58\u8d2e\u4e86xx\u7684\u503c\uff0c\u4f4e16\u4f4d\u5b58\u8d2e\u4e86yy\u7684\u503c\uff0c\u8fd9\u4e2a\u7b80\u5355\u7684\u8bf4\u660e\u3002<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 \u4eca\u665a\u4e3b\u8981\u662f\u8c03\u8bd5\u4e86\u7b2c3\u6b65\uff0c\u53d1\u9001\u5bc6\u7801\u7ed9\u670d\u52a1\u5668\u3002\u670d\u52a1\u5668\u6211\u8bbe\u7f6e\u7684\u4f7f\u7528MD5\u52a0\u5bc6\uff0c\u56e0\u6b64\uff0c\u670d\u52a1\u5668\u8bf7\u6c42\u4f7f\u7528MD5\u52a0\u5bc6\uff0c\u901a\u8fc7\u5206\u6790\u5b83\u7684\u4ee3\u7801\uff0c\u53d1\u73b0PostgreSQL\u7684\u5b9e\u73b0\u903b\u8f91\u5982\u4e0b\uff1a<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 1\u3001\u9996\u5148\uff0c\u8981\u6c42MD5\u52a0\u5bc6\u65f6\uff0c\u670d\u52a1\u5668\u7aef\u4f1a\u5728\u7b2c2\u6b65\u8fd4\u56de4\u4e2a\u5b57\u8282\u7684\u968f\u673a\u503c\uff0c\u4ee5\u4fbf\u4f7f\u751f\u6210\u7684MD5\u6458\u8981\u8fdb\u4e00\u6b65\u968f\u673a\u5316\u3002<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 2\u3001\u5ba2\u6237\u7aef\u7a0b\u5e8f\u9996\u5148\u5c06\u5bc6\u7801\u548c\u7528\u6237\u540d\u62fc\u5728\u4e00\u8d77\uff0c\u7136\u540e\u8ba1\u7b97\u51fa\u4e00\u4e2aMD5\u54c8\u5e0c\u503c\uff0c\u5982\u5bc6\u7801\u4e3apassword\uff0c\u7528\u6237\u540d\u4e3apostgres\uff0c\u5219\u62fc\u6210\u7684\u4e32\u4e3apasswordpostgres\uff0c\u7136\u540e\u8ba1\u7b97\u8fd9\u4e2a\u4e32\u7684MD5\u54c8\u5e0c\u503c\u3002<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 3\u3001\u5c06\u751f\u6210\u7684\u54c8\u5e0c\u503c\u8f6c\u6362\u4e3a16\u8fdb\u5236\u5c0f\u5199\u8868\u793a\u5f62\u5f0f\uff0c32\u5b57\u8282\uff0c\u7136\u540e\u518d\u8ffd\u52a0\u524d\u9762\u670d\u52a1\u5668\u8fd4\u56de\u76844\u4e2a\u5b57\u8282\u7684\u968f\u673a\u503c\uff0c\u6784\u621036\u5b57\u8282\u7684\u6570\u636e\uff0c\u7136\u540e\u8ba1\u7b97\u8fd936\u5b57\u8282\u6570\u636e\u7684MD5\u54c8\u5e0c\u503c\uff0c\u8fd9\u4e2a\u54c8\u5e0c\u503c\u5c31\u662f\u8981\u4f20\u7ed9\u670d\u52a1\u5668\u9a8c\u8bc1\u7684\u52a0\u5bc6\u540e\u7684\u5bc6\u7801\u3002\u800c\u5c31\u5728\u8fd9\u4e00\u6b65\u6211\u88ab\u81ea\u5df1\u5751\u82e6\u4e86\uff0c\u7531\u4e8e\u524d\u671f\u5199\u7684QDigest\u4e2d\uff0cMD5Init\u521d\u59cb\u5316\u6e05\u96f6\u65f6\uff0c\u4f20\u9012\u7684\u957f\u5ea6\u53c2\u6570\u9519\u8bef\uff0c\u9020\u6210\u5b9e\u9645\u4e0a\u6ca1\u6709\u6e05\u96f6\uff0c\u7ed3\u679c\u662f\u600e\u4e48\u6298\u817e\u670d\u52a1\u5668\u7aef\u90fd\u62a5\u544a\u8ba4\u8bc1\u5931\u8d25\u3002<\/p>\n<p style=\"color: #454545;\">\u00a0 \u00a0 4\u3001\u53d1\u9001\u7ed9\u670d\u52a1\u5668\u7684\u6570\u636e\u5305\u5b9e\u9645\u4e0a\u5305\u542b\u4e86\u4e00\u4e2a\u5c0f\u5199\u5b57\u6bcdp\u4ee3\u8868\u6d88\u606f\u662f\u5bc6\u7801\uff0c\u7136\u540e\u662f\u7f51\u7edc\u5b57\u8282\u987a\u5e8f\u768440\u4ee3\u8868\u5305\u542b\u81ea\u8eab\u7684\u540e\u7eed\u5185\u5bb9\u957f\u5ea6\uff0c\u7136\u540e\u662f\u5b57\u7b26\u4e32md5\uff0c\u6700\u540e\u662f\u7b2c3\u6b65\u751f\u6210\u7684md5\u54c8\u5e0c\u503c\u7684\u5341\u516d\u8fdb\u5236\u5c0f\u5199\u8868\u793a\u3002\u5b9e\u9645\u6570\u636e\u5305\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p style=\"color: #454545;\"><img decoding=\"async\" src=\"http:\/\/e.hiphotos.bdimg.com\/album\/pic\/item\/2934349b033b5bb545dbd2c535d3d539b600bcf9.jpg\" alt=\"\" width=\"640\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u56e0\u4e3aQDAC 3.0\u91cc\uff0cPost [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[18,19],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-pgsql","tag-md5","tag-19"],"views":5992,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions\/60"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}