This is a release I had on the LU forum that I just never got around to posting here.
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- SHA224( szString )
- SHA256( szString )
- SHA384( szString )
- SHA512( szString )
- RIPEMD128( szString )
- RIPEMD160( szString )
- RIPEMD256( szString )
- RIPEMD320( szString )
- WHIRLPOOL( szString )
NOT acceptable for password hashing and storage.
- 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.
- 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.
- 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.
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