This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

License Key Algorithm  RSS feed

 
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,

I am trying to add software licensing to my software, which I am planning to sell (which means if the license if correct, give access to the software. Else, break the access). I don't have any servers, so unable to connect to them. I am going to use "Kagi" service to sell my software ( I don't like to use their server support for licensing too, because it is time for me to get some break ). So, I decided to use client side validation. Anyway, I am in a confuse of how to generate the license(the license algorithm) and how to validate it (according to license algorithm). I can do it in my way, but don't like to mess with this security issue, so decided to take your expertise help. Please tell me/show me/give examples for how to create this License Generator, and Validator. And, if you are posting an example with an algorithm, please be kind enough to explain it if you think it is complex. Because then only I can create one of my own

Please help..
 
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved from Swing / AWT / SWT / JFace
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Darryl Burke wrote:Moved from Swing / AWT / SWT / JFace

Thanks Darryl


Any help here please?
 
Saloon Keeper
Posts: 5282
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See http://www.coderanch.com/how-to/java/Java-FAQ#licensing for some available options (unless there is a reason you want to roll your own).
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:See http://www.coderanch.com/how-to/java/Java-FAQ#licensing for some available options (unless there is a reason you want to roll your own).



Thanks Tim. Yes, I need to go for one of my own, the reason is, I need to keep it simple.
 
Tim Moores
Saloon Keeper
Posts: 5282
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That reason sounds fishy. I would imagine that it's far simpler to use an existing solution than to try to roll your own (and make it reliable, safe and easy to use).
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If using one of the existing solutions (as mentioned by Tim) is not an option for you, you can use RSA to implement a simple and effective licensing mechanism. A good article that explains the background and details is https://build-system.fman.io/generating-license-keys.

I would also recommend obfuscating your Java code, because Java is very easy to decompile.
 
Saloon Keeper
Posts: 20505
115
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the referenced website:


No license scheme is 100% secure.



As for obfuscated code, I laugh. Back before the DMCA was enacted, I needed a feature for my C compiler that Microsoft's MASM couldn't handle. So I disassembled MASM and patched code into it to give it that feature. MASM wasn't merely obfuscated, it contained no symbolic information whatsoever. Didn't slow me down.

Locks, as they say, are for honest people. I've always counseled paranoid people that if they make their products sufficiently annoying then people WILL crack any protection scheme if only for the challenge of doing so. In the mean time, you've probably crippled the product for those who actually paid for it and you've spent time on "copy protection" that could have been spent on a better product. There are always those who think it's cool to steal, but a good product at a fair price, people will pay for. Consider the fact that Red Hat not only sells a free enterprise OS system, they even provide an even freer one (CentOS), and they're a billion-dollar corporation.

Besides, this thread is 6 years old. In the IT industry, likely most of the particpants have passed on to other employers twice now, so they wouldn't care anymore.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!