Re: Simple text encryption
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