• 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: Obscuring an NSString (Adam Gerson)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Obscuring an NSString (Adam Gerson)
      • From: Kyle Sluder <email@hidden>
References: 
 >RE: Obscuring an NSString (Adam Gerson) (From: Kirk Kerekes <email@hidden>)

  • Prev by Date: Re: [iOS] setting table style for root view controller of a navigation controller
  • Next by Date: iOS: Rolodex Example?
  • Previous by thread: RE: Obscuring an NSString (Adam Gerson)
  • Next by thread: Re: Obscuring an NSString (Adam Gerson)
  • Index(es):
    • Date
    • Thread