Getting my library cards onto my phone the hard way
iliana.fyiSo, the question I would ask is why not just scan the card or make a photograph of it, and store that in your photo library? That should work for most types of cards, right?
Cryptographically exciting. Unfortunate that the code is all copyrighted, and nobody in Seattle or anywhere else would be able to test, use, or extend it.
I had attempted to create a pass for my local library in the past, but never got a working barcode, and this post helped me to understand the issues I was hitting.
I was able to adapt the OP's shell script to generate a working Codabar image (after I figured out that my local library used "A" and "T" as beginning and end markers) that matched the physical card exactly, and there was enough useful metadata for me to piece together a working pass using that barcode as a store card's background image. I ended up using the Pass2U Wallet iOS app directly, rather than hacking around signing keys, but found the documented process helpful.
Ah, so the author granted you a license to adapt the code; that's good to hear.