Modules/hashing/alder32: Difference between revisions
Jump to navigation
Jump to search
(New page: {{ModuleFunction|hashing}} Calculate the '''alder32''' hash of the given string ==Syntax== <syntaxhighlight lang="lua"> string alder32( string str ) </syntaxhighlight> ===Required arguments=== * '''str:''' string...) |
(No difference)
|
Latest revision as of 04:57, 19 September 2008
This function is provided by the external module hashing. You must install this module to use this function. | |
Calculate the alder32 hash of the given string
Syntax
string alder32( string str )
Required arguments
- str: string of which you want to calculate the hash
Returns
String containing calculated alder32 hash of str or nil if str wasn't string
Example
Example: This calculates the hash of "hello world" and prints it in debug window
hash = alder32( "hello world" ) -- get alder32 hash of "hello world" outputDebugString( hash )