Squirrel/Server/Functions/Hashing2/RIPEMD320
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with "{{Squirrel/Title|RIPEMD320}} {{RequiresModule|lu_hashing2|Modules/Squirrel/lu_hashing2}} This function returns an RIPEMD320 hash value of the given string. This is useful for ...") |
(→Syntax) |
||
Line 5: | Line 5: | ||
== Syntax == | == Syntax == | ||
− | <code>string | + | <code>string RIPEMD320( string text )</code> |
== Arguments == | == Arguments == |
Latest revision as of 19:35, 3 March 2015
Note: This function requires the external module lu_hashing2.
This function returns an RIPEMD320 hash value of the given string. This is useful for example when storing account passwords.
[edit] Syntax
string RIPEMD320( string text )
[edit] Arguments
- text - The string to be hashed
[edit] Example
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "ripemd320" ) { if ( szText ) MessagePlayer( "The RIPEMD320 of " + szText + " is " + RIPEMD320( szText ), pPlayer ); } return 1; }
[edit] Notes
The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.
[edit] Related Functions
Hashing2 adds the following hashing functions, while also offering the functions available in the regular hashing module. lu_hashing2.