On Jan 11, 2015, at 2:05 PM, Jens Alfke <j...@mooseyard.com> wrote:
> 
>> On Jan 10, 2015, at 10:34 PM, 2551 <2551p...@gmail.com 
>> <mailto:2551p...@gmail.com>> wrote:
>> 
>> Yes, that's precisely what I'm looking for and don't seem able to find. Can 
>> anyone suggest one? I've been all over stackexchange etc, and there seems to 
>> be a lot of confusion out there (or, rather, the more I read, the more 
>> confused I'm getting).
> 
> I feel your pain. The crypto APIs are IMHO the worst designed APIs in OS X / 
> iOS. (They're not even compatible between the two OSs; each one has annoying 
> incomplete areas.)
> 
> Apple has code samples called CryptoCompatibility and CryptoSample (the 
> latter one doesn't seem to be in Xcode anymore but you can find it online) 
> that show how to perform some basic tasks with the APIs, including signatures.

IMO, it’s better to just static-link OpenSSL into the app and use that. Not 
only is there more documentation out there, but as OpenSSL is a cross-platform 
library. After all, you’re going to want some sort of automatic system for 
generating license codes for your users, and if you write your registration 
code in something cross-platform like plain C with OpenSSL, you can use the 
same code in the generator tool that goes on your website, without requiring 
the website to be hosted on OS X, which gives you a lot more flexibility in 
your web hosting. (Yes, it’s true that typically the code on your site and the 
code in your app will be doing different things — one encoding and the other 
decoding — but I prefer to have the generator immediately run the generated 
code through the validation system in order to be absolutely positive that the 
generated code is going to work in the app, and to send me an e-mail alert if 
any situation comes up where this is not the case.)

Charles
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to