🔐

DES / 3DES Encryption

DES/3DES with ECB/CBC/CFB/OFB, four paddings, PBKDF2 passphrase derivation, cipher-block view and 2 MB files.
Crypto 📂 Developer 👤 ToolWorld 🏷️ v1.2.2 ⚙️ clipboard
DES needs 16 hex digits or 8 characters
Required for every mode except ECB, 8 bytes (16 hex digits or 8 characters)
File encryption (≤2 MB, processed locally)
—
Drag a file here or click to choose; the result downloads automatically
Parameters and caveats

How to Use

Introduction

DES and 3DES are symmetric ciphers still found in legacy systems and hardware protocols: an 8-byte key, an 8-byte block and sixteen Feistel rounds of permutation and substitution. The existing AES tool handles only AES, so reproducing an old system's ciphertext has no home here; this plugin fills the DES and 3DES gap for single-block and session work. Everything runs locally in the browser and the key never leaves the page. 3DES uses the EDE three-key order and also accepts a two-key form, expanding K1 and K2 to K1, K2, K1. Block modes include ECB, CBC, CFB and OFB; padding can be PKCS#7, zero or none, and output can be Base64 or hex. The parameter panel spells out key length, block size, padding and a security caveat so 3DES is not mistaken for a modern choice. This release adds: Beyond ECB and CBC the tool now offers CFB with eight-bit feedback and OFB, padding choices of PKCS#7, zero or none, an explicit text/hex key format, a random IV button and local file encryption up to 2 MB. 1.2.0 升级:DES/3DES with ECB/CBC/CFB/OFB, four paddings, PBKDF2 passphrase derivation, cipher-block view and 2 MB files.

What it does

  • Supports DES and 3DES with 8-byte blocks, where 3DES runs encrypt, decrypt, encrypt in EDE order; Offers ECB, CBC, CFB and OFB; CBC requires an 8-byte IV and rejects a wrong-length IV instead of silently falling back.
  • Padding can be PKCS#7, zero or none, added at encryption and removed at decryption with the padding bytes verified; Keys accept hex or plain text: 16 hex characters run as DES, 32 or 48 as 3DES.
  • Output can be Base64 or uppercase hex, and encryption and decryption share one format switch so representations never mix; The parameter panel lists algorithm, mode, padding, key length and the security caveat, plus a one-click random hex key for the current algorithm.
  • CFB feeds back ciphertext and OFB feeds back the keystream, so neither needs padding and both handle any length; With padding set to none the data must be a multiple of eight bytes, and the tool says so instead of guessing.
  • The file card reads bytes locally and writes a .des file when encrypting or a .out.bin file when decrypting, with nothing uploaded; Passphrase derivation uses PBKDF2-SHA256 with salt and adjustable iterations, then fills the hex key.
  • A cipher-block view shows 8-byte groups for comparison with standard vectors.

How to use

  1. Choose the algorithm and mode first: older systems are usually DES with ECB, newer ones 3DES with CBC.
  2. Enter the key: 16 hex characters or 8 text characters for DES, 48 hex or 24 text characters for 3DES, or press the random key button.
  3. In CBC mode add a 16-hex-character IV; ECB hides the IV field because it is not used.
  4. Paste plaintext and press Encrypt, or paste ciphertext and press Decrypt, keeping the output format aligned with the ciphertext representation.
  5. Copy takes the result, Example loads the standard vector (key 133457799BBCDFF1, plaintext 0123456789ABCDEF), and Reset clears everything.

Notes

  • ScopeDES has an effective 56-bit key that is brute-forceable today and 3DES is only a stopgap; use this for legacy reproduction and debugging, never to protect new sensitive data.
  • SizesBlocks are 8 bytes and keys are 8 bytes, with 24 bytes for three-key 3DES; a wrong length raises an error naming the required size rather than truncating.
  • InputDecryption needs ciphertext in the chosen format: even-length hex limited to 0-9A-F, or decodable Base64, otherwise a data error is reported.
  • LimitsAES, SM4, RSA and key derivation such as PBKDF2 or MD5-derived keys are out of scope; use the matching plugin for those.
  • OutputOutput is only the cipher or plain string; no files and no streaming, which suits texts up to a few kilobytes.
  • The example is the standard DES vector and must encrypt to 85E813540F0AB405, which confirms the implementation.
  • In CBC the same plaintext with different IVs yields different ciphertext, and decryption must reuse the encryption IV.
  • Text keys are read as UTF-8 bytes, so a Chinese key may exceed 8 bytes and be rejected; prefer hex.
  • CFB and OFB require an eight-byte IV and the same IV for both directions, and the no-padding mode leaves alignment to you.
  • PBKDF2 needs the same salt and iterations to reproduce; the passphrase is derived locally and never uploaded.

Related

⏫︎