许可网站 - 它是如何工作的?

时间:2022-02-12 02:02:48

I've been looking at several sites that offer a form of "linkware" license where you get the website for free but need to keep all links to the developers site in place. Purchasing a license key and adding it to the site (either in a database or some form of config file) removes these links.

我一直在寻找一些提供“链接软件”许可证的网站,您可以免费获得该网站,但需要保留所有指向开发者网站的链接。购买许可证密钥并将其添加到站点(在数据库或某种形式的配置文件中)将删除这些链接。

I was wondering if anyone has had any experience of running a system like this, specifically how do you generate and check the license keys? I'm thinking of applying a similar model to something I'm working on so any examples in "Classic" ASP would be most appreciated.

我想知道是否有人有过运行这样的系统的经验,特别是如何生成和检查许可证密钥?我正在考虑将类似的模型应用到我正在处理的事情上,所以“经典”ASP中的任何示例都会受到最多的赞赏。

1 个解决方案

#1


2  

Generally licences work using a public-key system. Your licence string is simply some info (perhaps with info on which domain name this licence is valid for, for example), signed by your private key. The web app contains the public key, which is used to check the validity of the signature.

通常,许可证使用公钥系统。您的许可证字符串只是一些信息(例如,可能包含此许可证对哪个域名有效的信息),由您的私钥签名。 Web应用程序包含公钥,用于检查签名的有效性。

I'm sure there are other ways, but this seems to be one of the more robust ones that I know of. :-)

我确信还有其他方法,但这似乎是我所知道的更强大的方法之一。 :-)

I haven't coded anything in ASP, so I have no examples for you, sorry.

我没有用ASP编写任何代码,所以我没有你的例子,抱歉。

#1


2  

Generally licences work using a public-key system. Your licence string is simply some info (perhaps with info on which domain name this licence is valid for, for example), signed by your private key. The web app contains the public key, which is used to check the validity of the signature.

通常,许可证使用公钥系统。您的许可证字符串只是一些信息(例如,可能包含此许可证对哪个域名有效的信息),由您的私钥签名。 Web应用程序包含公钥,用于检查签名的有效性。

I'm sure there are other ways, but this seems to be one of the more robust ones that I know of. :-)

我确信还有其他方法,但这似乎是我所知道的更强大的方法之一。 :-)

I haven't coded anything in ASP, so I have no examples for you, sorry.

我没有用ASP编写任何代码,所以我没有你的例子,抱歉。