M
M
Maxim Zubenko2020-10-21 00:28:07
css
Maxim Zubenko, 2020-10-21 00:28:07

Is there a way to protect code written in Python?

The program itself was written in Python. He does what he needs with what he needs. There is a demand for it.

I want each copy:
1. either tie it to the hardware
2. or sell it temporarily using the key, and so that the program checks through the site whether the license is active or needs to be renewed.
3. well, or a combination of the first paragraph with the second.

Do what I will do. The question is how to protect the code so that later this "protection" is not cut out?

In this case, the task of protection should have the following qualities.
1. So that this can be done by a mere mortal programmer without "dancing with a tambourine" (and not after reading a bunch of manuals in English, where nothing is clear and everything was written back in the time of the king of peas)
2. To run and work on Windows 7-8-10. Ideally, at least to have an exe-launcher.

Sincerely.

ps naturally Python 3 and most likely 64 bit

Answer the question

In order to leave comments, you need to log in

6 answer(s)
N
Nikita Tratorov, 2016-03-30
@NikitaTratorov

Most likely it's just a PNG image with transparency. This option is most compatible with all browsers. And inside onClick="$('body').scrollTo('#target');"which will scroll to the desired element.

A
Anna_BS, 2016-03-30
@Anna_BS

i would use svg
codepen

A
Arman Dendibaev, 2016-03-30
@DENDIBAEV

Usually buttons are input
and create in css
input {
background: #fff;
width: 40px
color: #4183D7;
}

S
Sergey Karbivnichy, 2020-10-21
@hottabxp

1) Run the application on your server for a paid subscription;
2) Don't use python;
3) PyInstaller (most likely you won’t protect the code, but a wagon and a large cart will appear problems).
In short, either the first option or the option is to write an application in C/C++. Interpreted PLs are not intended (despite the presence of crutches) for such cases.
Now the fashion has gone, to accumulate a lot of code from different parts of the Internet, and add it all to one file. This of course does not work - then mom's businessmen come here with a request to rewrite the code, then they come and ask how to protect the code)))
Example:
5f8f59873cc8b122678802.png
Similar question - How to protect the code?

J
javedimka, 2020-10-21
@javedimka

You take it means Seaton. You take out means critical parts of the program in separate modules. Then it means you convert your python code to .c with a siton, then you compile it into a shared object. And that means you have a protected Python code.
On linux something like this:

cython critical_business_rules.py -o critical_business_rules.c
gcc -shared -pthread -fPIC -fwrapv -O2 -Wl,--strip-all -Wall -fno-strict-aliasing -I/usr/lib64/python3.6 -o critical_business_rules.so critical_business_rules.c

But of course, feed your flags to the compiler.

L
lz961, 2020-10-22
@lz961

if you wrote a program in Python, then this is no longer your program. You connect a bunch of modules that you made for you, and to which you delegate all the logic. Your script is just a dispatcher that transfers data between procedures. And, after that, you are not ashamed to take money?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question