How do you create a cocoa demo application that only works for a limited time?

I used a lot of cocoa demo applications that stopped working after 3 days or a month or so. How do they do it? What is the best way? Also, what are the limitations?

+5
source share
3 answers

(Disclaimer: I have never done a trial before, only read this topic and used them.)

All restrictions come from the fact that something in the user system, the user can change. So:

  • Clever cheapskates can modify the executable file of your application to mute or otherwise defeat any checks you make.
  • (, , , , ). , ( ), , , reset .
  • , , Keychain, , . , App Store, Mac OS X App Store, , , , .
  • . , App Store - , , . , , . : "" (, warez) .

, , , , , ( ), .

:

  • .
  • . Acorn .
  • , . ( , .)
  • ( ) , - . , , . - , , 20 . ( , , , , TIFF, JFIF AIFF.) .
  • . ( .)
  • . , , .

- "" ( ). .

, . , . , , 31 .

. , .

. , .

, . , defaults write com.example.yourapp DaysSinceFirstUse -int 0 , , ( ), .

, :

  • ( ) . , ( , , , , Star Trek ..), - , , .
  • . . , . , " ".
  • . ( ), . : .
  • , / . .

, , , :

  • " ". . , , .
    • , . , . ( ). quit .
  • " ". ( , ), . , , (), ( ), ( ) cheapskate , .
  • , , , . ( " ", , ). 30 - 30 × 24 = 720 . , , .
  • , . , AquaticPrime . , . . , , . ( , , .)
    • , , , , .
    • , .
  • App Store, . , , . App Store, , ( ) .
  • . (: Apple App Store.)
+28

, // , -, . .

, , . , , . . , .

- , , , . , , , . , , ( ! ).

, , . , , .

. , OpenSSL (, LibreSSL CommonCrypto.framework , ), : http://sigpipe.macromates.com/2004/09/05/using-openssl-for-license-keys/

+4

Based on your ideas, I made a short proof of concept in Java, using Elliptic Curve cryptography to generate a UUID at startup, and then sign that UUID with ECC to create a registration key. The code is here if anyone wants to. 1

0
source

All Articles