1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Licensing system

Discussion in 'General Programming Chat' started by Tanckom, Jul 12, 2014.

  1. Tanckom

    Tanckom Power Member

    Joined:
    May 4, 2014
    Messages:
    570
    Likes Received:
    172
    Location:
    ☯ Karma ☯
    Home Page:
    Hello, I'm looking for something to protect my files/tool, i want to put a license key to them for free
     
  2. SliceGFX

    SliceGFX Newbie

    Joined:
    Dec 16, 2009
    Messages:
    16
    Likes Received:
    4
    You can do HMAC validation. Depends what language you're using but usually unique hash implementations are trivial.
     
  3. Tanckom

    Tanckom Power Member

    Joined:
    May 4, 2014
    Messages:
    570
    Likes Received:
    172
    Location:
    ☯ Karma ☯
    Home Page:
    I need to secure files, those are not written in Java :/
     
  4. zohar

    zohar Newbie

    Joined:
    Jun 24, 2014
    Messages:
    44
    Likes Received:
    5
    Really depends on how much time you have. One of my best experiences is to download files (e.g. DLLs in a win app) from a server and load them in memory. Then let your dependency file generate a checksum code relative to your server's unique HTTP header. If the thing does not match then you are dealing with an invalid license. In this way, you can generate unique hashes for every license request since there really is no pattern to crack a.k.a real polymorphism.
     
  5. cleanguy2

    cleanguy2 Jr. VIP Jr. VIP

    Joined:
    Jan 28, 2013
    Messages:
    128
    Likes Received:
    19
    Try to make your app as most server dependable as possible.
    So even if they get around license checking (most likely they will) they still can't use some of the functions.