【发布时间】:2015-04-28 10:00:23
【问题描述】:
在sdk\extras\google\play_billing的应用内购买示例应用中,有如下注释。
/* base64EncodedPublicKey should be YOUR APPLICATION'S PUBLIC KEY
* (that you got from the Google Play developer console). This is not your
* developer public key, it's the *app-specific* public key.
*
* Instead of just storing the entire literal string here embedded in the
* program, construct the key at runtime from pieces or
* use bit manipulation (for example, XOR with some other string) to hide
* the actual key. The key itself is not secret information, but we don't
* want to make it easy for an attacker to replace the public key with one
* of their own and then fake messages from the server.
*/
有人可以帮我举个例子,在运行时从片段或使用位操作生成密钥吗?那部分我不清楚。
谢谢
【问题讨论】:
标签: android in-app-purchase in-app-billing