0

I would like to provide the security to symmetric key which I have used for encryption and decryption. I would like to Encrypt the symmetric key and store in shared preferences. How can I do this?

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
Roster
  • 1,764
  • 6
  • 17
  • 36
  • Your question is imprecise regarding what is encrypted with which key and why. You should edit it and improve your answer. – Robert Aug 29 '16 at 17:59

1 Answers1

0

Actually this is not a very advisable strategy. You should never store keys in your app, since you can not trust a delivered app.

The only way to do this is to have a trusted server wich has user accounts, that use the apis that need to be secured.

Collection of all reasons Reasons why google does not advice to do so, and counter measures

Melv_80
  • 222
  • 1
  • 5