crypto-obfuscator

Json.NET and Obfuscation, deserialization not working

风格不统一 提交于 2019-12-01 08:05:08
I would like to share a solution my team and I discovered to overcome the problem that appears when you try to couple Json.Net and Obfuscation. My config: VS2013, C#, .NET 4.0, Json.Net 7.0.1, CodeWall/Crypto Obfuscator. Everything works fine till I obfuscate my code. After that I can't deserialize my json file (that has been serialized correctly!). Our solution provide a "sort of hacking" of the DefaultSerializationBinder class, that you can simply pick from the source code and modify at will (or provide your custom override of the abstract class SerializationBinder). The problem seems to

Json.NET and Obfuscation, deserialization not working

无人久伴 提交于 2019-12-01 05:46:12
问题 I would like to share a solution my team and I discovered to overcome the problem that appears when you try to couple Json.Net and Obfuscation. My config: VS2013, C#, .NET 4.0, Json.Net 7.0.1, CodeWall/Crypto Obfuscator. Everything works fine till I obfuscate my code. After that I can't deserialize my json file (that has been serialized correctly!). 回答1: Our solution provide a "sort of hacking" of the DefaultSerializationBinder class, that you can simply pick from the source code and modify