Python Forum
Make my py script work only on 1 compter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make my py script work only on 1 compter
#11
(Feb-18-2022, 05:23 AM)buran Wrote: https://reverseengineering.stackexchange.com/q/160
Just an example. This is really not an obstacle.
Pyinstaller has now a new and approach which is simpler and safer to use.
They have removed old and troublesome Cryptodome.
Use now tinyaes which use ASE 256.
If need it.
pip install pyinstaller[encryption]
Then just use --key parameter on command line.
Encrypting Python Bytecode
Reply
#12
(Feb-18-2022, 06:37 AM)ndc85430 Wrote: The other question is: is it really worth it? What's the risk if you don't prevent people doing that?

the risk is that the program can be shared to unauthorized person if not bind to a specific computer
Reply
#13
(Feb-18-2022, 01:11 PM)snippsat Wrote: Pyinstaller has now a new and approach which is simpler and safer to use.
That's true, but I pointed to pyarmor because it allows to bind the obfuscated script to specific machine


Sorry, I didn't see you quote the reverse engineering link. Still keep in mind
Quote:Please note that it is still very easy to extract the key and get back the original bytecode, but it should prevent most forms of “casual” tampering.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#14
I got how to get the serial number of win, mac and linux here https://gist.github.com/angeloped/3febaa...id=3632766
Reply
#15
30 years ago licensed programs sometimes worked with "dongles".
You can still do that because every USB stick has an unique serial,
that you can use as a dongle. Cost = price of a small USB.

It's difficult to counterfeit, especially if you don't know
which serials are valid.

And you don't need to know the customer's HHD serial.
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Make entire script run again every 45 mo NDillard 0 322 Jan-23-2024, 09:40 PM
Last Post: NDillard
  hi need help to make this code work correctly atulkul1985 5 785 Nov-20-2023, 04:38 PM
Last Post: deanhystad
  Trying to make a board with turtle, nothing happens when running script Quascia 3 677 Nov-01-2023, 03:11 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 690 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Why do I have to repeat items in list slices in order to make this work? Pythonica 7 1,340 May-22-2023, 10:39 PM
Last Post: ICanIBB
  Make console show after script was built with Pyinstaller --NOCONSOLE? H84Gabor 0 1,211 May-05-2022, 12:32 PM
Last Post: H84Gabor
  readline.parse_and_bind() does not work in start-up script of Python interpreter zzzhhh 0 1,527 Jan-18-2022, 11:05 AM
Last Post: zzzhhh
  Script stop work after 3 actioins - PLEASE WHERE IS THE PROBLEM? rondon442 0 1,564 Sep-27-2021, 05:40 PM
Last Post: rondon442
  string function doesn't work in script ClockPillow 3 2,416 Jul-13-2021, 02:47 PM
Last Post: deanhystad
  Curses script doesn't work wavic 1 4,153 Jan-08-2021, 09:11 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020