与API在Ajax的Adobe AIR应用程序共享的机密 [英] Shared secret with API in an Ajax Adobe AIR app

查看:147
本文介绍了与API在Ajax的Adobe AIR应用程序共享的机密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是pretty的新开发AIR应用程序,所以也许这是一个愚蠢的问题,但我似乎无法找到来自谷歌的任何答案。任何帮助,您可以给我大大AP preciated。

I'm pretty new to developing AIR apps, so maybe this is a dumb question, but I can't seem to find any answers from google. Any help you can give me is greatly appreciated.

我要建与阿贾克斯的AIR应用程序使用一个API,它等同于Flickr的API中,有一个共享的密钥。问题是,空气中的安装包中包含了所有的源代码,我不想放弃我的共享密钥。有没有办法做到这一点?我可以隐藏一些源代码,或以某种方式包括应用程序在这个共享秘密,而不给它走?

I'm building an AIR app with Ajax using an api that is identical to flickr's Api, with a shared secret key. The problem is that the air installation package contains all the source and I don't want to give away my shared secret. Is there any way to do this? Can I hide some source, or somehow include this shared secret within the app without giving it away?

感谢您的帮助。

推荐答案

您可能需要使用的 EncryptedLocalStore 安全地存储你的API密钥。

You may want to use EncryptedLocalStore to securely store you API key.

不过,您将无法使用应用程序分发作为存储的加密取决于它的操作系统中运行应用程序。

But, you won't be able to distribute it with the application as the store's encryption depends of which OS the application is running on.

一个种子商店的方法是,在应用程序的安装:

A method to seed the store would be, on app's install:

  1. 运行安装程序
  2. 运行安装后脚本需要。
  3. 检查商店。如果没有关键是present,从您的网站下载密钥并将其存储在ELS。

使用这种方法,用户将永远不会知道你的关键,但是这将是present在应用程序的商店。

Using this method, the user will never know your key but it will be present in app's store.

这篇关于与API在Ajax的Adobe AIR应用程序共享的机密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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