Skip to content

Instantly share code, notes, and snippets.

@ic32k
ic32k / bcbp_decode.py
Created December 6, 2025 22:20 — forked from sebastiengoddard/bcbp_decode.py
Boarding pass barcode decoder
#!/usr/bin/python2
# based on bcbp_implementation_guidev4_jun2009.pdf
# and http://www.airlineinfo.com/ostpdf88/98.pdf
import sys
from datetime import date, timedelta
from binascii import hexlify, a2b_base64
from collections import OrderedDict as odict

Keybase proof

I hereby claim:

  • I am ic32k on github.
  • I am ic3_2k (https://keybase.io/ic3_2k) on keybase.
  • I have a public key whose fingerprint is B805 64FA 3095 9565 8675 BEB2 1E5F DF6D 493F 3D48

To claim this, I am signing this object: