Stormeus' Improved Hashing (
lu_hashing2 )
This module is an improvement and a variant of Liberty Unleashed's
lu_hashing module, which ships with the server. This version offers a wider variety of hashing functions which are more secure, while still offering backward-compatibility by allowing the use of the SHA1 and
(insecure!!) MD5 algorithms.
FunctionsAcceptable for password hashing and storage[list]
SHA224( szString )[/li]
SHA256( szString )[/li]
SHA384( szString )[/li]
SHA512( szString )[/li]
RIPEMD128( szString )[/li]
RIPEMD160( szString )[/li]
RIPEMD256( szString )[/li]
RIPEMD320( szString )[/li]
WHIRLPOOL( szString )[/li]
[/list]
NOT acceptable for password hashing and storage.
[list]
SHA1( szString )Algorithmically weak and contains weaknesses that make it relatively easy to crack. This function is only provided for backwards-compatibility. If you are creating a new script, DO NOT USE THIS.
[/li]
MD5( szString )MD5 has flaws in its algorithm that allows it to be broken relatively easily. This function is only provided for backwards-compatibility. If you are creating a new script, DO NOT USE THIS.
[/li]
base64_encode( szString )
base64_decode( szString )base64 is easily encoded and decoded. Storing passwords with base64 is not recommended ever because it is extremely easy to reverse.[/li]
[/list]
InstallationExtract
lu_hashing2.dll/so to your
Modules folder. Place this line of code somewhere in onScriptLoad:
LoadModule( "lu_hashing2" );DownloadWindows binary [.dll]
Linux binary [.so]
Source codeTest script [.nut]
Screenshot