Re: passwords

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Chris" <codle(at)valuelinx(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: passwords
Date: 2004-01-21 21:12:53
Message-ID: 23349.1074719573@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Chris" <codle(at)valuelinx(dot)net> writes:
> Does postgres have a data type such as mysql to encrypt and store passwords?

There's no datatype specialized to that purpose, but you could store
the MD5 hash of a password using the md5() function (standard since
7.4), or use one of the functions in the contrib/pgcrypto/ package.

regards, tom lane

In response to

  • passwords at 2004-01-21 20:48:46 from Chris

Browse pgsql-novice by date

  From Date Subject
Next Message Paul Makepeace 2004-01-22 13:29:44 Using OLD on INSERT
Previous Message Chris 2004-01-21 20:48:46 passwords