D vs. C#

Walter Bright newshound1 at digitalmars.com
Mon Oct 22 11:27:47 PDT 2007


Michael P wrote:
> Distribute a single binary could be achived by encrypting the source
> code and sending it to your client, Then you could have a compiler
> that knows the key to it (or that the compiler gets the key from a
> server) so it takes the code and decrypts it and at the same time
> compiles it.

I once went through the design of encrypting source, and concluded it 
wasn't very practical (look at CSS for DVDs!). Also, it's pretty clear 
that VM bytecode does a lousy job of obfuscating source - good Java byte 
code decompilers exist.

You might as well distribute source - after running it through a comment 
stripper, of course.



More information about the Digitalmars-d mailing list