Possible Duplicate:
Difference between Hashing a Password and Encrypting it
Hashing vs. Encrypting Passwords
I tried hashing my password in C# using Rfc2898DeriveBytes by passing the username as its salt value.
public string HashPassword(string HashedUsernameSalt, string Password)
{
Rfc2898DeriveBytes HashedPass = new Rfc2898DeriveBytes(Password,
System.Text.Encoding.Default.GetBytes(HashedUsernameSalt), 10000);
return Convert.ToBase64String(Hasher.GetBytes(25));
}
The above method gives me some hash value. My questions are
Is it possible to get back my password back for showing the user if he forgets it? or Do I need to implement some other concept here like encrypting and decrypting it?, but I heard hashing is better than encrypting.
Thanks!