How to protect Google Play public key when doing InApp Billing

前端 未结 5 1350
没有蜡笔的小新
没有蜡笔的小新 2020-12-22 22:09

Actually this is a little bit silly about protecting public key (what is the definition of public key then?) but as per the documentation by Google:

T

5条回答
  •  一向
    一向 (楼主)
    2020-12-22 22:20

    As an alternative to obfuscating the key manually, you can also let an obfuscator do it automatically. ProGuard is part of the Android SDK, but it mostly obfuscates class/field/method names, not strings. Its specialized sibling for Android, DexGuard, can add more layers of obfuscation, applying string encryption, class encryption, and reflection. It's not free, but it saves time and it's probably more effective than doing it manually.

    (I am the developer of ProGuard and DexGuard)

提交回复
热议问题