title: Translate code from external encrypted file to protect the code
body: <p>I am currently working in a programm that has the abillity for implementors to save Vb code in a specific form of the programm , and then the programm includes the code in an auto generated class of the core programm. Is there anyway in VB.NET in a sub() to place some type of command  like the following ?</p>
  <p>Sub()</p>
  <p>Read and Decrypt file from c:\xxxx\xxxx.txt  (the file will contain my code)</p>
  <p>End sub</p>
  <p>so that the program then puts the code in execution from a somehow encrypted file ...</p>
  <p>Now , it does something like this :</p>
  <pre><code>Namespace ESDynamicallyGeneratedCode
  
  Public Class Autogenerated_7268126381276
  
  Inherits Ent.Framework.Platform.CustomCommandsTemplate.ExprEvaluatorImpl 
  
  {My Code}
  
  End Class
  
  End Namespace
  </code></pre>