Re: Encrypt a string
Re: Encrypt a string
- Subject: Re: Encrypt a string
- From: "a.d. jensen" <email@hidden>
- Date: Fri, 18 Nov 2005 07:36:09 -0600
On Nov 18, 2005, at 6:56 AM, Andrea Salomoni wrote:
Hi,
Not sure that this is the right place to put a serial software
number....
thank you for support
Yorh
Il giorno 18/nov/05, alle ore 13:15, Andrei Tchijov ha scritto:
It is a bad idea to have file with encrypted strings. You should
use keychain to store "secret" information. Look for
"SecKeychain..." functions in the doc. It is quite straight forward.
No, it probably isn't, but you shouldn't put it in your Application
Bundle, since that may be some place that you have read but not write
access to. The Applications folder, for example, is often protected
against changes for security purposes.
Better would be Preferences (in which case, you'll need to encrypt
your string) or, as has been pointed out, an invisible file in
Application Support.
There are plenty of open source type string encryption examples out
there, although none that I ever found in Cocoa -- you'll need to
write straight C for it, at least that's what I found.
If you aren't interested in decoding the number after the fact, look
at "crypt" (in unistd.h) or the DES functions that are in the same
unit (although I found the DES stuff to be a bit dodgy.)
dale
--
email@hidden http://adjensen.aatrix.com
Only a fool turns away from an angel,
Vision in white steps through the door,
Holds out her hand, I say 'No I'm not ready'
I open my eyes and let the dream fade away.
-- echolyn, "on any given nite"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden