from System.Text import StringBuilder
from System.IO import FileStream, FileMode
from System.Security.Cryptography import MD5CryptoServiceProvider

filename = "aaa.mp4"
sb = StringBuilder()
fs = FileStream(filename, FileMode.Open)
md5 = MD5CryptoServiceProvider()
hash = md5.ComputeHash(fs)
fs.Close()
for hex in hash :
sb.Append(hex.ToString("x2"))
print sb.ToString()
Blog Comments powered by Disqus.

Previous Post Next Post