You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
postgres/contrib/chkpass
Tom Lane 0525ddc3e5 Bring chkpass build process into sync with other contrib modules; 24 years ago
..
Makefile Bring chkpass build process into sync with other contrib modules; 24 years ago
README.chkpass Initial checkin of a contributed type that handles passwords efficiently. 25 years ago
chkpass.c Further conversions to Version 1 API. Also, fix boolean return to use 25 years ago
chkpass.sql.in Bring chkpass build process into sync with other contrib modules; 24 years ago

README.chkpass

$Header: /cvsroot/pgsql/contrib/chkpass/Attic/README.chkpass,v 1.1 2001/05/03 12:32:13 darcy Exp $

Chkpass is a password type that is automatically checked and converted upon
entry. It is stored encrypted. To compare, simply compare agains a clear
text password and the comparison function will encrypt it before comparing.
It also returns an error if the code determines that the password is easily
crackable. This is currently a stub that does nothing.

I haven't worried about making this type indexable. I doubt that anyone
would ever need to sort a file in order of encrypted password.

If you precede the string with a colon, the encryption and checking are
skipped so that you can enter existing passwords into the field.

On output, a colon is prepended. This makes it possible to dump and reload
passwords without re-encrypting them. If you want the password (encrypted)
without the colon then use the raw() function. This allows you to use the
type with things like Apache's Auth_PostgreSQL module.

D'Arcy J.M. Cain
darcy@druid.net