SA-MP Forums Archive
For a Better Password - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: For a Better Password (/showthread.php?tid=608537)



For a Better Password - Amunra - 02.06.2016

I Want to using Y_Ini for My Gamemode ...
So I Want to store the Password and Get a Password Is Corret or Not at OnPlayerConnect ....

So the Better I Use ... WP_Hash (Whirlpool) or udb_Hash (Dracoblue) ?

Thanks Before..


Re: For a Better Password - Deroxi - 02.06.2016

If fully your choice. If you'd ask me: Whirlpool


Re: For a Better Password - Chilli9434 - 02.06.2016

Whirlpool and use a random salt for the best security in my opinion. Great tutorial here if needed: https://sampforum.blast.hk/showthread.php?tid=350664


Re: For a Better Password - Amunra - 02.06.2016

Quote:
Originally Posted by Deroxi
Посмотреть сообщение
If fully your choice. If you'd ask me: Whirlpool
Yeah , Maybe the Accurate is High !!

I Doubt with this choice ... so i ask SA-MP


Re: For a Better Password - Amunra - 02.06.2016

Quote:
Originally Posted by Chilli9434
Посмотреть сообщение
Whirlpool and use a random salt for the best security in my opinion. Great tutorial here if needed: https://sampforum.blast.hk/showthread.php?tid=350664
Agree.. I have thought about it

And Thanks for the Link and your Opinion xD ..


Re: For a Better Password - Vince - 02.06.2016

Udb_hash is NOT a hashing algorithm and utter crap. I think you could've deducted that yourself by the fact that the udb_hash function (a.k.a. Adler32 checksum algorithm) is about ten lines long while Whirlpool requires an entire plugin to function. Personally I would now go for the inbuilt SHA256_PassHash.


Re: For a Better Password - Amunra - 02.06.2016

Quote:
Originally Posted by Vince
Посмотреть сообщение
Udb_hash is NOT a hashing algorithm and utter crap. I think you could've deducted that yourself by the fact that the udb_hash function (a.k.a. Adler32 checksum algorithm) is about ten lines long while Whirlpool requires an entire plugin to function. Personally I would now go for the inbuilt SHA256_PassHash.
I Need an Example for this..
I Never use this code before ..


Re: For a Better Password - Amunra - 02.06.2016

Anyone ?
I Need a simple Example for using this Function


Re: For a Better Password - Stinged - 02.06.2016

Either Whirlpool or the new 0.3.7 SHA256 function.
Whirlpool is more secure but SA-MP isn't a bank or something, so SHA256 should be more than enough.
https://sampforum.blast.hk/showthread.php?tid=581336


Re: For a Better Password - Amunra - 02.06.2016

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Either Whirlpool or the new 0.3.7 SHA256 function.
Whirlpool is more secure but SA-MP isn't a bank or something, so SHA256 should be more than enough.
https://sampforum.blast.hk/showthread.php?tid=581336
And what the function of salt ?
the SHA256_PassHash(string, salt, Password, len_of_password);

I Dont know how to use Salt ..
Anyone for Example?