Re: Simple text encryption
Re: Simple text encryption
- Subject: Re: Simple text encryption
- From: Peter N Lewis <email@hidden>
- Date: Sat, 28 Feb 2009 20:25:21 +0900
At 15:03 -0800 25/2/09, 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.
Jeff Lamarche postend a category for NSData that uses the AES
encryption on his blog at <http://iphonedevelopment.blogspot.com/>
@interface NSData(AES)
- (NSData *)AESEncryptWithPassphrase:(NSString *)pass;
- (NSData *)AESDecryptWithPassphrase:(NSString *)pass;
@end
The code is at <http://code.google.com/p/iphonebits/>
Also, in the comments of the post at
<http://iphonedevelopment.blogspot.com/2009/02/strong-encryption-for-cocoa-cocoa-touch.html>
Alan Quatermain posted an NSMutableData category which uses the Apple
supplied CommonCrypto routines, thus sidestepping the need for
encryption export stuff.
Enjoy,
Peter.
--
Run macros from your iPhone with Keyboard Maestro Control!
or take a break with Aragom Space War for your iPhone
Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
Aragom Space War <http://www.stairways.com/iphone/aragom> Don't get killed!
<http://www.stairways.com/> <http://download.stairways.com/>
_______________________________________________
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