Number Theory - Elementary Cryptology

Click For Summary

Homework Help Overview

This discussion revolves around a problem in public key cryptography, specifically focusing on the calculations involved in modular arithmetic related to RSA encryption. The original poster presents a congruence problem involving the expression 16^31 mod 247 and its evaluation.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants explore methods to compute large powers modulo a number, discussing step-by-step squaring techniques to simplify calculations. There are attempts to verify results and clarify misunderstandings regarding modular reductions.

Discussion Status

The discussion is active, with participants providing guidance on how to approach the calculations. Some participants express confusion over their results, while others confirm their own calculations, indicating a mix of understanding and uncertainty. There is no explicit consensus on the correct values of the congruences being discussed.

Contextual Notes

Participants are working under the constraints of the RSA encryption system, with specific values for the plaintext message and the modulus. There are mentions of breaking down larger numbers into manageable blocks for computation, as well as discussions about finding modular inverses.

Bellarosa
Messages
47
Reaction score
0
1. This is a problem involving public key cryptography
2. 16^31 is congruent to 081 (mod 247)



3. I would first evaluate 16^31 and the divided by 247 to find the remainder. I know how to work with congruences, but 16^31 is a very huge number I don't know how to evaluate it into congruence.
 
Physics news on Phys.org
Don't wait till the end to find the remainder, do it as you go. What's 16^2 mod 247? Now if you square that you get 16^4 mod 247, square again and you'll get the 8th power. It's not all that much work to get up to 31.
 
ok thank you.
 
ok I did what you said and I did not get 81,...I tryied the same for 8^31, and I got 8^31 is congreuent to18 (mod 247), the answer however is 8^31 is congruent to 122(mod 247)
 
Let me explain what I'm actually doing...the example given is to encipher the plaintext message PHONE = M using the RSA public-key system. In numerical form M is equal to 1608151405 (i.e., p is the 16th letter in the alphabet h the eight and so on).The numbers p= 13 and q = 19 are both primes and their product n=247, the enciphering formula is M^e is congruent to C (mod n), e = 31 is the exponent (the enciphering key) now because M > n, M is broken up into blocks so that C1 = 16^31, C2= 8^31 and so on, for C1 they got 16^31 is congruent to 081(mod 247), C2= 8^31 is congruent to 122 (od 247) , C3 = 15^31 is congruent to 219 (mod 247), I did what you said and I did not get 16^31 is congruent to 081 mod 247 or 8^31 is congruent to 122 mod 247...
 
I do get 16^31 is 81 and 8^31 is 122 mod 247. What did you do? I really don't know RSA cryptography in any detail, but I am pretty good at mods.
 
ok...I have no idea what I am doing wrong...this is what I did: 16^2 is congruent to 9 mod 247 and then I squred 9 and I said 16^4 is congruent to 81 mod 247
 
That's good so far. 16^8=139 and 16^16=55. Right? How do you put them all together to get 16^31?
 
ok I think I am missing it ... how did you get 139 I got 6561
 
  • #10
aren't you suppse to square 81?
 
  • #11
6561 mod 247=139. I told you. Keep reducing it.
 
  • #12
ok ... I got it...I forgot to divide 6561 by 247...
 
  • #13
one more thing... finding the inverse is something I never get...for example 31x is congruent to 1 mod 6912
 
  • #15
ok...
 
  • #16
ok I was just on this page the answer is 223...is there another way besides using the Euclidean Algorithm? just curious
 
  • #17
They describe one on the Wiki page don't they, using the Euler totient function?
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K