Find a device id (HWID)
A device id (HWID) is a fixed fingerprint of one computer that a license key can be bound to. Run one command on the computer to see the id that Licers apps use, for example to make an offline license file for it.
Updated by the Licers team
Open PowerShell and run:
$g = (Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Cryptography).MachineGuid
-join ([Security.Cryptography.SHA256]::Create().ComputeHash([Text.Encoding]::UTF8.GetBytes("licers:$g")) | % { $_.ToString("x2") })It prints the device id. The command only reads the computer’s own id and hashes it on that computer.
What the id is made of
The device id is a SHA-256 hash of the operating system’s machine id (Windows MachineGuid, Linux /etc/machine-id, macOS IOPlatformUUID). It survives reinstalls of your app, and the Node, .NET, Kotlin, Java, Rust, Go, C and C++ SDKs compute the same value on the same machine.
- The raw id never leaves the computer: only its SHA-256 hash is used.
- It stays the same after restarts, updates and new programs. Installing the operating system again can change it.
- A copied virtual machine has the same id as its original.
Which SDKs use it
Node.js, C# / .NET, Java and Kotlin on desktops, Rust, Tauri, Go, PHP on the command line, C and C++ all compute this id. The Python SDK uses the network card’s address as the device id, or a random id it stores once when that can’t be read. It is not the same value the other Licers SDKs use: if one machine runs apps in both, pass the same hwid to each.
Websites are identified by their address instead, as site:example.com. That is what the PHP SDK and the WordPress kit use.
When you need it
- Offline license files. The customer sends you the id, and you make a file for that computer. Your app can show the id itself; this page is for when it doesn’t.
- Support. Find the customer’s computer in the device list of a key, and remove an old one.
- Blocking. Put one computer on the blocklist.
Questions and answers
Why can’t this page just show my id?
Browsers don’t let websites read a computer’s machine id, and that is good. So the command runs on your computer.
Is the command safe?
It reads one value, hashes it and prints the hash. It changes nothing and sends nothing.
Can somebody fake a device id?
Someone who controls the computer can. A device limit stops casual sharing; watch key sharing for the rest.
The app shows another id. Why?
Python apps have their own id, and an app can set its own. Use the id the app shows.