Morgan Stanley Interview Question

How would you implement password management using hash function.