Problem Hash Pass
#2

First you need a hashing function, which recieves a string as parameters, and returns a new encrypted string. The new encrypted string is what you would store in your database.
When the players try to log in, you ask them to input a password. You apply the hash function to the password they wrote, and compare if the hash is the same to the one you have stored. If it is, then the login was succesful, if it wasn't, then not.
Reply


Messages In This Thread
Problem Hash Pass - by ala67 - 31.01.2013, 15:14
Re: Problem Hash Pass - by Zamaroht - 31.01.2013, 16:00
Re: Problem Hash Pass - by ala67 - 01.02.2013, 12:31
Re: Problem Hash Pass - by ala67 - 03.02.2013, 17:34

Forum Jump:


Users browsing this thread: 1 Guest(s)