I am assuming you mean a keygen for an app you've written (i.e., not like you are trying to
crack software, because those are two entirely different things).
pick any algorithm, and make a mathematical keygen on it.
most common is to do the following:
1. Get your string that you'll create a license key on, i.e., most common is a username, i.e.,
"Bob Smith".
2. Easy algorithm -- go through each character in the string one by one, and convert it to ASCII,
and "add" the numerical values together as a string.
Which would then look something like: 66111983283109105116104
(based on ASCII values of "66-111-98-32-83-109-105-116-104")
3. Then, if you wanted to make it look more 'official' like a license key, you might say replace
spaces with "-", so you would get: 6611198-83109105116104
which "looks" like an official license key. Now technically -- in this example, to make it easier to
'reverse' the process & verify the key, we'll use the one where each character is split up by a dash (-).
(That is because in this example ascii values can have 1, 2, or 3 characters per code. If you didn't want
to do that, you'd simply figure out something, i.e., making all 'codes' exactly 3 chars long and left padding
with 0's, or something like that.).
To "verify" the license key, you would do the exact opposite.
You would 'break apart' each part of the key, and see whether or not it matches
So, you'd take: 66-111-98-32-83-109-105-116-104 and split by "-", and then convert back to characters,
in this case it would 'convert' back to "Bob Smith".
Now, you'd check and see that the match code matches the one you just entered.
This is ONE way of doing it, and is called a reversible key (extremely easy), sometimes
provides extra protection (as opposed to a one way key), depending on how you implement it.
To make it more complicated, simply add some kind of math formula to the numeric values you
have, and there you go.
Enter your message below
Sign in or Join us (it's free).