Re: Password type ?

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Urs Steiner <postgresql(at)darkstone(dot)ch>, pgsql-general(at)postgresql(dot)org
Subject: Re: Password type ?
Date: 2002-01-23 05:05:03
Message-ID: 20020122210502.B4278@ninja1.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > I don't seem to be able to find a built-in way in PostgreSQL for
> > password encryption of a field?
> >
> > is there something like this and i just dont find it because of
> > the late hour ?
>
> We don't have that feature.

Eh... what about the pgcrypto package?

CREATE VIEW "user_md5_auth" AS
SELECT username, ENCODE(DIGEST(password, 'md5'), 'hex') as password
FROM passwd;

-sc

--
Sean Chittenden

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-01-23 06:22:34 Re: Password type ?
Previous Message Joseph Shraibman 2002-01-23 03:12:59 Re: sql scripts