Skip to content

Instantly share code, notes, and snippets.

View wannadrunk's full-sized avatar

WannaDrunk wannadrunk

  • Earth
View GitHub Profile
@bouroo
bouroo / thai-id-card.py
Last active June 15, 2025 14:21
Thai National ID Card reader in python
#!/usr/bin/env python3
# Kawin Viriyaprasopsook<[email protected]>
# 2025-06-15
# sudo apt-get -y install pcscd python-pyscard python-pil
from dataclasses import dataclass, field
from pathlib import Path
from smartcard.System import readers
from smartcard.util import toHexString
import sys