🔐

Caesar Cipher

Python82 lines· A console implementation of the classic Caesar cipher. It encodes or decodes a message by shifting each letter a chosen number of positions through…
Original project by @Harry830 — view source on GitHub
Ready when you are
README· what to build

Caesar Cipher

A console implementation of the classic Caesar cipher. It encodes or decodes a message by shifting each letter a chosen number of positions through the alphabet.

Example

Type 'encode' to encrypt, type 'decode' to decrypt:
encode
Type your message:
hello world
Type the shift number:
3
the encoded message is khoor zruog

Running it again with decode, the same message khoor zruog, and shift 3 gives back hello world.

How to run on localhost

python caesar-cipher.py

Dependencies

Standard library only.

caesar-cipher.py· Python 3.x
92 lines
Console· terminal