Skip to content

Instantly share code, notes, and snippets.

@zevaryx
Created April 23, 2026 22:49
Show Gist options
  • Select an option

  • Save zevaryx/45ccda5d720428b28504fd2c3bbb607d to your computer and use it in GitHub Desktop.

Select an option

Save zevaryx/45ccda5d720428b28504fd2c3bbb607d to your computer and use it in GitHub Desktop.
MeshOS Keygen
def derive(mac: str) -> str:
mac = mac.upper()
h = ord(mac[0])
for i in range(1, len(mac)):
h = (h * 33 + ord(mac[i]))
# "MCPP"
xors = [0x4D, 0x43, 0x50, 0x50]
key = ""
for i in range(4):
byte = ((h >> 24 - i * 8) & 0xFF) ^ xors[i]
key += f"{byte:02x}"
return key.upper()
if __name__ == "__main__":
mac = input("Please enter your 12-character MAC/Serial: ")
mac = mac.replace(":", "")
key = derive(mac)
print(f"Your unlock key: {key}")
@jjkroell
Copy link
Copy Markdown

Should make one for the android app as well :)
Well done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment