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
  How to make it so whatever I input into a script gets outputted on a different file spermatozwario 4 1,263 Nov-24-2024, 12:58 PM
Last Post: deanhystad
  Trying to Make Steganography Program Work For All Payload Types Stegosaurus 0 1,281 Sep-26-2024, 12:43 PM
Last Post: Stegosaurus
  How to make my Telegram bot stop working at 16:15 and not work on Fridays? hus73 2 1,498 Aug-10-2024, 12:06 PM
Last Post: hus73
  Make entire script run again every 45 mo NDillard 0 967 Jan-23-2024, 09:40 PM
Last Post: NDillard
  hi need help to make this code work correctly atulkul1985 5 2,045 Nov-20-2023, 04:38 PM
Last Post: deanhystad
  Trying to make a board with turtle, nothing happens when running script Quascia 3 1,848 Nov-01-2023, 03:11 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 1,598 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 3,039 May-22-2023, 10:39 PM
Last Post: ICanIBB
  Make console show after script was built with Pyinstaller --NOCONSOLE? H84Gabor 0 1,880 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 2,237 Jan-18-2022, 11:05 AM
Last Post: zzzhhh

Forum Jump:

User Panel Messages

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