Crypto.MD5

From Xojo Documentation

Method

Crypto.MD5(data As MemoryBlock) As MemoryBlock

New in 2012r2

Supported for all project types and targets.

Returns the MD5 message-digest value of the data.

Notes

Works the same as the MD5 function.

Sample Code

Var md5Value As MemoryBlock
md5Value = Crypto.MD5("SomeStringData")

Var hexValue As String = EncodeHex(md5Value)
// hexValue = 1E7984567DBC8AF6A48102C5E71A08E9

This above is equivalent to calling the Hash method with MD5 as the algorithm:

Var md5Value As MemoryBlock
md5Value = Crypto.Hash("SomeStringData", Crypto.Algorithm.MD5)

Var hexValue As String = EncodeHex(md5Value)
// hexValue = 1E7984567DBC8AF6A48102C5E71A08E9

See Also

MD5 class; EncodeHex function