Thread: Module: Crypto
View Single Post
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 11-15-2019 , 19:52   Re: Module: Crypto
Reply With Quote #6

Quote:
Originally Posted by JocAnis View Post
Can anyone give one good example of using hash_string ? Maybe for pass (login system) for mysql?
If you want to implement a connection system between your game server and say... a forum you might want to hash strings, since that's how most forum systems do it.

For example, for MyBB:

PHP Code:
md5(md5($salt).md5($plain_pass)); 
$plain_pass being the plain text password and $salt a random generated string.

Altough it would be easier to implement a Steam login to bind the IDs to your forum users unless, well, you know.
__________________

Last edited by gabuch2; 11-15-2019 at 19:53.
gabuch2 is offline