Compute MD5 hash of string (string.md5)
Declaration
hash = string.md5(data)
Parameters
- data
string. Original string (or binary data).
Returns
- hash
string. Hex text of the MD5 digest.
Description
Compute MD5 checksum of a string (or binary data).
Example
sys.alert(string.md5('XXTouch 真棒')) -- "4921dbf380df452fa959dc47cef30e4b"
Note: Uses function outside of this chapter: sys.alert