Hashing password
#5

it won't print, genius. hashed it's a local variable. if you wish to print it, it should be called inside it, or in this way.

pawn Код:
stock hashit(string[])
{
    new rand = random(10,15);
    new hashed = md5(md5(rand) . md5('%s'));
    return hashed,setproperty(.name = #this, .value = hashed);
}
// usage.
printf("%d", getproperty(.name = #this));
By the way, this function is fully wrong, it gonna give you alot of warnings.


~Cheers.
Reply


Messages In This Thread
Hashing password - by Nicholas. - 11.08.2012, 10:12
Re: Hashing password - by leonardo1434 - 11.08.2012, 10:13
Re: Hashing password - by kickerbat - 11.08.2012, 10:20
Re: Hashing password - by kickerbat - 11.08.2012, 10:23
Re: Hashing password - by leonardo1434 - 11.08.2012, 10:27
Re: Hashing password - by kickerbat - 11.08.2012, 10:32
Re: Hashing password - by leonardo1434 - 11.08.2012, 10:38
Re: Hashing password - by ReVo_ - 11.08.2012, 10:40
Re: Hashing password - by kickerbat - 11.08.2012, 10:48
Re: Hashing password - by kickerbat - 11.08.2012, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)