Why Offline Badge Baking is the Gold Standard for Digital Credentials
Learn how cryptographic badge baking embeds verifiable Open Badges assertions into PNG (iTXt chunks) and SVG metadata, ensuring credentials remain verifiable without vendor dependency.
Direct Answer: What is Badge Baking?
Badge Baking is the process of embedding structured, cryptographically signed credential metadata (assertions) directly into the binary container of an image file (typically PNG or SVG). The resulting image is self-contained: it functions both as a human-readable visual badge and as a machine-readable, offline-verifiable cryptographic proof.
The Fundamental Flaws of PDF Certificates
For two decades, organizations relied on PDF certificates sent as email attachments. In modern digital workflows, PDF certificates suffer from critical vulnerabilities:
- Trivial Tampering: Anyone with a basic PDF editor can modify the recipient's name, issue date, or issuing organization in seconds.
- Link Rot & Server Dependency: Most PDF certificates rely on a printed URL or QR code linking to a private server. If the issuer closes down or reconfigures their website, the certificate becomes unverifiable.
- No Standardized Machine Schema: PDFs lack structured semantic data, making it impossible for automated hiring platforms or digital wallets to parse competency records.
How PNG iTXt Chunk Injection Works
The Portable Network Graphics (PNG) standard (ISO/IEC 15948:2004) defines extensible binary data segments known as chunks. Credinberg embeds credential data inside international text chunks:
- `iTXt:openbadgecredential` Chunk: Contains the full W3C Verifiable Credential JSON-LD payload.
- `iTXt:openbadges` Chunk: Contains backward-compatible Open Badges 2.0 assertion metadata.
- CRC32 Cyclic Redundancy Check: Every PNG chunk possesses a 4-byte CRC checksum. If an attacker tampers with the metadata or image bytes, the CRC check fails instantly.
Vector Preservation: Baking into SVG
For scalable vector artwork, SVG baking embeds the credential schema within standard XML tags:
<svg xmlns="http://www.w3.org/2000/svg" ...>
<!-- Visual Vectors -->
<metadata>
<openbadges:assertion xmlns:openbadges="http://openbadges.org/ns#">
{ ... Signed JSON-LD Assertion ... }
</openbadges:assertion>
</metadata>
</svg>This ensures designers can deliver high-resolution responsive vector artwork that scales from mobile screens to 4K displays without losing cryptographic fidelity.
Verifying Baked Badges Offline
When a user uploads a baked PNG badge to a compliance validator:
- The parser extracts the
iTXtchunk bytes without executing any remote server call. - The JSON payload is validated against the W3C Open Badges schema.
- The cryptographic signature is evaluated against the issuer's public key.
- The user receives a green verification seal confirming issuer identity, recipient verification, and badge authenticity.
Frequently Asked Questions
Key questions and answers regarding this specification.
What happens if a baked PNG image is resized or edited?
Modifying the pixels of a baked PNG image or stripping its metadata immediately invalidates the cryptographic checksum and breaks the digital signature. The badge validator will flag the credential as corrupted or tampered with.
Does baking an image increase the file size significantly?
No. The embedded JSON-LD assertion and cryptographic signature typically add only 2 to 5 kilobytes to the original PNG or SVG image container.
Can an offline baked badge be verified if the issuer's server is down?
Yes. Because the assertion data and public verification keys are embedded and formatted to open standards, validators can extract and inspect the cryptographic proof locally without requiring a live connection to the issuing platform.
Related Publications
What is Open Badges 3.0? The Definitive Guide to Verifiable Credentials & W3C Standards
Explore how Open Badges 3.0 bridges digital credentials with the W3C Verifiable Credentials Data Model, cryptographic signing, decentralized identifiers, and tamper-proof verification.
Digital BadgingDigital Badges vs. PDF Certificates: Why Modern Institutions Are Making the Shift
A comprehensive institutional comparison between static PDF certificates and cryptographically verifiable digital badges across security, verification, and earner portability.
Looking to deploy verifiable credentials in your institution?
Contact our institutional team →