2

アプリの秘密鍵をAndroidデバイスの安全な場所に保存する必要があります。certStoreについて読みましたが、ファイルを保存できません。安全に保管でき、アプリを再インストールしても削除されない場所はありますか?

4

1 に答える 1

1
You can store the key in the Preferences of your App. This will protect the key from
getting read by other applications because of the underlying file system restrictions of
the Android system.

しかし、これはキーがユーザー自身によって読み取られるのを防ぎません。

アプリケーションを削除してデバイスに再度インストールした後にこの共有設定を使用する場合は、Android Backup Manager を試してください。アクティビティのデータを再インストールするのに役立つと思います。

EDIT: Android (unfortunately) does not provide a way to do so. The approach I've used
      before is to encrypt this token with another key generated within the app.

      Your app key can be algorithmically generated. This, however, is only as secure as
      your algorithm. Once that is known this is equivalent to storing the token in plain text.

ありがとう。

于 2011-09-17T06:11:26.380 に答える