protobuf加密解密
关于protobuf的介绍可以查看Google的ProtocolBuffers文档.
message Data {
required string stringVal;
optional bytes bytesVal;
repeated int32 int32Val;
}
引擎提供了十分好用的protobuf加密解密工具xpb.
xpb.loadfile(FileUtils:FullFilePath("Asset/test/test.pb"))
protobuf加密方法: xpb.encode(tbpb); //将table转换成protobuf串.
protobuf解密方法: xpb.decode(tbpb); //将probuf串转换成table.