Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Licensing Java Application?!?

Licensing Java Application?!?

Scheduled Pinned Locked Moved Java
csharpjavajavascriptphpdatabase
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Firo Atrum Ventus
    wrote on last edited by
    #1

    Well, I'm working on an application that works as a server for a Ship Management System. And my boss had an idea to limit client number based on license. After brief discussion we agreed to with a licensing system where we distribute a license file that must be put in app dir that contain a definition regarding how many clients are allowed. Now regarding that file, I'm thinking of creating a class that contains the info then serialize it. and distribute that file to client and read the file from my application. My questions are, what encryption should I use? Are there any better solution?

    Oxfords English < Official CCC Players Dictionary Excuse me for my improper grammar and typos. It's because English is my primary language, not my first language. My first languages are C# and Java. VB, ASP, JS, PHP and SQL are my second language. Indonesian came as my third language. My fourth language? I'm still creating it, I'll let you know when it's done! :-D

    T B 2 Replies Last reply
    0
    • F Firo Atrum Ventus

      Well, I'm working on an application that works as a server for a Ship Management System. And my boss had an idea to limit client number based on license. After brief discussion we agreed to with a licensing system where we distribute a license file that must be put in app dir that contain a definition regarding how many clients are allowed. Now regarding that file, I'm thinking of creating a class that contains the info then serialize it. and distribute that file to client and read the file from my application. My questions are, what encryption should I use? Are there any better solution?

      Oxfords English < Official CCC Players Dictionary Excuse me for my improper grammar and typos. It's because English is my primary language, not my first language. My first languages are C# and Java. VB, ASP, JS, PHP and SQL are my second language. Indonesian came as my third language. My fourth language? I'm still creating it, I'll let you know when it's done! :-D

      T Offline
      T Offline
      TorstenH
      wrote on last edited by
      #2

      use dongles. Dongles @ Wikipedia[^] With dongles you can control who uses the Software and how much copies are used. The dongle should be handled as a chip card, a USB-Dongle opens a gate to get viruses and all kinds of other stuff onto the ship. Also think of obfuscation -> encryption of the code.

      regards Torsten I never finish anyth...

      F 1 Reply Last reply
      0
      • T TorstenH

        use dongles. Dongles @ Wikipedia[^] With dongles you can control who uses the Software and how much copies are used. The dongle should be handled as a chip card, a USB-Dongle opens a gate to get viruses and all kinds of other stuff onto the ship. Also think of obfuscation -> encryption of the code.

        regards Torsten I never finish anyth...

        F Offline
        F Offline
        Firo Atrum Ventus
        wrote on last edited by
        #3

        Thanks for the info on Dongle, it's a nice read (though I highly doubt my boss would agree with this one).

        TorstenH. wrote:

        Also think of obfuscation -> encryption of the code.

        Sup, will do.

        Oxfords English < Official CCC Players Dictionary Excuse me for my improper grammar and typos. It's because English is my primary language, not my first language. My first languages are C# and Java. VB, ASP, JS, PHP and SQL are my second language. Indonesian came as my third language. My fourth language? I'm still creating it, I'll let you know when it's done! :-D

        1 Reply Last reply
        0
        • F Firo Atrum Ventus

          Well, I'm working on an application that works as a server for a Ship Management System. And my boss had an idea to limit client number based on license. After brief discussion we agreed to with a licensing system where we distribute a license file that must be put in app dir that contain a definition regarding how many clients are allowed. Now regarding that file, I'm thinking of creating a class that contains the info then serialize it. and distribute that file to client and read the file from my application. My questions are, what encryption should I use? Are there any better solution?

          Oxfords English < Official CCC Players Dictionary Excuse me for my improper grammar and typos. It's because English is my primary language, not my first language. My first languages are C# and Java. VB, ASP, JS, PHP and SQL are my second language. Indonesian came as my third language. My fourth language? I'm still creating it, I'll let you know when it's done! :-D

          B Offline
          B Offline
          Bernhard Hiller
          wrote on last edited by
          #4

          Create a hash of the relevant license data, encrypt it on your computer with your private key, and add that to the license file. The application shipped to the customer contains the public key. The application reads the license file, creates the hash as you did on your local computer, decrypts the stored encrypted hash value and compares it with its computed hash value. If it's ok, the license file is ok, otherwise the application would refuse to run. I.e. you use an encryption method with a public and a private key.

          F 1 Reply Last reply
          0
          • B Bernhard Hiller

            Create a hash of the relevant license data, encrypt it on your computer with your private key, and add that to the license file. The application shipped to the customer contains the public key. The application reads the license file, creates the hash as you did on your local computer, decrypts the stored encrypted hash value and compares it with its computed hash value. If it's ok, the license file is ok, otherwise the application would refuse to run. I.e. you use an encryption method with a public and a private key.

            F Offline
            F Offline
            Firo Atrum Ventus
            wrote on last edited by
            #5

            Ah, Thanks for the heads up.

            Oxfords English < Official CCC Players Dictionary Excuse me for my improper grammar and typos. It's because English is my primary language, not my first language. My first languages are C# and Java. VB, ASP, JS, PHP and SQL are my second language. Indonesian came as my third language. My fourth language? I'm still creating it, I'll let you know when it's done! :-D

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups