c# dll encryption -


i need encrypt c# code used by asp.net pages. so, when compile create dll file need encrypt dll file. please me how encrypt dll file...

one thing may able embed encrypted .dll .dll decrypted , loaded @ runtime.

  • first, compile .dll code want protect.
  • second, encrypt .dll in whatever manner see fit.
  • then, create second .dll have encrypted .dll embedded resource.
  • have second, outer, .dll ask key @ runtime.
  • the outer .dll decrypt encrypted .dll key.
  • the outer .dll can call system.appdomain.currentdomain static method, , load decrypted .dll using load method.
  • the outer .dll may have inter-op between asp.net , decrypted .dll.

there limitations tis method. need provide instance key each time @ startup things running. there ways intercept this. also, decrypted .dll exist in memory, decrypted, once key has been provided. there ways read this.

this method useful protect code form might steal hard disk drive. not absolute barrier in control of machine running code.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -