I suppose if i use default MD5 function, that would create same hash for the same string accross different applications
So somehow i want to define a pre static value, give it to MD5 function, and make those generated results to unique my application.
This static value will never change accross my application so it will always generate same hash value for same string accross my application
But if another application uses default MD5, they won't get same MD5 hash value
How can i do this with c# 5 ? asp.net
Here below function i have
public static string ConvertStringtoMD5(string strword)
{
MD5 md5 = MD5.Create();
byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(strword);
byte[] hash = md5.ComputeHash(inputBytes);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < hash.Length; i++)
{
sb.Append(hash[i].ToString("x2"));
}
return sb.ToString();
}