Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion vacdec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3

import re
import sys
import zlib
import pprint
Expand Down Expand Up @@ -31,7 +32,9 @@ else:
sys.exit(1)
cert = data[0].data.decode()

b45data = cert.replace("HC1:", "")
nospaces = cert.strip()

b45data = nospaces if not re.match(r"[a-zA-Z0-9]{3}:", nospaces[:4]) else nospaces[4:]

zlibdata = base45.b45decode(b45data)

Expand Down