Question

In: Computer Science

All of the remaining questions involve the following toy encryption scheme. It encrypts plaintexts that consist...

All of the remaining questions involve the following toy encryption scheme. It encrypts plaintexts that consist of only uppercase letters and the underscore character (27 characters total):

ABCDEFGHIJKLMNOPQRSTUVWXYZ_

Note that the underscore character is part of the alphabet and will also be encrypted. A key in this scheme consists of 4 digits, each from 0 to 9. Each digit tells how much to shift one character, that is, change it to the character that many positions later in the alphabet. If the shift goes past '_', then we wrap around to the beginning.

The key is applied separately to each group of 4 letters in the message. For example, if the message HI_SALLY is encrypted with the key 2407, the H would be shifted by 2, the I by 4, the underscore by 0, and the S by 7. Then we would start over with the first digit of the key, shifting A by 2, L by 4, and so on. So the ciphertext would be: JM_ZCPLE

  1. (3 pts) Give the decryption of the following messages that have been encrypted with the key 4127.
    1. WFNSDNUMX

  1. NVFEDJUGTMCUX

  1. _JVOHSCCDUTVSQU

Solutions

Expert Solution

Alphabets: ABCDEFGHIJKLMNOPQRSTUVWXYZ_

A. WFNSDNUMX

As we have been given encrypted words, so we need to decrypt the letters by shifting the letter to its before by that digit in key.

As we divide the given letters in to chunk of 4 letters at a time and apply key 4127.

first sub letters : WFNS : shift W before 4 positions, F to 1,N to 2,S to 7.

W - digit is 4 so shift the W before 4 positions. final answer is S.

F - Shift the F to 1 positions before. final letter is E.

N - Shift the N to 2 positions before. final letter is L.

S - Shift the S to 7 positions before. final letter is L.

second sub letters: DNUM : shift D before 4 positions,N to 1,U to 2,M to 7.

D - digit is 4 so shift the D before D positions. final answer is _.

N - shift the N before 1 positions. final answer is M.

U - shift the U before 2 positions. final answer is S.

M - shift the M before 7 positions. final answer is F.

third sub letters: X

only one letter present in third sub letters

shift X before 4 positions (4 is first digit in key). final ans is T.

final decrypted message is SELL_MSFT

B. NVFEDJUGTMCUX

first sub part : NVFE

N- shift the N before 4 positions. final answer is J.

V- shift the V before 1 positions. final answer is U.

F- shift the F before 2 positions. final answer is D.

E- shift the E before 7 positions. final answer is Y.

second sub part : DJUG

D- shift the D before 4 positions. final answer is _.

J- shift the J before 1 positions. final answer is I.

U- shift the U before 2 positions. final answer is S.

G- shift the G before 7 positions. final answer is _.

third sub part: TMCU

T- shift the T before 4 positions. final answer is P.

M- shift the M before 1 positions. final answer is L.

C- shift the C before 2 positions. final answer is A.

U- shift the U before 7 positions. final answer is N.

fourth subpart : X

only one letter present in fourth sub letters

shift X before 4 positions (4 is first digit in key). final ans is T.

final decrypted message is : JUDY_IS_PLANT

C _JVOHSCCDUTVSQU

As we divide the given letters in to chunk of 4 letters at a time and apply key 4127.

first part: _JVO

_- shift the _ before 4 positions. final answer is W .

J- shift the J before 1 positions. final answer is I.

V- shift the V before 2 positions. final answer is T.

O- shift the O before 7 positions. final answer is H.

second part: HSCC

H- shift the H before 4 positions. final answer is D.

S- shift the S before 1 positions. final answer is R.

C- shift the C before 2 positions. final answer is A.

C- shift the C before 7 positions. final answer is W.

third part: DUTV

D- shift the D before 4 positions. final answer is _.

U- shift the U before 1 positions. final answer is T.

T- shift the T before 2 positions. final answer is R.

V- shift the V before 7 positions. final answer is O.

fourth part: SQU

only THREE letters present in fourth sub letters

S- shift the S before 4 positions (1st digit in key). final answer is O.

Q- shift the Q before 1 positions(2nd digit in key). final answer is P.

U- shift the U before 2 positions(3RD digit in key). final answer is S.

final ans is : WITHDRAW_TROOPS

THANK YOU, HOPE YOU GOT THE IDEA AND CAN SOLVE ON YOUR OWN IF YOU MEET AN DISCREPANCY.

DO UPVOTE MY EFFORT


Related Solutions

Please solve all the following questions. I need the text file and screenshots of encryption and...
Please solve all the following questions. I need the text file and screenshots of encryption and decryption. Exchange of encrypted data. a. Encrypt a file (e.g., a text file) with an algorithm and a key length of your choice. b. Exchange the file and the necessary credentials for decryption (i.e., algorithm, key) with your neighbor. c. Decrypt the secret of your neighbor.
Use the following information for all remaining questions on this worksheet. The lengths of human pregnancies...
Use the following information for all remaining questions on this worksheet. The lengths of human pregnancies are normally distributed with a mean of 268 days and a standard deviation of 15 days. a. If one pregnant woman is randomly selected, find the probability that her pregnancy lasts less than 260 days. Round your result to 4 decimal places. b. Is it unusual for one woman to have a pregnancy that lasts less than 260 days? c. If we looked at...
Use the following information for all remaining questions on this worksheet. The lengths of human pregnancies...
Use the following information for all remaining questions on this worksheet. The lengths of human pregnancies are normally distributed with a mean of 268 days and a standard deviation of 15 days. 1.a) If one pregnant woman is randomly selected, find the probability that her pregnancy lasts less than 260 days. Round your result to 4 decimal places. a. 0.2969 b. 0.7031 c. 0.5000 d. 0.2742 1.b) Is it unusual for one woman to have a pregnancy that lasts less...
Use the following information for all remaining questions on this worksheet. The lengths of human pregnancies...
Use the following information for all remaining questions on this worksheet. The lengths of human pregnancies are normally distributed with a mean of 268 days and a standard deviation of 15 days. 1.a) If one pregnant woman is randomly selected, find the probability that her pregnancy lasts less than 260 days. Round your result to 4 decimal places. a. 0.2969 b. 0.7031 c. 0.5000 d. 0.2742 1.b) Is it unusual for one woman to have a pregnancy that lasts less...
Consider the following 3-person encryption scheme based on RSA. L (can be trusted in this case)...
Consider the following 3-person encryption scheme based on RSA. L (can be trusted in this case) generates two large primes p and q, calculates both n and φ(n). L also chooses k1, k2 and k3 such that GCD(ki,n) = 1 and k1k2k3 ≡ 1 mod φ(n). Keys are securely distributed to three others as follows: G: <n,k1,k2 > J: < n, k2, k3 > Z: < n, k3, k1 > Answer the following questions. (a) G has a message M1...
All the remaining questions are based on the following scenario: You take out an $19,000.00 car...
All the remaining questions are based on the following scenario: You take out an $19,000.00 car loan that calls for 48 monthly payments at an APR of 6.7%. Complete an amortization table and answer the following questions. You must complete the amortization table to answer the questions (otherwise your answers could be off due to rounding error... all totals are based on intermediate numbers that have not been rounded). The answer you enter must be rounded (correctly) to two decimal...
Nosocomial infections involve all the following except
Nosocomial infections involve all the following except Multiple Choice medical and surgical asepsis help lower their occurrence. Escherichia coli and staphylococci are common infectious agents. they often involve the patient's urinary tract and surgical incisions. they are only transmitted by medical personnel.
Please answer the following questions a) What is Encryption in accounting information system and what are...
Please answer the following questions a) What is Encryption in accounting information system and what are the steps in the encryption and decryption process? b) What are the factors that influnces encryption strength? c) What types of encryption systems and the advantages and disadvantages , risks and their primay uses in information systems? d) How does hashing, digital signatures, and virtual private networks process in encryption?
Risk factors in hypertensive patients consist of all of the following EXCEPT? Select all that apply....
Risk factors in hypertensive patients consist of all of the following EXCEPT? Select all that apply. Cigarette smoking Age and sex Current situation of prehypertension (120-125 / 80-85) Excessive dietary intake of potassium Obsesity Correct heparin administration involves: Never rotating injection sites Aspirating to assess for blood vessel entry Always giving heparin by deep IM injection Never rubbing the area after the injection The physician orders Ringer’s lactate solution to replace the fluid losses of a client. While the solution...
The remaining questions in this workbook assignment are based on the following scenario. Information was collected...
The remaining questions in this workbook assignment are based on the following scenario. Information was collected from a reputable internet site for an investigation into the fuel economy of various makes of car and whether these varied over time. Data was collected for fifteen different models of vehicle from twelve different manufacturers. After collection, the observed vehicle models were classified as sedan, sports or 4WD. The data for sedans is provided in the file sedan_economy.csv, also available in the same...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT