Skip to content

Instantly share code, notes, and snippets.

@belminf
belminf / caesar_cipher.py
Last active July 22, 2016 23:57 — forked from tmessinis/caesar_cipher.py
An implementation of a simple caesar cipher
# This is an attempt at creating a caesar cipher using the ord()
# function and taking input from the user.
import re
def caesar_cipher(mode, input_str, key):
return_str = ''
char_as_num = None
num_as_char = None
char_after_cipher = None