Konvertieren Sie das Klassenobjekt in JSON -Knoten Js
var j = {
"name": "binchen"
};
console.log(JSON.stringify(j));
Tomer Mantzuri
var j = {
"name": "binchen"
};
console.log(JSON.stringify(j));
private string Encrypt(string data, long timestamp)
{
MD5CryptoServiceProvider md5CSP = new MD5CryptoServiceProvider();
byte[] testEncrypt = Encoding.UTF8.GetBytes(data + _config.privateKey.Substring((int)(timestamp % 1000)));
byte[] resultEncrypt = md5CSP.ComputeHash(testEncrypt);
return BitConverter.ToString(resultEncrypt).Replace("-", "").ToLower();
}