Sample code for 30+ languages & platforms
Lianja

MD4 Hash a String

See more Encryption Examples

MD4 hash a string.

Chilkat Lianja Downloads

Lianja
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loCrypt = createobject("CkCrypt2")

lcContent = "The quick brown fox jumps over the lazy dog"

// The desired output is a hexidecimal string:
loCrypt.EncodingMode = "hex"

// Set the hash algorithm:
loCrypt.HashAlgorithm = "md4"

lcHashStr = loCrypt.HashStringENC(lcContent)

? lcHashStr

// The output is:
// 1BEE69A46BA811185C194762ABAEAE9


release loCrypt