RandomKeygen
Free · Private · Client-sideGenerated locally — never transmitted

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.

Standard & OID

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…

NIST Category 5 (~AES-256) · Maximum hash-only security with fast signing (64 B pubkey)

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

AlgorithmMath BasisPublic KeySignatureBest Fit
ML-DSA-87Module Lattice2,592 B4,627 BGeneral TLS/PKI & CNSA 2.0 default
SLH-DSA-SHA2-128sHash-only (SHA-2)32 B7,856 BSmallest hash-only signature; offline roots
SLH-DSA-SHA2-128fHash-only (SHA-2)32 B17,088 BFast signing with conservative hash security
SLH-DSA-SHA2-256sHash-only (SHA-2)64 B29,792 BCategory 5 long-term archives & firmware
SLH-DSA-SHA2-256fHash-only (SHA-2)64 B49,856 BCategory 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.pem

Extract SPKI public key (verifies downloaded PEM)

$openssl pkey -in slh-dsa-sha2-256f-private.pem -pubout -out slh-dsa-sha2-256f-public.pem

Sign a binary artifact with SLH-DSA

$openssl pkeyutl -sign -inkey slh-dsa-sha2-256f-private.pem -rawin -in firmware.bin -out firmware.sig
slhdsa.ts
import { 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 sig

Related Post-Quantum Tools & Guides

How to use this SLH-DSA generator

01
Choose hash family, security level, and -f vs. -s profile
Fast (-f) profiles sign quickly with larger signatures; small (-s) profiles cut signature size roughly in half at the cost of slower signing. All profiles share tiny 32–64 byte public keys.
02
Export RFC 9909 PEM or raw bytes
Download SPKI public and PKCS#8 private PEM files directly compatible with OpenSSL 3.5+—verified byte-for-byte with openssl pkey.
03
Test signing and verification locally
Sign a sample manifest below to see the real signing latency and signature size in your browser, then edit the text to watch FIPS 205 verification reject tampering.

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+.

Compare ML-KEM vs. ML-DSA vs. SLH-DSA vs. X-Wing →