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 1hnRO2-0005po-2d for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jul 2019 17:37:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnRNz-0007n9-Uh for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jul 2019 17:37:07 +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 1hnRNz-0007n2-K8 for pgsql-bugs@lists.postgresql.org; Tue, 16 Jul 2019 17:37:07 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hnRNs-0001dN-QF for pgsql-bugs@lists.postgresql.org; Tue, 16 Jul 2019 17:37:06 +0000 Received: from [192.168.127.1] (port=41617 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1hnRNp-0001DF-AG; Tue, 16 Jul 2019 17:36:57 +0000 Received: from [127.0.0.1] (port=42988 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1hnRNo-0000ds-Jx; Tue, 16 Jul 2019 17:36:56 +0000 From: Andrew Gierth To: pgsql-bugs@lists.postgresql.org, github@marco.sulla.e4ward.com Subject: Re: BUG #15911: Why no Bcrypt in pg_hba.conf? In-Reply-To: <15911-a96c5fc2f29cdecc@postgresql.org> (PG Bug reporting form's message of "Tue, 16 Jul 2019 16:23:29 +0000") Message-ID: <87ftn5zze8.fsf@news-spur.riddles.org.uk> References: <15911-a96c5fc2f29cdecc@postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Tue, 16 Jul 2019 18:36:54 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "PG" == PG Bug reporting form writes: PG> I see that the encryption methods supported in PG> `/etc/postgresql/##/main/pg_hba.conf` are only md5 and sha256. The supported methods are actually md5 (for historical compatibility) and SCRAM, which is a better challenge-response protocol than the one we used to use, using sha256 as the hash algorithm. We do NOT use sha256 as-is as a password hash, SCRAM stores a PBKDF2 result as specified by the SCRAM protocol definition. PG> Can you please add `bcrypt` as method option? Not unless it gets added to the SCRAM specification. Note that our primary goal here is to provide a secure and standard challenge-response authentication mechanism, not to provide random alternate algorithms for password storage. -- Andrew (irc:RhodiumToad)