The Hash you are creating is a one-way process. You can generate the hash from the original data, but cannot retrieve the original data from the hash.
To compare the password, use the same hashing mechanism on the password the user enters, and then compare the two hashes.
Alternatively, don't hash, but encrypt your data. Encrypted data can be decrypted again.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Die Interimsliebenden by
Einstürzende Neubauten (Track 1 from the album:
Tabula Rasa)
What's This?