在Web应用程序许可模块 [英] Licensing modules on a web-application

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

问题描述

假设你有一个网站,有一堆不同的模块,它如:

Let's say that you have a Web Site that has a bunch of different modules to it such as:

  • Accouting(处理客户,发票等)
  • 笔记和文档(创建和管理文件)
  • 还有更多的..

你会如何限制访问的模块一个的,如果一个客户不具备相应的许可证?

How would you restrict access one of the "Modules" if one customer does not have the appropriate license?

我经常看到带有一个名为.lic 的文件,你如何生成其中的一个组成部分?

I've often seen components that comes with a .lic file, how do you generate one of those?

如果你用这样的方法会不会影响性能?

And if you use a method like that does it affect performance?

修改

另一件事,我在想,如果你出货的所有模块与您的应用程序,你只需要证明你已授权的控件,你需要检查每个控制的有效性或者你能以某种方式提取这些信息?

Another thing I was thinking about, if you ship all modules with your application and you only want to show the controls that you have licensed, do you need to check each control for validity or can you somehow extract that information?

推荐答案

要做到这一点有一个方法都有其每个标志对应一个特定的模块或功能的位阵列。而产生的许可证,根据该客户已经购买了模块设置位阵列,然后登录该位阵列使用算法如RSA。然后,在你的软件,验证签名和检索位阵列,以确定要激活的模块。

One way to do this to have have a bit array in which each flag corresponds to a particular module or feature. While generating a license, set the bit array according to the modules that the customer has purchased, then sign this bit array using an algorithm such as RSA. Then, in your software, verify the signature and retrieve the bit array to determine which modules to activate.

看看 CryptoLicensing 有这种非常情况下的支持 - 你可以指定高达2040的功能/在每个生成的许可证模块。

Take a look at CryptoLicensing which has support for this very scenario - you can specify upto 2040 features/modules in each generated license.

这篇关于在Web应用程序许可模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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