Re: How to interpret the salt sent in the AuthenticationMD5Password message from the server.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: zenpolcorporation(at)gmail(dot)com
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: How to interpret the salt sent in the AuthenticationMD5Password message from the server.
Date: 2020-09-16 19:22:52
Message-ID: 3307.1600284172@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

PG Doc comments form <noreply(at)postgresql(dot)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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2020-09-18 09:22:31 Magic number for SSLRequest
Previous Message PG Doc comments form 2020-09-16 17:01:43 How to interpret the salt sent in the AuthenticationMD5Password message from the server.