Server sends nonce Client sends HMAC(nonce + password + time)
There are better ways to implement this idea, like SRP/PAKE https://en.m.wikipedia.org/wiki/Secure_Remote_Password_proto...