SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Guru Angry Coder's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking Encrypting ASP code... What is the best way?

    Hello,

    Could you please tell me what is the best way to encrypt ASP code?

    Thank you.
    Last edited by Angry Coder; Sep 21, 2002 at 22:58.
    Why It Doesn't Work?!

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    Svj
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why do you need to encrypt the asp code?

    Or, do you mean "best asp code for encryption"?

  3. #3
    ********* Genius Mike's Avatar
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    5,458
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ASP is processed on the server, so nobody but you (or anyone with the admin passeord) can even see the code
    Mike
    It's not who I am underneath, but what I do that defines me.

  4. #4
    SitePoint Guru Angry Coder's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation

    Actually I want to distribute a script for free, but I want to be sure that no body remove the copyright!
    Why It Doesn't Work?!

  5. #5
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    Svj
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add a "All copyright notices regarding <productname> must remain intact..." to the license agreement

    If you don't trust other people, transform the asp code into a dll

  6. #6
    SitePoint Guru Angry Coder's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by jofa
    transform the asp code into a dll
    Could you please give me more details?.. if i transform it to dll can i still run the script using just IIS or i should have other components?


    By the way, what do you think about Windows Script Encoder?
    Why It Doesn't Work?!

  7. #7
    SitePoint Wizard big_al's Avatar
    Join Date
    May 2000
    Location
    Victoria, Australia
    Posts
    1,661
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    The easiest way to create a DLL is by using VB.

    Open VB
    Select ActiveX DLL As your project
    Then create your classes and modules for your script.

    If you need access to some of ASP's intrisic object like the response object make sure to add a refrence to the "Microsoft Active Server Pages Object Library"

    Then once you are finished compile it, all the user than has to do is register the DLL on the server and access it somthing like this.

    [VBS]
    Dim objDLL

    Set objDLL = Server.CreateObject("DLLName.ClassName")

    [/VBS]

    Then they can use the properties and object in that class.

    Writting a DLL is a little different than writting an ASP page but can add alot of extra functionality to your pages, it is usualy best if you have a little experience with VB already, but nothing stopping you learning VB if you do not already
    .NET Code Monkey

  8. #8
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    Svj
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have to correct myself; compiling the code into a dll changes nothing, someone who wants to do it can still remove the copyright notice

    page1.asp:
    Set objDLL = Server.CreateObject("AngryCoderComponent.TopSecretCode")
    objDLL.DoSomething

    page2.asp:
    strResponse = <response from call to page1.asp>
    strResponse = Replace(strResponse, "Copyright 2002 Angry Coder", "Copyright 2002 Lazy Sponger")


    Windows Script Encoder? Quote from MSDN: "Note that this encoding only prevents casual viewing of your code; it will not prevent the determined hacker from seeing what you've done and how."


    My conclusion: The question is not "How can I encrypt my code so that no one can steal it?", it's "How do we improve morality?"

  9. #9
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    Svj
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    An extra reflection: It's interesting that so many people that are developing systems in which one of the basic concepts are "linking to other sources", so often "forget" to give credit to other people

  10. #10
    SitePoint Guru Angry Coder's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK..
    Thanks guys.
    Why It Doesn't Work?!

  11. #11
    SitePoint Wizard big_al's Avatar
    Join Date
    May 2000
    Location
    Victoria, Australia
    Posts
    1,661
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by jofa
    I have to correct myself; compiling the code into a dll changes nothing, someone who wants to do it can still remove the copyright notice

    page1.asp:
    Set objDLL = Server.CreateObject("AngryCoderComponent.TopSecretCode")
    objDLL.DoSomething

    page2.asp:
    strResponse = <response from call to page1.asp>
    strResponse = Replace(strResponse, "Copyright 2002 Angry Coder", "Copyright 2002 Lazy Sponger")
    Well it all depends on what your Component/Script does.

    If it outputs information then you could always hard code the copy right in to the response your component gives.

    Ofcourse this will not stop somone writting a script to parse your output first and remove the copyright notice, just a little bit harder and more work than just hi-lighting some code and hitting delete.


    My conclusion: The question is not "How can I encrypt my code so that no one can steal it?", it's "How do we improve morality?"
    I would have to agree with you there, you can apply licencing agreements, but most people will not even read them out of ignorance.

    I guess the final conclusion is, that there is no way to ensure your script will not be ripped off and the copyright taken out and the person claiming it's their own.
    .NET Code Monkey

  12. #12
    SitePoint Wizard big_al's Avatar
    Join Date
    May 2000
    Location
    Victoria, Australia
    Posts
    1,661
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Woops, just noticed I repeated some of your comments jofa, sorry.
    .NET Code Monkey


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •