private static PlayerConfig_Extra randomlizeConfig(PlayerConfig playerConfig) { string playerConfigString = JsonConvert.SerializeObject(playerConfig); PlayerConfig_Extra playerConfigExtra = JsonConvert.DeserializeObject <PlayerConfig_Extra>(playerConfigString); playerConfigExtra.API_key = webAPI_key; playerConfigExtra.ticket = ticket; return(playerConfigExtra); }
public static string SHA256(PlayerConfig playerConfig) { PlayerConfig_Extra playerConfigExtra = randomlizeConfig(playerConfig); string hashFirst = JsonConvert.SerializeObject(playerConfigExtra); Debug.Log(hashFirst); string hashSecond = SHA256(hashFirst); return(hashSecond); }