-
-
Save bmackenty/111ae86a1be1e42a9cc6ad8436abd93d 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
def rot13(phrase): | |
abc = "abcdefghijklmnopqrstuvwxyz" | |
out_phrase = "" | |
for i in phrase: | |
out_phrase = out_phrase + abc[(abc.find(i)+13)%26] | |
return out_phrase | |
phrase = input("Enter phrase you want encrypted: ") | |
print(rot13(phrase)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment