Используя С#, я хочу создать MD5-хэш текстового файла. Как я могу сделать это?
Обновление: спасибо всем за помощь. Я наконец-то остановился на следующем коде -
// Create an MD5 hash digest of a file
public string MD5HashFile(string fn)
{
byte[] hash = MD5.Create().ComputeHash(File.ReadAllBytes(fn));
return BitConverter.ToString(hash).Replace("-", "");
}