{"$schema":"https://toolsly.tools/schemas/tool-manifest-v1.json","generated":"2026-05-20T20:47:38.402Z","discovery":{"catalog":"https://toolsly.tools/tools.json","llmsTxt":"https://toolsly.tools/llms.txt","sitemap":"https://toolsly.tools/sitemap.xml"},"relatedTools":[{"slug":"luhn-check","name":"Luhn Check","url":"https://toolsly.tools/luhn-check"},{"slug":"card-number-generator","name":"Card Number Generator","url":"https://toolsly.tools/card-number-generator"},{"slug":"card-brand-identifier","name":"Card Brand Identifier","url":"https://toolsly.tools/card-brand-identifier"},{"slug":"bin-lookup","name":"BIN / IIN Lookup","url":"https://toolsly.tools/bin-lookup"},{"slug":"emv-tlv-decoder","name":"EMV TLV Decoder","url":"https://toolsly.tools/emv-tlv-decoder"},{"slug":"emv-tag-lookup","name":"EMV Tag Lookup","url":"https://toolsly.tools/emv-tag-lookup"},{"slug":"track1-decoder","name":"Track 1 Decoder","url":"https://toolsly.tools/track1-decoder"},{"slug":"track2-decoder","name":"Track 2 Decoder","url":"https://toolsly.tools/track2-decoder"}],"kind":"utility","slug":"dukpt-pin-block-calculator","name":"DUKPT PIN Block Calculator","description":"Compute the ISO 8583 field 52 encrypted PIN block from a PIN, PAN, BDK and KSN — full TDES DUKPT key derivation.","longDescription":"Specialist tool for payments engineers. Enter a PIN, the cardholder's PAN, the Base Derivation Key (BDK), and the Key Serial Number (KSN). We run the TDES DUKPT key derivation per ANSI X9.24-1: derive the IPEK from BDK + base-KSN, walk the 21 counter bits MSB→LSB through the non-reversible key generation process to produce the future key, XOR with the PIN-key variant 00…FF00…FF, then 3DES-encrypt the ISO 9564 format-0 PIN block with the resulting per-transaction PIN encryption key. The encrypted PIN block is what goes in ISO 8583 field 52. Every step is shown so you can trace it. Runs entirely in your browser — keys and PANs never leave your device.","category":"payment","categoryName":"Payment & cards","keywords":["dukpt pin block calculator","dukpt calculator","iso 8583 field 52","iso 8583 pin block","encrypted pin block","tdes dukpt","3des dukpt","dukpt key derivation","ksn pin block","ipek calculator","ansi x9.24 dukpt","pin block encryption online","payment terminal pin block"],"badge":"Calculator","url":"https://toolsly.tools/dukpt-pin-block-calculator","inputs":[{"type":"text","key":"pin","label":"PIN","defaultValue":"1234","placeholder":"4-12 digits","help":"The customer's PIN (4 to 12 digits)."},{"type":"text","key":"pan","label":"PAN","defaultValue":"4111111111111111","placeholder":"13-19 digits","help":"Primary Account Number — used to build the ISO 9564 PIN block."},{"type":"text","key":"bdk","label":"BDK (hex)","defaultValue":"0123456789ABCDEFFEDCBA9876543210","placeholder":"32 hex chars (double-length) or 48 (triple-length)","help":"Base Derivation Key. 32 hex chars for K1‖K2 (double-length 3DES), 48 for K1‖K2‖K3."},{"type":"text","key":"ksn","label":"KSN (hex)","defaultValue":"FFFF9876543210E00008","placeholder":"20 hex chars (10 bytes)","help":"Key Serial Number — full 80-bit value including the 21-bit transaction counter."}],"outputs":[{"key":"encryptedPinBlock","label":"Encrypted PIN block (ISO 8583 field 52)"},{"key":"clearPinBlock","label":"Clear PIN block (ISO 9564 format 0)"},{"key":"pinKey","label":"PIN encryption key (PEK)"},{"key":"futureKey","label":"Future key (pre-variant)"},{"key":"ipek","label":"Initial PIN Encryption Key (IPEK)"},{"key":"baseKsn","label":"Base KSN (counter cleared)"},{"key":"counterDec","label":"Counter (decimal)"},{"key":"counterHex","label":"Counter (hex)"}],"invocation":{"webUi":"https://toolsly.tools/dukpt-pin-block-calculator","api":null,"notes":"Currently invoked via the web UI at `webUi`. Inputs are form fields; outputs are structured text values. A remote MCP/REST API is planned."}}