So i have figured the way to work with the hashed passwords is to store the hashes and use them as a reference point. If the newly entered password which is hashed in turn, matches the stored hash.

I am looking into AES encryption for the data.

Thanks for the help everyone.