Home > php教程 > php手册 > 谁能帮我把下面的PHP的代码翻译成C#的?,特别是PHP的hash

谁能帮我把下面的PHP的代码翻译成C#的?,特别是PHP的hash

WBOY
Release: 2016-06-06 19:46:03
Original
1204 people have browsed it

?php $app_key = '12008678';/*填写appkey */ $secret='';/*填入Appsecret'*/ $timestamp=time()."000"; $message = $secret.'app_key'.$app_key.'timestamp'.$timestamp.$secret; $mysign=strtoupper(hash_hmac("md5",$message,$secret)); setcookie("times


$app_key = '12008678';/*填写appkey */
$secret='';/*填入Appsecret'*/
$timestamp=time()."000";
$message = $secret.'app_key'.$app_key.'timestamp'.$timestamp.$secret;
$mysign=strtoupper(hash_hmac("md5",$message,$secret));
setcookie("timestamp",$timestamp);
setcookie("sign",$mysign);
?>

 

有PHP开发环镜的朋友请帮我输出一个结果:HMAC("MD5," 12342e93ab9ad9822c77b75fc9cf2d4bapp_key469115timespamp2012-10-23 21:41:2512342e93ab9ad9822c77b75fc9cf2d4b","12342e93ab9ad9822c77b75fc9cf2d4b")

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template