0

In Android how to decrypt a text file present in resource folder and use the data in it. So that i can maintain a encrypted file inside the resource folder in that apk. Help me to get this.

And_dev
  • 179
  • 1
  • 5
  • 16
  • This info is not sufficient. Please tell us how will you encypt the file? Public key cryptography or Private key? Which algorithm 3DES,AES,RSA etc? – Shashank Kadne Nov 29 '12 at 17:35
  • @Shashank Kadne: I need to make my text file present in resource folder as encrypted one, when the app is launched it get decrypted and used in app. Basic way is using single key we need to encrypt and decrypt the files but the key will present inside the class files so it can also be cracked but if i want to make the key as device specific how to achieve that and which method will be good? Thanks – And_dev Dec 01 '12 at 06:55

1 Answers1

1

Take a look at the javax.crypto.Cipher packages.

Example here:

Android File Cryptography

Community
  • 1
  • 1
Adrián Rodríguez
  • 1,836
  • 15
  • 16