How to encode/protect asp scripts ?

Discussion in 'C#' started by justinlorder, Jun 8, 2009.

  1. #1
    I have two questions concerning the encode and decode.
    First is, I am eager to know how to protect/encode some important and copyright asp scripts.
    Actually I know the MS has a encoder to "encode" the asp scripts.
    Its short is too simple and not able to encode/protect the asp scripts.
    It also can't encode scripts in a folder, you have to encode one page at a time.

    My second question is how to decode asp scripts that have been encoded.
    The MS decoder seems not working.
    Are there any decoder that can decode any type of asp scripts in bulk?

    Thanks for your feedback.
     
    justinlorder, Jun 8, 2009 IP
  2. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #2
    One of the issues with classic ASP is the programming model and use of a scripting language (i.e. VBScript, JScript). I addressed script protection using two methods.

    The first was to use a strict n-tier model where we would encapsulate the business rules in compiled COM components. The ASP VBScript code was very light and did not expose any proprietary work, plus reverse engineering compiled VB code is not an easy task.

    The other approach we used was a custom encryption service that would decrypt the code on-the-fly. There is a bit of overhead with this approach, because of the decryption on each request. We did not cache, because it would expose the script source on the file system.

    I hope this helps. Also, there are 3rd party solutions available (at least there was when I was doing ASP about 6 years ago). Good luck!
     
    Social.Network, Jun 11, 2009 IP
  3. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am having some copywrited asp scripts. I think I'll use the third way to protect it.
    Thanks, Social.Network .
     
    justinlorder, Jun 30, 2009 IP
  4. VishalVasani

    VishalVasani Peon

    Messages:
    560
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    everything you are going to find is an obfuscator, and obfuscating methods can easily be circumveted by using the MS built program, there is nothing out there that will encode your script for you
     
    VishalVasani, Jun 30, 2009 IP
  5. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #5
    I designed and implemented a custom solution, but there are commercial solutions available. Search for VBScript Obfuscator. Good luck.
     
    Social.Network, Jul 2, 2009 IP