Initial import
git-svn-id: https://lsleditor.svn.sourceforge.net/svnroot/lsleditor@1 3f4676ac-adda-40fd-8265-58d1435b1672
This commit is contained in:
commit
7d308772cf
453 changed files with 57506 additions and 0 deletions
18
BZip2Decompress/MD5Verify.cs
Normal file
18
BZip2Decompress/MD5Verify.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Security.Cryptography;
|
||||
using System.IO;
|
||||
|
||||
namespace LSLEditor.BZip2Decompress
|
||||
{
|
||||
class MD5Verify
|
||||
{
|
||||
public static string ComputeHash(string strFile)
|
||||
{
|
||||
MD5CryptoServiceProvider csp = new MD5CryptoServiceProvider();
|
||||
FileStream stream = File.OpenRead(strFile);
|
||||
byte[] hash = csp.ComputeHash(stream);
|
||||
stream.Close();
|
||||
return BitConverter.ToString(hash).Replace("-", "").ToLower();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue