We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c685d69 commit 3b37920Copy full SHA for 3b37920
Cryptography/Caesar_Cipher.py
@@ -1,3 +1,15 @@
1
+"""Aim: Given a string S , encrypt or decrypt it as per the choice entered by the user using Caesar Cipeher Substitution Method
2
+
3
+Input Format:
4
+1. The first line provides an option to the user to choose either to encrypt/decrypt
5
+2. In the second line the user inputs the string as per his choice given in part 1.
6
+ """
7
8
9
10
11
12
13
from random import choice
14
15
def decrypt(encrypted_string,key_val):
@@ -47,4 +59,4 @@ def encrypt(input_string,key_val):
47
59
key_val = int(input('Enter the key value '))
48
60
print('Decrypted string is : ' + decrypt(encrypted_string,key_val))
49
61
50
-
62
0 commit comments