S
S
Stepgor2019-12-27 05:24:03
JavaScript
Stepgor, 2019-12-27 05:24:03

How to protect the application?

I am making an electronjs application. It provides for a monthly subscription, and, accordingly, on the client side, you need to get the status of this subscription. What are the security options for such an application?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
S
Sergey Sokolov, 2019-12-27
@sergiks

Discussion of a similar issue on Electron's github.
One option is to write your own NodeJS module in C++ that implements the hidden functionality.
The question does not describe how the application works: completely standalone or client-server. The need to communicate with the server would greatly simplify the control of payment.
For standalone, my suggestion is to update the application regularly, improving it with each release. When auto-renewing, check the subscription status. So the "hackers" would lose fresh versions.

R
Robur, 2019-12-27
@Robur

take it out of the electron and put it on the website.
or - bring some necessary functionality to the server and check the subscription there.
If it works completely autonomously on the user's computer, then the protection options are only legal.

P
profesor08, 2019-12-27
@profesor08

How to protect the application?

Put it on github with a suitable open license. That's all you can.

V
Vladimir Korotenko, 2019-12-27
@firedragon

As above, select the correct license.
Second, break the functionality into groups and enter payment depending on the type of profile.
Be sure to make a free plan, restrictions may be in the number of projects or a watermark on each document. Moreover, in the license, indicate that commercial use is possible in the free mode, but there will be a watermark.
PS DRM, by the way, is evil, you put a toy, and in case of an unfortunate set of circumstances, the whole system crashes.

N
Nadim Zakirov, 2019-12-27
@zkrvndm

Make protection on the server side so that some key elements of the code are executed remotely, and only the result comes to the client.

V
Vladimir Druzhaev, 2019-12-27
@OtshelnikFm

Check the license with your server.
If hacked, send format C to PC and blow the whole system to hell

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question