Is there any support for protecting code you create so that a broker can run it without being able to reverse compile the source? I want to develop strategies for lease to be run on a brokers MC platform on his server.
I know Visual Studio has Dotfuscator CE built in, so I'm wondering if that can be used even when it is not Visual Studio to my knowledge that is being used as the compiler?
Code obfuscation [SOLVED]
-
- Posts: 81
- Joined: 29 Apr 2013
- Location: www.threefoldmarkets.com
- Has thanked: 12 times
- Been thanked: 16 times
- Contact:
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Code obfuscation
Hello tradetree,
The most effective protection is to move the main part of the code into C++ library and then reference this library from C# study. Info from MultiCharts .Net FAQ
I believe there should be no problem compiling this dll with Dotfuscator CE in Visual Studio.
The most effective protection is to move the main part of the code into C++ library and then reference this library from C# study. Info from MultiCharts .Net FAQ
I believe there should be no problem compiling this dll with Dotfuscator CE in Visual Studio.
-
- Posts: 81
- Joined: 29 Apr 2013
- Location: www.threefoldmarkets.com
- Has thanked: 12 times
- Been thanked: 16 times
- Contact:
Re: Code obfuscation [SOLVED]
That makes sense. How about putting the main part of the code in a C# dll and using dotfuscator on that? Then I could reference the C# dll from my main study. Looks like from the link you shared this is how to access a C# dll:
"For C# dll you need to add a reference in PowerLanguage .Net Editor (Right click on the workarea with the code in PowerLanguage .Net Editor->References-> Add reference/Add global reference)."
I suppose C++ in a dll is more secure than C#, but I have a lot of C# code I don't want to convert to C++. Thanks for the heads up and please comment on any assumptions I made here.
"For C# dll you need to add a reference in PowerLanguage .Net Editor (Right click on the workarea with the code in PowerLanguage .Net Editor->References-> Add reference/Add global reference)."
I suppose C++ in a dll is more secure than C#, but I have a lot of C# code I don't want to convert to C++. Thanks for the heads up and please comment on any assumptions I made here.
-
- Posts: 14
- Joined: 25 Aug 2007
Re: Code obfuscation
To move the main part of the code into C++, access to the price and volume data will be the first issue.Hello tradetree,
The most effective protection is to move the main part of the code into C++ library and then reference this library from C# study. Info from MultiCharts .Net FAQ
I believe there should be no problem compiling this dll with Dotfuscator CE in Visual Studio.
Is it possible to access data stream from (Class : tsMarketData) in C++ Dll ?
Would you please demonstrate how to access price and volume data of instruments in C++ Dll ?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Code obfuscation
Hello Chi-Yuan Shih,Is it possible to access data stream from (Class : tsMarketData) in C++ Dll ?
That is possible to transfer the data from the code into the dll via the parameters of the interface methods of the dll.