{"uid":"cap_OBwHUMvyzodsLkckSe51x","slug":"agent402-tools-scrypt-key-derivation-56f3decc","name":"agent402.tools Scrypt Key Derivation","description":"Derive a cryptographic key from a password using scrypt (RFC 7914). Memory-hard by design, making it more resistant to GPU/ASIC brute-force than PBKDF2. Returns the hex-encoded derived key and all tuning parameters (N, r, p).","url":"https://agent402.tools/api/scrypt-derive","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cost":{"type":"integer","description":"CPU/memory cost parameter N (default 16384, max 131072, must be power of 2)"},"salt":{"type":"string","description":"Salt string (should be unique per password)"},"password":{"type":"string","description":"Password or passphrase to derive from"},"blockSize":{"type":"integer","description":"Block size parameter r (default 8)"},"keyLength":{"type":"integer","description":"Desired key length in bytes (default 64, max 128)"},"parallelization":{"type":"integer","description":"Parallelization parameter p (default 1)"}}},"responseSchema":{"type":"json","example":{"cost":16384,"saltUsed":"random-salt-value","algorithm":"scrypt","blockSize":8,"keyLength":64,"derivedKey":"a1b2c3d4e5f6...","parallelization":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZfsnvRSitbKy3ZBe_Xec7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Derives a cryptographic key from a password using the memory-hard scrypt algorithm (RFC 7914), returning the hex-encoded derived key and all tuning parameters.","exampleAgentPrompt":"Run scrypt key derivation on the password 'correct-horse-battery-staple' with salt 'unique-user-salt-2024', using cost factor N=16384, block size r=8, parallelization p=1, and give me a 64-byte hex key.","exampleUseCases":null,"resultDescription":"Returns the hex-encoded derived key along with the tuning parameters used (N, r, p) and the key length, confirming exactly how the derivation was performed.","failureModes":["N is not a power of 2 or exceeds 131072 — returns validation error","keyLength exceeds 128 bytes — returns validation error","Missing required password or salt fields — returns 400 bad request","N×r×p product too large for available memory — returns computation error","Payment failure via x402 protocol — returns 402 Payment Required"],"whenToPreferThis":"Prefer this endpoint when you need memory-hard password hashing or key derivation that is more resistant to GPU/ASIC attacks than PBKDF2 or bcrypt. Ideal for deriving encryption keys from passphrases, storing password verifiers, or any use case requiring RFC 7914 scrypt compliance with configurable N, r, p parameters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.983Z","isFirstParty":false}