You are reducing the room of possible passwords quite a lot, I am not sure if that is a good idea.
Firstly e.g. for MD5 your hashes are never going to contain Letters > f, no uppercase and no special characters.
Secondly you are limiting the possible passwords to hashes of short natural language strings.