Android Encrypting and Decrypting a resource file

2019-08-30 00:00发布

问题:

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.

回答1:

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

Example here:

Android File Cryptography