Skip to content

Instantly share code, notes, and snippets.

View Zhipeng-Li's full-sized avatar
🏠
Working from home

Zhipeng Li Zhipeng-Li

🏠
Working from home
  • China Beijing
  • 07:31 (UTC +08:00)
View GitHub Profile
@Zhipeng-Li
Zhipeng-Li / tspkgen.py
Created January 11, 2026 10:14 — 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,
@Zhipeng-Li
Zhipeng-Li / ca.md
Created November 26, 2016 12:12 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.