Gathering detailed insights and metrics for jwk-to-pem
Gathering detailed insights and metrics for jwk-to-pem
Gathering detailed insights and metrics for jwk-to-pem
Gathering detailed insights and metrics for jwk-to-pem
rsa-pem-to-jwk
Converts PEM encoded RSA public and private keys to the JWK (JSON Web Key) format.
@types/jwk-to-pem
TypeScript definitions for jwk-to-pem
rasha
💯 PEM-to-JWK and JWK-to-PEM for RSA keys in a lightweight, zero-dependency library focused on perfect universal compatibility.
pem-to-jwk
A tool to convert PEM formated EC keys to JWK
Convert a json web key to a PEM for use by OpenSSL or crytpo
npm install jwk-to-pem
Typescript
Module System
Node Version
NPM Version
99.4
Supply Chain
90.3
Quality
76.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
160,668,002
Last Day
57,389
Last Week
952,733
Last Month
4,158,364
Last Year
44,862,963
Apache-2.0 License
152 Stars
103 Commits
31 Forks
6 Watchers
6 Branches
16 Contributors
Updated on Apr 07, 2025
Minified
Minified + Gzipped
Latest Version
2.0.7
Package Id
jwk-to-pem@2.0.7
Unpacked Size
22.02 kB
Size
7.54 kB
File Count
11
NPM Version
10.9.0
Node Version
22.11.0
Published on
Nov 25, 2024
Cumulative downloads
Total Downloads
Last Day
4.4%
57,389
Compared to previous day
Last Week
-5.4%
952,733
Compared to previous week
Last Month
0.5%
4,158,364
Compared to previous month
Last Year
13.7%
44,862,963
Compared to previous year
3
Convert a json web key to a PEM for use by OpenSSL or crypto
.
1npm install jwk-to-pem --save
1var jwkToPem = require('jwk-to-pem'), 2 jwt = require('jsonwebtoken'); 3 4var jwk = { kty: 'EC', crv: 'P-256', x: '...', y: '...' }, 5 pem = jwkToPem(jwk); 6 7jwt.verify(token, pem);
key type | support level |
---|---|
RSA | all RSA keys |
EC | P-256, P-384, and P-521 curves |
jwkToPem(Object jwk[, Object options])
-> String
The first parameter should be an Object representing the jwk, it may be public or private. By default, either of the two will be made into a public PEM. The call will throw if the input jwk is malformed or does not represent a valid key.
Boolean
(false)You may optionally specify that you would like a private PEM. This can be done
by passing true
to the private
option. The call will throw if the necessary
private parameters are not available.
Fork the repository. Committing directly against this repository is highly discouraged.
Make your modifications in a branch, updating and writing new unit tests
as necessary in the spec
directory.
Ensure that all tests pass with npm test
rebase
your changes against master. Do not merge.
Submit a pull request to this repository. Wait for tests to run and someone to chime in.
This repository is configured with EditorConfig and ESLint rules.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
Found 8/26 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-02
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More