RIPEMD160
From Liberty Unleashed Wiki
Note: This function requires the external module lu_hashing2.
This function returns an RIPEMD160 hash value of the given string. This is useful for example when storing account passwords.
Syntax
string RIPEMD160( string text )
Arguments
- text - The string to be hashed
Example
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "ripemd160" ) { if ( szText ) MessagePlayer( "The RIPEMD160 of " + szText + " is " + RIPEMD160( szText ), pPlayer ); } return 1; }
Notes
The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.
Related Functions
Hashing2 adds the following hashing functions, while also offering the functions available in the regular hashing module. lu_hashing2.