Encoding players passwords.
#10

Quote:
Originally Posted by BigETI
Посмотреть сообщение
No, if a player creates a new account on your server (means creating a new file at scriptfiles directory) so you have to hash the registration password right after the player attempts to create a new account. Now usually this player will quit and rejoin again to play with its stats. So after the player logs into your server to use its stats you have to hash the password the player uses to write to log in, get the earlier saved one and compare both strings to check whether the password was correct or just totally wrong.
if(Hash of input password == hash in the file) we can login

MrPlatinum, You should compare the encrypted passwords

P.S. Encryption helps to steal passwords in case of burglary. If the password can decrypt it is not reliable.

(Sorry for my bad English)
Reply


Messages In This Thread
Encoding players passwords. - by MrPlatinum - 28.09.2012, 11:09
Re: Encoding players passwords. - by Red_Dragon. - 28.09.2012, 11:13
Re: Encoding players passwords. - by MrPlatinum - 28.09.2012, 11:18
Re: Encoding players passwords. - by stabker - 28.09.2012, 11:21
Re: Encoding players passwords. - by MrPlatinum - 28.09.2012, 11:25
Re: Encoding players passwords. - by HyDrAtIc - 28.09.2012, 11:26
AW: Encoding players passwords. - by BigETI - 28.09.2012, 11:28
Re: Encoding players passwords. - by MrPlatinum - 28.09.2012, 11:34
AW: Encoding players passwords. - by BigETI - 28.09.2012, 11:40
Re: AW: Encoding players passwords. - by stabker - 28.09.2012, 11:43

Forum Jump:


Users browsing this thread: 2 Guest(s)