4thSpace
4thSpace

Reputation: 44310

Protecting files in desktop Mac .app

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?

Upvotes: 1

Views: 243

Answers (2)

Mark Bessey
Mark Bessey

Reputation: 19782

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?

Upvotes: 7

Azeem.Butt
Azeem.Butt

Reputation: 5861

You can encrypt them. That's about it.

Upvotes: 2

Related Questions