Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 11, 2024 via pnpm

jws 3.2.2

Implementation of JSON Web Signatures
Package summary
Share
0
issues
3
licenses
3
MIT
1
BSD-3-Clause
1
Apache-2.0
Package created
16 Jan 2013
Version published
16 Mar 2019
Maintainers
7
Total deps
5
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
jwa@1.4.1
jws@3.2.2
safe-buffer@5.2.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
buffer-equal-constant-time@1.0.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
ecdsa-sig-formatter@1.0.11
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of jws 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
jwa1.4.14.45 kBMIT
prod
safe-buffer5.2.19.74 kBMIT
prod

Visualizations

Frequently Asked Questions

What does jws do?

JWS or JSON Web Signatures is a popular npm package used for creating and verifying JSON Web Signatures as per the draft-ietf-jose-json-web-signature-08 specification. This comprehensive tool supports various digital signature or MAC algorithms including but not limited to HS256, RS256, PS384, ES512, and more, providing both synchronous and streaming APIs for better functionality.

How do you use jws?

JWS can be used by first installing it via npm using the command npm install jws. The package provides multiple functions for different purposes.

To sign a header and payload, you can use:

const jws = require('jws'); 

const signature = jws.sign({
  header: { alg: 'HS256' },
  payload: 'h. jon benjamin',
  secret: 'has a van',
});

To verify if a signature matches a secret or key:

const jws = require('jws'); 

const isVerified = jws.verify(signature, 'HS256', 'has a van');

To decode a JWS signature:

const jws = require('jws'); 

const decodedSignature = jws.decode(signature);

Creation of 'SignStream' and 'VerifyStream' objects is also allowed which come with their specific functions.

Convenience options and APIs for defining the algorithm is currently under development.

Where are the jws docs?

Detailed documentation for JWS can be found directly in the readme file of the package's GitHub page at the url git://github.com/brianloveswords/node-jws.git, providing a comprehensive guide on its installation and usage. This includes the available APIs, installation, usage, and the list of the supported algorithms. More functions may be added over time or with different versions, it's recommended to always check the latest documentation for updated information.