readme.chkpass

来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· CHKPASS 代码 · 共 27 行

CHKPASS
27
字号
$PostgreSQL: pgsql/contrib/chkpass/README.chkpass,v 1.3 2005/09/23 15:05:04 tgl Exp $Chkpass is a password type that is automatically checked and converted uponentry.  It is stored encrypted.  To compare, simply compare agains a cleartext password and the comparison function will encrypt it before comparing.It also returns an error if the code determines that the password is easilycrackable.  This is currently a stub that does nothing.I haven't worried about making this type indexable.  I doubt that anyonewould ever need to sort a file in order of encrypted password.If you precede the string with a colon, the encryption and checking areskipped so that you can enter existing passwords into the field.On output, a colon is prepended.  This makes it possible to dump and reloadpasswords without re-encrypting them.  If you want the password (encrypted)without the colon then use the raw() function.  This allows you to use thetype with things like Apache's Auth_PostgreSQL module.The encryption uses the standard Unix function crypt(), and so it suffersfrom all the usual limitations of that function; notably that only thefirst eight characters of a password are considered.D'Arcy J.M. Caindarcy@druid.net

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?