许可证密钥的创建 [英] creation of licence key

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

问题描述

您能否在c#.net中提供动态生成许可证密钥的代码.

Could u please provide the code for generation of licence keys dynamically in c# .net.

推荐答案

对不起,但不能,我们不能.
我们不知道您要基于什么许可证密钥,您想要什么信息或有关它的任何其他信息.

有一篇文章可能会帮助您创建自己的方案:许可证密钥生成 [ ^ ]
Sorry, but no, we can''t.
We have no idea what you want to base your licence key on, what info you want in it, or any other info about it.

There is an article which may help you to create your own scheme: License Key Generation[^]


执行此操作的代码"不是那么简单.我无法根据一个句子的要求为您提供解决方案.您需要考虑很多事情.例如,您希望如何生成密钥(基于计算机信息,用户信息,注册信息等)?接下来,您是否要集中存储此信息,以便应用程序可以依靠服务器进行自我验证,还是要信任您的应用程序以验证其自身的密钥?

这是一个Stack Overflow问题,对这种类型的问题有很好的答案:

http://stackoverflow.com/Questions/453030/how-can-i-create-a-product-key-for-my-c-sharp-app [ http://www.eziriz.com/ [ ^ ]

现在看看您要做什么.您是否正在尝试解决此应用程序解决的问题?需要吗?通常我发现人们没有意识到这最终可能会成为一个大问题.有时,人们只想要简单的东西,他们发现创建密钥可能不是一个简单的解决方案,而是有其他选择.
The "code" for doing this isn''t that simple. I could not give you a solution based upon a one-sentence requirement. There are a number of things you need to consider. For example, how do you want the key to be generated (based off of computer information, user information, registration information, etc.)? Next, do you want to store this information centrally so the application can look to a server to verify itself or do you want to trust your application to verify its own key?

Here is a Stack Overflow question that has some great answers to this type of question:

http://stackoverflow.com/questions/453030/how-can-i-create-a-product-key-for-my-c-sharp-app[^]

While I''m not necessarily saying you have to use a commercial application to do this, look through what this commercial application does and why:

http://www.eziriz.com/[^]

Now look at what you were trying to do. Is what you were trying to do going to solve the issues that this application solves? Does it need to? Usually I find that people don''t realize how big an issue this can really end up being. Other times, people just want something simple and they find that creating keys might not be a simple solution but that there are alternatives.


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

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