Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- cypher = {'A': 'M', 'B': 'N', 'C': 'O', 'D': 'P', 'E': 'Q', 'F': 'R', 'G': 'S', 'H': 'T', 'I': 'U', 'J': 'V',
- 'K': 'W', 'L': 'X', 'M': 'Y', 'N': 'Z', 'O': 'A', 'P': 'B', 'Q': 'C', 'R': 'D', 'S': 'E', 'T': 'F',
- 'U': 'G', 'V': 'H', 'W': 'I', 'X': 'J', 'Y': 'K', 'Z': 'L'}
- infile = open('texttoencrypt.txt', 'r')
- file_contents = infile.read()
- infile.close()
- uppercase = file_contents.upper()
- for k,v in cypher.items():
- uppercase[k] = v
- print(uppercase)
- main()
Add Comment
Please, Sign In to add comment