pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Marco Sulla <github@marco.sulla.e4ward.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15911: Why no Bcrypt in pg_hba.conf?
Date: Wed, 17 Jul 2019 02:57:05 +0100
Message-ID: <87blxtzcsq.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CABbU2U9hPtkeMqU7TEdn--xMmU6bStUKeVfR=rx+N=YfPY7z_Q@mail.gmail.com>
References: <15911-a96c5fc2f29cdecc@postgresql.org>
	<87ftn5zze8.fsf@news-spur.riddles.org.uk>
	<CABbU2U9hPtkeMqU7TEdn--xMmU6bStUKeVfR=rx+N=YfPY7z_Q@mail.gmail.com>

>>>>> "Marco" == Marco Sulla <github@marco.sulla.e4ward.com> writes:

 Marco> It seems that SCRAM is hash-agnostic:
 Marco> https://en.wikipedia.org/wiki/Salted_Challenge_Response_Authentication_Mechanism#Protocol_overview

Regardless, SHA256 is the algorithm specified in the current standard
(see RFC 7677), and since the client and server need to agree on this,
we have very strong reasons (as Tom pointed out) not to proliferate
algorithms.

 Marco> The significant advance is that is well known that SHA
 Marco> algorithms are not good as Bcrypt for password hashing:

 Marco> https://rietta.com/blog/bcrypt-not-sha-for-passwords/

This is comparing bcrypt against _one round_ of SHAx, which is not what
SCRAM uses (it uses PBKDF2).

 Marco> https://crypto.stackexchange.com/a/46552

This starts out by comparing bcrypt with (unsalted!) SHA-512, but then
does at least go on to mention PBKDF2.

 Marco> https://security.stackexchange.com/a/133251/27264

This at least looks like it's comparing the right things.

-- 
Andrew (irc:RhodiumToad)





view thread (7+ messages)  latest in thread

Message-ID: <87blxtzcsq.fsf@news-spur.riddles.org.uk>
Permalink:  ../87blxtzcsq.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87blxtzcsq.fsf@news-spur.riddles.org.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, github@marco.sulla.e4ward.com
  Subject: Re: BUG #15911: Why no Bcrypt in pg_hba.conf?
  In-Reply-To: <87blxtzcsq.fsf@news-spur.riddles.org.uk>
  References: <15911-a96c5fc2f29cdecc@postgresql.org> <87ftn5zze8.fsf@news-spur.riddles.org.uk> <CABbU2U9hPtkeMqU7TEdn--xMmU6bStUKeVfR=rx+N=YfPY7z_Q@mail.gmail.com> <87blxtzcsq.fsf@news-spur.riddles.org.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox