@exact-realty/cose-algorithms
TypeScript icon, indicating that this package has built-in type declarations

20240216.0.2 • Public • Published

🔒 Identifiers from IANA's COSE Algorithms Registry

Reliability Rating Vulnerabilities Bugs Security Rating Maintainability Rating NPM Downloads


🚀 Features

  • Implements all assigined entries in IANA's COSE Algorithm that have a name and a value.
  • Simple exported constants, with no code to execute.
  • Some name transformations were required to make them valid JS identifiers.
    • For example, HMAC 256/64 becomes HMAC256_s_64 and ECDH-SS + HKDF-256 becomes ECDH_SS_and_HKDF_256.
  • Incudes JSDoc with a description as well as a note as to whether the value is currently deprecated or recommended.
  • It does not support reverse lookups. For example, there is not built in way to find the name for, for example, the value 0 (a reverse lookup would yield Reserved).

💻 Installation

To install the package, you can use npm or yarn:

npm install @exact-realty/cose-algorithms

or

yarn add @exact-realty/cose-algorithms

📚 Usage

Decrypting Data

import { encodings, decrypt } from '@exact-realty/cose-algorithms';

🤝 Contributing

We welcome any contributions and feedback! Please feel free to submit pull requests, bug reports or feature requests to our GitHub repository.

📜 License

This project is dedicated to the public domain, and you may do with it as you wish. Check out the LICENSE.txt file for more information.

If you download the full sources, note that some support files might (such as .prettierrc.cjs) might have a different license. In those cases, that license applies.

Package Sidebar

Install

npm i @exact-realty/cose-algorithms

Weekly Downloads

1

Version

20240216.0.2

License

CC0-1.0

Unpacked Size

76 kB

Total Files

12

Last publish

Collaborators

  • er-ci-bot
  • corrideat