Re: Obscuring an NSString

2010-12-13 Thread Adam Gerson
Thanks Kyle. Here is the finished working code for anyone else who stumbles onto this thread. It uses an NSData category found here: http://cocoawithlove.com/2009/06/base64-encoding-options-on-mac-and.html - (NSString *)base64Encode:(NSString *)plainText { NSLog(@"%@",plainText);

Re: Obscuring an NSString

2010-12-05 Thread Kyle Sluder
On Dec 5, 2010, at 2: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, ho

Re: Obscuring an NSString

2010-12-05 Thread Ricky Sharp
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, ho

Re: Obscuring an NSString

2010-12-05 Thread Adam Gerson
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 c

Re: Obscuring an NSString

2010-12-02 Thread Fritz Anderson
On 2 Dec 2010, at 7:30 AM, Adam Gerson wrote: > 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

Re: Obscuring an NSString

2010-12-02 Thread Graham Cox
On 03/12/2010, at 12:30 AM, Adam Gerson wrote: > 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 fi

Re: Obscuring an NSString (Adam Gerson)

2010-12-02 Thread jonat...@mugginsoft.com
On 2 Dec 2010, at 20:37, Kyle Sluder wrote: > On Thu, Dec 2, 2010 at 9:49 AM, jonat...@mugginsoft.com > wrote: >> Converting the string to an NSData rep and dumping out as a property list >> will encode the NSData as base-64 > > This is an implementation detail. You shouldn't rely on it. > >

Re: Obscuring an NSString (Adam Gerson)

2010-12-02 Thread Kyle Sluder
On Thu, Dec 2, 2010 at 9:49 AM, jonat...@mugginsoft.com wrote: > Converting the string to an NSData rep and dumping out as a property list > will encode the NSData as base-64 This is an implementation detail. You shouldn't rely on it. --Kyle Sluder __

Re: Obscuring an NSString

2010-12-02 Thread Kyle Sluder
On Thu, Dec 2, 2010 at 5:30 AM, Adam Gerson wrote: > 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

Re: Obscuring an NSString

2010-12-02 Thread Richard Somers
Try the open source SSCrypto.framework. It is a Cocoa wrapper around OpenSSL encryption and decryption. It works well. http://septicus.com/products/opensource/ --Richard Somers On Dec 2, 2010, at 6:30 AM, Adam Gerson wrote: I am writing an NSString to a file and I would like to obscure it in

Re: Obscuring an NSString (Adam Gerson)

2010-12-02 Thread jonat...@mugginsoft.com
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

RE: Obscuring an NSString (Adam Gerson)

2010-12-02 Thread Kirk Kerekes
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