Jump to content
Sign in to follow this  

get a md5 or sha1 hash of a file

Recommended Posts


I have been doing the googlinginging for hours now and cant find any method in autoit to get an md5/sha1/sha256 hash of a file.

I need an md5 checksum of a file generated from an av site like virustotal to match a file ill be viewing and see if they are the same and for example run another func () if it is or exit the program if its not a 100% match

i did find this in c++

#include <openssl/md5.h>
QByteArray AESWrapper::md5 ( const QByteArray& data) {
unsigned char * tmp_hash;
tmp_hash = MD5((const unsigned char*)data.constData(), data.length(), NULL);
return QByteArray((const char*)tmp_hash, MD5_DIGEST_LENGTH);

but for the project im working on it needs to be in autoit for a number of reasons

If you were twice as smart, you'd still be stupid.

Share this post

Link to post
Share on other sites


Google must hate you, a search for "AutoIt MD5 SHA1" gives me the following as the first result :graduated:

You can download the UDF's there, examples included.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.