MD5Digest

From Xojo Documentation

Revision as of 02:10, 23 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Class (inherits from Object)

Processes a String and returns the message-digest form of the input string.

Properties
Value


Methods
Clear Process

Notes

The MD5Digest class uses the RSA Data Security, Inc. MD5 Message-Digest Algorithm. The MD5Digest class enables you to process a string in segments. Pass each string segment to the Process method. The Value property contains the current message digest and the Clear method clears the MD5Digest object so that you can repeat the process.

The MD5 message digest algorithm takes a message of any length and produces a 128-bit "fingerprint" or message digest of the input string. The MD5 algorithm is useful for digital signature applications, where a large file must be processed in a secure manner before being encrypted with a secret key under a system such as RSA. See RFC 1321 for complete information.

Compatibility Note: An MD5 hash created using php (i.e. from the web) returns a hex string. To compare an MD5 hash from an outside source to a Xojo-created MD5 hash requires that the Xojo-created hash be converted to a hex string for comparison.

Examples

Var m As New MD5Digest
Var s As String
m.Process("Hello world")
s = m.Value

See Also

MD5 function.