Q) Use the RSA cipher to decrypt the word TfG. The public key is N=221, e=5. Decrypt a single letter at a time. You may use an Excel spreadsheet but for full marks you must explain each step of your calculation.
in Other Math Topics by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

N=pq=221=13×17.

(p-1)(q-1)=12×16=192.

e=5 (encryption exponent).

The decryption exponent is d, such that:

de=1 mod (p-1)(q-1):

5d=1 mod 192.

5d=192m+1,

When m=2, 5d=385, decryption factor d=77; 5×77=1 mod 192.

Plaintext=Cᵈmod N = C⁷⁷ mod 221.

For decrypted Tfg, T=64+20=84, f=96+6=102, g=103.

So C=84⁷⁷ mod 221.

b=84, e=77=115₈=1001101.

The next step is to use modulo exponentiation and to apply d to decrypt each letter.

TABLE FOR DECRYPTION OF “T” (ASCII CODE 84₁₀, 124₈, 1010100₂)

Binary e (reverse bits)

x, x₀=1

b (base), b₀=84

1

x₁=x₀b₀ mod 221 = 84

b₁=b₀² mod 221 = 205

0

x₁=84 (no change)

 

1

x₂=x₁b₁ mod 221 = 203

b₂=b₁² mod 221 = 35

1

x₃=x₂b₂ mod 221 = 33

b₃=b₂² mod 221 = 120

0

x₃=33

 

0

x₃=33

 

1

x₄=x₃b₃ mod 221 = 203₁₀, 313₈, 11001011₂

 

TABLE FOR DECRYPTION OF “f” (ASCII CODE 102₁₀, 146₈, 1100110₂)

Binary e

x, x₀=1

b (base), b₀=102

1

x₁=x₀b₀ mod 221 = 102

b₁=b₀² mod 221 = 17

0

x₁=102 (no change)

 

1

x₂=x₁b₁ mod 221 = 187

b₂=b₁² mod 221 = 68

1

x₃=x₂b₂ mod 221 = 119

b₃=b₂² mod 221 = 204

0

x₃=119

 

0

x₃=119

 

1

x₄=x₃b₃ mod 221 = 187₁₀, 273₈, 10111011₂

 

TABLE FOR DECRYPTION OF “g” (ASCII CODE 103₁₀, 147₈, 1100111₂)

Binary e

x, x₀=1

b (base) b₀=103

1

x₁=x₀b₀ mod 221 = 103

b₁=b₀² mod 221 = 1

0

x₁=103 (no change)

 

1

x₂=x₁b₁ mod 221 = 103

b₂=b₁² mod 221 = 1

1

x₃=x₂b₂ mod 221 = 103

b₃=b₂² mod 221 = 1

0

x₃=103

 

0

x₃=103

 

1

x₄=x₃b₃ mod 221 = 103₁₀, 147₈, 1100111₂

 

by Top Rated User (1.1m points)

Related questions

1 answer
asked Apr 12, 2021 in Other Math Topics by anonymous | 828 views
1 answer
asked Apr 11, 2021 in Other Math Topics by anonymous | 384 views
1 answer
asked May 2, 2018 in Other Math Topics by Reema Level 1 User (200 points) | 361 views
1 answer
asked Oct 1, 2014 in Other Math Topics by VYSAKH PA Level 1 User (260 points) | 1.1k views
1 answer
asked Nov 17, 2013 in Other Math Topics by Edd Level 2 User (1.3k points) | 673 views
1 answer
asked Jul 16, 2013 in Other Math Topics by anonymous | 1.4k views
1 answer
1 answer
asked Sep 16, 2017 in Word Problem Answers by lost child | 546 views
1 answer
asked Sep 14, 2017 in Algebra 1 Answers by s-factor Level 1 User (160 points) | 349 views
1 answer
Welcome to MathHomeworkAnswers.org, where students, teachers and math enthusiasts can ask and answer any math question. Get help and answers to any math problem including algebra, trigonometry, geometry, calculus, trigonometry, fractions, solving expression, simplifying expressions and more. Get answers to math questions. Help is always 100% free!
87,550 questions
99,628 answers
2,417 comments
440,852 users