Gathering detailed insights and metrics for simple-pkce-web-crypto
Gathering detailed insights and metrics for simple-pkce-web-crypto
Gathering detailed insights and metrics for simple-pkce-web-crypto
Gathering detailed insights and metrics for simple-pkce-web-crypto
npm install simple-pkce-web-crypto
Typescript
Module System
Node Version
NPM Version
71.4
Supply Chain
84.5
Quality
75.4
Maintenance
100
Vulnerability
100
License
JavaScript (71.35%)
TypeScript (28.65%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Oct 15, 2020
Latest Version
1.0.2
Package Id
simple-pkce-web-crypto@1.0.2
Unpacked Size
17.37 kB
Size
4.73 kB
File Count
13
NPM Version
6.14.8
Node Version
12.18.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
PKCE helper, generates verify & challenge with preconfigured type (HMAC or hash) algorithm and digest encoding using Web Crypto API
1npm i simple-pkce-web-crypto
Library exports single function - createPKCEHelper(algorithm = 'SHA-256', encoding = 'base64', isHMAC = true)
This function returns object with two async methods on it:
getChallenge(verifier: string) => Promise<string>
- for getting challenge from verifiergenerateChallenge(verifierLength: number) => Promise<PKCEChallenge>
- generates verifier of given length and returns Promise<PKCEChallenge>
:1interface PKCEChallenge { 2 verifier: string; 3 challenge: string; 4}
if you need SHA256 base64 HMAC challenge:
1import { createPKCEHelper, PKCEChallenge, PKCEHelperWebCrypto } from 'simple-pkce-web-crypto' 2 3(async () => { 4 const VERIFIER_LENGTH = 64 5 const { generateChallenge }: PKCEHelperWebCrypto = createPKCEHelper() 6 const { verifier, challenge }: PKCEChallenge = await generateChallenge(VERIFIER_LENGTH) 7})()
You can use any other algorithm:
1import { createPKCEHelper, PKCEChallenge, PKCEHelperWebCrypto } from 'simple-pkce-web-crypto' 2 3(async () => { 4 const VERIFIER_LENGTH = 80 5 const { generateChallenge }: PKCEHelperWebCrypto = createPKCEHelper('SHA-512') 6 const { verifier, challenge }: PKCEChallenge = await generateChallenge(VERIFIER_LENGTH) 7})()
1import { createPKCEHelper, PKCEChallenge, PKCEHelperLegacyBrowser } from 'simple-pkce-web-crypto' 2 3(async () => { 4 const VERIFIER_LENGTH = 80 5 const { generateChallenge }: PKCEHelperLegacyBrowser = createPKCEHelper('SHA-224', 'hex', false) 6 const { verifier, challenge }: PKCEChallenge = await generateChallenge(VERIFIER_LENGTH) 7})()
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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