静态库的许可系统 [英] Licensing system for static library

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

问题描述

我想为Cocoa Touch应用程式销售静态图书库,但想要保护它免于散布。有没有人试过这个或有一个计划,我可以构建处理它?建议。

I'd like to sell a static library for Cocoa Touch apps but want to protect it from being freely distributed. Has anyone tried this or have suggestions on a scheme(s) that I can build to handle it?

桌面世界的一个例子是供应商发送许可证密钥你在购买图书馆之后。该键必须嵌入在您的应用程序中,这是库将在运行时查找。问题是任何人都可以在网络上发布库和密钥。

One example from the desktop world is a vendor sending a license key to you after purchasing the library. That key must be embedded in your app, which is what the library will look for at runtime. The problem is anyone can post the library and key on the web.

推荐答案

构建强大的快速密钥生成器算法,它对购买者捆绑标识符。当有人购买图书馆时,他们给你的包标识符,你给他们一个键嵌入。在运行时,读取包标识符和嵌​​入的键,通过算法运行它,并查看它是否匹配。

Build a strong fast key-generator algorithm and partly base it on the purchasers bundle identifier. When someone purchases the library, they give you the bundle identifier and you give them a key to embed. In runtime, read the bundle identifier and the embedded key, run it through the algorithm and see if it matches.

这是一个更好的,因为有人不太可能使用一个bundle标识符,如果它来自别人 - 他们将必须设置多个证书,开发人员资料等。此外,合法购买可能不会在他/她自己的不同应用程序之间非法重用该图书馆。

This is a little better because someone is less likely to use a bundle identifier if it comes from someone else — they would have to setup multiple certificates, developer profiles etc. Also, a legal purchase would probably not reuse the library illegally between different app of his/her own.

这篇关于静态库的许可系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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