如何将自定义数据融入到 Adobe AIR 发行版中?
我想要一个可供 Web 下载的 AIR 应用程序,但需要为每个用户下载一些定制的数据。想想 CD 密钥,或者在本例中是加密密钥和用户名,以便下载的版本可以连接到网站并知道是谁下载的。作为一种故障回复,如果这是不可能的,我可以要求用户登录一次并设置一个,然后将其存储在本地,尽管我希望使其一键式且无缝。但是,如果后者是唯一的方法,那么存储 AIR 可用的本地持久数据的最佳跨平台安全方法是什么?
I would like to have an AIR application available for web download, but have some data customized per-user-download. Think CD-key, or in this case an encryption key and user name, so that the downloaded version can connect to a website and know who it is that downloaded it. As a fail-back if this is not possible, I could require the user to log in once and set one up and then store it locally, though I'd like to make it one-click and seamless. However, if the latter is the only way to do so, what's the best cross-platform-safe way to store local persistent data available to AIR?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最好是主观的。您可以使用 SQL Lite 数据库或您喜欢的任何类型的本地文件。我之前曾将 XML 文件与 AIR 应用程序一起分发,并将它们用于配置目的。我不确定是否认为未加密的 XML 文件是安全的,但没有理由不能在磁盘上对其进行加密并在内存中对其进行解密。
听起来您正在尝试创建一种形式的许可方案。如果是这样,您可以查看 AIR 应用程序的第三方许可方案,例如 NitroLM、Sharify、Zarquon 或 Adobe Shibuya。
Best is subjective. You could use an SQL Lite Database or any sort of local file you prefer. I have distributed XML files with AIR applications before and used them for configuration purposes. I'm not sure if I'd consider an unencrypted XML file secure, but there is no reason you can't encrypt it on disk and decrypt it in memory.
It sounds like you're trying to create a form of licensing scheme. IF so, you can check out third party licensing schemes for AIR applications such as NitroLM, Sharify, Zarquon, or Adobe Shibuya.