Python per-seat license protection
-
26-05-2021 - |
Question
I would like to create a per-seat licensevalidator for my python application. The python code is compiled. The goal is to prevent the costumer from sharing the application across his company.
Basic method
- Create a hash-string of the system hardware
- How to do that?
- I will create a signature of the hash-string (license key file) and send the signature back to the user
- The application reads the hash-string and validates it against the signature
Maybe there is already a middleware solution?
Solution
Python is an interpreted language. That means decompiling of your code is always possible and relatively simple to do (using e.g decompyle). And as a result any protection mechanisms you'll implement can be easily turned off. So:
- Protecting your code seems like a waste of time
- Python seems not the right choice for writing closed-source applications
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow