I'm mainly write iPhone apps but am familiar with some desktop Mac authoring. I need to create a Cocoa app that will include several wav sound files (included in bundle). I don't want a user viewing package contents of the .app file and then extracting all of the sound files from it. Is there a way to protect those files?
Thanks. Can you say how that is done?
4thSpace
2009-12-27 05:32:29
No, because there are probably a million different ways of encrypting files out there, many of which cannot be used in many countries.
Azeem.Butt
2009-12-27 05:34:44
+6
A:
Here are some possibilities, depending on the effort you feel like putting in:
- Encrypt the files
- Change the filename and extension to make it less obvios that they're sound files
- Embed the sounds inside an executable file, as a custom Mach-O section
- Strip any headers from the files, and store just the raw samples
- Write a program to convert the audio data to C array declarations, and compile into the app
- Just don't worry about it. Nobody's going to "steal" your sounds, and if they did, so what?
Mark Bessey
2009-12-27 05:40:22