Solved

Get large binary file's MD5 checksum using VB6

Posted on 2009-07-02
3
1,503 Views
Last Modified: 2012-05-07
How can I get the MD5 checksum of a Binary file, could you please provide the code and would really appreciate if this is not a DLL in VB6.
There are examples in Internet but only from strings and I need for large binaries files.
If a binary file is open like string, the String Doesn't Store Some Characters.

Examples of strings:
http://www.frez.co.uk/freecode.htm#md5
http://www.eggheadcafe.com/community/aspnet/8/11575/this-code-was-put-out-by.aspx


0
Comment
Question by:jotache
  • 2
3 Comments
 
LVL 5

Expert Comment

by:advfinance
ID: 24764952
We've used this ActiveX DLL to do the same thing - It works fast and is very easy to use:

http://xstandard.com/en/documentation/xmd5/

Cheers
0
 

Author Comment

by:jotache
ID: 24765308
I know there are many dll's but I need the code in Visual Basic 6, Thank You.
0
 
LVL 5

Accepted Solution

by:
advfinance earned 500 total points
ID: 24783369
From experience, it can be done in VB6, but when I tried this on a dual-core 3Ghz machine with 2GB ram, it's so slow it's unusable from a practical point of view. I was using it on MP3s which are recorded calls, and were 2Mb or less.

Still, have a look at this - It contains a function you can pass a filename to, and then pass the resulting string to the function to create the MD5:

http://www.bullzip.com/md5/vb/md5-vb-class.htm

Unless this bit of code's changed since I first looked at it, using a DLL (at least one not written with VB) is faster.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now