diff --git a/Caesar_Cipher.py b/Caesar_Cipher.py index 154b252..25a49ad 100644 --- a/Caesar_Cipher.py +++ b/Caesar_Cipher.py @@ -68,4 +68,15 @@ def encrypt(text, shift): print(newEn) -encrypt(text=text, shift=shift) \ No newline at end of file +def decrypt(text, shift): + deNew = '' + for check in text: + getDecry = alphabet.index(check) - shift + deNew += alphabet[getDecry] + + print(deNew) + + +encrypt(text=text, shift=shift) + +decrypt(text=text, shift=shift)