All Tools
Tools/DES / 3DES Calculator
🔐
CryptographyAvailable

DES / 3DES Calculator

Encrypt and decrypt data using Single DES and Triple DES (2-key and 3-key) in ECB and CBC modes. Essential for ARQC derivation, PIN block encryption, and legacy key management in payment systems.

Use test data only. All calculations run locally in your browser — PayProbe never sees, transmits, or stores your PAN, CVV, keys, PINs, or cryptographic inputs. How we handle data →

Inputs

Code examples

from Crypto.Cipher import DES3
import binascii

key  = binascii.unhexlify('YOUR_KEY_HEX')
data = binascii.unhexlify('YOUR_DATA_HEX')

cipher = DES3.new(key, DES3.MODE_ECB)
result = cipher.encrypt(data)
print(binascii.hexlify(result).decode().upper())

About DES / 3DES

Single DES

Data Encryption Standard (FIPS 46-3). 64-bit block cipher with a 56-bit effective key (8 bytes stored, parity bits ignored). Cryptographically broken — exhaustive key search is feasible. Only used in legacy payment systems for backward compatibility.

Triple DES (3DES / TDEA)

Applies DES three times: Encrypt(K1) → Decrypt(K2) → Encrypt(K3) (EDE). 2-key variant uses K3=K1 for a 112-bit effective key. 3-key uses independent K1/K2/K3 for 168-bit key material. Widely used in EMV, HSMs, PIN translation, and DUKPT derivation.

ECB mode

Electronic Codebook — each 8-byte block is encrypted independently. Identical plaintext blocks produce identical ciphertext. Used in payment single-block operations: KCV computation, PIN block encryption, ARQC step functions.

CBC mode

Cipher Block Chaining — each plaintext block is XORed with the previous ciphertext block before encryption. Requires a random or zeroed IV. Used in ISO 9797 MAC algorithms and multi-block payment message authentication.