You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
encrypted_msg += char # Number, spaces and special charcters are added as it is.
69
69
70
70
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)
71
80
```
72
81
73
82
## 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.
0 commit comments