Vice Underdogs
Scripting => Script Showroom => Topic started by: stormeus on July 23, 2013, 01:38:20 am
-
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.
Functions
Acceptable 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.
Installation
Extract lu_hashing2.dll/so to your Modules folder. Place this line of code somewhere in onScriptLoad:
LoadModule( "lu_hashing2" );
Download
Windows binary (http://code.google.com/p/lu-hashing2/downloads/detail?name=lu_hashing2.dll) [.dll]
Linux binary (http://code.google.com/p/lu-hashing2/downloads/detail?name=lu_hashing2.so) [.so]
Source code (http://code.google.com/p/lu-hashing2/source/browse/#svn%2Ftrunk)
Test script (http://code.google.com/p/lu-hashing2/downloads/detail?name=Main.nut) [.nut]
Screenshot
(https://viceunderdogs.com/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FrWm4f.png&hash=995a15137edeb8e8610d0e5e3bf6228bb3e2edb2)
-
admins just check once if stormeus posted a thing like this before because the same thing happened at the oher squirrel forum at vcmp.liberty-unleashed.co.uk
-
admins just check once if stormeus posted a thing like this before because the same thing happened at the oher squirrel forum at vcmp.liberty-unleashed.co.uk
The irony here is delicious.