I'm guessing that you've turned MD5 passwords on one of the things, either for the website or the server, and not the other one. This results that the server reads exactly what the database says instead of decrypting it. I'm strongly suggesting that you either turn off MD5 passwords on the server or turn it on on the website, and it will function correctly.