4

I made a mobile application. On extracting the jar file, the resource files are visible ( text files and image files ). Is there someway to protect the content files? I am not worried about the reverse engineering of the bytecode. I need to protect the content. Thanks :)

bharath
  • 14,283
  • 16
  • 57
  • 95
Vanya
  • 361
  • 5
  • 16

1 Answers1

2

The only 100% secure way to protect the resource files is to omit them from the jar.

Seriously.

If your application needs to use your resources, you could store the resources encrypted, and then decrypt them as needed. But in the end, you're still handing the data to an untrusted entity.

Matt Ball
  • 354,903
  • 100
  • 647
  • 710
  • thanx for the reply :) i m using base64encoding technique for the encryption, is there some other more efficient method for encryption? – Vanya Jun 17 '11 at 05:43
  • That's encoding, not encryption. **Anyone** can decode base64-encoded information. [Security by obscurity](http://stackoverflow.com/questions/533965/why-is-security-through-obscurity-a-bad-idea) is not security at all. – Matt Ball Jun 17 '11 at 12:31