07.02.2018, 09:32
Can i make a inc to use it on my local samp server, instead to use https to call it on a external host server?
I want my login server work even the external host server it's down.
Ty to see my question.
I want my login server work even the external host server it's down.
Код:
public function hashPassword($password) { $salt = "$2a$" . SOMETHING . "$" . SOMETHING_ELSE; $newPassword = $password; for ($i = 0; $i < PASSWORD_SHA512_ITERATIONS; $i++) { $newPassword = hash('sha512', $salt.$newPassword.$salt); } return $newPassword; }