pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: zenpolcorporation@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: How to interpret the salt sent in the AuthenticationMD5Password message from the server.
Date: Wed, 16 Sep 2020 15:22:52 -0400
Message-ID: <3307.1600284172@sss.pgh.pa.us> (raw)
In-Reply-To: <160027570302.24369.6463926392340126344@wrigleys.postgresql.org>
References: <160027570302.24369.6463926392340126344@wrigleys.postgresql.org>

PG Doc comments form <noreply@postgresql.org> writes:
> In short, what is the format of the salt sent to the server?

I think you might have a conceptual error here.  The salt is sent
from the server to you, not the other way around.  It's just four
random bytes in the AuthenticationMD5Password message, which I'm
pretty sure you should incorporate verbatim in your MD5 input.

The bytes are just binary data, they're not ASCII or encoded
in some way.

			regards, tom lane





view thread (2+ messages)

Message-ID: <3307.1600284172@sss.pgh.pa.us>
Permalink:  ../3307.1600284172@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3307.1600284172@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, zenpolcorporation@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: How to interpret the salt sent in the AuthenticationMD5Password message from the server.
  In-Reply-To: <3307.1600284172@sss.pgh.pa.us>

* 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