Back to the workbench
✓ Shipped 1 min read

Caesar Cipher Encrypt & Decrypt

A small Python GUI that shifts plain text into cipher text and back again, one character at a time.

Logged
The Caesar cipher app encrypting and decrypting a message
Spec sheet
Language
Python
Interface
Desktop GUI
Algorithm
Caesar shift, configurable key

Overview

The plain text is traversed one character at a time. For each character in the input, the app transforms it according to the key, either encrypting or decrypting depending on what was asked for. Once every character has been shifted, a new string is generated, which is the cipher text.

How it works

  • Take the plain text and an integer key from the GUI.
  • Walk the string one character at a time, shifting each letter by the key.
  • Decryption is the same walk with the shift reversed.
  • Display the resulting cipher text (or recovered plain text) back in the window.
The GUI encrypting and decrypting text with a chosen key.

Talk shop about this build

Questions, corrections, or "why didn't you just…" — all welcome.