Private string CalcHMACSHA256Hash (string plaintext, string salt)
{
The string result="";
Var enc.=Encoding UTF8;//. UTF8;//the Default
Byte []
BaText2BeHashed=enc. GetBytes (plaintext),
BaSalt=enc. GetBytes (salt);
System. Security. Cryptography. HMACSHA256 hasher=new HMACSHA256 (baSalt);
Byte [] baHashedText=hasher.Com puteHash (baText2BeHashed);
Result=string. Join (" ", baHashedText toList (). The Select (b=& gt; B.T oString (" x2 ")). ToArray ());
return result;
}
CodePudding user response:
Such payment is no problem, but to participate in, when acquiring the openid to refresh the page, the parameter is missing, how to solve, session, cookie seems to be no matter to use