Reputation: 131
i am looking for a way to encrypt a file and then decrypt it on an android device. currently my best solution was: encrypt file with openssl then decrypt it in java using the method shown here.
problem: the file is apparently too large (5 MB) and i get an 'out of memory' exception when running on the android emulator.
i would be thankful if you add the following to your answer, though if you have an answer only to the previous section it will be fine:
openssl aes-256-cbc -a -salt -in password.txt -out password.txt.enc
Upvotes: 1
Views: 979
Reputation: 3337
Your main issue is that you're trying to keep everything in memory (obviously). I'd recommend some changes in your workflow:
Upvotes: 1