Skip to content

Instantly share code, notes, and snippets.

import os
import json
import subprocess
import urllib
import urllib.request
import urllib.parse
API_HOST = "hk4e-api-os.hoyoverse.com"
@einstein95
einstein95 / sckey.py
Last active August 22, 2017 07:26 — forked from notwa/sckey.c
Starcraft CD-Key Validator
from sys import argv
def validate(key):
magic = 3
count = 0
for c in key:
if not c.isdigit():
continue
v = int(c)
count += 1