Md5 Shared function
Jump to navigation
Jump to search
This function was added in version: 0.0.0 |
Calculates the Md5 hash of the specified text. Hash lenght is 32 hex chars.
NOTE! Returned hash is lowercase. |
Syntax
string md5(string text)
Required Arguments
- text: The text which will be hashed.
Returns
- string: The function returns Md5 text hash.
Example
Server
local function initHandler(pid)
{
local message = "Hello, World!";
local hash = md5(message);
print(hash);
}
addEventHandler("onInit", initHandler);
Client
local function initHandler()
{
local message = "Hello, World!";
local hash = md5(message);
print(hash);
}
addEventHandler("onInit", initHandler);