Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization 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
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

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: 5401
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • 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: 5401
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • 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: 20643
122
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • 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.
 
It means our mission is in jeapordy! Quick, read this tiny ad!
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!