Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2301
  • Last Modified:

Get file's MD5 checksum using VB6

How can I get the MD5 checksum of a file, could you please provide the code and would really appreciate if this is not a DLL.
0
ctdt
Asked:
ctdt
1 Solution
 
Robberbaron (robr)Commented:
a quick google search....

a VB6 class from see http://www.frez.co.uk/freecode.htm#md5  (or  http://www.eggheadcafe.com/community/aspnet/8/11575/this-code-was-put-out-by.aspx) looks best.
to use it, open a file, read all into a string and call the MD5 method of the class.  see http://www.frez.co.uk/freecode.htm#md5 for more methods.

other code is from http://www.xtremevbtalk.com/showthread.php?t=109394 by OnErr0r                               , original author unknown.  this may be easier to test with but use is the same

http://www.freevbcode.com/ShowCode.Asp?ID=741

dim GetHash as CMD5, sHash as string
 
sHash = GetHasj.MD5("this is a test string")

Open in new window

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now