3.0.2 • Published 3 years ago

jwe-handler v3.0.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
3 years ago

simple JWE converter

this module performs two basic tasks create and decrypt JWE tokens.

the creation process also encodes the JWE as base64.

requires a PEM formatted public cert or private key to encrypt or a PEM formatted private key to decrypt

installation

npm i jwe-handler

usage

create JWE

  try {
    generatedJwe = await createJWE( itemToEncrypt, jwaPem );
  } catch( err ) {
    logger.error( "error in generate JWE try block : ", err );
    throw err;
  }

decrypt JWE

  try {
    localClientRecord = await decryptJWE( clientToken, jwaPem );
  } catch( err ) {
    console.log( "error trying the decrypt : ", err );
    throw err
  }

author: bruno@hypermedia.tech

hypermedia.tech

3.0.2

3 years ago

3.0.0

5 years ago

2.2.12

5 years ago

2.2.11

5 years ago

2.2.10

5 years ago

2.2.9

5 years ago

2.2.8

5 years ago

2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago