Xbasic

*MD5 Function

Syntax

HashString as C = *MD5(C string)

Arguments

string

The data on which to calculate a checksum. md5() accepts both character and blob input.

Description

Create the MD5 hash for a string.

Discussion

*MD5() returns a 32 character (128-bit) "fingerprint" or "message digest" of Input_Data of arbitrary length. It is conjectured that it is computationally infeasible to produce two messages having the same message digest, or to produce any message having a given pre-specified target message digest. The MD5 algorithm is intended for digital signature applications, where a large file must be "compressed" in a secure manner before being encrypted with a private (secret) key under a public-key cryptosystem such as RSA.

Example

? *md5("Alpha Software")
= 0000 : 75 5a 80 a9 89 59 ab da 6b b2 c2 d9 1f 33 96 3f

See Also