• 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: Kirk Kerekes <email@hidden>
  • Date: Thu, 2 Dec 2010 11:32:02 -0600

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?


> I am writing an NSString to a file and I would like to obscure it in a
> two way reversible fashion. It doesn't have to be major hacker proof,
> just not understandable by an average person. I need to be able to
> read the value back in from the file and convert it back to "clear
> text". In php I would just use base64 encode / decode. All the cocoa
> examples I have found show converting in base64 between nsstring and
> nsdata. Is there a smiple function I can pass an NSString through to
> obscure it while keeping it as a string, then reverse it back to clear
> text in a reliable way?
>
> Thanks,
> Adam
_______________________________________________

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: "email@hidden" <email@hidden>
  • Prev by Date: Re: bindings via file's owner don't update
  • Next by Date: Re: [iOS] setting table style for root view controller of a navigation controller
  • Previous by thread: Re: Basic HTTP program failed to compile
  • Next by thread: Re: Obscuring an NSString (Adam Gerson)
  • Index(es):
    • Date
    • Thread