I am trying to write a simple licensing scheme for a small piece of engineering software on windows. I am not very knowledgeable on this topic but a simple moderately secure approach is good enough for now.
My idea is to make a hostID by concatenating the entire output from some combination of system commands, such as:
getmac /v
arp -a
ipconfig /all | find “Physical Address”
vol
wmic baseboard get product,manufacturer,version,serialnumber
wmic diskdrive get model,serialNumber,size,mediaType
wmic bios get serialnumber
hostname
whoami
What command(s) are recommended to produce the most secure hostID?
My next idea is to produce a hash of the concatenated hostID using something like SHA to produce a license file.
oceanEngineer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.