Re: Encrypting Binary Strings
Re: Encrypting Binary Strings
- Subject: Re: Encrypting Binary Strings
- From: "Mr. Gecko" <email@hidden>
- Date: Wed, 30 Dec 2009 17:42:49 -0600
On Dec 30, 2009, at 5:33 PM, Ken Thomases wrote:
> On Dec 30, 2009, at 5:15 PM, Mr. Gecko wrote:
>>
>> So are you saying I could use authorization service to store things with the user's authorization and get them back without the user's authentication?
>
> You can store a very limited, specific kind of thing: right entries in the authorization policy database. You can then use those to govern the behavior of your program for other (non-admin) users.
Basically the only thing I need to store is strings for like if safe search is enabled, or if the user can view things that has adult content.
>> Basically my means of AES is to prevent the user from changing the settings without the application and being an administrator.
>
> Again, it's not clear to me if the settings in question are _just_ the parentally-controlled policies of who can do what within your software or if it's something else. If you're just looking for a means to let a parent configure access settings that control what kids can do with your software, then Authorization Services can work for that.
>
> Another interpretation of what you just said is that you just want to store some data when the parent is running your app but, when a kid is running it, to have them be able to read but not modify that data. If that's all you want, then you can use administrator privileges to write a file that has everyone-read, only-admin-write permissions. I don't see why you'd need encryption for that. Frankly, the authopen tool should suffice.
Hmm, now that's an idea, basically I don't want the user to change it without admin permissions so if I save it as root and give access to everyone else, it will solve my problem.
Thank you, but the question on how the iPhone encrypts the strings, is still in mind, if anyone has an answer, I'll be happy to know.
>> If so, is there an example app I can look into and figure it out?
>
> http://developer.apple.com/Mac/library/samplecode/AuthForAll/index.html
>
> Regards,
> Ken
>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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