Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Generating an UNCOMMON format file using java!  RSS feed

 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
First of all I'm sorry that I haven't tried any code yet as I need suggestion or a the steps to do this!
Well I want to generate a license key for my software product. I'm aware of Google's Guava Libraries for generating alpha numeric license keys. But I'm thinking it to do in a different way without using any such libraries or specifically guava libraries. Till now this is my plan that,

1. Get a MAC ID / IP Address of the system in which the application will be installed and ready for it's first use.

2. Store that MAC ID in a UNCOMMON File format in client's PC only.

3. And what should be the next step.?

Please help me as am absolutely new to this!
Many Thanks!
Pranit
 
Paul Clapham
Sheriff
Posts: 22476
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of answering, let me ask some questions instead. I see that you have already taken note of the fact that a computer might have more than one MAC address (you said "a" MAC address and not "the" MAC address). So far so good.

But my questions are:

1. Why do you want to store that MAC address in a file? You can already find the machine's MAC address. Although it's true that if the computer gets a new motherboard installed, it will then have a new MAC address, and then the one you saved in the file will be different. Did you plan to do something based on that difference, or was there some other reason for storing the MAC address in a file?

2. What do you mean by an "uncommon" file format? And why does the file format matter?

It's hard to say what the next step is before we understand the reasons for the steps you already planned.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!