Hash, more exactly,
cryptographic hash function, is irreversible. It means it is
cryptographically infeasible to obtain original piece of data from its hash. This is the whole purpose! Would would need to use such a function in cryptography is reverse operation was feasible? Just think about it.
See also:
http://en.wikipedia.org/wiki/Cryptographic_hash_function[
^].
Are you getting it?
The usage is: get a hash of a password from the user and store it. You will never know the password itself; you have no right to know it and you never need it for authentication. For authentication, you get a hash from the user and compare it with the hash you store for this user account.
—SA