How to Set Up a Computer-Specific Term Licensing System Structure with C#?

fatih uyanık 100 Reputation points
2024-11-21T11:35:27.8966667+00:00

Hello,

I am developing a software with C# and I want to license users for 1, 2 or 3 years specific to their computers. I want to control the licensing period information by associating it with an ID specific to the user computer and using an encrypted license key.

However, what I want to pay attention to here is that the license period is calculated correctly and expires after a certain period of time. I am thinking of creating a unique license key for each user based on the unique ID of the user computer (for example, MAC address, CPU ID). This license key will be used in the software and will expire after its expiration.

Can I get your suggestions on how to best store the license period with options such as 1, 2 or 3 years and how to detect expired licenses?

Thanks!

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,053 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.