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 1i3hIU-00083a-1r for pgsql-interfaces@arkaria.postgresql.org; Fri, 30 Aug 2019 13:50:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i3hIS-0005uf-Ui for pgsql-interfaces@arkaria.postgresql.org; Fri, 30 Aug 2019 13:50:36 +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 1i3hIS-0005jP-J6 for pgsql-interfaces@lists.postgresql.org; Fri, 30 Aug 2019 13:50:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i3hIQ-0000SW-AD for pgsql-interfaces@lists.postgresql.org; Fri, 30 Aug 2019 13:50:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x7UDoWMw014942; Fri, 30 Aug 2019 09:50:32 -0400 From: Tom Lane To: Dmitry Markman cc: pgsql-interfaces@lists.postgresql.org Subject: Re: PQconnectdbParams and encrypted password In-reply-to: <67A8E555-D7C6-41D4-B4A7-0B9E2949A6FC@mac.com> References: <67A8E555-D7C6-41D4-B4A7-0B9E2949A6FC@mac.com> Comments: In-reply-to Dmitry Markman message dated "Fri, 30 Aug 2019 00:19:15 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <14940.1567173032.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 30 Aug 2019 09:50:32 -0400 Message-ID: <14941.1567173032@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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=98md5f3c33545d22dbf811= 737afb8d0e85597=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 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. regards, tom lane