2021年4月1日星期四

how can I write hash sha256 in Golang

I need to convert some PHP code to Golang and I stuck somewhere. PHP code looks like this `

$CLIENT_ID = 1;//CLIENT_ID type integer  $apikey = "apikey";//apikey type string   $TIMESTAMP = date('YYYYMMDDhhmmss');//current TIMESTAMP in format YYYYMMDDhhmmss  $token = base64_encode(hash("sha256",$CLIENT_ID.$apikey.$TIMESTAMP));  

can any one help me in conversion of this code?

https://stackoverflow.com/questions/66913631/how-can-i-write-hash-sha256-in-golang April 02, 2021 at 10:06AM

没有评论:

发表评论