{"uid":"cap_Gb4F8J_k3JBeyI81prWHc","slug":"x402-pbkdf2-key-derivation-api-9ba91541","name":"x402 PBKDF2 Key Derivation API","description":"Pay-per-call hashing and encoding for AI agents (USDC on Base)","url":"https://x402-hash-api.vercel.app/api/v1/pbkdf2?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"salt":{"type":"string","description":"salt string"},"digest":{"type":"string","description":"sha256 or sha512"},"keylen":{"type":"number","description":"derived key length in bytes (default 32)"},"password":{"type":"string","description":"password to derive from"},"iterations":{"type":"number","description":"iteration count (default 100000, max 200000)"}}},"responseSchema":{"type":"json","example":{"derivedKey":"a1b2c3..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hFxNr5YLQvJwHFg6_WGaC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 PBKDF2 with configurable salt, digest algorithm, key length, and iteration count — pay-per-call via USDC on Base","exampleAgentPrompt":"Derive a PBKDF2 key from the password 'hunter2' using salt 'randomsalt123', sha256 digest, 32-byte key length, and 100000 iterations.","exampleUseCases":[{"title":"Password hashing for user accounts","prompt":"I need to securely hash the password 'MyP@ssw0rd!' using PBKDF2 — use salt 'acct-salt-9f2a', sha256, 32 bytes, and 150000 iterations so I can store it safely."},{"title":"Encryption key derivation from passphrase","prompt":"Derive a 64-byte encryption key from the passphrase 'correct-horse-battery-staple' with salt 'enc-salt-2024', using sha512 and 200000 iterations for maximum strength."},{"title":"Deterministic key generation for secrets manager","prompt":"Run PBKDF2 on password 'vault-master-key' with salt 'tenant-id-7782', sha256 digest, key length 32 bytes, and 100000 iterations so I can reconstruct the derived key for my secrets vault."}],"resultDescription":"Returns a JSON object containing a 'derivedKey' field with the hex-encoded PBKDF2-derived key of the requested length, computed from the supplied password, salt, digest, and iteration parameters.","failureModes":["Invalid digest value (must be 'sha256' or 'sha512') returns an error","Iteration count exceeding 200000 is rejected","Missing required fields (password or salt) result in a validation error","Payment failure or insufficient USDC balance blocks the request","Malformed request body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, serverless PBKDF2 key derivation without managing your own crypto infrastructure. It is ideal for AI agents that need on-demand password hashing or key stretching in workflows where spinning up a local crypto library is impractical. Prefer it over raw bcrypt or scrypt endpoints when PBKDF2 compatibility (e.g. FIPS compliance, interoperability with existing systems) is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:45:29.131Z","isFirstParty":false,"canonicalSlug":"x402-pbkdf2-key-derivation-api-9ba91541"}