PC Review


Reply
Thread Tools Rate Thread

A component add MD5 signature at files uploaded

 
 
luigi.corrias@gmail.com
Guest
Posts: n/a
 
      3rd Jan 2008
Someone can tell me if it exist for asp.net, where i can find etc?..

Thanks and happy new year

Luigi
 
Reply With Quote
 
 
 
 
Peter Bucher [MVP]
Guest
Posts: n/a
 
      3rd Jan 2008
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=...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
 
Reply With Quote
 
luigi.corrias@gmail.com
Guest
Posts: n/a
 
      4th Jan 2008
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
scan files uploaded =?Utf-8?B?Q2hyaXM=?= Microsoft ASP .NET 0 12th Jul 2005 10:00 AM
Uploaded Files =?Utf-8?B?S2F0cmluYQ==?= Windows XP Help 1 7th Jul 2005 11:52 AM
uploaded files by different users Mahbuba Chowdhury Microsoft Word Document Management 2 22nd Mar 2004 03:32 PM
Uploaded to my DNS but only See Files =?Utf-8?B?Q2hyaXM=?= Microsoft Frontpage 1 13th Feb 2004 10:26 AM
Virus-Scanning uploaded files uploaded? Matt G Microsoft ASP .NET 1 22nd Aug 2003 06:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:22 PM.