Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void HashFile(String FPath)
- {
- using (var md5 = MD5.Create())
- {
- using (var stream = File.OpenRead(FPath))
- {
- String ComputedHash = BitConverter.ToString(md5.ComputeHash(stream)).Replace("-", String.Empty).ToLower();
- WriteToFile(FPath + " " + ComputedHash);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement