IMHO this isn't worth the effort. We have SSL connections to secure wire tapping. This is necessary for securing session logon anyway.
Saves sending it in plaintext over the wire, or displaying it on screen anywhere.
Regards, Andreas
---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster