node-jose-dpikalov

A JavaScript implementation of the JSON Object Signing and Encryption (JOSE) for current web browsers and node.js-based servers

Usage no npm install needed!

<script type="module">
  import nodeJoseDpikalov from 'https://cdn.skypack.dev/node-jose-dpikalov';
</script>

README

node-jose-dpikalov

This is fork from https://github.com/cisco/node-jose

Normally, JWE Additional Authenticated Data includes Encoded Protected Header (see step 14 of https://datatracker.ietf.org/doc/html/rfc7516#section-5.1) but this lib allows to change this behavior.

Added extra option excludeHeaderFromAad to methods JWE.createEncrypt(options,...) and JWE.createDecrypt(key, options)

Usage: JWE.createEncrypt({ excludeHeaderFromAad: true },...)