Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/auth0-lab/cose

COSE library for node.js
https://github.com/auth0-lab/cose

Last synced: about 2 months ago
JSON representation

COSE library for node.js

Awesome Lists containing this project

README

        

# 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.