custom hash generated password and module wise added db password is different?
Yes, that is correct: The password is always salted with a different string.

If you want to verify a password, don't hash it, just check it against the value that was stored, that does work.

You're probably asking the wrong question. Explain what you're actually trying to do.