What parameter to use as a unique computer ID to secure my app

132 views Asked by At

I am looking for a personal Computer ID that I can use to secure my app so that only one Computer can use it.

I can't use the MAC address because a user can have multiple Network adapters so I was thinking about a Motherboard ID if it exists!

I am using python so I hope these IDs can be read with it!

***# - registering & checking MAC Address :
registered_mac_address = '88:b1:11:e9:5e:53'

print('checking MAC Address ...')
this_mac_address = get_mac_address()
print(f'mac: {this_mac_address}')

if registered_mac_address != this_mac_address:
    print('this app is not registered for this Computer!')
    ui.lbl_mac_address.setText('NOT REGISTERED!')
    msg_box('Not Registered', 'This Computer is not Registered for this application!')
    sys.exit()
else:
    ui.lbl_mac_address.setText(registered_mac_address)***
1

There are 1 answers

0
Lenormju On

If what you want is to prevent piracy of your app, what you are looking for is a software license key. You create them and distribute/sell them to allow users to run your code. But efficient anty-piracy measures are difficult to implement.

If what you want is to ensure that the code is run by a specific computer, you can try to identify the computer using methods listed in this other StackOverflow question's answers.

In any case, Python is a powerfull language, you will be able to do what you want with it, either way you go.