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, 22.06.2019 05:00
Are special characters that allow you to search for multiple words at the same time.
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Write a fragment of code that reads in strings from standard input, until end-of-file and prints to standard output the largest value. you may assume there is at least one value. (cascading/streaming logic, basic string processing)
Answers: 3
question
Computers and Technology, 23.06.2019 22:30
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
You know the right answer?
File encryption and decryption write a program that uses a dictionary to assign "codes" to each lett...
Questions
Questions on the website: 13722361