@auth0/cose
Version:
COSE library for node.js
31 lines (19 loc) • 879 B
Markdown
# COSE
[RFC9052](https://datatracker.ietf.org/doc/rfc9052/) and [RFC9053](https://datatracker.ietf.org/doc/html/rfc9053) COSE library for node.js.
This library is designed to work in node.js as well in the browser but it is not currently being tested in the browser.
## Installation
```
npm i --save @auth0/cose
```
## Examples
You can run the examples directly with node.
- [Sign1: COSE Single Signer Data Object](examples/Sign1.mjs)
- [Sign: COSE Signed Data Object](examples/Sign.mjs)
- [Mac0: COSE Mac w/o Recipients Object](examples/Mac0.mjs)
- [Encrypt0: COSE Single Recipient Encrypted Data Object](examples/Encrypt0.mjs)
- [Encrypt: COSE_Encrypt with direct encryption](examples/Encrypt.mjs)
- [COSEKey: COSEKey usage](examples/COSEKey.mjs)
## Credits
- [panva/jose](https://github.com/panva/jose) A node.js library for JOSE.
## License
Apache-2.0 - OKTA Inc.