Use pgcrypto to encrypt passwords.