开发者

VB.NET: Data to Ruby

So I made an application that will generate some useful data, in VB.NET. And I also have a Ruby application, which should be able to read and interpret such generated data.

But I am unsure of开发者_运维问答 a lightweight, fast and secure way to do so. I mean, I need my VB.NET application to generate all those arrays/strings/numbers, compress them into one file, and somehow read the file's contents in Ruby without problem. Preferably, the user being unable to edit the data files.

Have any idea?


Use YAML or JSON as the intermediary format. If you don't want the user to edit the data files, zip them and/or perform some other obfuscation.


You might find working with XML easier than with JSON or YAML in .NET, and on the Ruby side it's roughly the same.

As for disabling edits, you can use some form of signing (say, have header and body in your XML, body carying the useful data, make the digital signature of the body and write it in the header).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜