Question

Look in section 8.4 for help in doing this. Your first post will be a message (at least a sentence) encrypted by the RSA codeany encrypted message

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given,

=>RSA encryption algorithm is used.

=>p = 5,q = 11 and e = 3

Explanation:

Calculating value of n:

=>n = p*q

=>n = 5*11

=>n = 55

Calculating value of \phi (n)(Euler totient function):

=>\phi(n) = \phi (p)*\phi(q)

=>\phi(n) = (5-1)*(11-1)

=>\phi(n) = 4*10

=>\phi(n) = 40

Calculating value of d:

=>Choosing d such that e*d mod \phi (n) = 1

=>3*d mod 40 = 1

=>d = 27 as 3*27 mod 40 = 1

Calculating encrypted message:

=>Let say message = "YOU ARE GREAT!"

Applying encryption:

=>Y = 25, O = 15, U = 21, space = 27, A = 1, R = 18, E = 5, G = 7, T = 20, ! = 29

=>We know that, ciphertext(C) = (M)^e mod n where M is plain text.

Calculating values:

=>Ciphertext of Y = (25)^3 mod 55

=>Ciphertext of Y = 5

=>Ciphertext of O =(15)^3 mod 55

=>Ciphertext of O = 30

=>Ciphertext of U = (21)^3 mod 55

=>Ciphertext of U = 21

=>Ciphertext of sapce = (27)^3 mod 55

=>Ciphertext of space = 48

=>Ciphertext of A = (1)^3 mod 55

=>Ciphertext of A = 1

=>Ciphertext of R = (18)^3 mod 55

=>Ciphertext of R = 2

=>Ciphertext of E = (5)^3 mod 55

=>Ciphertext of E = 15

=>Ciphertext of G = (7)^3 mod 55

=>Ciphertext of G = 13

=>Ciphertext of T = (20)^3 mod 55

=>Ciphertext of T = 25

=>Ciphertext of ! = (29)^3 mod 55

=>Ciphertext of ! = 24

=>Hence the encrypted message of message "YOU ARE GREAT!" = "53021481215481321512524"

I have explained each and every part with the help of statements attached to it.

Add a comment
Know the answer?
Add Answer to:
any encrypted message Look in section 8.4 for help in doing this. Your first post will...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I literally have no idea what I’m doing. Help!!! Please show work!! Write an essay using...

    I literally have no idea what I’m doing. Help!!! Please show work!! Write an essay using Word and post it as an attachment to the discussion. Cover the following points. Choose a data set from Stat Disk using one of the following files from 13th Edition Elementary Statistics: Oscar Winner Freshman 15 Word Count Garbage Weights Passive and Active Smoke If the file contains more than one variable, choose a quantitative variable. Create a histogram using your chosen variable and...

  • One measure of variation that we can look at is the Range when we have continuous...

    One measure of variation that we can look at is the Range when we have continuous variables. We will be using this measure to create a histogram. A histogram is used to show the frequencies of certain events or categories of data values in a set of data from one time period. Data are plotted in increasing or deceasing order based on the frequency count for each data categories. Assignment I Below is a data file containing the average number...

  • 1) Echo the input: First, you should make sure you can write a program and have...

    1) Echo the input: First, you should make sure you can write a program and have it compile and run, take input and give output. So to start you should just echo the input. This means you should prompt the user for the plaintext, read it in and then print it back out, with a message such as "this is the plaintext you entered:". [4 points, for writing a working program, echoing the input and submitting the program on the...

  • Please Help *Urgent* 1 /* */ 2 public class LabFinal 3 { 4 public static void...

    Please Help *Urgent* 1 /* */ 2 public class LabFinal 3 { 4 public static void main(String[] args) { 5 String mesg = "Try out this String."; 6 char[] hold = mesg.toLowerCase().toCharArray(); 7 int p=0; 8 9 System.out.println(forwardSearch(hold,'s')); //output generated 11 10 System.out.println(forwardSearch(hold,'t')); //output generated 0 11 System.out.println(p=forwardSearch(hold,'t',2)); //output generated 6 12 System.out.println(p=forwardSearch(hold,'t',p+1)); //output generated 8 13 System.out.println(p=forwardSearch(hold,'z')); //output generated -1 14 System.out.println(backwardSearch(hold,'s')); //output generated 13 15 System.out.println(backwardSearch(hold,'t')); //output generated 14 16 System.out.println(p=backwardSearch(hold,'t',13)); //output generated 8 17 System.out.println(p=backwardSearch(hold,'t',p-1)); //output generated...

  • I need help with questions 1-8 POST-LAB: LABORATORY 11 Complete on a separate sheet of paper. 1. Indicate whether the molecule is an ion. Then, indicate whether the molecule is polar m. I n. H...

    I need help with questions 1-8 POST-LAB: LABORATORY 11 Complete on a separate sheet of paper. 1. Indicate whether the molecule is an ion. Then, indicate whether the molecule is polar m. I n. H,PO o. BrO, p. IF q CO2 a. HCN b. H,SO c. HNO, d. BF H,CO, i. SF j. BeCl k. PO, 1. SO, e. XeF f H,O Calculate the number of valence electrons in each structure in question 1 2. Draw a correct Lewis dot...

  • I know is this posted else where BUT I NEED HELP IMPLEMENTING THE TIME DELAY!!!! I...

    I know is this posted else where BUT I NEED HELP IMPLEMENTING THE TIME DELAY!!!! I need a source comment next to the line that gives the delay so i can compare please. (Concurrency – Semaphores) 1.- In this assignment you will implement a deadlock free variant of the bounded-buffer producer/consumer using jBACI (C - -). C- - is a subset of C + + that allows you to declare semaphores and apply the operations P and V. In the...

  • Hello I need help with this. I am trying to use JOptionpane to ask 5 questions....

    Hello I need help with this. I am trying to use JOptionpane to ask 5 questions. However I cannot get the program to do anything after an initial selection is made. Here is the assignment. Write an application that creates a quiz, which contains at least five questions about a hobby, popular music, astronomy, or any other personal interest. Each question should be a multiple choice question with at least three options. When a user answers a question correctly, display...

  • Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine...

    Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine library procedures Objectives: 1. using register indirect addressing 2. passing parameters 3. generating “random” numbers 4. working with arrays Description: Write and test a MASM program to perform the following tasks: 1. Introduce the program. 2. Generate ARRAYSIZE random integers in the range [LO = 10 .. HI = 29], storing them in consecutive elements of an array. ARRAYSIZE should be set to 200....

  • My professor provided a very vague description of what he wants us to do with the...

    My professor provided a very vague description of what he wants us to do with the example code from the book. I have provided the picture of his description and the code from the book we need to alter. I'm already struggling with this course and I'll probably have to post another question on a different problem I'm stuck on. If you can help it would be highly appreciated. Description Change code for double, string, C-string with appropriate convert constructors...

  • Hey guys I need help with this question with 3 sub-problems. f test remove short synonyms () Define the remove shorti s...

    Hey guys I need help with this question with 3 sub-problems. f test remove short synonyms () Define the remove shorti synonyms function which is passed a dictionary as a parameter- The keys of the parameter dictionary are words and the corresponding values are 1ists of synonyms (synonyms are words which have the same or nearly the same meaning). The function romoves all the eynonyme which have ous than 8 charactors from each corresponding list of synonyms-As well, the funet...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT