[Tutorial] Properly Securing Passwords
#16

Good tutorial. I had a few thoughts though.

As for the server hanging with a 60k hash loop, I have to agree that despite it being secure, it currently is not viable in samp (as it would cause major lagg, especially with a lot of players and or on a shared server), but that doens't mean we should discard it. We could always enhance the algorithm that salts the pass to begin with. Right now we add the salt to the end of the password, why actually? Why don't we add it in, say, the middle of the password? This way the attacker would first have to guess, even with the salt where it is placed in the password. Of course then we could also hash it a few thousand times to be on the safe side. There is almost no way for the attacker to know how much times the password is calculated, IMHO, getting some random value like 1358 would be safer as he would have to do it exactly 1358.

I also had another thought. Why don't we use some random variable like the players name for the salt. And make a function to calculate the salt using that (maybe a hash of some sort), we don't store the salt anywhere and we do not know the salt, this way if the attacker cracks the database he doesn't have access to the salt. Now I think of that a bit more, the latter might be a bit unsafe.

I'm not going to claim to know much on this subject, I never had classes in it and I'm merely expressing a few thoughts I had, if anyone who is more knowing on this subject could dismiss it (if it proves to be unsafe) I'd be glad to know.
Reply


Messages In This Thread
Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 00:59
Re: Properly Securing Passwords - by Luis- - 22.02.2013, 08:47
Re: Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 10:55
Re: Properly Securing Passwords - by Babul - 22.02.2013, 11:12
Re: Properly Securing Passwords - by Johnson_boy - 22.02.2013, 12:00
Re: Properly Securing Passwords - by Jstylezzz - 22.02.2013, 12:02
Re: Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 13:25
Re: Properly Securing Passwords - by Vince - 22.02.2013, 14:02
Re: Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 14:06
Re: Properly Securing Passwords - by Vince - 22.02.2013, 14:40
Re: Properly Securing Passwords - by SchurmanCQC - 22.02.2013, 16:29
Re: Properly Securing Passwords - by Vince - 22.02.2013, 16:56
Re: Properly Securing Passwords - by Johnson_boy - 22.02.2013, 17:39
Re: Properly Securing Passwords - by Johnson_boy - 25.02.2013, 18:28
Re: Properly Securing Passwords - by Johnson_boy - 26.02.2013, 06:59
Re: Properly Securing Passwords - by playbox12 - 26.02.2013, 08:07
Re: Properly Securing Passwords - by SchurmanCQC - 08.07.2013, 15:27
Re: Properly Securing Passwords - by iTheScripter - 08.07.2013, 21:21
Re: Properly Securing Passwords - by Mindcode - 09.07.2013, 12:54
Re: Properly Securing Passwords - by BabyBauer - 17.07.2018, 14:54
Re: Properly Securing Passwords - by IdonTmiss - 17.07.2018, 17:43
Re: Properly Securing Passwords - by Calisthenics - 17.07.2018, 17:54
Re: Properly Securing Passwords - by AmigaBlizzard - 22.07.2018, 10:03

Forum Jump:


Users browsing this thread: 6 Guest(s)