Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3phT-0000qq-IP for pgsql-interfaces@arkaria.postgresql.org; Fri, 30 Aug 2019 22:48:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i3phR-0001yj-AC for pgsql-interfaces@arkaria.postgresql.org; Fri, 30 Aug 2019 22:48:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3phQ-0001yc-Vr for pgsql-interfaces@lists.postgresql.org; Fri, 30 Aug 2019 22:48:57 +0000 Received: from st43p00im-ztdg10063201.me.com ([17.58.63.182]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i3phN-0004wb-Rr for pgsql-interfaces@lists.postgresql.org; Fri, 30 Aug 2019 22:48:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1567205331; bh=pchClPTvyB6aoj7KKhfji9m91W+989FbsYzM57ByR/w=; h=Content-Type:Subject:From:Date:Message-Id:To; b=T8JP16Npu2kihZgogKGKBIOP01RcH2Lu4ckzweKwbIgOcvfUPltO5+iSPEzL+tHBe PLhziAxZDlpDKRkegeU4C54fpLOvruYYGwDgO54xbeHb5LclrE4oUB/w8lP5GeWQNo ojFJNbWj+//23gLZlYSMi9hYjMr/iyC0k9xhsZUs8VxLw/S19QyKPmZFTD1X3PtC3p aiLwgFw5+3cJBnD707cRzWBtXd8YylrxMmlii9+0uUP5pcCC+5Ed+9RsbFJXul6taT yXPMRe/7P1NnbDpmfIpDph3Pl3aUbbQE45iHdNga9FdxKGqXNgOwdUJbp++guhWdaD WzzTYyygLs+Og== Received: from dimamacbookpro.dhcp.mathworks.com (unknown [144.212.128.4]) by st43p00im-ztdg10063201.me.com (Postfix) with ESMTPSA id 919B8C20D14; Fri, 30 Aug 2019 22:48:51 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: PQconnectdbParams and encrypted password From: Dmitry Markman In-Reply-To: <14941.1567173032@sss.pgh.pa.us> Date: Fri, 30 Aug 2019 18:48:47 -0400 Cc: pgsql-interfaces@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <67A8E555-D7C6-41D4-B4A7-0B9E2949A6FC@mac.com> <14941.1567173032@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-30_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=737 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1812120000 definitions=main-1908300222 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Tom thanks a lot for your answer I realized it almost immediately after I press the button send :) thanks again dm > On Aug 30, 2019, at 9:50 AM, Tom Lane wrote: >=20 > Dmitry Markman writes: >> I need some help with setting PQconnectdbParams key/value for = encrypted password >> suppose I created user with the string >> create user foobar with encrypted password = =E2=80=98md5f3c33545d22dbf811737afb8d0e85597=E2=80=99 >> ... >> {"password", ??????????????},//I=E2=80=99d like to = have here =E2=80=9Cmd5f3c33545d22dbf811737afb8d0e85597=E2=80=9D, but it = doesn=E2=80=99t work >=20 > Pretty much the entire *point* of an encrypted password is that the > md5 hash is not sufficient to log in with. You need the original > string. >=20 > regards, tom lane