How do software/game codes are created?

765 views

Since people are having difficulties understanding my post.

I mean the activation keys.

Like those you need on windows office.

Steam keys for games.

In: Technology

4 Answers

Anonymous 0 Comments

A complex set of mathematical operations and a certain pattern that makes it unlikely that if you were to make up a string of numbers that it would fit the pattern.

For example maybe the 3rd and 9th digit have to add up to the number in the 12th digit spot, and more instances of stuff like that, but much more complex.

Anonymous 0 Comments

Explain your question …codes like konami code that enables functions to allow the player to do what isn’t normally allowed to do?

Or are you asking about writing code? like cout << “Hello, World!”;

Or are you asking how are they created

Anonymous 0 Comments

[deleted]

Anonymous 0 Comments

I’ll illustrate it with a very easy example, it’s something that we did back in high school for a charity event.

We sold entry tickets but we didn’t have the budget to print fancy ones, so we just printed them to regular paper that we cut into multiple tickets.

Each ticket had a number on it, and we had a list of all the ticket numbers. So when someone entered, we would just cross their number out on our list, and that prevented copying existing tickets.

That is good and all but what prevented people just making their own tickets with random numbers like 25 or 32 and screwing people over who actually paid for their entry?

We didn’t just number the tickets from 1 to 500, we used an equation to do so. Let’s say it’s something like *((x + 3) * 4) – 1)*. So we had ticket numbers such as 11, 19, 23, 27, etc.

If someone came in with ticket numbers 16 we would know that they were cheating. Of course the more complex the equation is the harder it is to figure out a correct number.

Online services usually use both methods to verify a key, they have a list of sold keys and they match yours to their database. Offline keys work with only the second method, they have a complex algorithm that checks that your key is correct.