Crypt

Author: Sean Last Modified: 20080523


Calculates Hashes for sha, sha1, md5 or aes.

Crypt_AES(pData, nSize, sPassword, SID = 256, bEncrypt = True)
Crypt_Hash(pData, nSize, SID = "CRC32", nInitial = 0)

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

Remarks

This comes within the File.zip, together with File.ahk. It is a replacement for Seans AES.ahk and Hash.ahk.

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

License

nonexistent

Example

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

V := "The quick brown fox jumps over the lazy dog"
L := StrLen(V)
MsgBox,, MD5 with Crypt_Hash(), % V . ":`n`n" . Crypt_Hash(&V, L, "MD5") ; Notice, &V instead of just V