创建唯一的产品密钥 [英] Creating a unique product key

查看:117
本文介绍了创建唯一的产品密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#中编写了一个我计划在线销售的软件程序。我没有创建产品密钥/注册系统的经验。最简单的解决方案就是在注册时将相同的密钥发送给每个人,并将密钥放入代码中进行检查,但理论上可以传递或发布在互联网论坛等。是否有一种简单的方法可以为每个购买者创建一个独特的产品密钥?我能想到的唯一方法是网站改变代码,但这似乎不是一个好的解决方案。



提前谢谢。



我尝试了什么:



PS我试过谷歌搜索但是我得到了大量的结果,只显示如何制作我已经知道如何做的注册表

I wrote a software program in c# that I plan to sell online. I have no experience creating a product key/ registration system. The simplest solution would just be to send the same key to everyone when they register and put the key in the code to check but in theory that could get passed around or posted on internet forums etc.. . Is there a simple way to create a unique product key for each purchaser? The only way I can think of would be for the website to alter the code but that doesn't seem like a good solution.

Thanks in advance.

What I have tried:

PS I tried googling this but I get a ton of results which just show how to make the registration form which I already know how to do

推荐答案

这是一篇关于CodeProject的有趣文章,它解释了证书的使用:使用C#准备使用软件许可解决方案 [ ^ ]
Here is an interesting article on CodeProject which explains the use of certificates: A Ready To Use Software Licensing Solution in C#[^]


Quote:

最简单的解决方案就是发送相同的当他们注册并把钥匙放进去的时候,每个人都能找到钥匙代码要检查,但理论上可以传递或发布在互联网论坛等..

The simplest solution would just be to send the same key to everyone when they register and put the key in the code to check but in theory that could get passed around or posted on internet forums etc.. .



这也是最糟糕的解决方案。这也不是理论,这是常见的做法。



你主要有2个解决方案:

-离线:基本上,你给一个除非您将钥匙链接到PC,否则客户可以将钥匙安装到他想要的PC上。

-Online:注册是2两步,用户键入PC和PC通过到达许可证服务器来激活密钥。



使用MS Office 97,密钥可以被7整除。


It is also the worst solution. It is not a theory either, it is common practice.

You have mainly 2 solutions:
-Offline: basically, you give a key to a customer and je can install on as many PC as he want unless you link the key to a PC.
-Online: the registration is 2 two steps, the user type a key anf the PC activate the key by reaching your license server.

With MS Office 97, the keys were simply divisible by 7.


这篇关于创建唯一的产品密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆