pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
MD5 PasswordPacket
2+ messages / 2 participants
[nested] [flat]

* MD5 PasswordPacket
@ 2002-12-20 02:25 Bruce Badger <bruce_badger@BadgerSE.com>
  2002-12-20 02:33 ` Re: MD5 PasswordPacket Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Bruce Badger @ 2002-12-20 02:25 UTC (permalink / raw)
  To: pgsql-interfaces

Where can I read up on the encoding of the String in the PasswordPacket 
required when I get an AuthenticationMD5Password message from the backend?

I've looked at some code that implements the encoding, but reading the 
specification (the intent) would be most useful.

One question in particular springs to mind: can usernames and passwords 
be made up of multi-byte characters, and how does this affect the MD5 
encoding?

Thanks.

P.S. Many thanks for the help with my character string encoding 
questions.  I have that all working nicely, now. :-)




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: MD5 PasswordPacket
  2002-12-20 02:25 MD5 PasswordPacket Bruce Badger <bruce_badger@BadgerSE.com>
@ 2002-12-20 02:33 ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2002-12-20 02:33 UTC (permalink / raw)
  To: Bruce Badger <bruce_badger@BadgerSE.com>; +Cc: pgsql-interfaces

Bruce Badger wrote:
> Where can I read up on the encoding of the String in the PasswordPacket 
> required when I get an AuthenticationMD5Password message from the backend?

Read the source code.   :-)

> 
> I've looked at some code that implements the encoding, but reading the 
> specification (the intent) would be most useful.

That string is encoded twice, once with the username string, and another
time with the random salt sent from the server.

> One question in particular springs to mind: can usernames and passwords 
> be made up of multi-byte characters, and how does this affect the MD5 
> encoding?

It should be fine, I think.  The encoding is just a string if bytes to
MD5, and there is no encoding conversion done as part of that transfer.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-12-20 02:33 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-20 02:25 MD5 PasswordPacket Bruce Badger <bruce_badger@BadgerSE.com>
2002-12-20 02:33 ` Bruce Momjian <pgman@candle.pha.pa.us>

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