I have a problem when trying get a hash string in c#
.
I already tried a few websites, but most of them are using files to get the hash. Others that are for strings are a bit too complex. I found examples for Windows authentication for web like this:
FormsAuthentication.HashPasswordForStoringInConfigFile(tbxPassword.Text.Trim(), "md5")
I need to use a hash to make a string that contains a filename more secure. How can I do that?
Example:
string file = "username";
string hash = ??????(username);
Should I use another hashing algorithm and not "md5"?