C++ How to Program (10th Edition)
C++ How to Program (10th Edition)
10th Edition
ISBN: 9780134448237
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 4, Problem 4.37MAD

(Enforcing Privacy with Cryptography) The explosive growth of Internet communications and data storage on Internet-connected computer has greatly increased privacy concerns. The field of cryptography is concerned with coding data to make it difficult (and hopefully -with the most advanced schemes-impossible) for unauthorized users to read. In this exercise you’ll investigate a simple scheme for encrypting and decrypting data. A company that wants to send data over the Internet has asked you to write a program, that will encrypt the data so that it may be transmitted more securely. All the data is transmitted as four-digit integers. Your application 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 diving the new value by 10. Then swap the first digit with the third, and swap the second digit with the fourth. Then print the encrypted integer. Write a separate application that inputs an encrypted four-digit integer and decrypts it (by reversing the encryption scheme) to form the original number. [Optional reading project: Research “public key cryptography” in general and the PGP (pretty Good privacy) specific public-key scheme. You may also want to investigate the RSA scheme, which is widely used in industrial-strength applications.]

Blurred answer
Students have asked these similar questions
6) Decryption (Substitution Cipher): The following is a substitution cipher. The letters are substituted randomly. Remember that this is a not shift cipher like the Caesar cipher. What does the following quote say? Who said it? Do this by hand. How long did it take you to decipher this message? D'Y JR EAWPD GTCTZ OTTA DYIRZBWGB, DB PRTJ KRYIADKWBT ADOT! TATWGRZ ZRRJTCTAB
AES (Advanced Encryption Standard) has become the encryption algorithm ofchoice for governments, financial institutions, and security-consciousenterprises around the world. The U.S. National Security Agency (NSC) uses itto protect the country’s “top secret” information. RSA is named for the MITscientists (Rivest, Shamir, and Adleman) who first described it in 1977. It is anasymmetric algorithm that uses a publicly known key for encryption, butrequires a different key, known only to the intended recipient, for decryption.i. Differentiate TWO (2) characteristics between AES and RSA.
Question # 5:a) Find keys d and e for the RSA cryptosystem where p=5, q=3b) Encrypt the following plaintext BAc) Decrypt your cipher-text n question b) Remember: i need a Mathematics solution not computer program You must show all the steps of your work

Chapter 4 Solutions

C++ How to Program (10th Edition)

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Systems Architecture
    Computer Science
    ISBN:9781305080195
    Author:Stephen D. Burd
    Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Python Tutorial #10; Math Functions in Python; Author: Art of Engineer;https://www.youtube.com/watch?v=OviXsGf4qmY;License: Standard YouTube License, CC-BY