Каков эквивалент этого кода в языке Си#
I dont know PHP and I am stucking at one Position can anybody help me. I have a code in PHP.
function signUrl($url, $key, $secret, $timestamp) { $request_type = 'GET'; $content_type = ''; $content_body = ''; $content_digest = base64_encode(pack('H*', md5($content_body))); $request_array = array($request_type, $content_type, $content_digest, $url, $timestamp); $request_string = implode(',', $request_array); $signature = hash_hmac('sha256', $request_string, $secret, false); $signed_url = "{$url}&signature={$signature}"; return $signed_url; }
Что я уже пробовал:
Any help would be appreciated