What is the Caesar cipher?

The Caesar cipher is a substitution technique that rotates each letter of the alphabet by a fixed number of positions. It illustrates the foundation of classical cryptography, showing how simple shifts can conceal messages and how frequency analysis can reveal them again. While it offers no real security today, it remains a useful teaching tool and a fast way to obfuscate text.

Tool description

Encode or decode text with a configurable shift from 0 to 25 using the caesar-salad library. Letters are rotated while numbers, punctuation, and spacing stay untouched, making the results easy to read.

Features

  • Adjustable shift slider with clamped values between 0 and 25
  • Instant encoding and decoding powered by the caesar-salad implementation
  • Preserves punctuation, digits, and whitespace while rotating letters
  • Supports both uppercase and lowercase characters without extra steps

Use Cases

  • Demonstrating substitution ciphers in classrooms or workshops
  • Decoding simple puzzle clues or escape-room hints
  • Quickly obfuscating snippets in notes, prototypes, or handouts
  • Verifying homework or self-study exercises on Caesar cipher decoding