• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple text encryption
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple text encryption


  • Subject: Re: Simple text encryption
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Thu, 26 Feb 2009 09:32:30 +0100


Le 26 févr. 09 à 00:13, Graham Cox a écrit :


On 26/02/2009, at 10:03 AM, Erg Consultant wrote:

Are there any classes in Cocoa for simple text file or plist file encryption? I just need something I can point at a file on disk and do simple encryption without a password or key and then decode it later. Doesn't have to be fancy or even all that secure - just something simple and easy to use.


You could use the openssl library, which is very easy to use. For simple symmetric encryption it supports e.g. RC4 which will do what you want. You can just make up a random key.

Unlike other frameworks, you just link to it by setting the -lcrypto flag in the "other linker flags" in your target's build settings and then #include <openssl/openssl.h> in your code.

You should use CommonCrypto which is easy too, but does not require external dylib.


/usr/include/CommonCrypto


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Simple text encryption (From: Erg Consultant <email@hidden>)
 >Re: Simple text encryption (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Cocoa Support for Mail
  • Next by Date: What control/view should i use for a very specific requirment
  • Previous by thread: Re: Simple text encryption
  • Next by thread: Re: Simple text encryption
  • Index(es):
    • Date
    • Thread