Re: Obscuring an NSString (Adam Gerson)
Re: Obscuring an NSString (Adam Gerson)
- Subject: Re: Obscuring an NSString (Adam Gerson)
- From: "email@hidden" <email@hidden>
- Date: Thu, 2 Dec 2010 17:49:55 +0000
On 2 Dec 2010, at 17:32, Kirk Kerekes wrote:
> If you convert the NSString into an NSData,(dataUsingEncoding:) and then Base64 encode it into an NSString, doesn't that get you what you want?
>
Converting the string to an NSData rep and dumping out as a property list will encode the NSData as base-64
+ (NSInteger)writePropertyList:(id)plist toStream:(NSOutputStream *)stream format:(NSPropertyListFormat)formatoptions:(NSPropertyListWriteOptions)opt error:(NSError **)error
Regards
Jonathan Mitchell
Developer
Mugginsoft LLP
http://www.mugginsoft.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