msgpack / msgpack-cli

MessagePack implementation for Common Language Infrastructure / msgpack.org[C#]
http://msgpack.org
Apache License 2.0
834 stars 175 forks source link

is there good idea? msgpack with obfuscate #214

Open smflt opened 7 years ago

smflt commented 7 years ago

I want to obfuscate the serialization class

for Example class test -> DSDISUKDHSD { int a; -> int FLKDJFDLIFJ:; string b; -> string aDSAJDSLDKS;
}

but Msgpack uses alphabet sorting for reflection. so I have to use MessagePackMember(0) for all the variables.

It's too cumbersome Is there a good idea?

yfakariya commented 7 years ago

It is great reason for msgpack for cli to support "as declared" even if it potentially leads undefined behavior in own risk. I consider to add an option to disable alphabet sorting.