SLH-DSA Post-Quantum Hash-Based Signing Key Generator (FIPS 205)
Generate real NIST FIPS 205 SLH-DSA (formerly SPHINCS+) stateless hash-based post-quantum signing key pairs locally in your browser. Zero lattice assumptions, tiny 32–64 byte public keys, and RFC 9909 OpenSSL 3.5+ PEM export.
FIPS 205 · 2.16.840.1.101.3.4.3.25
Generated SLH-DSA key pairSLH-DSA-SHA2-256fHash-Only
Generating your SLH-DSA-SHA2-256f key pair…
Live SLH-DSA Sign & Verify Playground
Sign a message locally to observe real hash-based signing latency and signature size (49,856 B).
SLH-DSA Parameter Sets vs. ML-DSA-87
| Algorithm | Math Basis | Public Key | Signature | Best Fit |
|---|---|---|---|---|
| ML-DSA-87 | Module Lattice | 2,592 B | 4,627 B | General TLS/PKI & CNSA 2.0 default |
| SLH-DSA-SHA2-128s | Hash-only (SHA-2) | 32 B | 7,856 B | Smallest hash-only signature; offline roots |
| SLH-DSA-SHA2-128f | Hash-only (SHA-2) | 32 B | 17,088 B | Fast signing with conservative hash security |
| SLH-DSA-SHA2-256s | Hash-only (SHA-2) | 64 B | 29,792 B | Category 5 long-term archives & firmware |
| SLH-DSA-SHA2-256f | Hash-only (SHA-2) | 64 B | 49,856 B | Category 5 fast signing (CI/CD release signing) |
Generate & Sign Locally (OpenSSL 3.5+ & Node.js)
Generate SLH-DSA-SHA2-256f private key locally (OpenSSL 3.5+)
openssl genpkey -algorithm SLH-DSA-SHA2-256f -out slh-dsa-sha2-256f-private.pemExtract SPKI public key (verifies downloaded PEM)
openssl pkey -in slh-dsa-sha2-256f-private.pem -pubout -out slh-dsa-sha2-256f-public.pemSign a binary artifact with SLH-DSA
openssl pkeyutl -sign -inkey slh-dsa-sha2-256f-private.pem -rawin -in firmware.bin -out firmware.sigimport { slh_dsa_sha2_256f } from '@noble/post-quantum/slh-dsa.js'
const { publicKey, secretKey } = slh_dsa_sha2_256f.keygen()
const manifest = new TextEncoder().encode('firmware-sha512:3c9909af...')
const sig = slh_dsa_sha2_256f.sign(manifest, secretKey)
const ok = slh_dsa_sha2_256f.verify(sig, manifest, publicKey)
console.log({ ok, pubBytes: publicKey.length, sigBytes: sig.length }) // 64 B pub, 49856 B sigRelated Post-Quantum Tools & Guides
How to use this SLH-DSA generator
Conservative hash-only security · Zero lattice assumptions
Unlike ML-DSA (lattice math), SLH-DSA (FIPS 205) relies exclusively on the security of SHA-2 or SHAKE256—making it NIST's conservative backup for long-lived root CAs, software signing, and firmware without the dangerous state-tracking requirements of LMS/XMSS. All keys are generated locally with crypto.getRandomValues() and export in RFC 9909 PEM format accepted by OpenSSL 3.5+.