I currently use, base64_encode() to encode a user\'s password, this works well because it allows me to simply use base64decode() to dec
You can do the hashing on the server when authenticating in one quick query:
SELECT * FROM user WHERE password = MD5(CONCAT(?, salt));