tags:

views:

89

answers:

2

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?

+2  A: 

You can encrypt them. That's about it.

Azeem.Butt
Thanks. Can you say how that is done?
4thSpace
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
+6  A: 

Here are some possibilities, depending on the effort you feel like putting in:

  1. Encrypt the files
  2. Change the filename and extension to make it less obvios that they're sound files
  3. Embed the sounds inside an executable file, as a custom Mach-O section
  4. Strip any headers from the files, and store just the raw samples
  5. Write a program to convert the audio data to C array declarations, and compile into the app
  6. Just don't worry about it. Nobody's going to "steal" your sounds, and if they did, so what?
Mark Bessey