ANXBTC.com / MTGOX v2 API "Authentication"
Michael,

To generate the Rest-Sign header, use the following code (example in PHP):


Rest-Sign function

 function hmac_512($msg, $secret)
        {
        $secret = base64_decode($secret);
        $result = hash_hmac('sha512', $msg, $secret, true);
        return base64_encode($result);
        }


Rest-Sign inputs
$post_data should be an array with a nonce and any relevant API post data, and $api_path should be the portion of the API after https://anxbtc.com/api/2/ that you are calling.

       $post_data_encoded = http_build_query($post_data);
       $msg = $api_path . "\0" . $post_data_encoded;
       $rest_sign = $this-&gt;hmac_512($msg, $api_secret);




Regarding your second question, you can run this API from your personal computer or a server.

Hope this helps,

Evan