Using C#, I want to create an MD5 hash of a text file. How can I accomplish this?
Update: Thanks to everyone for their help. I\'ve finally settled u
Short and to the point. filename is your text file's name:
filename
using (var md5 = MD5.Create()) { return BitConverter.ToString(md5.ComputeHash(File.ReadAllBytes(filename))).Replace("-", ""); }