23.05.2014, 18:38
Use whirlpool and for salting generate a random string, add it to the password when someone registers and save it in the players file. Then when that player tries to login, add that saved string to his input, hash it and compare it. Also shoudn't the password be saved as a string instead of int (I can't even see where you save it)?