Whirlpool Encrption and PHP
#2

Ehm, something like this should do it!? Just a bare example, don't forget to escape inputs, ...

PHP код:
$username $_POST['username'];
$password hash('whirlpool'$_POST['password']);
$mResult mysql_query("SELECT NULL FROM `players` WHERE `name`='$username' AND `password`='$password' LIMIT 1");
if(!
mysql_num_rows($mResult)) {
    
// invalid
}
else {
    
// valid
}} 
Reply


Messages In This Thread
Whirlpool Encrption and PHP - by =AV=Gibson - 27.11.2011, 21:50
Re: Whirlpool Encrption and PHP - by woot - 27.11.2011, 22:02
Re: Whirlpool Encrption and PHP - by =AV=Gibson - 27.11.2011, 22:11

Forum Jump:


Users browsing this thread: 2 Guest(s)