Hi,
I need MD5 calculator which calculate md5 of a file using foreach loop.
please help me
Thanks
onlinessp
-3
Junior Poster in Training
Recommended Answers
Jump to PostHere's some code I grabbed from my old app
using System.Security.Cryptography; /// <summary> /// Calculate MD5 for the bytes in a stream object /// </summary> /// <param name="StreamIn">A stream in</param> /// <param name="ResultMD5">Returns MD5 as a byte array</param> private void CalculateMD5(Stream StreamIn, ref byte[] ResultMD5) { MD5 …
Jump to Postsir here u use {0:x}
why u didn't use {0:x1} or {0:x1}That's a bit OT when the point is to calculate MD5. Anyway, that function returns a hex string like I wanted to have my MD5 represented. You can use some other representation for MD5, although hex format is …
All 5 Replies
Teme64
215
Veteran Poster
kvprajapati
commented:
Great!
+10
onlinessp
-3
Junior Poster in Training
kvprajapati
commented:
You can't.
-2
Teme64
215
Veteran Poster
onlinessp
-3
Junior Poster in Training
Teme64
215
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.