Skip to content
UniKit

3DES / TDEA encrypt/decrypt (NIST SP 800-67)

Local 3DES per the EDE construction of NIST SP 800-67 (encrypt with K1, decrypt with K2, encrypt with K3): a 24-byte key (K1-K2-K3) or a 16-byte key (K3 = K1), 8-byte blocks, ECB / CBC / CFB / OFB / CTR and PKCS#7 padding. 3DES is also discouraged for new work — prefer AES.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Input for AES

Result

Runs locally; keys and plaintext never leave the page.

Enter content to see the result

Input bytes: 0 · Output bytes: 0 · Block size: 0 · Mode used: 0

What this tool does

  • Handle legacy data that only supports 3DES.
  • Check the EDE construction and the two-key vs three-key difference.
  • Confirm that K1=K2=K3 produces exactly the single-DES result.

Example

Input

Hello, world!

Output

81742f9cdbc0bd0b86a2dd0f6455795b

Verified vectors: 24-byte key 0123456789abcdeffedcba987654321089abcdef01234567 / plaintext 5468652071756663 → 82cfaf0fba8b7419 (matches node:crypto des-ede3); with K1=K2=K3 it degrades to single DES and yields 85e813540f0ab405.

Frequently asked questions

What is the difference between 24-byte and 16-byte keys?

A 24-byte key is three-key 3DES (K1-K2-K3); a 16-byte key is the two-key form with K3 = K1 — slightly weaker than three keys but still far stronger than single DES.

Why does K1=K2=K3 behave like DES?

EDE encrypts with K1, decrypts with K2 and encrypts with K3; when all three are equal the middle decryption undoes the first step, leaving a single DES.

Is 3DES still recommended?

Only for legacy compatibility. It is discouraged for new designs and has a 64-bit block (Sweet32-style risk); use an AEAD such as AES-GCM instead.

Why must the IV be 8 bytes?

A 3DES block is 8 bytes so the IV must be 8 bytes; passing 16 bytes reports invalid-iv.

Keywords:3DESTriple DESTDEAdes-ede3SP 800-67

Related tools