SA-MP Forums Archive
Password Encrpytion - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Password Encrpytion (/showthread.php?tid=367810)



Password Encrpytion - kickerbat - 11.08.2012

Hey,

I need a snippet for this;

$salt = random hash;
$password = entered password;

Код:
md5(md5($salt) . md5($password))
Needed for a SQL function:
Код:
 format(stringsize, sizeof(stringsize), "SELECT * FROM "SQL_TABLE" WHERE Name = '%s' AND Password = md5('%s') LIMIT 1", pname, SQL_Escape[Escape]);
Salt needs to be randomly generated.


Re: Password Encrpytion - Nicholas. - 11.08.2012

Also interested in this.


Re: Password Encrpytion - kickerbat - 11.08.2012

i really need this .