P
Pohihihi
I am trying to get HASH of contants of a file that I read.
I get byte[] from ComputeHash().
To get alpha-digits I put it into Guid to get Guid out of it.
Am I doing right?
When I create a new Guid is it alpha-digit representation of the contant it
is totally new value computed on byte[] and is not the real hash of file.
Any pointers will help me. Thx
System.IO.FileInfo fi = new System.IO.FileInfo(@"C:\h.html");
Stream fs = fi.Open(FileMode.Open,FileAccess.Read,FileShare.None);
HashAlgorithm hash = new MD5CryptoServiceProvider();
this.textBox1.Text = (new Guid(hash.ComputeHash(fs))).ToString() +
Environment.NewLine;
I get byte[] from ComputeHash().
To get alpha-digits I put it into Guid to get Guid out of it.
Am I doing right?
When I create a new Guid is it alpha-digit representation of the contant it
is totally new value computed on byte[] and is not the real hash of file.
Any pointers will help me. Thx
System.IO.FileInfo fi = new System.IO.FileInfo(@"C:\h.html");
Stream fs = fi.Open(FileMode.Open,FileAccess.Read,FileShare.None);
HashAlgorithm hash = new MD5CryptoServiceProvider();
this.textBox1.Text = (new Guid(hash.ComputeHash(fs))).ToString() +
Environment.NewLine;