Sample code for 30+ languages & platforms
VB.NET

MD4 Hash a String

See more Encryption Examples

MD4 hash a string.

Chilkat VB.NET Downloads

VB.NET
' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

Dim crypt As New Chilkat.Crypt2

Dim content As String = "The quick brown fox jumps over the lazy dog"

' The desired output is a hexidecimal string:
crypt.EncodingMode = "hex"

' Set the hash algorithm:
crypt.HashAlgorithm = "md4"

Dim hashStr As String
hashStr = crypt.HashStringENC(content)

Debug.WriteLine(hashStr)

' The output is:
' 1BEE69A46BA811185C194762ABAEAE9