Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public void HashFile(String FPath)
  2. {
  3. using (var md5 = MD5.Create())
  4. {
  5. using (var stream = File.OpenRead(FPath))
  6. {
  7. String ComputedHash = BitConverter.ToString(md5.ComputeHash(stream)).Replace("-", String.Empty).ToLower();
  8.  
  9. WriteToFile(FPath + " " + ComputedHash);
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement