---
title: "gethwid"
description: "Returns the SHA-256 identifier derived from the Windows hardware-profile GUID."
---

```lua
gethwid(): string
```

---

## Aliases

None.

---

## Arguments

This function takes no arguments.

---

## Returns

<ResponseField name="identifier" type="string">
  A 64-character uppercase hexadecimal SHA-256 digest, or the literal "cheater" when Windows hardware-profile lookup fails.
</ResponseField>

Takes no arguments. On success, returns a 64-character uppercase hexadecimal SHA-256 digest of the native hardware-profile GUID buffer. Returns the literal string "cheater" if GetCurrentHwProfileA fails. This is a hardware-profile-derived identifier, not a direct disk, CPU, or motherboard serial number.

---

## Example

```lua
local id = gethwid()
if id == "cheater" then
    warn("Windows hardware-profile lookup failed")
else
    print("HWID:", id)
end
```
