Created
October 25, 2017 05:26
-
-
Save JohnPhamous/91f8dae1002176309be50c515828712c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
private_e = 37 | |
private_n = 77 | |
encrypted_message = [] | |
decrypted_message = [] | |
for m in encrypted_message: | |
d = (m ** private_e) % private_n | |
#print(d) | |
decrypted_message.append(d) | |
encoding = dict(enumerate(string.ascii_lowercase, 2)) | |
for m in decrypted_message: | |
if m == 28: | |
print(" ", end="") | |
else: | |
print(encoding[m], end="") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment