L luigi.corrias Jan 3, 2008 #1 Someone can tell me if it exist for asp.net, where i can find etc?.. Thanks and happy new year Luigi
P Peter Bucher [MVP] Jan 3, 2008 #2 Hello Luigi These is build in at the .NET Framework. System.Security.Cryptography for example (not tested): private string GetFileHash(byte[] file) { MD5 hasher = MD5.Create(); byte[] data = hasher.ComputeHash(file); StringBuilder sb = new StringBuilder(); foreach (byte d in data) sb.Append(d.ToString("x2")); return sb.ToString(); } see: http://www.google.ch/search?hl=de&q=get+hash+from+file+.net&meta=
Hello Luigi These is build in at the .NET Framework. System.Security.Cryptography for example (not tested): private string GetFileHash(byte[] file) { MD5 hasher = MD5.Create(); byte[] data = hasher.ComputeHash(file); StringBuilder sb = new StringBuilder(); foreach (byte d in data) sb.Append(d.ToString("x2")); return sb.ToString(); } see: http://www.google.ch/search?hl=de&q=get+hash+from+file+.net&meta=
L luigi.corrias Jan 4, 2008 #3 Thanks Peter But i don't understand The MD% signatire of the file is the same i can find using an utility like fsum Thank again and happy New year L.
Thanks Peter But i don't understand The MD% signatire of the file is the same i can find using an utility like fsum Thank again and happy New year L.