Computers and Technology

A company that wants to send data over the Internet has asked you to write a program that will encrypt it so that it may be transmitted more securely. All the data is transmitted as four-digit integers. Your app should read a four-digit integer entered by the user and encrypt it as follows: Replace each digit with the result of adding 7 to the digit and getting the remainder after dividing the new value by 10. Then swap the first digit with the third, and swap the second digit with the fourth. Then display the encrypted integer. Write a separate app that inputs an encrypted four-digit integer and decrypts it (by reversing the encryption scheme) to form the original number. Use the format specifier D4 to display the encrypted value in case the number starts with a 0

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:10, itsmichaelhere1
Dameas communication challenge is due to which factor
Answers: 2
image
Computers and Technology, 23.06.2019 09:30, jason9394
Facial expressions and gestures are examples of messages.
Answers: 3
image
Computers and Technology, 25.06.2019 10:30, coco4937
How do you transfer an image onto a computer
Answers: 2
image
Computers and Technology, 25.06.2019 10:40, ooEVAoo
If you're using the paintbrush tool and want to change the color of the paint being used what should you change
Answers: 1
Do you know the correct answer?
A company that wants to send data over the Internet has asked you to write a program that will encry...

Questions in other subjects:

Konu
Mathematics, 13.01.2021 20:00
Konu
Mathematics, 13.01.2021 20:00
Konu
Mathematics, 13.01.2021 20:00
Konu
Mathematics, 13.01.2021 20:00