Cocoa application - security issue

I have a question about a good way to protect a bit of my cocoa application from piracy. I know this is impossible!

So, in my application, I have a method isRegistered()that runs every time the user launches the application. This is called from the applicationDidFinishLaunching:App delegate . Therefore, if this method returns true, the application continues to execute the code; otherwise, an Alert message appears stating that the application is not registered and there is xx day for the purchase of a license.

Is this a good way? Because I have no experience with this.

Thank you in advance for your help!


solvable

First of all, thanks to everyone! I think the same thing: any copy protection can stop piracy. I am trying to solve this small error, even if I know that someone is hacking my application again. However, it’s true - it’s best to improve the application and not waste time trying to increase protection against piracy.

+3
source share
4 answers

, , , . isRegistered(), true. , , , - , , .

, . , , ( ), ( , , , ).

, AquaticPrime. , , :)

+7

, . 10 , , - . , . / , .

, 10% , 10% . , 80% - . 10%. IHMO.

, .

+4

, , . - ​​, AquaticPrime ( macsb ) - , , .

Leopard, , - , - . kill manpage.

+2

. , , BitDrink: " , isRegistered() . , , , , isRegistered, ?

, :

if (program is registered)
    let the program continue
else
    nagging message
end

GDB , . , .. . , , . , . , . Leopard , , .

, , :

  • your registration system will be broken. There is absolutely no way.
  • your registration system is a barrier between the user and your program. You should optimize for (and, hopefully, most) legitimate users, and make it as simple as possible.
0
source

Source: https://habr.com/ru/post/1714383/


All Articles