Hello Luigi
These is build in at the .NET Framework.
System.Security .Cryptography
for example (not tested):
private string GetFileHash(byt e[] file) {
MD5 hasher = MD5.Create();
byte[] data = hasher.ComputeH ash(file);
StringBuilder sb = new StringBuilder() ;
foreach (byte d in data)
sb.Append(d.ToS tring("x2"));
return sb.ToString();
}
see:
http://www.google.ch/search?hl=de&q=...ile+.net&meta=
--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET