Re: Password type ? - Mailing list pgsql-general

From Sean Chittenden
Subject Re: Password type ?
Date
Msg-id 20020122210502.B4278@ninja1.internal
Whole thread Raw
In response to Re: Password type ?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Password type ?
List 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

pgsql-general by date:

Previous
From: Joseph Shraibman
Date:
Subject: Re: sql scripts
Next
From: Bruce Momjian
Date:
Subject: Re: Password type ?