Jump to content

Recommended Posts

Posted

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.

Posted

Hey,

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...