I can't seem to get the md5 authentication to work with the postgres
protocol version 3.
The docs don't really say how to send an authenticated password, just that
you need to use the returned salt from the md5 authentication request.
I've read somewhere that it needs to work like this:
1. Combine password + user.
2. MD5 hash the result.
3. Add the salt to the end of that.
4. Hash the result.
5. Add "md5" to the front of this, so postgres knows it's md5.
This hasn't worked for me.
What is the correct way of MD5 authenticating?
-Josh