Skip to content

Instantly share code, notes, and snippets.

@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