100% Client-Side No data leaves your browser
🔒 Encrypted PIN Block

16 hex characters (8 bytes). The PIN block encrypted under the source key.

🔑 Encryption Keys

32 hex chars. The key the PIN block is currently encrypted under.

32 hex chars. The key to re-encrypt the PIN block under.

📐 Format Options
How PIN Translation Works: PIN translation is a core HSM operation used when routing encrypted PINs between different network nodes. Each node uses a different working key (ZPK or TPK).

Process: Decrypt the PIN block with the source key → (optionally convert format) → re-encrypt with the destination key. The clear PIN is never exposed outside the secure boundary.

Format Conversion: When converting between Format 0 (PAN-dependent) and Format 1 (PAN-independent), the PAN is required. Format 0 binds the PIN block to the PAN via XOR, while Format 1 includes random padding.

Security Note: In production, PIN translation MUST happen inside a tamper-resistant HSM. This tool is for testing, debugging, and educational purposes only.

Related Tools

🔐

PIN Block Format 0

Calculate ISO 9564 Format 0 (ANSI X9.8) PIN blocks

🔒

PIN Block Format 1

Calculate ISO 9564 Format 1 (ECI-4) PIN blocks

🔓

PIN from PIN Block

Extract clear PIN from encrypted or clear PIN blocks

📖 What is PIN Block Translation?

PIN translation is a core cryptographic operation used by Hardware Security Modules (HSMs) when routing transactions across different payment networks. It decrypts an incoming PIN block using a source working key (e.g., ZPK from the acquirer), optionally converts its ISO 9564 format, and immediately re-encrypts it under a destination working key (e.g., ZPK for the issuer) without ever exposing the clear PIN outside the secure boundary.

🛠️ How To Translate a PIN Block
  1. Input the 16-character hexadecimal PIN block currently encrypted under the source key.
  2. Enter the 32-character hexadecimal Source Key (ZPK/TPK) and Destination Key (ZPK/TPK) to re-encrypt under.
  3. Choose the correct ISO 9564 format (Format 0 or Format 1) for both the source and destination. If converting between formats, provide the 13–19 digit PAN.
  4. Click Translate PIN Block to decrypt the block with the source key, apply format conversion if needed, and re-encrypt under the destination key.
FAQ

When is a PAN required for PIN translation?

The Primary Account Number (PAN) is strictly required when converting between ISO 9564 Format 0 (which is PAN-dependent via XOR operations) and Format 1 (which is PAN-independent and uses random padding). If both the source and destination formats are the same, the PAN is not needed for the re-encryption process.