Skip to content

Instantly share code, notes, and snippets.

@wongcc2012
wongcc2012 / tspkgen.py
Created March 21, 2026 05:55 — forked from WitherOrNot/tspkgen.py
Terminal Services License Server ID + License Key Pack generator
from Crypto.Cipher import ARC4
from hashlib import sha1, md5
from random import randint
from ecutils.core import Point, EllipticCurve
from sys import argv
KCHARS = "BCDFGHJKMPQRTVWXY2346789"
SPK_ECKEY = {
"a": 1,