$newRequesterPass=mysql_real_escape_string($_POST['userPass']);
$static_salt = 'M0AaE|}{<}|{&*@^AhEQ';
$dynamic_salt = mt_rand();
$newRequesterPass = sha1($dynamic_salt . $password . $static_salt);
$newRequesterDynamSalt = $_POST($dynamic_salt);
I get error: Function name must be a string
How do I get this code to $_POST correctly:
$newRequesterDynamSalt = $_POST($dynamic_salt);
$_POSTis an array, you access arrays with [], so:But, it seems you confused server side and client side into one script.
The fix I gave is just for the specific error, not for the algorithm u try to implement.