Skip to content

Commit 8682b9b

Browse files
authored
Update README.md
1 parent 55cf48b commit 8682b9b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,23 @@ def encrpyt_message(text, key):
6868
encrypted_msg += char # Number, spaces and special charcters are added as it is.
6969

7070
return encrypted_msg
71+
72+
text = input("Please Enter your message: ")
73+
key = int(input("Enter key value: "))
74+
75+
print("Your message: ", text)
76+
77+
encrpyted_message = encrpyt message(text, key)
78+
79+
print("The Encrypted message is: ", encrpyted_message)
7180
```
7281

7382
## Decryption Python Code
83+
This code can only be used when we know key else we have try brute force method by trying for every key value. In this method we undo the previous code to get original message.
7484

85+
```python
86+
87+
```
7588

7689

7790

0 commit comments

Comments
 (0)