Md5: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Needs example)
Line 14: Line 14:
===Returns===
===Returns===
Returns the MD5 hash of the input string if successful, ''false'' otherwise.
Returns the MD5 hash of the input string if successful, ''false'' otherwise.
==Example==
<syntaxhighlight lang="lua">
--TODO
</syntaxhighlight>


==See Also==
==See Also==
{{Utility functions}}
{{Utility functions}}
[[Category:Needs Example]]

Revision as of 07:54, 19 June 2009

Calculates the MD5 hash of the specified string and returns its hexadecimal representation.

Note: returns an uppercase string, so make sure you string.upper() anything else you are checking against that has been MD5'd elsewhere.

Syntax

string md5 ( string str )

Required Arguments

  • str: the string to hash.

Returns

Returns the MD5 hash of the input string if successful, false otherwise.

Example

--TODO

See Also