1

How can I encrypt (256 bit AES) files on a Mac in a Cocoa application? I've been having trouble with this for a very long time. Also, would I have to extract the contents of the file before I encrypt? Clear step by step instructions would be much appreciated. I am a noobie when it comes to cryptography.

  • AES doesn’t deal with passwords. You need to choose a key derivation algorithm first, and use this algorithm to derive an AES key from a given password. Before asking about the programming part of your problem, I recommend you visit http://security.stackexchange.com and first define what algorithms & protocols you need for your solution. –  Jun 06 '11 at 21:31
  • possible duplicate of [Crypto library suitable for Objective-C](http://stackoverflow.com/questions/1276798/crypto-library-suitable-for-objective-c) – dawg Jun 07 '11 at 01:59
  • How would I go about doing that? –  Jun 26 '11 at 08:13

1 Answers1

0

Besides the solutions in THIS SO POST, you might want to have a look at Mac GNU PG

Community
  • 1
  • 1
dawg
  • 98,345
  • 23
  • 131
  • 206