如何在Web应用程序中生成许可证密钥? [英] How to generate License Key in Web Application?

查看:223
本文介绍了如何在Web应用程序中生成许可证密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的Asp Dot .NET Web应用程序项目托管到我的客户端服务器中。 Web应用程序项目应具有在某些年份有效的许可证密钥。在特定年份结束后,如果在过期日期之前没有续订,应用程序应该到期...你能告诉我如何实现这个...我担心他可能用点网反射器或任何编译器破解DLL来找到逻辑如果我在CS文件中有这个。那么请你帮我找到实现这个目标的最佳方法以及如何实现这个目标吗?





....很抱歉,我忘了说在我的客户端服务器上他们只有该服务器的互联网可用而不是其他计算机,即通过LAN连接到该服务器。他们通过内部网使用该应用程序...我的意思是他们上传到他们的本地服务器和在他们的办公室内,他们通过局域网连接访问应用程序....所以在这种情况下,需要互联网连接的服务是否工作?

I want to host my Asp Dot NET web application project in to my client’s server. The web application project should have a License key that will be valid for certain years. After that particular year ends the application should expire if not renewed before the expired date…could you please tell me how to achieve this…I am feared that he may crack the DLL with dot net reflector or any de complier to find the logic If I have that in CS file. So could you please help me to find the best way to achieve this and how to achieve this in detail?


.....Am sorry i forgot to state that in my client server they have internet available only for that server not for other computer i.e connected to that server through LAN.they use the application through intranet...i mean they upload to their local server and within their office they access the application through LAN connection....So in this scenario will the Service which requires Internet connection WORK?

推荐答案

有很多方法可以实现许可并有效执行您的许可计划。没有保证的互联网连接这样做会使它更难,并且更容易让黑客绕过。



当您将产品部署到客户的服务器时,您可以在其他文件中部署一些二进制文件,例如DLL。其中一个DLL可以封装您的许可引擎,此引擎应该读取加密数据文件,其中将存储许可证的详细信息。您应该确保如果缺少此数据文件,该产品将无法正常工作,因此如果加密足够强大,则很难更改许可条款。



互联网连接很重要,原因很多。例如,如果您的许可方案涉及日期/时间,即限制您的产品运行X个月,您最好连接到ITS(Internet时间服务器),例如 http://tf.nist.gov/tf-cgi/servers.cgi [ ^ ]查询日期/时间并避免手动更改服务器的内部时钟,以绕过此限制。
There are many ways to implement licensing and to enforce your licensing scheme efficiently. Doing so without a guaranteed internet connection makes it even harder, and easier for crackers to bypass.

When you deploy your product to your customer''s server, you deploy, among other files, also some binary files, such as DLLs. One of these DLLs can encapsulates your licensing engine, and this engine should read an encrypted data file where the details of the license will be stored. You should ensure that if this data file is missing, the product won''t work, so if the encryption is strong enough, it will be very hard to change the terms of the license.

Internet connection is important for many reasons. For example, if your licensing scheme involves date/time, i.e. limiting your product to run for X months, you better connect to an ITS (Internet Time Server) such as http://tf.nist.gov/tf-cgi/servers.cgi[^] to query the date/time and avoid manually change of the server''s internal clock, to bypass this restriction.


这篇关于如何在Web应用程序中生成许可证密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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