say if i were to release a big peice of software, like microsoft products.
how could i put a product key in it so only the person that has the key can install and run it????
Printable View
say if i were to release a big peice of software, like microsoft products.
how could i put a product key in it so only the person that has the key can install and run it????
You mean like put in A=123 somewhere, and the customer has to enter 123 before it will run?
That's all it takes, although there are better methods.
How secure do you want to make it? Do you want to answer activation calls at all hours?
You can also pay someone else to do that for you.
well im talking about like there is a long textbox and if you buy the product you have to put in the key.
for example, my 30 day trial runs out tomarrow and inorder to keep the program i must purchase a product key. like:
E8D87-2KDY6-9JHY8-CMN19-RO2H8
hope this helps you to understand.
regards!
any suggestions?
This is how it usually works...
- App generates a unique ID string at first start and shows this to the user in the "please register me" window.
- User copy/paste the unique ID into a form on (your) website.
- The website uses an algorithm to convert the unique ID into a unique answer and gives that to the user.
- User copy/paste the answer into the "register me window".
- Each time the program starts it checks if the answer is correct and then runs as a full version. If the answer is not correct it shows the "register me" window again and runs in demo mode.
This is of course just a generalisation, but one which you can build upon to make it more secure. In any case a cracker with a debugger could remove the check done at the start of your program and as such bypass your security.
On which of these steps do you require suggestions?
i dont know how they get the unique id though. like for each program there is a different one.
i thought i whent like:
you open the program and it asks you for the key if you dont have it you can use the unregisterd version. but if you do have it you can put it in and use the full version.
what i need to know is how to put a different register key into each program that will match one on my site.
You can calculate a key by using the hardware in the computer. Things like the MAC address and motherboard + HD info can be used for this. You can concatenate all this info in a string and then MD5 it so that you get a binary hash. This hash you then show in the registration window as a key and due to the way you generated it from the hardware components you know it will be unique to that particular system. You can add a simple checksum to it so that if users type it over (instead of using cut/paste) you can detect any possible typing errors in the key when users enter it on your website.
thanks that explains how to get a key. but i just need to look into this a lot more.
anyways thaks for your help!
(Side note: hey, I would be proud if my program attracted enough interest for a cracker to make a crack :) )
Does not simply write a check routine like this:
Because it only takes a cracker to change a single bit in your code (the IF evaluation from false to true) without even bother to reverse enginnering your key.Code:If UserEnteredKey = MyValidKey then
'Run the code
Else
'Ask the user to enter again a valid key
end if
Instead encript some vital piece of data with the key.