如何实施简单的许可计划? [英] How to implement a simple licensing scheme?

查看:129
本文介绍了如何实施简单的许可计划?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无意冒犯,但我们不要讨论可以破解许可计划(我知道),而诉诸法律通常可以起到更好的威慑作用(也许在您所在的国家,但并非全部).

No offence intended, but let's not discuss that licensing schemes can be cracked (I know that) and that recourse to the law is usually a better deterrent (maybe in your country, but no in all).

不是我的选择-有人告诉我实施许可,这足以使随意的黑客远离.

Not my choice - I have been told to implement licensing, just good enough to keep casual hackers away.

可能与之稍有不同的是,将运行该软件的PC并不总是具有Internet访问权限.

What might make this slightly different is that the PCs which will run the software won't always have internet access privileges.

当有人购买该产品时,我可以在其中加入许可信息&交付安装CD.但是,如果他们想购买更多许可证怎么办?我不想去现场更新许可数据,但是他们可能无法访问我的服务器,也不能访问我的服务器.

When someone buys the product, I can build licensing info into it & deliver an install CD. But, what happens if they want to buy more licenses? I don't want to have to go on site to update the licensing data, but they may not be able to access my server, nor I theirs.

我当时正在考虑在外部(加密)文件中拥有许可证,每个文件都包含许多许可证和有效期.如果用户购买了更多许可证,那么我可以通过电子邮件发送一个附加文件&经过安全检查的IT人员可以将其刻录到CD或USB记忆棒,然后将其复制到应用程序数据目录.

I was thinking of having licenses in external (encrypted) files, each containing a number of licenses and an expiration date. If the user buys more licenses, then I can email out an additional file & their security cleared IT guys can burn it to CD or USB stick and then copy it to the applications data directory.

这看起来还好吗?你能想到更好的东西吗?你看到问题了吗?我没有太多时间来实现这一目标.

Does that seem ok? Can you think of something better? Can you see problems? I don't have too much time to implement this.

推荐答案

如果许可证包含很多信息,那就很好.通常它们不会这样做,因此可以使用30-50个字符左右的加密保护完整地对其进行加密.然后可以通过电子邮件将其发送,剪切并粘贴,甚至输入.

That would be fine if the license contains a lot of info. Typically they don't so they can be encrypted complete with some protections in 30-50 chars or so. These can then be emailed out, cut&pasted, or even typed.

对于保护方案,PKV或部分密钥验证很受欢迎.关于SO,这里有很多问题,而Google搜索将提供许多不同的语言实现.

As for protection schemes, PKV or Partial Key Verification is popular. There are a number of questions here on SO about it, and a Google search will provide a number of different language implementations.

这篇关于如何实施简单的许可计划?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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