subject

File encryption and decryption write a program that uses a dictionary to assign "codes" to each letter of the alphabet. for example: codes = { β€˜a’ : β€˜%’, β€˜a’ : β€˜9’, β€˜b’ : β€˜@’, β€˜b’ : β€˜#’, etc . .} using this example, the letter a would be assigned the symbol %, the letter a would be assigned the number 9, the letter b would be assigned the symbol @, and so forth. the program should open a specified text file, read its contents, then use the dictionary to write an encrypted version of the file’s contents to a second file. each character in the second file should contain the code for the corresponding character in the first file. write a second program that opens an encrypted file and displays its decrypted contents on the screen.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:30
What key should you press and hold to select and open multiple files at one time? enter alt control esc
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
question
Computers and Technology, 24.06.2019 19:50
Which is a characteristic of free and open-source software licenses? a. the source code is unavailable to everyone b. the source code is available only to the government c. the source code is available to all users d. the source code is constantly modified
Answers: 1
question
Computers and Technology, 24.06.2019 21:40
Clunker motors inc. is recalling all vehicles in its extravagant line from model years 1999β€”2002 as well as all vehicles in its guzzler line from model years 2004β€”2007. a boolean variable named recalled has been declared. given a variable modelyear and a string modelname, write a statement that assigns true to recalled if the values of modelyear and modelname match the recall details and assigns false otherwise.
Answers: 2
You know the right answer?
File encryption and decryption write a program that uses a dictionary to assign "codes" to each lett...
Questions
question
Mathematics, 02.07.2019 22:30
question
Mathematics, 02.07.2019 22:30
question
Mathematics, 02.07.2019 22:30
question
Physics, 02.07.2019 22:30
Questions on the website: 13722363