• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obscuring an NSString


  • Subject: Re: Obscuring an NSString
  • From: Ricky Sharp <email@hidden>
  • Date: Sun, 5 Dec 2010 17:02:26 -0600

On Dec 5, 2010, at 4:31 PM, Adam Gerson wrote:

> Thanks to all who responded. Let me explain my situation a little
> better. I am storing several string values into an XML file. I want to
> obscure one of them. When I encrpyt the NSString to an NSdata I can
> store the data as a string in XML, however when I read the string back
> in I dont know how to convert it back to NSData to decrypt.


input string (NSString) --> UTF-8 representation (NSData) --> optional "encryption" such as XOR --> hex string (NSString)

this is fully reversible of course.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.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

References: 
 >Obscuring an NSString (From: Adam Gerson <email@hidden>)
 >Re: Obscuring an NSString (From: Richard Somers <email@hidden>)
 >Re: Obscuring an NSString (From: Adam Gerson <email@hidden>)

  • Prev by Date: Re: label color
  • Next by Date: Re: Cocoa/Objective-C flat name space problems
  • Previous by thread: Re: Obscuring an NSString
  • Next by thread: Re: Obscuring an NSString
  • Index(es):
    • Date
    • Thread