How would i make a login so that only a specific pc can log in?
AzureScripts (150)

I want to add something to my login where it can detect if you're from the right pc. (will be part of the hash)

What data could i grab from the pc to add to the hash?

You are viewing a single comment. View All
Answered by mwilki7 (280) [earned 5 cycles]
View Answer
mwilki7 (280)

mac address maybe
or come up with some rsa scheme

mwilki7 (280)

not absolutely certain if this works but try this

from uuid import getnode as get_mac
mac = get_mac()
print (hex(mac))
AzureScripts (150)

@mwilki7 Mac Address will do, but how do i get the mac address of a pc in python?

ash15khng (393)

@AzureScripts It may be a bit unsafe to hardcode your mac address of your PC on a repl, so you should use a env file.

AzureScripts (150)

@ash15khng I am not hardcoding my mac address
the address depends on who runs the script.
Different for everyone