Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/logic/caesar_cipher_logic.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import string

"""This tool encodes/decodes text using the Caesar Cipher.

The Caesar Cipher works by shifting every letter in a message down the
alphabet a certain number of times.

This is one of the oldest encryption schemes, said to have been
utilized by and named after Julius Caesar!

This cipher is not secure enough to be seriously implemented today
however, it holds great merit in introducing basic cryptography in education
due to its simplicity and effectiveness in demonstrating encryption/decryption. """


def caesar_cipher(msg: string, shift: int, en_de: int) -> string:
"""Apply and return the encoded/decoded message"""

Expand Down