function sign_string($string, $secret, $salt) { return hash_hmac('sha1', "{$string}:{$salt}", $secret); }