Re: best way to implement unlock features in app
Re: best way to implement unlock features in app
- Subject: Re: best way to implement unlock features in app
- From: Allan Odgaard <email@hidden>
- Date: Thu, 06 Nov 2014 20:38:31 +0100
On 6 Nov 2014, at 16:53, sqwarqDev wrote:
I didn't understand this bit though:
If you do not need to encrypt a payload (as in my post) then I
suggest making the license be just a serial number followed by a
signature on that number (maybe include a short hash of the owner
name)
If anyone can link me to a tutorial on how to create these signatures
and hashes, that'd be really useful.
The blog post does give a step-by-step example of creating a hash of the
owner name and then encrypting that with a private key (which is
basically what a signature is).
Appleās recommended API for the latter is documented here:
https://developer.apple.com/library/mac/documentation/security/Conceptual/SecTransformPG/SigningandVerifying/SigningandVerifying.html
For creating a hash, you should probably use the CommonCrypto API.
Googling for this returned a blog post by Mike Ash:
https://www.mikeash.com/pyblog/friday-qa-2012-08-10-a-tour-of-commoncrypto.html
_______________________________________________
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