Jump to content
Sign in to follow this  
AussieTimmeh

MD5 Checksums

Recommended Posts

AussieTimmeh

Hi all,

I just updated to the latest AutoIT and Scite and I've found that plugins are now no longer supported. I used the plugin to get MD5 Checksums of files in my script, as follows:

;Open the plugin
#compiler_plugin_funcs = MD5Hash
$MD5Plugin = PluginOpen(@ScriptDir & "\MD5Hash.dll")
;Get the MD5 checksum of a file
$Checksum = MD5Hash("C:\file.txt", 1 , True)
;Close the plugin
PluginClose($MD5Plugin)

 

What can I do to replace this function? Googling this issue is coming up with some amazingly complicated potential solutions like this: '?do=embed' frameborder='0' data-embedContent>>

This looked like a potential easy solution from guiness: 

But the value returned is not the same (for example, using the old plugin I get F8F783F2CBDF483F576557EFC0ECBC94, with guinesses I get 0xAE1197F85300EE17AA5D432AD39136EB for the same file.

I've just spent a couple hours trying to get something to work but no luck so far. If anyone can help me out, I would be much appreciated.

Edited by AussieTimmeh

Share this post


Link to post
Share on other sites
AussieTimmeh

Please disregard, I am an idiot. I did not change the value in guinesses example to checksum the whole file instead of the 25 percent used in the example. Once, I did this, then all I need to do is remove the 0x at the front and the value is the same.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×