473,598 Members | 3,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A component add MD5 signature at files uploaded

Someone can tell me if it exist for asp.net, where i can find etc?..

Thanks and happy new year

Luigi
Jan 3 '08 #1
2 1046
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
Jan 3 '08 #2
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.

Jan 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2045
by: B | last post by:
Hi, I'm developing a web application where users can upload multiple files to the website. I'm using asp.net 2.0 with FileUpload control and can upload 1 image to the server, but I would like to upload 5 images in total. Can someone help me in writing a VB.NET part on how I can upload these multiple files using the FileUpload control?
7
2749
by: crowl | last post by:
Hi there, I am looking for a component allowing me uploading multiple files by my asp page. I have found several components achieving this by require a <input type="file" name="FileX"> field for each file to upload. I want to allow my visitor to select the files to upload in the "Open" window. In the "Open" window it should be possible to select multiple files. Does such an asp component exist?
4
4418
by: Michael Kujawa | last post by:
Hi all, If anyone has experience with Dynu FTP object maybe you could help me out. Hopefully it is a simple solution. I "have" referred to the component documentation and I am still having troubles transferring a file in ascii mode I am sure I am doing this correctly but I still am getting binary transfer type and not an ascii transfer. Basically a user uploads a file via internet. The file then gets unzipped
13
1454
by: LtCommander | last post by:
Hi all, I am trying to extract text from an uploaded DOC file so that I can do some regex on the text in order to fill up some textboxes on the ASP page. I know that Writely (www.writely.com) does this but I think the use C# or something special to preserve the formatting of the uploaded DOC file. My questions:
0
323
by: Rich Freeman via DotNetMonster.com | last post by:
I have run into a very bizarre intermittent problem with a web app which has been online for almost a year now. While the entire app runs correctly on our dev server, all of a sudden, certain subdirectories on the live server (but not others) throw an "External component has thrown an exception" error on pages that were not changed and have been working for months and months. I suspect the problem could be related to something in one of...
0
7899
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8392
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8397
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8050
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8264
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2412
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1504
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1250
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.