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 1hnWma-0002B2-RL for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jul 2019 23:22:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnWmZ-0003TG-Mk for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jul 2019 23:22:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnWmZ-0003SF-DV for pgsql-bugs@lists.postgresql.org; Tue, 16 Jul 2019 23:22:51 +0000 Received: from ook.raf.org ([139.99.156.21]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnWmX-0001fW-0L for pgsql-bugs@lists.postgresql.org; Tue, 16 Jul 2019 23:22:51 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id 9092B5DD06 for ; Wed, 17 Jul 2019 09:22:43 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NYiSGOzqhPOm for ; Wed, 17 Jul 2019 09:22:42 +1000 (AEST) Received: by ook.raf.org (Postfix, from userid 1001) id 2FD5C5DEAA; Wed, 17 Jul 2019 09:22:42 +1000 (AEST) Date: Wed, 17 Jul 2019 09:22:42 +1000 From: raf To: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15911: Why no Bcrypt in pg_hba.conf? Message-ID: <20190716232242.bvdu6w7jnk3fj237@raf.org> References: <15911-a96c5fc2f29cdecc@postgresql.org> <87ftn5zze8.fsf@news-spur.riddles.org.uk> <9218.1563300642@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9218.1563300642@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tom Lane wrote: > Andrew Gierth writes: > > "PG" == PG Bug reporting form writes: > > 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. > > Worth noting here is that for us, the price of an additional > authentication mechanism is very high, because it's not just a matter > of adding some code to the server. Client-side libraries also need to > be taught about it, and most of those are not maintained by the core > PG project. So it takes years to make anything happen --- the > addition of SCRAM is still a work in progress, for example. > > Thus, we aren't going to add stuff on a whim, and when we do add some > new mechanism, there has to be a really solid argument that it's a > *significant* advance over what we have. > > regards, tom lane bcrypt is better than pbkdf2 but pbkdf2 is still good for the same reasons that bcrypt is good (brute force resistance). if you want bcrypt/scrypt/argon2, pbkdf2 will probably be good enough. and some organisations may require pbkdf2 because it is NIST-approved while the others aren't. cheers, raf