Re: [HACKERS] Re: Hashing passwords (was Updated TODO list)

From: Louis Bertrand <louis(at)bertrandtech(dot)on(dot)ca>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: Gene Sokolov <hook(at)aktrad(dot)ru>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Re: Hashing passwords (was Updated TODO list)
Date: 1999-07-09 21:34:23
Message-ID: Pine.BSO.4.10.9907092129540.15560-100000@tronix.bertrandtech.on.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Why should anyone be able to read cleartext passwords, or even need to?
People have a habit of reusing the same password for logins elsewhere.
Hash the password as it's entered and compare hashes. This way, even if
the password file (PostgreSQL's or the system's) is compromised, the
attacker gains no extra information.

Ciao
--Louis <louis(at)bertrandtech(dot)on(dot)ca>

Louis Bertrand http://www.bertrandtech.on.ca
Bertrand Technical Services, Bowmanville, ON, Canada
Tel: +1.905.623.8925 Fax: +1.905.623.3852

OpenBSD: Secure by default. http://www.openbsd.org/

On Fri, 9 Jul 1999, Bruce Momjian wrote:

> [Charset iso-8859-1 unsupported, filtering to ASCII...]
> > From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
> > > > > ADMIN
> > > > >
> > > > How about:
> > > > * Not storing passwords in plain text
> > >
> > > But we don't, do we? I thougth they were hashed.
> >
> > maybe I miss something but it does not look so to me:
> >
> > [PostgreSQL 6.5.0 on i386-unknown-freebsd3.2, compiled by gcc 2.7.2.1]
> >
> > test1=> select * from pg_shadow;
> > usename |usesysid|usecreatedb|usetrace|usesuper|usecatupd|passwd|valuntil
> > --------+--------+-----------+--------+--------+---------+------+-----------
> > -----------------
> > postgres| 2000|t |t |t |t | |Sat Jan 31
> > 09:00:00 2037 MSK
> > afmmgr | 2001|f |t |f |t |mgrpwd|
> > afmusr | 2002|f |t |f |t |usrpwd|
> > (3 rows)
>
> Yes, I remember now. We keep them in clear, because we send random
> salt-encrypted versions over the wire. Only Postgresql can read this
> table.
>
>
> --
> Bruce Momjian | http://www.op.net/~candle
> maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>
>
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 1999-07-09 22:06:35 Re: [HACKERS] 6.5.1
Previous Message Bruce Momjian 1999-07-09 21:24:27 Re: [HACKERS] 6.5.1