AutoIt
AutoIt
MD4 Hash a String
See more Encryption Examples
MD4 hash a string.Chilkat AutoIt Downloads
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oCrypt = ObjCreate("Chilkat.Crypt2")
Local $sContent = "The quick brown fox jumps over the lazy dog"
; The desired output is a hexidecimal string:
$oCrypt.EncodingMode = "hex"
; Set the hash algorithm:
$oCrypt.HashAlgorithm = "md4"
Local $sHashStr
$sHashStr = $oCrypt.HashStringENC($sContent)
ConsoleWrite($sHashStr & @CRLF)
; The output is:
; 1BEE69A46BA811185C194762ABAEAE9