PKPASS
| Filename extensions | |
|---|---|
| Internet media type | |
| Developed by | Apple |
| Extended from | ZIP |
PKPASS is a file format for storage and exchange of digital passes developed by Apple for its Wallet application. Passes can replace physical paper or plastic cards, like a payment card, boarding pass, loyalty card or coupon.[2] The format specification has been published online[2] and this allowed for compatible implementations to be developed for other platforms like Android,[3] Windows[4] and Linux.[5]
Characteristics
The file is a ZIP archive with a filename extension .pkpass containing a set of digitally signed files describing the digital pass. Multiple .pkpass files can be further combined into a single ZIP archive with an extension of .pkpasses in order to combine several digital passes for ease of distribution.
The file contents of a sample PKPASS file might look like this:
- icon.png
- icon@2x.png
- pass.json
- manifest.json
- signature
- 15px en.lproj/
- logo.png
- logo@2x.png
- pass.strings
- 15px ru.lproj/
- logo.png
- logo@2x.png
- pass.strings
icon.png is the digital pass icon. logo.png is displayed at the top left of the rendered pass.
Localized resources - like images and strings - are stored in subfolders named like this: <language_identifier>-<region_identifier>.lproj
The file pass.json is a JSON formatted dictionary describing the digital pass.
manifest.json contains a JSON dictionary containing SHA-1 hashes for all files except the manifest itself and the signature.
signature contains a PKCS #7 signature of the manifest file thus effectively signing all files in the bundle.
References
- ↑ "PKPASS file documentation". https://file-extensions.com/docs/pkpass.
- ↑ 2.0 2.1 "PassKit Package Format Reference". Apple Inc.. https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/Introduction.html.
- ↑ "Google Play: Search results for "pkpass"". https://play.google.com/store/search?q=pkpass&c=apps.
- ↑ "Windows store: Search results for "pkpass"". https://www.microsoft.com/en-us/search/shop/apps?q=pkpass.
- ↑ "Flathub store: Search results for "pkpass"". https://flathub.org/apps/search?q=pkpass.
External links
