Hi Sibasish,
to compare a given
String with a password stored in a data base,
you normally don't have to decrypt the password every time anew.
Instead you put the hash value of the password into the data base.
Now, every time someone want's to log in, using the password, you
create the hash value of the entered (plain text) password and
compare it to the hash value in the database. The two hash values
will be equal if the password entered by the user is equal to the
password which was originally hashed and put into the database.
I hope I made myself clear.
Sometimes I fail because of my dilettantish english
However - Hope that helps.
Regards,
- Thomas -