From 666361469ef218a9982175cad556b7f778eace61 Mon Sep 17 00:00:00 2001 From: Prathima Kadari Date: Wed, 19 May 2021 21:46:01 +0530 Subject: [PATCH] Added caesar cipher program --- caesar_cipher.py | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 caesar_cipher.py diff --git a/caesar_cipher.py b/caesar_cipher.py new file mode 100644 index 0000000..b191025 --- /dev/null +++ b/caesar_cipher.py @@ -0,0 +1,67 @@ +#This is a python program to decode and encode a caesar-cypher, given its key. + +#Function to encrypt a given string. +def encrypt(k): + n,i=0,0 + l="abcdefghijklmnopqrstuvwxyz" + l=list(l) + b=[] + a=input("enter text to be encrypted: ") + a=list(a) + while(n