cryptoserve 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -250,7 +250,7 @@ export function generateHtml(data) {
250
250
  <div class="hero">
251
251
  <div class="hero-brand">CryptoServe Census</div>
252
252
  <h1>The State of Cryptography</h1>
253
- <p class="hero-subtitle">Real-time analysis of cryptographic library adoption across npm and PyPI</p>
253
+ <p class="hero-subtitle">Real-time analysis of cryptographic library adoption across 11 package ecosystems</p>
254
254
  <div class="hero-stat">
255
255
  <span class="hero-stat-number" id="hero-ratio"></span>
256
256
  <span class="hero-stat-label">weak crypto downloads for every 1 PQC download</span>
@@ -258,16 +258,16 @@ export function generateHtml(data) {
258
258
  </div>
259
259
 
260
260
  <!-- NIST Deadline Countdown -->
261
- <h2 class="section-title">NIST Post-Quantum Deadlines</h2>
262
- <p class="section-subtitle">Time remaining before NIST mandates PQC migration</p>
261
+ <h2 class="section-title">NIST Post-Quantum Transition Deadlines</h2>
262
+ <p class="section-subtitle">Deadlines for quantum-vulnerable public-key algorithms (RSA, ECDSA, ECDH, DSA) per NIST IR 8547. Symmetric crypto (AES) and hash functions (SHA-2, SHA-3) are not affected.</p>
263
263
  <div class="countdown-grid">
264
264
  <div class="countdown-item">
265
265
  <div class="countdown-days" id="countdown-2030"></div>
266
- <div class="countdown-label">Days until 2030 (deprecate classical)</div>
266
+ <div class="countdown-label">Days until 2030 (deprecate quantum-vulnerable asymmetric crypto)</div>
267
267
  </div>
268
268
  <div class="countdown-item">
269
269
  <div class="countdown-days" id="countdown-2035"></div>
270
- <div class="countdown-label">Days until 2035 (disallow classical)</div>
270
+ <div class="countdown-label">Days until 2035 (disallow quantum-vulnerable asymmetric crypto)</div>
271
271
  </div>
272
272
  </div>
273
273
 
@@ -367,9 +367,22 @@ export function generateHtml(data) {
367
367
 
368
368
  <!-- Methodology -->
369
369
  <div class="methodology">
370
- <p><strong>Methodology:</strong> Download counts sourced from npm registry API and PyPI Stats API (last 30 days).
370
+ <p><strong>Methodology:</strong> Download counts from npm, PyPI, Go, Maven, crates.io, Packagist, NuGet, RubyGems, Hex, pub.dev, and CocoaPods (last 30 days).
371
+ Download counts reflect package manager installs (including CI/CD and transitive dependencies) and may overstate direct application usage.
371
372
  CVE data from NIST National Vulnerability Database (CWE-326, CWE-327, CWE-328).
372
- Advisory data from GitHub Advisory Database. Package classification based on NIST SP 800-131A and CNSA 2.0 guidance.</p>
373
+ Advisory data from GitHub Advisory Database.</p>
374
+ <p style="margin-top: 0.5rem;"><strong>Classification:</strong> Packages categorized as <em>weak</em> (broken or deprecated algorithms: MD5, SHA-1, DES, RC4),
375
+ <em>modern</em> (current-generation algorithms: AES-GCM, SHA-256, ECDSA, Ed25519), or <em>PQC</em> (post-quantum: ML-KEM, ML-DSA, SLH-DSA).
376
+ Note: the 2030/2035 NIST deadlines apply to public-key cryptography only; symmetric ciphers (AES-128/256) and hash functions (SHA-2, SHA-3) remain approved beyond 2035.</p>
377
+ <p style="margin-top: 0.5rem;"><strong>Verify our data:</strong>
378
+ <a href="https://api.npmjs.org/downloads/point/last-month/" style="color:#06b6d4">npm API</a> |
379
+ <a href="https://pypistats.org/api/" style="color:#06b6d4">PyPI Stats</a> |
380
+ <a href="https://proxy.golang.org" style="color:#06b6d4">Go Proxy</a> |
381
+ <a href="https://search.maven.org" style="color:#06b6d4">Maven Central</a> |
382
+ <a href="https://crates.io/api/v1/crates/" style="color:#06b6d4">crates.io</a> |
383
+ <a href="https://services.nvd.nist.gov/rest/json/cves/2.0" style="color:#06b6d4">NIST NVD</a> |
384
+ <a href="https://api.github.com/advisories" style="color:#06b6d4">GitHub Advisories</a> |
385
+ <a href="https://csrc.nist.gov/pubs/ir/8547/final" style="color:#06b6d4">NIST IR 8547</a></p>
373
386
  <p style="margin-top: 0.5rem;">Generated by CryptoServe Census on <span id="collected-at"></span></p>
374
387
  </div>
375
388
  </div>
@@ -114,12 +114,22 @@ export function renderTerminal(data, style) {
114
114
  lines.push('');
115
115
  }
116
116
 
117
- // --- Next Steps ---
117
+ // --- Data Sources ---
118
118
  lines.push(divider());
119
+ lines.push(section('Data Sources'));
120
+ lines.push(dim(' Downloads: npm Registry API, PyPI Stats, Go Module Proxy, Maven Central, crates.io,'));
121
+ lines.push(dim(' Packagist, NuGet, RubyGems, Hex.pm, pub.dev, CocoaPods Trunk'));
122
+ lines.push(dim(' CVEs: NIST NVD (CWE-326, CWE-327, CWE-328)'));
123
+ lines.push(dim(' Advisories: GitHub Advisory Database (reviewed, crypto-CWE filtered)'));
124
+ lines.push(dim(' Download counts reflect package installs (CI/CD + transitive deps), not direct usage'));
125
+ lines.push(dim(' NIST 2030/2035 deadlines target public-key crypto only (AES, SHA-2, SHA-3 unaffected)'));
126
+ lines.push('');
127
+
128
+ // --- Next Steps ---
119
129
  lines.push(section('Next Steps'));
120
130
  lines.push(info('Run `cryptoserve scan .` to find weak crypto in your code'));
121
131
  lines.push(info('Run `cryptoserve census --format html --output report.html` for visual report'));
122
- lines.push(warning(`NIST requires PQC migration by 2030 -- ${data.nistDeadline2030} remaining`));
132
+ lines.push(warning(`NIST deprecates quantum-vulnerable public-key crypto by 2030 -- ${data.nistDeadline2030} remaining`));
123
133
  lines.push('');
124
134
 
125
135
  console.log(lines.join('\n'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cryptoserve",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "CryptoServe CLI - Cryptographic scanning, PQC analysis, encryption, and local key management",
5
5
  "type": "module",
6
6
  "bin": {