jjzjj

messageBytes

全部标签

创建 Facebook AppSecret_Proof HMACSHA256 需要 C# 帮助

Facebook要求我创建一个appsecret_proof:https://developers.facebook.com/docs/graph-api/securing-requests我使用以下代码完成了此操作:publicstringFaceBookSecret(stringcontent,stringkey){varencoding=newSystem.Text.ASCIIEncoding();byte[]keyByte=encoding.GetBytes(key);byte[]messageBytes=encoding.GetBytes(content);using(var