{"library":"slh-dsa","title":"SLH-DSA","description":"Pure Python implementation of the SLH-DSA (Stateless Hash-Based Digital Signature Algorithm) based on FIPS 205. Version 0.2.2 includes fixes for digest lengths and supports key import/export in PKCS format, signing, and verification. Actively maintained.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install slh-dsa"],"cli":null},"imports":["from slh_dsa import SLHDSA"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from slh_dsa import SLHDSA\n\n# Generate a private key (SLH-DSA with SHAKE-128, security level 1)\nprivate_key = SLHDSA.new('shake_128')\nmessage = b\"Hello, world!\"\nsignature = private_key.sign(message)\n\n# Extract public key (serialized PKCS format)\npublic_key_pem = private_key.public_key().export_pkcs()\n\n# Verify signature\nfrom slh_dsa import verify\nverify(public_key_pem, message, signature)  # Returns True/False\n","lang":"python","description":"Generate SLH-DSA keys, sign, and verify.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}