Depending on the connection type and database type you could use base64 for the user name password.