md5

Author: SKAN Last Modified: 20090618


Computes and returns MD5 hash ( RFC1321 Specification ) for memory variables and for a File passed as parameter, with speeds comparable to Hashes.DLL.

MD5( ByRef V, L=0 )
MD5_File( sFile="", cSz=4 )

For the functions's parameters and return value, please see it's source code or the document.

Remarks

The functions are manually packed as a stdlib conform ahk library. The documentation is part of authors original post.

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?p=275910#275910

License

nonexistent

Example

; #Include md5.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

MsgBox,, MD5_File(), % A_AhkPath . ":`n`n" . MD5_File( A_AhkPath )

V := "The quick brown fox jumps over the lazy dog"
L := StrLen(V)
MsgBox,, MD5(), % V . ":`n`n" . MD5( V,L )