Oooh, now do Orca cards next. Seattle is one of the tech capitals of the United States, and on top of the metro system just being not great, it's also technically inferior to nearly every single other major city that I've used public transit. Pick any European city, CDMX, Denver. They're all light years ahead of Seattle. Denver might have been my favorite.<p>Fun fact, one of the orgs that runs Orca actually wrote a blog post mentioning they were adding NFC support to their Android app (with some absurdly long timeline). That post is no longer to be found, and of course, years later, that functionality is absent.
For the Android users around who hate Google Wallet because it, like Apple's Passbook, doesn't allow you to just put in any old barcode, there is a delightful app on F-Droid (not on the Google Play Store, unfortunately) called Loyalty Card Keychain ( <a href="https://f-droid.org/en/packages/protect.card_locker/" rel="nofollow noreferrer">https://f-droid.org/en/packages/protect.card_locker/</a> ).<p>This app allows you to simply enter a number (or scan an existing barcode), choose a barcode type (with lots of options, <i>including</i> Codabar!), and save it. Selecting the entry on the app's main screen shows the generated barcode and does the screen-brightening thing. Also the app opens super fast because presumably it doesn't do anything but, you know, displaying barcodes.<p>It has only one purpose but it may well be my most favourite app. I've even used it to transfer a barcode from some label in the supermarket to the self-checkout post, where for some reason the supermarket assumed that you use the hand-held self-scanning devices that I also don't like.<p>EDIT: it seems they want you to use Catima instead these days. Trying it briefly it's similarly simple, and seems to be based on the same codebase.
> for some reason, passes are cryptographically signed, and they have to be signed with a key known to one of Apple’s certificate authorities. Cryptographically signing these files makes some sense when you consider that passes were designed to get automatic updates from their vendors; for example, your boarding pass for a flight reflecting gate changes or changing your seat assignment.<p>How does this make sense? There’s a perfectly well supported system for doing this: HTTPS.<p>Maybe Apple wants passes to be verifiable by the phone offline instead of just when updated? This still seems silly — a malicious actor could <i>replace</i> a pass instead of updating it.
Gosh. I just emailed myself a .png of the barcode containing my library card number and open it in, like, the Photos or Gmail app when I'm at the kiosk.
This was a great blogpost, but then ends with:<p>> I will note that I have not yet tested this pass in a real library yet<p>I get this project was mostly for fun, but why not spend the 10 minutes it takes to test the final solution before sharing your work?
Only slightly related but my preferred way to generate barcodes is the barcode writer in pure postcsript.<p><a href="https://bwipp.terryburton.co.uk/" rel="nofollow noreferrer">https://bwipp.terryburton.co.uk/</a>
For anyone wanting to do something like this on an Android phone, there is Catima (on Google Play and FDroid), which supports many types of barcodes.<p><a href="https://catima.app/" rel="nofollow noreferrer">https://catima.app/</a>
Those cheap laser "1D" bar code scanners cannot read off a screen (except maybe eInk). It sucks because the supermarkets I frequent have their loyalty cards based off barcodes. Fortunately, barcode readers emulate keyboards so you can just type the code on a keyboard.
> Our local libraries, The Seattle Public Library and the King County Library System, issue pieces of plastic with barcodes printed on the back assigned to your borrower account.<p>I just memorized my account number for KCLS. It should take maybe 30 seconds to commit it to memory—though your mileage may vary, I have to believe it's faster than this. After that, you just type in the account number instead of scanning the bar code, and probably do it in less time than it takes to get your phone ready. I don't know if SPL works the same way, as I'm not in Seattle.
This is a really great write up, very clear and easy to follow. Was very impressed at your pure bash barcode generator. I'm eager to try this out on my own library card!
I really love barcodes and barcode symbology for reasons I cannot fully explain. I even wore the npm module named ‘barcode’ which I desperately need to update.<p>Fun fact about codabar, it is among the only barcode symbologies that can be implemented completely as a plain font.
> But having the barcode is far more convenient, and I’d like to have it without having to keep yet another plastic card I rarely use in my wallet.<p>> So I put it on my phone, in my iPhone’s Wallet app<p>Another option would be to literally put the barcode <i>on</i> the phone.<p>Print it on a small piece of paper, about 15mm wide, and tape it to the back of the phone with some transparent tape.
> My library card uses… [stares at Wikipedia for half an hour] Codabar<p>You can just scan it with a barcode scanner like Binary Eye [1] and it will tell you<p>[1] <a href="https://github.com/markusfisch/BinaryEye">https://github.com/markusfisch/BinaryEye</a>
So.. I just added my card to Stocard and used it a King County. Took 2 minutes, on my phone, synced across devices.<p>Or yeah, you could do it that way I guess.
This is a great hack to get custom passes/codes into the wallet, and I'm glad the author wrote it up. I may end up doing this myself. That shell script to generate a bmp was wild.
Pass4wallet is a nice app for that, if you’re ok with your pass data being (according to their privacy policy) sent to their server, signed and then deleted.
Ah I was planning to look into this, glad to hear it's possible to self-generate a pass.<p>My gym requires subscribers to use their app-generated QR code for entry. I have been using the same QR screenshot for the past 2 years to avoid pulling up the app every time. But even the screenshot takes more time to find in Photos than I would like to.
The overdrive app has supported digital library cards for years now.<p>I agree having all the cards in one place is nice, but the fact is libraries put their cards in overdrive, so in effect all my <i>library</i> cards are in one place.<p>Since overdrive is also how you access ebooks from the library, there is a good chance that any "technologically with it" people have it installed already.<p>Now overdrive not being part of Amazon Kindle Fire for Kids tablets, separate issue I have..<p>Edit: I just checked, Google Wallet has built in support specifically for Seattle Public Library cards. Thanks, now I don't have to worry about forgetting my card ever again!
Wouldn't it be easier to just stick a copy of the barcode somewhere onto the phone's case?<p>You can check out books even if the battery dies.<p>If this end result must be attained:<p><a href="https://iliana.fyi/blog/ios-wallet-library-card/pass.png" rel="nofollow noreferrer">https://iliana.fyi/blog/ios-wallet-library-card/pass.png</a><p>can be achieved by displaying simple PNG image.<p>The point of applications that can store cards is that they enable use with wireless payment terminals. If I couldn't tap my phone to pay with credit cards, I wouldn't have a reason to put them into the phone.
Stocard app worked for me. Simple and has an Apple Watch app to boot.<p><a href="https://stocardapp.com/" rel="nofollow noreferrer">https://stocardapp.com/</a>
I use a shortcut and Siri for things like this:<p>1. Save the image to Photos, favorite it, and get the name (e.g IMG_2678).<p>2. Make a shortcut with two actions:<p>- find All Photos where name is IMG_2678 and is favorite.<p>- Quick look<p>I most often use “Siri, share my contact”, which shows a QR code for my contact with my cell and email address. It’s proven handy when I was busy (making drinks) but wanted to give someone my contact. Qrafter is what I use to make QR codes on iOS.
Google wallet supports barcodes. While technically you can only set up cards for libraries who have gone through the registration program, in practice they pretty much all work interchangably. Downside is you can't change the display name, so if you have more than one nearby library, it can be confusing.
But but but those Yodas on physical cards in King County at least <a href="https://imgur.com/a/A2oond2" rel="nofollow noreferrer">https://imgur.com/a/A2oond2</a>
The part of my article that caught my attention was the non-trivial bash script. I do write these myself from time to time, but when you see them it's always like, gah! [Shield your eyes]
I believe there were or are arbitrary pass generator apps that can slap a logo and various data into a custom pass.<p>Alternative solutions to barcodes are RFID/NFCs and geofenced authorization.
I expected something more like squeezing the cards with NIF lasers (and alchemy) into diamond lattices encoding the information and then hacking it alongside phone storage
So wait: you don't want to pay Apple $99 and you don't want to pay for one of the apps that generates a pass for you, but you'll extract the cert from one of those apps thereby piggybacking on another developer's $99 payment to Apple.<p>That's uncool.<p>On a slightly related note: a site I login to regularly uses Semantic VIP Access for 2FA. You can convert these to standard TOTP codes so that you can load them into the Apple Keychain or whatever other TOTP program you prefer:<p><a href="https://github.com/dlenski/python-vipaccess">https://github.com/dlenski/python-vipaccess</a>