Vincent
Created: May 3, 2024
Updated: September 10, 2024
Concise Binary Object Representation (CBOR) is a data format that aims to provide the benefits of JSON but in a more compact and efficient binary form. Defined in RFC 8949, CBOR's design supports extremely small code sizes, small message sizes, and easy extensibility without version negotiation.
Become part of our Passkeys Community for updates and support.
JoinCBOR Object Signing and Encryption (COSE) algorithms are used to generate passkeys. The type of algorithm is stored within the attestation-object of a passkey operation:
CBOR builds on the JSON data model, encompassing types such as numbers, strings, arrays, and maps, adding more like bytes for binary data not efficiently handled by JSON. Here’s how CBOR refines data interchange:
Like JSON, CBOR allows for effective data interchange without rigid schema enforcement, facilitating flexible development and rapid evolution at both ends of a communication channel.
Unlike JSON, which requires encoding for binary data (typically in base64), CBOR embraces binary natively, simplifying the representation of binary data like encryption keys or sensor readings.
Subscribe to our Passkeys Substack for the latest news, insights and strategies.
SubscribeCBOR's binary nature ensures data is not only more concise but also processed faster than textual formats, crucial for performance-critical applications like those in IoT.
As a stable Internet Standard, CBOR is designed to remain relevant and supportive of new technologies for decades. It supports extensibility through tags that allow for additional data types without altering the core specifications.
Want to experiment with passkey flows? Try our Passkeys Debugger.
Try for FreeCBOR is a binary format that reduces the size and increases the speed of data interchange, unlike JSON's text-based format which is more verbose and slower to process.
Yes, CBOR is based on the JSON data model and can represent all JSON data types, plus additional binary types, making it broadly compatible yet more efficient.
Ben Gould
Head of Engineering
I’ve built hundreds of integrations in my time, including quite a few with identity providers and I’ve never been so impressed with a developer experience as I have been with Corbado.
3,000+ devs trust Corbado & make the Internet safer with passkeys. Got questions? We’ve written 150+ blog posts on passkeys.
Join Passkeys CommunityCBOR itself focuses on data representation. Security can be implemented on top of CBOR using COSE, which adds signing, encryption, and message authentication.
Absolutely. CBOR's tagging system allows it to adapt to future requirements and incorporate new data types without disrupting existing implementations.
Implementing CBOR requires a CBOR parser and generator. Many programming languages have libraries available that support CBOR, facilitating easy integration into existing systems.
Enjoyed this read?
🤝 Join our Passkeys Community
Share passkeys implementation tips and get support to free the world from passwords.
🚀 Subscribe to Substack
Get the latest news, strategies, and insights about passkeys sent straight to your inbox.
We provide UI components, SDKs and guides to help you add passkeys to your app in <1 hour
Start for free